ruby-dbus is usable, sort of
After watching our best basketball team Partizan being eliminated in the Euroleague quarterfinals by CSKA (the refereeing was shameful), I needed a quick fix in terminal, so I checked out ruby-dbus. A while ago I tried the gem from rubyforge which couldn’t even connect to the session bus (ruby-dbus has been written two years ago), but after looking at the Redcar homepage yesterday I realized that somebody has a fork on github, which gave me some hope.
And indeed sdague-ruby-dbus can be used, to access objects on the bus, catch signals, and even create and expose new services. Support for properties is not implemented.
Here’s an example; it’s useless but it can give an impression on how it works:
I also used D-Feet for the first time. It’s a nice D-Bus inspector and debugger tool which can call methods in Python syntax.