jerry / admin_tickler

validation-like notifications for rails model, delivered by email or XMPP

This URL has Read+Write access

name age message
file MIT-LICENSE Fri Nov 07 13:43:51 -0800 2008 shiny, freshly generated plugin from rails [Jerry Richardson]
file README Sat Nov 08 20:02:26 -0800 2008 added hook code for init, added Tickles to AR::... [Jerry Richardson]
file README.textile Sat Nov 08 20:02:26 -0800 2008 added hook code for init, added Tickles to AR::... [Jerry Richardson]
file Rakefile Fri Nov 07 13:43:51 -0800 2008 shiny, freshly generated plugin from rails [Jerry Richardson]
directory generators/ Fri Nov 07 13:43:51 -0800 2008 shiny, freshly generated plugin from rails [Jerry Richardson]
file init.rb Sat Nov 08 20:02:26 -0800 2008 added hook code for init, added Tickles to AR::... [Jerry Richardson]
file install.rb Fri Nov 07 13:43:51 -0800 2008 shiny, freshly generated plugin from rails [Jerry Richardson]
directory lib/ Sat Nov 08 20:02:26 -0800 2008 added hook code for init, added Tickles to AR::... [Jerry Richardson]
file tail_feather.jpg Sat Nov 08 19:32:04 -0800 2008 added feather logo, framework for Tickles [Jerry Richardson]
file tail_feather.png Sat Nov 08 19:32:04 -0800 2008 added feather logo, framework for Tickles [Jerry Richardson]
directory tasks/ Fri Nov 07 13:43:51 -0800 2008 shiny, freshly generated plugin from rails [Jerry Richardson]
directory test/ Fri Nov 07 13:43:51 -0800 2008 shiny, freshly generated plugin from rails [Jerry Richardson]
file uninstall.rb Fri Nov 07 13:43:51 -0800 2008 shiny, freshly generated plugin from rails [Jerry Richardson]
README.textile

AdminTickler

In-App Notifications based on model conditions – like validations that run on a schedule

  • takes a hash of conditions for a model
  • Assumes Restful Authentication but can be configured to use other schemes
  • Round-Robin Messaging of On-Call Admins
    • XMPP for Notifications via Jabber
    • jsjac for XMPP-notifications inside the site
    • If the admin is offline:
      • fallback to email for high-priority messages
      • queue until next login for low-priority messages

Example


# alert an admin that a user account was created but never activated over XMPP, falling back to admin e-mail
tickle_on  { :created_at => 30.days.ago, :activated_at => nil }, :type => :alert_admin, :message => "User has not activated account."

# send an activation reminder to user who created an account over 30 days ago but never activated
tickle_on  { :created_at => 30.days.ago, :activated_at => nil }, :type => :send_email, :mailer => "UserMailer.activation_reminder(self)"

Copyright © 2008 Disruptive Ventures, Inc., released under the MIT

Amazon Parrot Tail Feather image used with permission of Ask-a-Biologist