Avro
  1. Avro
  2. AVRO-415

Allow Ruby implementation to work with older versions of Ruby

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3.0
    • Component/s: ruby
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      On Mac OS X Leopard with Ruby 1.8.6, running "rake test" results in:

      $ rake test
      (in /Users/hammer/codebox/avro-trunk/lang/ruby)
      /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -Ilib:ext:bin:test "/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader.rb" "test/test_help.rb" "test/test_io.rb" "test/test_protocol.rb"
      ./lib/avro/schema.rb:290:in `initialize': wrong argument type Symbol (expected Proc) (TypeError)
      from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `each_with_index'
      from ./lib/avro/schema.rb:274:in `each'
      from ./lib/avro/schema.rb:274:in `each_with_index'
      from ./lib/avro/schema.rb:274:in `initialize'
      from ./lib/avro/schema.rb:72:in `new'
      from ./lib/avro/schema.rb:72:in `real_parse'
      from ./lib/avro/schema.rb:372:in `initialize'
      from ./lib/avro/schema.rb:170:in `new'
      ... 16 levels...
      from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader.rb:5:in `load'
      from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader.rb:5
      from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader.rb:5:in `each'
      from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader.rb:5
      rake aborted!
      Command failed with status (1): [/System/Library/Frameworks/Ruby.framework/...]

      (See full trace by running task with --trace)

      1. AVRO-415.patch
        1 kB
        Jeff Hodges
      2. 187onanundercoverproc.patch
        0.6 kB
        Jeff Hodges

        Activity

          People

          • Assignee:
            Jeff Hodges
            Reporter:
            Jeff Hammerbacher
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development