aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/server.rb
AgeCommit message (Collapse)Author
2012-11-21Added a server sleep to make sure doesn't spam the logs too much.Patrick J Cherry
2012-07-03Removed ability to freeze threads, since that is not used any more.Patrick J Cherry
Added checks to make sure threads are run at least every two minutes.
2012-07-03Downgraded buffer size warnings to "info".Patrick J Cherry
2012-05-01Set default hostname to Socket.gethostname, and default base_url now includesPatrick J Cherry
the port, if it is not port 80
2012-04-28Added datamapper logger back in.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.
2012-04-21Overhaul of authentication.Patrick J Cherry
* Added new configuration options: ** bytemark_calendar_url ** bytemark_auth_url ** remote_https_verify_mode ** remote_http_timeout ** failed_login_delay * Added authentication tests * Removed remote auth tests in from the web interface tests. * If no bytemark_auth_url is set, then no remote auth takes place. * SSL peer cert validation now takes place by default. * Removed old logic tests * Tidied the way tests take place a little.
2012-04-20Added configuration options to disable the notification/packet buffers.Patrick J Cherry
2012-01-30Bundled timer in with processor. What could go wrong..?Patrick J Cherry
2012-01-30Added possibility of using postgres databases.Patrick J Cherry
2011-11-03Fixed everything up to use EpochTime everywhere instead of regular Times.Patrick J Cherry
Datamapper can't handle timezones.
2011-09-16Big documentation update.Patrick J Cherry
2011-08-31Fixed up alert suppression to be less jumpyPatrick J Cherry
2011-08-19HTML now sanitised on save.Patrick J Cherry
Added History tests Default polling interval now 5s, 0s for Timer/UDPServer Fixed note entry for alert page.
2011-08-19Added note-ability (fixes 1146)Patrick J Cherry
Removed threaded notifications cos we don't need em. (ftw!)
2011-08-19Added last_state_changed thing for MauveThread. Closes #1836.Patrick J Cherry
2011-08-18 * Fixed up Alert to postpone raises/clears within initial sleep period for ↵Patrick J Cherry
old alerts * Fixed up AlertChanged to do the same * Added a migration method for the new AlertHistories table * added singleton cleanup for tests * moar tests * cleaned up Alert a bit
2011-08-17Tidied up auto_upgrade! codePatrick J Cherry
2011-08-17* Reminder notifications now take the same path to notify as initial alertsPatrick J Cherry
* Threading tidied -- processor will not do anything unless the timer has frozen * Person#send_alert now tidied and merged with alert_changed * POP3 server only shows alerts relevant to the user * Server now defaults to using an in-memory SQLite database (good for testing) * Server initializes a blank mauve config. * Tests tidied up
2011-08-10Removed MauveTime. Added more tests.Patrick J Cherry
2011-08-04Added pop3 server.Patrick J Cherry
--HG-- rename : lib/mauve/auth_bytemark.rb => lib/mauve/authentication.rb
2011-07-22 * Rejigged configurationPatrick J Cherry
* Added --test and --verbose flags for the server config * Started proper test suite * Config parsing now gives more sensible errors + backtrace * Rejigged people and source lists
2011-07-20 * Added heartbeat to remote mauvePatrick J Cherry
* Added URLs to messages * Added example configuration file * Added various docs * XMPP messages now XHTML and TXT * Handling of MUC reconnection a bit better.
2011-07-19Rejigged threading around the notifier, and start/stop order for the server.Patrick J Cherry
2011-07-18Improved code to avoid Exception when the processor attempts to freeze a threadPatrick J Cherry
that is not running.
2011-07-13 Big commitPatrick J Cherry
* Added manpages for all binaries * Added log-reopening for mauvealert-server, and logrotate snippet * mauveserver now adds a user on install, and runs as that user * Big logging tidy-up * Alert subjects are only overwritten by the source, when the subject in the databse is empty * Removed various attr_writer methods that were being redifined * Added a notes box to the acknowledge form, but this doesn't work yet
2011-07-08Added first basic history functionality, and rejigged when notify is called forPatrick J Cherry
an alert.
2011-06-17 * Notifications are now run in their separate threads.Patrick J Cherry
* Queues are now just arrays instead of "Queue"s * Updated templates to be saner. * Added flusing of queues when threads stop
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-06-09Big commitPatrick J Cherry
--HG-- rename : views/please_authenticate.haml => views/login.haml
2011-04-13new version.Patrick J Cherry