No release in over 3 years
Low commit activity in last 3 years
If there is some new users signed up on your site or some new articles been added by some other user, If you hope been notified, please execute "gem install new_data_notifier
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 3.0.0
 Project Readme

New Data Notifier

If there is some new users signed up on your site or some new articles been added by some other user, If you hope been notified, please execute "gem install new_data_notifier"

Install

  1. Execute "rails generate new_data_notifier:create_config"

  2. Change the config in new_data_notifier.rb which placed in initializers dir, below is a sample:

    NewDataNotifier.default_recipients = ["hlxwell@gmail.com"]

    NewDataNotifier.be_monitored_models = ["Job", "Partner"]

    NewDataNotifier.sender_address = ["new_data@gmail.com"]

  3. Add cron task.

    */20 * * * * sh -c "cd /home/michael.he/app/current && rake new_data_notifier:send_latest_data RAILS_ENV=production"

TO-DO-LIST

  1. Monitored Models should be able to configured like below:

NewDataNotifier.be_monitored_models = ["Job.waiting_to_approve", "PaymentTransaction.waiting_to_process"]

Copyright

Copyright (c) 2010 Michael He, released under the MIT license