diff options
author | Patrick J Cherry <patrick@bytemark.co.uk> | 2017-03-20 14:08:34 +0000 |
---|---|---|
committer | Patrick J Cherry <patrick@bytemark.co.uk> | 2017-03-20 14:11:27 +0000 |
commit | c1ca338fdb32b05fd047730be9ca6569d22c6806 (patch) | |
tree | 23eb2052dd9aaf7569d5c030a9b3676b69de947f /lib/mauve/person.rb | |
parent | cce9b3743fa1128ffb72b7d2c5f5aa94a52993e9 (diff) |
Updated gems to (roughly) jessie versions; removed XMPP support.
Also changed the postgres tests to "skip" if no postgres db is
available.
Diffstat (limited to 'lib/mauve/person.rb')
-rw-r--r-- | lib/mauve/person.rb | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/lib/mauve/person.rb b/lib/mauve/person.rb index 1e26835..de8038c 100644 --- a/lib/mauve/person.rb +++ b/lib/mauve/person.rb @@ -5,7 +5,7 @@ require 'log4r' module Mauve class Person - attr_reader :username, :password, :urgent, :normal, :low, :email, :xmpp, :sms + attr_reader :username, :password, :urgent, :normal, :low, :email, :sms attr_reader :suppressed, :notifications attr_reader :notify_when_off_sick, :notify_when_on_holiday @@ -18,7 +18,7 @@ module Mauve @username = username @password = nil @urgent = @normal = @low = nil - @email = @sms = @xmpp = @hipchat = nil + @email = @sms = @hipchat = nil @notify_when_on_holiday = @notify_when_off_sick = false end @@ -76,14 +76,6 @@ module Mauve @sms = arg end - # Sets the xmpp parameter - # - # - def xmpp=(arg) - # raise ArgumentError, "xmpp expected a string, not a #{arg.class}" unless arg.is_a?(String) or arg.is_a?(Jabber::JID) - @xmpp = arg - end - # Sets up the hipchat parameter # # @@ -211,7 +203,7 @@ module Mauve # @return Log4r::Logger def logger ; @logger ||= Log4r::Logger.new self.class.to_s ; end - # This method makes sure things like +xmpp+ and +email+ work. + # This method makes sure things like +email+ work. # # @param [String] name The notification method to use # @param [Array or Hash] args Extra conditions to pass to this notification method |