Pyre 0.3.0: Because Campfire doesn’t have an API (really)

I’ve released version 0.3.0 of Pyre, an alternative ruby library for interacting with Campfire from 37signals. Pyre now supports uploading files to a room! Observe:

require 'rubygems'
require 'pyre'  # it rhymes!

Pyre::Campfire.new('pyre') do |campfire|
  campfire.login('bot@seriouslyreal.com', '12345')
  campfire.room('Hot Chat') do |room|
    room.upload('/path/to/animated.gif')
    room.speak('What a cat!')
  end
end

Also, now there’s a contrib directory which will hold examples of things to do with Pyre. Currently, the only thing in there is a Subversion repository post-commit hook for putting really nice messages about commits into a Campfire room. It’s really nice. Out of the box they look like this:

cms commited revision 104
*************************
Fixed all spelling mistaeks in the README
*************************
U   pyre/trunk/README

I’m hoping to expand that contrib dir. I’m hoping people will help too.

Anyway, get it and use it.

sudo gem install pyre

2 Comments »

  1. Brandon Keepers said,

    February 28, 2008 @ 12:04 pm

    What’s wrong with Tinder?

  2. Chris said,

    February 28, 2008 @ 1:46 pm

    There’s nothing wrong with Tinder. Pyre’s just a less-featured alternative.

RSS feed for comments on this post · TrackBack URI

Leave a Comment