zombie_apocalypse 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/zombie_apocalypse.rb +3 -8
- metadata +1 -1
data/lib/zombie_apocalypse.rb
CHANGED
@@ -1,17 +1,12 @@
|
|
1
1
|
require 'httparty'
|
2
2
|
|
3
3
|
module ZombieApocalypse
|
4
|
-
VERSION = "0.0.
|
4
|
+
VERSION = "0.0.2"
|
5
5
|
|
6
6
|
class << self
|
7
7
|
def now?
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
private
|
12
|
-
|
13
|
-
def safe?
|
14
|
-
HTTParty.get('http://is-there-a-zombie-apocalypse-yet.info').parsed_response == "no"
|
8
|
+
HTTParty.get('http://is-there-a-zombie-apocalypse-yet.info').
|
9
|
+
parsed_response["zombie-apocalypse"]
|
15
10
|
end
|
16
11
|
end
|
17
12
|
end
|