yapi 0.1.0 → 0.1.1

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: 03ac4ce5d221b1d3c0bb68f8661671a776bea1a2
4
- data.tar.gz: ed302f069050ade5744f7f2bf627d40e16dcb757
3
+ metadata.gz: 3b0b905c03835697cb9be15e7e0b5af6f05a78c4
4
+ data.tar.gz: 0fcd56c873916ceb97dc2a8dfeb8a0737ac1dade
5
5
  SHA512:
6
- metadata.gz: ebb817c9791c97a2dabd23360892c8c8f80be1ebf69f3b7c84794536a0c63fbecc369fcc5542e28a7a274e12342d61e44ae542c1038c68191d96f8018e01e229
7
- data.tar.gz: e4ad62f7ec83c08dae12182c6a8ee503e63e6f8b3eedd1ac3fd989dd4b632b5b846e349da3e1caa98b40e3a3d82a498dd7e170544f5f36e54a14d5ae995f85c9
6
+ metadata.gz: 2068d6dee3755aea7eac377dd95d4cc62fc1914f5592acd9a37e55910fa1f9af491c748d4eb465a0f34be439fbd71f0ccebabfe56f5955c80a4b28558091a189
7
+ data.tar.gz: fb3e684f4f97fa42001f9e77575678d08ad914a9a98dc1dfa4d1b56d814183fc73f5cc0c9e3dba8e5c5c651092c51f9afb1745b69ad1d4be1d7a65c066dd4247
data/.gitignore CHANGED
@@ -7,3 +7,4 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ /**/.DS_Store
data/example/yapi.rb CHANGED
@@ -40,4 +40,4 @@ contentsgeocoder = Yapi::OpenLocalPlatform::ContentsGeoCoder.new(api_key)
40
40
  puts contentsgeocoder.contentsGeoCoder "秋葉原"
41
41
 
42
42
  peaceinfo = Yapi::PlaceInfo.new(api_key)
43
- puts peaceinfo.get "35.66521320007564","139.7300114513391"
43
+ puts peaceinfo.get "35.66521320007564","139.7300114513391"
@@ -18,8 +18,8 @@ module Yapi
18
18
  end
19
19
 
20
20
  def extract sentence
21
- req_url = "http://jlp.yahooapis.jp/KeyphraseService/V1/extract?appid=#{@client.get_api_key}#{@client.build_url(self.config)}&sentence=#{sentence}"
21
+ req_url = "https://jlp.yahooapis.jp/KeyphraseService/V1/extract?appid=#{@client.get_api_key}#{@client.build_url(self.config)}&sentence=#{sentence}"
22
22
  return @client.xml_to_json(open(URI.encode(req_url)).read)[:ResultSet][:Result]
23
23
  end
24
24
  end
25
- end
25
+ end
@@ -19,7 +19,7 @@ module Yapi
19
19
  end
20
20
 
21
21
  def geoCoder
22
- req_url = "http://geo.search.olp.yahooapis.jp/OpenLocalPlatform/V1/geoCoder?appid=#{@client.get_api_key}#{@client.build_url(self.config)}"
22
+ req_url = "https://map.yahooapis.jp/geocode/V1/geoCoder?appid=#{@client.get_api_key}#{@client.build_url(self.config)}"
23
23
  return @client.xml_to_json(open(URI.encode(req_url)).read)
24
24
  end
25
25
  end
@@ -39,7 +39,7 @@ module Yapi
39
39
  end
40
40
 
41
41
  def geoCoder lat,lon
42
- req_url = "http://reverse.search.olp.yahooapis.jp/OpenLocalPlatform/V1/reverseGeoCoder?appid=#{@client.get_api_key}#{@client.build_url(self.config)}&lat=#{lat}&lon=#{lon}"
42
+ req_url = "https://map.yahooapis.jp/geoapi/V1/reverseGeoCoder?appid=#{@client.get_api_key}#{@client.build_url(self.config)}&lat=#{lat}&lon=#{lon}"
43
43
  return @client.xml_to_json(open(URI.encode(req_url)).read)
44
44
  end
45
45
  end
@@ -64,4 +64,4 @@ module Yapi
64
64
  end
65
65
  end
66
66
  end
67
- end
67
+ end
data/lib/yapi/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Yapi
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,69 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - flum1025
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-03-17 00:00:00.000000000 Z
11
+ date: 2017-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.9'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.9'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '10.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '10.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: activesupport
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: json
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  description: Yahoo Api Library.
@@ -73,9 +73,9 @@ executables: []
73
73
  extensions: []
74
74
  extra_rdoc_files: []
75
75
  files:
76
- - .gitignore
77
- - .project
78
- - .travis.yml
76
+ - ".gitignore"
77
+ - ".project"
78
+ - ".travis.yml"
79
79
  - Gemfile
80
80
  - README.md
81
81
  - Rakefile
@@ -104,17 +104,17 @@ require_paths:
104
104
  - lib
105
105
  required_ruby_version: !ruby/object:Gem::Requirement
106
106
  requirements:
107
- - - '>='
107
+ - - ">="
108
108
  - !ruby/object:Gem::Version
109
109
  version: '0'
110
110
  required_rubygems_version: !ruby/object:Gem::Requirement
111
111
  requirements:
112
- - - '>='
112
+ - - ">="
113
113
  - !ruby/object:Gem::Version
114
114
  version: '0'
115
115
  requirements: []
116
116
  rubyforge_project:
117
- rubygems_version: 2.5.2
117
+ rubygems_version: 2.6.8
118
118
  signing_key:
119
119
  specification_version: 4
120
120
  summary: Yahoo Api Library.