Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not compatible with Ruby 1.9.2_p290 #12

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

Comments

Projects
None yet
2 participants
@programble
Copy link

programble commented Jul 22, 2011

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>'
@mvidner

This comment has been minimized.

Copy link
Owner

mvidner commented Jul 25, 2011

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?

@programble

This comment has been minimized.

Copy link
Author

programble commented Jul 25, 2011

ruby-dbus (0.6.0)

:\

@programble

This comment has been minimized.

Copy link
Author

programble commented Jul 25, 2011

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

@programble

This comment has been minimized.

Copy link
Author

programble commented Jul 25, 2011

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

@programble programble closed this Jul 25, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.