In my company, we're using a Redmine. And I thought it would be more useful if I could receive some activities(Like creating/updating Issue) via GTalk. Thus I created acts_as_notifiable.
NOTE:
- I added this plugin to directory:
http://agilewebdevelopment.com/plugins/acts_as_notifiable
- Japanse entry about this plugin: http://blog.s21g.com/articles/415
###Repository
http://svn.s21g.com/public/rails/plugins/acts_as_notifiable/
###To work with Redmine
0. Install XMPP4R: http://xmpp4r.rubyforge.org/
shell>>
$sudo gem install xmpp4r
<<--
- Install plugin
- Create file: #{RAILS_ROOT}/config/acts_as_notifiable.yml
rails>>
#{RAILS_ROOT}/config/acts_as_notifiable.yml
to:
recipients: you@gmail.com me@gmail.com
from:
id: your_notify_account@gmail.com
password: pass
connect: talk.google.com
<<--
3. Add acts_as_notifiable to the Model class
rails>>
class Issue
acts_as_notifiable :message => Proc.new {|o| "[#{o.project.name}:#{o.class.name}##{o.id}]#{o.status.name}:#{o.subject}\n #{o.journals.last.notes unless o.journals.blank?}"}
<<--
4. restart server
NOTE: Don't forget to add your_notify_account@gmail.com to your IM client!