zombie_apocalypse 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/zombie_apocalypse.rb +3 -8
  2. metadata +1 -1
@@ -1,17 +1,12 @@
1
1
  require 'httparty'
2
2
 
3
3
  module ZombieApocalypse
4
- VERSION = "0.0.1"
4
+ VERSION = "0.0.2"
5
5
 
6
6
  class << self
7
7
  def now?
8
- !safe?
9
- end
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zombie_apocalypse
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: