open_weather_map 0.0.2 → 0.0.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 59ea46a0cb6452e495fcccc81b6f190c92b1e70f
4
- data.tar.gz: abe72eb398b6678ebe56492d10f47d5435feb50b
3
+ metadata.gz: 5c09d07a38408ae741c5a12d3d039aac1717e1b7
4
+ data.tar.gz: 745edcdb21722d727a9db0f13a727487c437972a
5
5
  SHA512:
6
- metadata.gz: 2a9b14651ecdd0b86c98ce1154fa47258b582d98577f6345764603c037826796df2c10376123992d6287ddcdae46302ea6627dc82f7975b10f3195009bd478fa
7
- data.tar.gz: 82748a48b2ab318284737b563aad32a60e31a4a1f109e704826ae348a2fb2d2972315332a162d781651b12f7def5f2685bf2cb1f08db9a56f0cfc64e63854770
6
+ metadata.gz: b3f3dc91e5e17d152bd8497a2eb339b8bd5ca3683b966f4194471600fdddf41fcfd5497704cb96791f6c4205178c856d9a9c998bc22607316ed5360fdbbc36e7
7
+ data.tar.gz: b37a07a14502a2ddd7cfcf0ade73a88f58f87f60db4617f1ee76cca6b8f81cf74a5dea8d97db1d8262968b1b73f42ec672288551b5c1f33cd4ec0b7672035f34
@@ -15,6 +15,19 @@ module OpenWeatherMap
15
15
  @response['main']['temp_max']
16
16
  end
17
17
 
18
+ def cond_jp
19
+ jp_cond = ''
20
+ case @response['weather'][0]['main']
21
+ when 'Clear' then jp_cond = '晴れ'
22
+ when 'Clouds' then jp_cond = '曇り'
23
+ when 'Snow' then jp_cond = '雪'
24
+ when 'Rain' then jp_cond = '雨'
25
+ else jp_cond = 'その他'
26
+ end
27
+
28
+ return jp_cond
29
+ end
30
+
18
31
  def temp_min_celsius
19
32
  to_celsius @response['main']['temp_min']
20
33
  end
@@ -1,3 +1,3 @@
1
1
  module OpenWeatherMap
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: open_weather_map
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - otukutun