[ https://issues.apache.org/jira/browse/AVRO-415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12834006#action_12834006 ]
Jeff Hammerbacher commented on AVRO-415: ---------------------------------------- After applying the patch, I get a new error: {noformat} $ 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" Loaded suite /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader Started ...........E.........E... Finished in 0.219321 seconds. 1) Error: test_lisp(TestIO): NoMethodError: undefined method `find_index' for #<Array:0x5e6000> ./lib/avro/io.rb:555:in `write_union' ./lib/avro/io.rb:517:in `write_data' ./lib/avro/io.rb:566:in `write_record' ./lib/avro/io.rb:565:in `each' ./lib/avro/io.rb:565:in `write_record' ./lib/avro/io.rb:518:in `write_data' ./lib/avro/io.rb:495:in `write' ./test/test_io.rb:301:in `checkser' ./test/test_io.rb:290:in `check' ./test/test_io.rb:290:in `times' ./test/test_io.rb:290:in `check' ./test/test_io.rb:117:in `test_lisp' 2) Error: test_union(TestIO): NoMethodError: undefined method `find_index' for #<Array:0x382a5c> ./lib/avro/io.rb:555:in `write_union' ./lib/avro/io.rb:517:in `write_data' ./lib/avro/io.rb:495:in `write' ./test/test_io.rb:301:in `checkser' ./test/test_io.rb:290:in `check' ./test/test_io.rb:290:in `times' ./test/test_io.rb:290:in `check' ./test/test_io.rb:102:in `test_union' 25 tests, 538 assertions, 0 failures, 2 errors rake aborted! Command failed with status (1): [/System/Library/Frameworks/Ruby.framework/...] (See full trace by running task with --trace) {noformat} > Allow Ruby implementation to work with older versions of Ruby > ------------------------------------------------------------- > > Key: AVRO-415 > URL: https://issues.apache.org/jira/browse/AVRO-415 > Project: Avro > Issue Type: Improvement > Components: ruby > Reporter: Jeff Hammerbacher > Assignee: Jeff Hodges > Attachments: 187onanundercoverproc.patch > > > On Mac OS X Leopard with Ruby 1.8.6, running "rake test" results in: > {quote} > $ 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) > {quote} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.