weather-mg 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/weather.rb +3 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 34fa0665e993d144133df381dd777e392ff68e81
4
- data.tar.gz: 66ae899b38b7500d97136315f286bc43f20ad2c9
3
+ metadata.gz: 0c2ff5b98eb8a2df296d044935db90b2fd4057e4
4
+ data.tar.gz: 52233aef1594f0685b342e3c571d195cbe9fb3fd
5
5
  SHA512:
6
- metadata.gz: d1079c9d076c06bf80fe3f732532a432350af2b021865497baad6b03648839820a8f9d66f632c9e28e1eb59c2a1639e12aa264800934737f56b59ab5bbc67749
7
- data.tar.gz: 74586ca8b4e0a1dd00331da64dcb396bafa934f70de4ff3a8a304ceedd25176cb3584ea39cae38106ce14813f179187ee3ad2ce951a6ce64e560854db640c255
6
+ metadata.gz: 4c7d9e393040ad97a32d3820c04f3b553c811af1a531a39254f12f721effb58ef12d4affecd56381abbae2b09464af6d0606d2ee8723843832ee8916bba36899
7
+ data.tar.gz: 903104927c859d66be00845f40b91a8c23e750c043d0d7789893be44f24e4b2686c497435b994595b4cb8968c2db20b40b7c1d26430038bdc7ccf8467785cb02
data/lib/weather.rb CHANGED
@@ -10,7 +10,9 @@ class Weather
10
10
  "Now in #{location} the weather is: " + openweather_situation(location)['weather'][0]['description']
11
11
  end
12
12
 
13
- private def openweather_situation(location)
13
+ private
14
+
15
+ def openweather_situation(location)
14
16
  @situation ||= JSON.load(open("http://api.openweathermap.org/data/2.5/weather?q=#{location}"))
15
17
  end
16
18
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: weather-mg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matteo Giaccone