aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/mauve_time.rb
AgeCommit message (Collapse)Author
2012-05-08Fixed time tests + standardised dead zone + daylight hours.Patrick J Cherry
2012-05-08Web interface now uses an ajax call to work out ack times, falling back toPatrick J Cherry
javascript if that takes too long. Default working hours are now 9.30 - 5.30 as per SLA.
2012-05-03Update Time.bank_holiday? etc. to work correctly.Patrick J Cherry
Mauve::Configuration#do_parse_time now a class method, and used elsewhere to standardise ranges in the configuration file.
2012-05-02Added configuration options for daytime_hours, dead_zone, and working_hours.Patrick J Cherry
2012-04-25Big update.Patrick J Cherry
* Max acknowledgement time is now specified in the config * Calendar interface improved. * holiday_url no longer used -- replaced by notify_when_on_holiday! * added notify_when_off_sick! * Added ability for the calendar to be queried for a list of bank holdays. * Added ability for Time to be given a list of bank holidays to check against. * PeopleLists can now be a Proc, allowing downloading of lists * Person is no longer a struct * Moved the method_missing bit into ObjectBuilder from various sub classes. * Added tests for the calendar interface * Updated tests in other bits.
2011-09-16Robustificate the XMPP ack interface.Patrick J Cherry
2011-09-16Big documentation update.Patrick J Cherry
2011-08-17Changed DateTime to Time everywhere. Much better.Patrick J Cherry
2011-08-10Removed MauveTime. Added more tests.Patrick J Cherry
2011-08-10Updated during_runner to work better.Patrick J Cherry
--HG-- rename : test/time_test.rb => test/tc_mauve_time.rb
2011-07-29 * Added initial loggerPatrick J Cherry
* Acknowledgement time calculations now in JS * Updated logging to indicate where and update comes from
2011-06-16Fixed up date handling in the xmpp/email templatePatrick J Cherry
Changed basic notification logic in Alert.
2011-06-15 * Added Alert#subject to return source when subject unspecifiedPatrick J Cherry
* Added extra arg to acknowledge! * Alert#all_raised / all_cleared does not returned ack'd alerts * Added sanitising for source/subject * Catch empty alert_group notifications in AlertChanged * Tidied up alert_group * Added skip bytemark_auth when RACK_ENV is development * Tidied up logging in MauveThread, Timer, UdpServer * Added extra convenience methods to Time and Date * Moved working/daylight/dead_zone hours into Time
2011-06-13 * Tidied up mauveserver to handle HUP restartsPatrick J Cherry
* Added HTML santizing to the alert class, so bad HTML is stripped as part of processing. * Alert#cleared? now means "not raised" * Better error handling in the Timer class, making sure that the timer never gets permanently frozen. * Moved notification and packet buffers to the Server class, meaning that if the Processor or Notifier threads crash, we don't lose all the items waiting to be processed/notified. * XMPP/Email Alerts now use templates, instead of instance methods. * Emails now get sent as multipart with HTML to allow detail fields to be shown as nature intended.
2011-04-13new version.Patrick J Cherry