Parser generates error on initialize
Closed this issue · 2 comments
When following your example I get the following error after declaring parser = Metar::Parser.new(raw)
ArgumentError: wrong number of arguments (1 for 0)
from /Users/morten/.rvm/gems/ruby-1.9.2-head/gems/m9t-0.2.2/lib/m9t/base.rb:129:in block (2 levels) in define_conversion' from /Users/morten/.rvm/gems/ruby-1.9.2-head/gems/m9t-0.2.2/lib/m9t/base.rb:99:in
method_missing'
from /Users/morten/.rvm/gems/ruby-1.9.2-head/gems/m9t-0.2.2/lib/m9t/base.rb:109:in to_s' from /Users/morten/.rvm/gems/ruby-1.9.2-head/gems/metar-parser-0.9.8/lib/metar/data.rb:143:in
to_s'
from /Users/morten/.rvm/gems/ruby-1.9.2-head/gems/railties-3.1.0/lib/rails/commands/console.rb:45:in start' from /Users/morten/.rvm/gems/ruby-1.9.2-head/gems/railties-3.1.0/lib/rails/commands/console.rb:8:in
start'
from /Users/morten/.rvm/gems/ruby-1.9.2-head/gems/railties-3.1.0/lib/rails/commands.rb:40:in <top (required)>' from script/rails:6:in
require'
from script/rails:6:in `
Hello.
This looks like a Ruby 1.9.x compatibility problem with the dependency m9t.
I've opened myself an issue for that:
joeyates/m9t#1
The m9t issue is now fied by the 0.2.3 release of that gem.
metar tests now pass under ruby 1.9.x