This is the code from the tutorial at http://trac.luon.net/data/ruby-dbus/tutorial/service.html
$ irb
require 'dbus'
=> true
bus = DBus.session_bus
=> #<DBus::SessionBus:0x7f45a9ed88c0
@guid="d4acff2a02b667fa9dc5af2a4aef3e3c", @proxy=nil, @unique_name=":1.62", @unix_abstract="/tmp/dbus-AI13XiS6cV", @signal_matchrules=[], @type="abstract", @method_call_msgs={}, @buffer="l\004\001\001\n\000\000\000\002\000\000\000\215\000\000\000\001\001o\000\025\000\000\000/org/freedesktop/DBus\000\000\000\002\001s\000\024\000\000\000org.freedesktop.DBus\000\000\000\000\003\001s\000\f\000\000\000NameAcquired\000\000\000\000\006\001s\000\005\000\000\000:1.62\000\000\000\b\001g\000\001s\000\000\a\001s\000\024\000\000\000org.freedesktop.DBus\000\000\000\000\005\000\000\000:1.62\000", @client=#<DBus::Client:0x7f45a9ed4fb8 @authenticator=#<DBus::External:0x7f45a9ed4c70>, auth_list[], state:Authenticated, socket#<Socket:0x7f45a9ed7e70, @object_root=<DBus::Node {}>, socket#<Socket:0x7f45a9ed7e70, @path="unix:abstract=/tmp/dbus-AI13XiS6cV,guid=d4acff2a02b667fa9dc5af2a4aef3e3c", @transport="unix", @method_call_replies={}>
service = bus.request_service("org.ruby.service")
NoMethodError: undefined method 'get_node' for nil:NilClass
from /usr/local/lib/site_ruby/1.8/dbus/bus.rb:527:in 'process'
from /usr/local/lib/site_ruby/1.8/dbus/bus.rb:468:in 'send_sync'
from (eval):24:in 'RequestName'
from /usr/local/lib/site_ruby/1.8/dbus/bus.rb:382:in 'request_service'
from (irb):3
The version installed is 0.2.10 from the tarballs on github.
The OS is Ubuntu 9.04.
Ruby is ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux].
Rubygem is 1.3.5.