• 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31

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

###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
<<--

  1. Install plugin
  2. 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!

posted by hibi hibi on Wed 5 Mar 2008 at 16:58 with 0 comments