ruboty-rainfall_jp 1.3.0 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: a8c100261aa4226111cf2b240f56e1a18d88611c
4
- data.tar.gz: 31c9f112f0752823f753497645772186448d8696
2
+ SHA256:
3
+ metadata.gz: 987a60a739430ac5d4a6f0bfc6f15beed2c3177ad07bb9205f85320b99db4f57
4
+ data.tar.gz: d9eeaa0c30caeaf7fac0504eda82cdb60867c5671be6e2e15bcb31728464b7b3
5
5
  SHA512:
6
- metadata.gz: 691b08476e8ae4e09a500bbf4e26981630df863c9b954fb45c5838c1be9ad20577fd50739fcf8a3ae1735c27bf7e64f887076ad3659d9f50a0eb2fef8240ea57
7
- data.tar.gz: 3da18a0c0e9870d95da481c875d81845a1d9776b508ed9afd8d850f190a7e6eab203b92ec81f08eb64f19a6fbef6a344643f6a55b941bda2857b44971f706863
6
+ metadata.gz: d90fe2e808681706eb3f16a1c5b894e7519b045d8fc11649cf8944e01f741e923169432c2c62372b5309ce6c9ac3d2b899630c993ae235c2312073ed637b9445
7
+ data.tar.gz: f7f4a6e75a6020b75cf608cf4c80aa5a266ed82b11a3c250e1a68d90f28c376e52fa0395654c141cf9d82046b0411c807e632fc81c1a91a73cd3e9f6c398a17f
@@ -40,8 +40,8 @@ module Ruboty
40
40
  private
41
41
 
42
42
  def fetch_location_name_and_coodinated_geometry(query)
43
- url = "http://geo.search.olp.yahooapis.jp/OpenLocalPlatform/V1/geoCoder?appid=#{YAHOO_JAPAN_APP_ID}&output=json&query=#{CGI.escape(query)}"
44
- response = JSON.parse(open(url).read)
43
+ url = "https://map.yahooapis.jp/geocode/V1/geoCoder?appid=#{YAHOO_JAPAN_APP_ID}&output=json&query=#{CGI.escape(query)}"
44
+ response = JSON.parse(OpenURI.open_uri(url).read)
45
45
  features = response["Feature"]
46
46
  if features.nil? || features.first.nil?
47
47
  return nil
@@ -50,8 +50,8 @@ module Ruboty
50
50
  end
51
51
 
52
52
  def fetch_rainfall(geometry)
53
- url = "http://weather.olp.yahooapis.jp/v1/place\?appid\=#{YAHOO_JAPAN_APP_ID}\&output=json&coordinates\=#{geometry}"
54
- response = JSON.parse(open(url).read)
53
+ url = "https://map.yahooapis.jp/weather/V1/place?appid=#{YAHOO_JAPAN_APP_ID}&output=json&coordinates=#{geometry}"
54
+ response = JSON.parse(OpenURI.open_uri(url).read)
55
55
  features = response["Feature"]
56
56
  if features.nil? || features.first.nil?
57
57
  return nil
@@ -1,5 +1,5 @@
1
1
  module Ruboty
2
2
  module RainfallJp
3
- VERSION = "1.3.0"
3
+ VERSION = "1.4.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruboty-rainfall_jp
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shimpei Makimoto
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-07-18 00:00:00.000000000 Z
11
+ date: 2019-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruboty
@@ -88,8 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  requirements: []
91
- rubyforge_project:
92
- rubygems_version: 2.6.6
91
+ rubygems_version: 3.0.3
93
92
  signing_key:
94
93
  specification_version: 4
95
94
  summary: A Ruboty plugin to check rainfall forecast in Japan