Forums | Admin

Discussion Forums: open-discussion

Start New Thread Start New Thread

 

By: John Dyer
Ruby 1.9.2 issues [ reply ]  
2011-06-29 19:40
Getting this error when I try to require dnsruby 1.5.1 in Ruby 1.9.2

---
jdyer dns_update ruby-1.9.2 [master⚡] ❯❯ ruby dns.rb
/Users/jdyer/.rvm/gems/ruby-1.9.2-p180@global/gems/Dnsruby-1.0/lib/Dnsruby.rb:137:in `unknown_string': String IN not a member of Dnsruby::Classes (ArgumentError)
from /Users/jdyer/.rvm/gems/ruby-1.9.2-p180@global/gems/Dnsruby-1.0/lib/Dnsruby/code_mapper.rb:88:in `initialize'
from /Users/jdyer/.rvm/gems/ruby-1.9.2-p180@global/gems/Dnsruby-1.0/lib/Dnsruby/code_mapper.rb:81:in `new'
from /Users/jdyer/.rvm/gems/ruby-1.9.2-p180@global/gems/Dnsruby-1.0/lib/Dnsruby/code_mapper.rb:81:in `method_missing'
from /Users/jdyer/.rvm/gems/ruby-1.9.2-p180@global/gems/Dnsruby-1.0/lib/Dnsruby/resource/PX.rb:20:in `<class:PX>'
from /Users/jdyer/.rvm/gems/ruby-1.9.2-p180@global/gems/Dnsruby-1.0/lib/Dnsruby/resource/PX.rb:19:in `<module:IN>'
from /Users/jdyer/.rvm/gems/ruby-1.9.2-p180@global/gems/Dnsruby-1.0/lib/Dnsruby/resource/PX.rb:18:in `<class:RR>'
from /Users/jdyer/.rvm/gems/ruby-1.9.2-p180@global/gems/Dnsruby-1.0/lib/Dnsruby/resource/PX.rb:17:in `<module:Dnsruby>'
from /Users/jdyer/.rvm/gems/ruby-1.9.2-p180@global/gems/Dnsruby-1.0/lib/Dnsruby/resource/PX.rb:16:in `<top (required)>'
from /Users/jdyer/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/jdyer/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/jdyer/.rvm/gems/ruby-1.9.2-p180@global/gems/Dnsruby-1.0/lib/Dnsruby/resource/generic.rb:134:in `<top (required)>'
from /Users/jdyer/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/jdyer/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/jdyer/.rvm/gems/ruby-1.9.2-p180@global/gems/Dnsruby-1.0/lib/Dnsruby/resource/resource.rb:461:in `<top (required)>'
from /Users/jdyer/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/jdyer/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/jdyer/.rvm/gems/ruby-1.9.2-p180@global/gems/Dnsruby-1.0/lib/Dnsruby/message.rb:17:in `<top (required)>'
from /Users/jdyer/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/jdyer/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/jdyer/.rvm/gems/ruby-1.9.2-p180@global/gems/Dnsruby-1.0/lib/Dnsruby.rb:477:in `<class:Resolv>'
from /Users/jdyer/.rvm/gems/ruby-1.9.2-p180@global/gems/Dnsruby-1.0/lib/Dnsruby.rb:383:in `<module:Dnsruby>'
from /Users/jdyer/.rvm/gems/ruby-1.9.2-p180@global/gems/Dnsruby-1.0/lib/Dnsruby.rb:87:in `<top (required)>'
from /Users/jdyer/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:58:in `require'
from /Users/jdyer/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:58:in `rescue in require'
from /Users/jdyer/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
from /Users/jdyer/Dropbox/Projects/dns_update/libs/Tropo/romeo.rb:3:in `<class:Romeo>'
from /Users/jdyer/Dropbox/Projects/dns_update/libs/Tropo/romeo.rb:2:in `<module:Tropo>'
from /Users/jdyer/Dropbox/Projects/dns_update/libs/Tropo/romeo.rb:1:in `<top (required)>'
from /Users/jdyer/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/jdyer/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/jdyer/Dropbox/Projects/dns_update/libs/tropo.rb:4:in `<module:Tropo>'
from /Users/jdyer/Dropbox/Projects/dns_update/libs/tropo.rb:1:in `<top (required)>'
from /Users/jdyer/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/jdyer/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'

-----

However the same gem works fine in 1.8.7... Strange thing is this just stopped working today, it was fine up until then... Not sure what happened... Any idea?