This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit 34c7817d0ead34f714c1647c6e762d6c2b3a3643
tree ad4a478a617b312cd118d540898a3d067b32d92b
parent 25eaef52402e4f66d0a459d0498f3dcac8dd472f
tree ad4a478a617b312cd118d540898a3d067b32d92b
parent 25eaef52402e4f66d0a459d0498f3dcac8dd472f
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Sun Apr 06 13:07:07 -0700 2008 | [giraffesoft] |
| |
LICENSE | Sun Apr 06 12:56:58 -0700 2008 | [giraffesoft] |
| |
README | Sun Apr 06 16:25:25 -0700 2008 | [giraffesoft] |
| |
Rakefile | Sun Apr 06 12:33:32 -0700 2008 | [giraffesoft] |
| |
init.rb | Sun Apr 06 15:18:02 -0700 2008 | [giraffesoft] |
| |
lib/ | Sun Apr 06 15:09:00 -0700 2008 | [giraffesoft] |
| |
tasks/ | Sun Apr 06 15:18:02 -0700 2008 | [giraffesoft] |
| |
test/ | Sun Apr 06 12:39:35 -0700 2008 | [giraffesoft] |
README
= ActionMessager
ActionMessager is dead simple IM notifications for your app.
== Get It
$ sudo gem install action_messager
... or get the source ...
$ git clone git@github.com:giraffesoft/action_messager.git
== Usage
ActionMessager works just like ActionMailer. All you have to do start sending IM notifications to your users is subclass
ActionMessager::Base; then, create a method that sets an array of recipients, and returns the message you'd like to
send:
class JabberNotifier < ActionMessager::Base
def friendship_request(friendship_request)
@recipients = friendship_request.receiver.jabber_contact
"You have received a friendship request from #{friendship_request.sender.name}! Click here to accept or decline:
#{friendship_request.url}"
end
end
Then, wherever you'd like to send the notification:
JabberNotifier.deliver_friendship_request(friendship_request)
That's it!
== Configuration
You'll need to configure ActionMessager with your jabber credentials.
ActionMessager::Base.jabber_settings = {
:username => 'somebody@somejabberserver.com',
:password => 'swordfish!'
}
== Credits
ActionMessager was created, and is maintained by {James Golick}[http://jamesgolick.com].
== License
ActionMessager is Copyright (c) 2008 James Golick, GiraffeSoft, Inc. It is released under the {MIT
License}[http://en.wikipedia.org/wiki/MIT_License]




