query: tag:acts_as_notifiable

Redmineを使っていて、Issueの追加/変更通知がGTalkで来たらうれしいかもと思って作りました:acts_as_notifiable。

NOTE:

http://agilewebdevelopment.com/plugins/acts_as_notifiable

###Repository
http://svn.s21g.com/public/rails/plugins/acts_as_notifiable/

###Redmineに組み込む
0. XMPP4Rをインストール: http://xmpp4r.rubyforge.org/
shell>>
$sudo gem install xmpp4r
<<--

  1. プラグインをインストール
  2. 設定ファイルを作成: #{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. モデルにacts_as_notifiableを追加
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. サーバ再起動

NOTE: 通知を受け取るIM側でyour_notify_account@gmail.comを追加するの忘れないように!

posted by satoko satoko on Thu 6 Mar 2008 at 05:29 with 0 comments

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