Ruby bindings for Loudmouth

Last week I sat down and wrote bindings for Loudmouth. This means that anyone who want to write an XMPP enabled application with GTK+/Ruby now have an asynchronous library that integrates perfectly with the GLib mainloop.

It also gives me access to testing and writing small scripts using Loudmouth with the beauty of Ruby.

Here is a small example showing the bindings in the current state:

require 'loudmouth'

conn = LM::Connection.new
conn.jid = 'myjid@mydomain.com'

conn.open do |open_result|
  if open_result
    conn.authenticate('username', 'password', 'resource') do |auth_result|
      if result
         puts "Authenticated, do your stuff"
       end
    end
  end
end

GLib::MainLoop.new.run

So far I have only bound the asynchronous calls and I am not sure whether I will bind synchronous ones in the future.

If you want to try them out or even better, help out by improving them or write example code. Create an account at Github and watch/clone the repository. It’s named loudmouth-ruby.

Loudmouth 1.3.4 Released

Took the time to go through all of the fixes that Senko Rasic had in his tree since 1.3.3 as well as going through the issue tracker and prioritized to get a new version of the 1.3 branch out.

The previous 1.3 releases had an ABI break, spotted by Owen Taylor who kindly sent in a several patches that made into the release. Other patches came from Richard Hult and Martyn Russell.

You can see a list of the bugs that were fixed in the release notes, note though that Senko fixed a couple of issues that weren’t reported.

Thanks to everyone who contributed!

Github and Loudmouth

Stumbled over a new service called Github a while back when listening to a Ruby on Rails Podcast. Having used Git for the past year or so I was excited to see this service as it seemed to be a great solution to one of my biggest problems with decentralized version control systems, overview of what cool things people around me hack on.

In short Github is a Git hosting service with a web front end for tracking, forking and posting pull requests. It gives you a great overview of who forked your repository and what they are hacking on.

With the Loudmouth 1.3 branch development spread out on three different developers where I often forget to check out what the others are up to I figured this might be a good solution and requested a beta account there.

So far I’m really happy with it and it is also a great fun way of tracking other repositories I’m not working on, something like this for GNOME would be awesome.

To keep track of my Loudmouth hacking, just subscribe to the RSS feed or check out my Loudmouth repository.

If you want to help out hacking on Loudmouth, just drop me an email for an invite.

After that it’s just fork and hack away!

Next Page »

Close
E-mail It