From e806fe922cf898a38c17ceeda4555e153943c999 Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Fri, 17 Jun 2011 17:42:19 +0100 Subject: SMS return true on succes. --- lib/mauve/notification.rb | 6 ++---- lib/mauve/notifiers/sms_aql.rb | 5 +++++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/lib/mauve/notification.rb b/lib/mauve/notification.rb index c5e462b..7ce0da3 100644 --- a/lib/mauve/notification.rb +++ b/lib/mauve/notification.rb @@ -83,8 +83,7 @@ module Mauve end def working_hours? - now = (@time || MauveTime.now) - now.to_mauvetime.working_hours? + now.working_hours? end # Return true in the dead zone between 3 and 7 in the morning. @@ -93,8 +92,7 @@ module Mauve # # @return [Boolean] Whether now is a in the dead zone or not. def dead_zone? - now = (@time || MauveTime.now) - now.to_mauvetime.dead_zone? + now.dead_zone? end end diff --git a/lib/mauve/notifiers/sms_aql.rb b/lib/mauve/notifiers/sms_aql.rb index c1c356b..856c494 100644 --- a/lib/mauve/notifiers/sms_aql.rb +++ b/lib/mauve/notifiers/sms_aql.rb @@ -42,6 +42,11 @@ module Mauve }) raise response unless response.kind_of?(Net::HTTPSuccess) + + # + # Woo -- return true! + # + true end protected -- cgit v1.2.1