summaryrefslogtreecommitdiff
path: root/data/rbot/plugins/weather.rb
diff options
context:
space:
mode:
authorfranz <Franz.Netykafka@runbox.com>2009-06-15 20:53:00 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2009-08-26 23:31:37 +0200
commit569243919426748b824b24a0ab9d3594bc8cabf0 (patch)
tree67cab95ff4790bd1e2135ddb6e68373e78028735 /data/rbot/plugins/weather.rb
parent40c32ccb24cdaac307d4cf12646c3e869817a153 (diff)
ruby 1.9: get rid of colons in case statements
ruby 1.9 doesn't support colon as delimiter after when expression, so we use newline as delimiter.
Diffstat (limited to 'data/rbot/plugins/weather.rb')
-rw-r--r--data/rbot/plugins/weather.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/rbot/plugins/weather.rb b/data/rbot/plugins/weather.rb
index d8f7579c..cb0a2b18 100644
--- a/data/rbot/plugins/weather.rb
+++ b/data/rbot/plugins/weather.rb
@@ -35,9 +35,9 @@ class CurrentConditions
end
rescue OpenURI::HTTPError => e
case e
- when /304/:
+ when /304/
@iscached = true
- when /404/:
+ when /404/
raise "Data for #{@station} not found"
else
raise "Error retrieving data: #{e}"