Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Not compatible with Ruby 1.9.2_p290 #12

Closed
programble opened this Issue July 22, 2011 · 4 comments

2 participants

Curtis McEnroe Martin Vidner
Curtis McEnroe

The gem is not compatible with Ruby 1.9.2_p290 (and probably earlier).

irb(main):001:0> require 'dbus'
/usr/lib/ruby/site_ruby/1.9.1/dbus/introspect.rb:94: warning: else without rescue is useless
SyntaxError: /usr/lib/ruby/site_ruby/1.9.1/dbus/introspect.rb:91: syntax error, unexpected ':', expecting keyword_then or ',' or ';' or '\n'
        when 0: name
               ^
/usr/lib/ruby/site_ruby/1.9.1/dbus/introspect.rb:552: syntax error, unexpected keyword_end, expecting $end
end # module DBus
   ^
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from /usr/lib/ruby/site_ruby/1.9.1/dbus.rb:12:in `<top (required)>'
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from (irb):1
    from /usr/bin/irb:12:in `<main>'
Martin Vidner
Owner

You are right that 0.6.0, the last released version, does not work with Ruby 1.9.2. That was fixed in d86d7eb in December and I will release a new gem shortly.

But the backtrace mentions "when 0:" which was fixed in 0.4.0 already in cc04188. Are you using a version so old or is there something strange with your setup?

Curtis McEnroe
ruby-dbus (0.6.0)

:\

Curtis McEnroe

Wait what, it's not loading the gem at all.

Curtis McEnroe

Turns out I had a ruby-dbus package installed (no idea why) that I guess contained a very old version of this gem. Sorry.

Curtis McEnroe programble closed this July 25, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.