Ruby bindings for libappindicator used by Ubuntu's Application Indicators, released under the LGPLv3 license.
Homepage Rubygems Ruby Documentation Download
gem install ruby-libappindicator -v 0.1.5
Ruby bindings for libappindicator used by Ubuntu's Application Indicators released under the LGPLv3 license
Now that libappindicator has been renamed into libappindicator1 and that libappindicator3 is available, the upstream versioning scheme is clear and we use the corresponding naming:
ruby-libappindicator (v1 branch) → libappindicator1
ruby-libappindicator3 (v3 branch) → libappindicator3
This gem uses the same version numbering than libappindicator itself like that:
libappindicator-x.y → ruby-libappindicator-x.y.z
The z number reflects changes internal to the gem, not upstream ones.
libappindicator3 is linked to gtk+3 which does not have an official ruby binding at the moment. As a consequence, ruby-libappindicator3 is not available at the moment. Use libappindicator1 instead as both versions can be used in parallel on the same system.
For installing the gem, make sure you have all the required packages available, which are:
libgtk2.0-dev
libappindicator-dev
require "rubygems" require "ruby-libappindicator" ai = AppIndicator::AppIndicator.new("test", "indicator-messages", AppIndicator::Category::APPLICATION_STATUS); ai.set_menu(Gtk::Menu.new) ai.set_status(AppIndicator::Status::ACTIVE) Gtk.main
The two necessary steps to make your application indicator visible are:
setting a menu (even empty, but you need one)
setting the status as active or requiring attention