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 (
Chris Heald (author)
Tue Sep 23 03:28:12 -0700 2008
commit ca5257705e1904527463c7eeeea2179ffd2de2e7
tree e6bea8994552a8c674125618d83a3fa4a6cac212
parent f00179346961a5375cd5bf0f1cada8f63857e4e4
tree e6bea8994552a8c674125618d83a3fa4a6cac212
parent f00179346961a5375cd5bf0f1cada8f63857e4e4
| name | age | message | |
|---|---|---|---|
| |
LICENSE | Mon Sep 22 22:49:13 -0700 2008 | |
| |
README | Mon Sep 22 23:22:03 -0700 2008 | |
| |
config/ | Mon Sep 22 23:22:03 -0700 2008 | |
| |
init.rb | Mon Sep 22 22:47:40 -0700 2008 | |
| |
install.rb | Tue Sep 23 03:28:12 -0700 2008 | |
| |
lib/ | Mon Sep 22 22:47:40 -0700 2008 | |
| |
script/ | Tue Sep 23 03:28:12 -0700 2008 |
README
Jabberish is a DRb-backed Jabber client designed for use in multi-server Rails apps.
Just drop in the plugin, configure, start the daemon, and off you go.
To install it:
script/plugin install git://github.com/cheald/jabberish.git
Jabberish calls in your code will fail silently if the Jabberish DRb process isn't running, so if the daemon goes
missing, it won't bring your app crashing down around your shoulders - you just won't get IMs.
1) edit config/jabberish.yml with your desired settings
2) rake jabberish:start
3) Invoke Jabberish from your code.
JabberishAgent.deliver("your-email@gmail.com", message_to_deliver)
For example, to send yourself IMs when your app has an error, in application.rb:
def rescue_action(e)
# The third parameter is "throttle", which will cause Jabberish to refuse
# to send the same message to a given recipient twice in a row
msg = sprintf("[#%s] %s (%s)", Time.now.to_i, e, e.backtrace.first)
JabberishAgent.deliver("your-email@gmail.com", msg, true)
end
Jabberish relies on the xmpp4r-simple gem, so if you are having problems, install it:
gem install xmpp4r-simple
Enjoy!






