google-maps 1.0.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +4 -0
- data/README.mkd +6 -2
- data/google-maps.gemspec +4 -1
- data/lib/google-maps.rb +2 -2
- data/lib/google-maps/place.rb +6 -6
- data/lib/google-maps/version.rb +1 -1
- data/spec/fixtures/den-haag-nl.json +5 -5
- data/spec/fixtures/deventer-en.json +6 -6
- data/spec/fixtures/deventer-nl.json +6 -6
- data/spec/fixtures/place_details.json +2 -2
- data/spec/google-maps/api_spec.rb +4 -4
- data/spec/google-maps/place_details_spec.rb +4 -4
- data/spec/spec_helper.rb +11 -5
- metadata +70 -26
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99e37aed73a33c0d720a2028b68da7062e844ec7
|
4
|
+
data.tar.gz: f9b122db7e86ffe2ec0e7fa2e0fd8416be4d5cad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3e2ba9ef478660f882dafcfb5bf875fa225fa8ff4af2c6f2af61b92aa94372d579697de7e64692b82edffceb86ed02f1f299afe6a8e56977e34597f4911a52a
|
7
|
+
data.tar.gz: 8306f41b80d5180a3bba0ab0b104dbf0ae74031d47e0d49af2cce94fecbdb31f814454ccb8e58fda8f65834197f3d58c3b9e9703aa22ec60a146c9a4171862dc
|
data/.travis.yml
ADDED
data/README.mkd
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
[![Build Status](https://travis-ci.org/zilverline/google-maps.svg?branch=master)](https://travis-ci.org/zilverline/google-maps)
|
2
|
+
[![Coverage Status](https://coveralls.io/repos/zilverline/google-maps/badge.svg)](https://coveralls.io/r/zilverline/google-maps)
|
3
|
+
[![Code Climate](https://codeclimate.com/repos/55671579695680044d01e0ac/badges/8f4d88f30585847e4fcf/gpa.svg)](https://codeclimate.com/repos/55671579695680044d01e0ac/feed)
|
4
|
+
|
1
5
|
Google Maps
|
2
6
|
====================
|
3
7
|
|
@@ -30,5 +34,5 @@ Run all tests:
|
|
30
34
|
|
31
35
|
Copyright
|
32
36
|
---------
|
33
|
-
Copyright (c) 2011 Zilverline / Daniël van Hoesel.
|
34
|
-
See [LICENSE](https://github.com/zilverline/google-maps/blob/master/LICENSE.mkd) for details.
|
37
|
+
Copyright (c) 2011-2014 Zilverline / Daniël van Hoesel.
|
38
|
+
See [LICENSE](https://github.com/zilverline/google-maps/blob/master/LICENSE.mkd) for details.
|
data/google-maps.gemspec
CHANGED
@@ -21,10 +21,13 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.add_development_dependency('bundler', '~> 1.0')
|
22
22
|
s.add_development_dependency('rake', '~> 0.9')
|
23
23
|
s.add_development_dependency('rspec', '~> 2.6')
|
24
|
+
s.add_development_dependency('rspec-its', '~> 1.0')
|
25
|
+
s.add_development_dependency('rspec-collection_matchers', '~> 1.1')
|
24
26
|
s.add_development_dependency('mocha', '~> 0.10')
|
25
27
|
s.add_development_dependency('simplecov', '~> 0.5')
|
28
|
+
s.add_development_dependency('coveralls', '~> 0.8')
|
26
29
|
s.add_development_dependency('yard', '~> 0.7')
|
27
|
-
s.add_dependency('json', '
|
30
|
+
s.add_dependency('json', '>= 1.7.5')
|
28
31
|
s.add_dependency('hashie', '~> 2.0.5')
|
29
32
|
s.add_dependency('httpclient', '~> 2.3.0.1')
|
30
33
|
s.add_dependency('ruby-hmac', '~> 0.4.0')
|
data/lib/google-maps.rb
CHANGED
@@ -25,8 +25,8 @@ module Google
|
|
25
25
|
Place.find(keyword, language)
|
26
26
|
end
|
27
27
|
|
28
|
-
def self.place(
|
29
|
-
PlaceDetails.find(
|
28
|
+
def self.place(place_id, language = self.default_language)
|
29
|
+
PlaceDetails.find(place_id, language)
|
30
30
|
end
|
31
31
|
|
32
32
|
def self.geocode(address, language = self.default_language)
|
data/lib/google-maps/place.rb
CHANGED
@@ -4,13 +4,13 @@ module Google
|
|
4
4
|
module Maps
|
5
5
|
|
6
6
|
class Place
|
7
|
-
attr_reader :text, :html, :keyword, :
|
7
|
+
attr_reader :text, :html, :keyword, :place_id
|
8
8
|
alias :to_s :text
|
9
9
|
alias :to_html :html
|
10
10
|
|
11
11
|
def initialize(data, keyword)
|
12
12
|
@text = data.description
|
13
|
-
@
|
13
|
+
@place_id = data.place_id
|
14
14
|
@html = highligh_keywords(data, keyword)
|
15
15
|
end
|
16
16
|
|
@@ -50,8 +50,8 @@ module Google
|
|
50
50
|
@data.geometry.location.lng.to_s
|
51
51
|
end
|
52
52
|
|
53
|
-
def
|
54
|
-
@data.
|
53
|
+
def place_id
|
54
|
+
@data.place_id
|
55
55
|
end
|
56
56
|
|
57
57
|
def address
|
@@ -63,8 +63,8 @@ module Google
|
|
63
63
|
AddressComponentsProxy.new(@data.address_components)
|
64
64
|
end
|
65
65
|
|
66
|
-
def self.find(
|
67
|
-
args = {:language => language, :
|
66
|
+
def self.find(place_id, language=:en)
|
67
|
+
args = {:language => language, :placeid => place_id}
|
68
68
|
args.merge!(key: Google::Maps.api_key) unless Google::Maps.api_key.nil?
|
69
69
|
|
70
70
|
PlaceDetails.new(API.query(:place_details_service, args).result)
|
data/lib/google-maps/version.rb
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
"offset" : 0
|
10
10
|
}
|
11
11
|
],
|
12
|
-
"
|
12
|
+
"place_id" : "CjQrAAAAkSxmx61CGnG4CQ4P1SBUj9GWZXsVfkNgmieaaPLYqStPT1e1qd6HO6h4yn67KeY1EhCwxm8-fj43dt40CTmGsOGsGhSo-OS-7rUIst_jgvU2WVdYdMm9Fg",
|
13
13
|
"terms" : [
|
14
14
|
{
|
15
15
|
"offset" : 0,
|
@@ -31,7 +31,7 @@
|
|
31
31
|
"offset" : 0
|
32
32
|
}
|
33
33
|
],
|
34
|
-
"
|
34
|
+
"place_id" : "ClRKAAAAf3OQkaiVGJDR-UvzuQH89ApGATVVUu0AjLJBoAbY6guUdpaOQBNbho4tSVoGVxv55oKIFP91lNSJF4n0vsSUmT32Dvk_Dxi16plK04L8fiISEHnOEP5FxGttyrnJBWiVY8IaFObwRn4LHx7-p1s6k3LcUAUtdxOe",
|
35
35
|
"terms" : [
|
36
36
|
{
|
37
37
|
"offset" : 0,
|
@@ -67,7 +67,7 @@
|
|
67
67
|
"offset" : 0
|
68
68
|
}
|
69
69
|
],
|
70
|
-
"
|
70
|
+
"place_id" : "CkQ8AAAAuNCq9fb2JS3Fll7-IBRVcDBUjX9sQqIFAQmH9M32xTd6cwDupew3OCyEx0Nd7MOO6N5OZVlHtinAFZcI1LEieBIQLXIO5I88KrVJ-Au8CwsxexoUDrs6sr5cyIfhuP7ykmdmQmAO7yQ",
|
71
71
|
"terms" : [
|
72
72
|
{
|
73
73
|
"offset" : 0,
|
@@ -103,7 +103,7 @@
|
|
103
103
|
"offset" : 0
|
104
104
|
}
|
105
105
|
],
|
106
|
-
"
|
106
|
+
"place_id" : "CkQ4AAAAKELBwwjpMi5yCEXEpQdwO4IEY1g4rwrOdR_RuWm8MJ1TYMNIYlcbzjSL5G8WIhreuE_-qdjzBAEB7_OiS2-hnBIQ1RD2I7leiPG2P0RKctpnqBoU1-5tPzOaiAuINbB2qb1oJj-v_kk",
|
107
107
|
"terms" : [
|
108
108
|
{
|
109
109
|
"offset" : 0,
|
@@ -135,7 +135,7 @@
|
|
135
135
|
"offset" : 0
|
136
136
|
}
|
137
137
|
],
|
138
|
-
"
|
138
|
+
"place_id" : "ClRJAAAA6s_C56BY125pwZsIKbiaat7RbuNRU8F0TdmYuyRScosXMNg_kRKjh9uTnMIA8lP5XvGbL7KJqc2PuAXBw3Mvm9ws1bcUUopejRJOIitd1M4SEGl8IwPTeX0_mEj-IwsnyCYaFEyWuAw1rIrxph74gCd8MJb6YgpM",
|
139
139
|
"terms" : [
|
140
140
|
{
|
141
141
|
"offset" : 0,
|
@@ -9,7 +9,7 @@
|
|
9
9
|
"offset" : 0
|
10
10
|
}
|
11
11
|
],
|
12
|
-
"
|
12
|
+
"place_id" : "CkQxAAAAaSPEKxAHaEMEfXqOiOzsG2eXA-nEhj9moN1WdLGcU5vbbH4xRsyMqxOrWxDOgZZK3TOc2pRtBwizFZsLfPvymxIQwYbT3eljgi1z_OqWP4V5ThoUFP8oWfCjySHtTp8db0USQbLj9Ww",
|
13
13
|
"terms" : [
|
14
14
|
{
|
15
15
|
"offset" : 0,
|
@@ -31,7 +31,7 @@
|
|
31
31
|
"offset" : 0
|
32
32
|
}
|
33
33
|
],
|
34
|
-
"
|
34
|
+
"place_id" : "CkQzAAAAO82_HQKci1tiFUdeyxiODVQDyb00SKo6la1sz0YFbACBW8ruj33y3PLUU1IC6I4VOgg4R_qqUtgNsCJPQ6OKRxIQCQxUH8DghtFTQdV0zMa9vxoUOYfsRL4UFY73zAY0PSHMceDxiKw",
|
35
35
|
"terms" : [
|
36
36
|
{
|
37
37
|
"offset" : 0,
|
@@ -57,7 +57,7 @@
|
|
57
57
|
"offset" : 0
|
58
58
|
}
|
59
59
|
],
|
60
|
-
"
|
60
|
+
"place_id" : "ClRFAAAAPM3xLL2EH13DGrXfCsVJKvL8sSJWKs20q7l5f2xW9hzc6zJmaTeCWVlgedRRskKr5r39lgtfKFjJpwqcE_zk7TaDlgKBtopEVHn24ZbR6vkSENl5laX5pxPoEFPePia9ivIaFBdGtxagSTujvSqjcfkLwj-R-Fu2",
|
61
61
|
"terms" : [
|
62
62
|
{
|
63
63
|
"offset" : 0,
|
@@ -83,7 +83,7 @@
|
|
83
83
|
"offset" : 0
|
84
84
|
}
|
85
85
|
],
|
86
|
-
"
|
86
|
+
"place_id" : "ClRDAAAAkZIQE7lUhLkCBWcwUrWPejMEl2YF4_wDA3n6kZHEE-W6rpU-heR0rtd3Xtq_Fh3bjGp8BlMAcEEwCEdEznB41G2ooVWu8xh5AU8wGSRt2VkSENtalRhpG41HWU_1L1EdV4EaFKVKYYk4BPZH2UYnmsKTZ11cFBtp",
|
87
87
|
"terms" : [
|
88
88
|
{
|
89
89
|
"offset" : 0,
|
@@ -113,7 +113,7 @@
|
|
113
113
|
"offset" : 4
|
114
114
|
}
|
115
115
|
],
|
116
|
-
"
|
116
|
+
"place_id" : "CmRWAAAA7JnAOFtqLCAaXshQhWqjBC6hUZ1DP-6OGUK0lmt-gT7cxP_RRrlXjIzWgK2rUwcJFcUaibEuiNbj6jReqyiHMrv_VMcMrB3xC2PLMDWFih19nDTwPfU-pULL61yYWjcDEhClXmEG1s7jrEBPFFN76J8xGhStBuODuC9mCXAX5XoGpYHg2OY-sA",
|
117
117
|
"terms" : [
|
118
118
|
{
|
119
119
|
"offset" : 0,
|
@@ -136,4 +136,4 @@
|
|
136
136
|
}
|
137
137
|
],
|
138
138
|
"status" : "OK"
|
139
|
-
}
|
139
|
+
}
|
@@ -9,7 +9,7 @@
|
|
9
9
|
"offset" : 0
|
10
10
|
}
|
11
11
|
],
|
12
|
-
"
|
12
|
+
"place_id" : "CjQrAAAA6G_H8Wkf0yxyHdXr6p1P4pm3zNs9xByxwFBGZFhWNRvC0QbnUgn2fG8DqcFi4_R0EhD30JBBZ_kAJDdHMO9SO8jQGhSv5Lg5JyOAnjzpgggeVVsgFWecng",
|
13
13
|
"terms" : [
|
14
14
|
{
|
15
15
|
"offset" : 0,
|
@@ -31,7 +31,7 @@
|
|
31
31
|
"offset" : 0
|
32
32
|
}
|
33
33
|
],
|
34
|
-
"
|
34
|
+
"place_id" : "ClRIAAAAISW-tYRof6xmWa045VcLdQYcA58uVb4D9P4eEnC8_KpdCMGP62psKHkeYI6qesIAqcjyxZFXfgXSXlmEfC3rImqBMd1SVAamQ27lX5uPu54SEDs3uEeb91yvGtF5Tch4BoMaFMVA3P_5TYTL5yaxgBdZvH0w5IHj",
|
35
35
|
"terms" : [
|
36
36
|
{
|
37
37
|
"offset" : 0,
|
@@ -61,7 +61,7 @@
|
|
61
61
|
"offset" : 0
|
62
62
|
}
|
63
63
|
],
|
64
|
-
"
|
64
|
+
"place_id" : "CkQ6AAAAUxuVJkyIyWw7NgDG735TmXMYyNlXxtA15VLI7fU77pF3WZY6zHVDpqTvqa3mF0YThMegF2coDb1UfliapK8RlBIQmLl4iQftD0BRvsPwJO2upxoUOFrlcCHu1SsDRMj8skPQ7x9Sb5Y",
|
65
65
|
"terms" : [
|
66
66
|
{
|
67
67
|
"offset" : 0,
|
@@ -87,7 +87,7 @@
|
|
87
87
|
"offset" : 0
|
88
88
|
}
|
89
89
|
],
|
90
|
-
"
|
90
|
+
"place_id" : "CkQ8AAAAcAkp0fKLezWpg_i-S7vDHPr1B37rzFh_LA4ahSbxSAwxDvqy9EEtd1F1UQfapZsCthStQKQLjx-2ft92AboEMBIQjLLTVtJgqrb-3Dx8o_AdJhoUTQeaYO_a6AuxJ1Yqst8chkiPUDY",
|
91
91
|
"terms" : [
|
92
92
|
{
|
93
93
|
"offset" : 0,
|
@@ -113,7 +113,7 @@
|
|
113
113
|
"offset" : 0
|
114
114
|
}
|
115
115
|
],
|
116
|
-
"
|
116
|
+
"place_id" : "CkQ0AAAA9rpm5apCtZRp0NKvzynbDEhgxVyXL9sEE0XTU3xIj7PvAZlCw8U3zXDjXg6_sePpoV_cJV-BpuJmNihRvHjmWBIQTo1cOfeeqndu6AXy5HLmHxoUU2_zbcs5aVCUUHoPqMkwwkPUE-Y",
|
117
117
|
"terms" : [
|
118
118
|
{
|
119
119
|
"offset" : 0,
|
@@ -132,4 +132,4 @@
|
|
132
132
|
}
|
133
133
|
],
|
134
134
|
"status" : "OK"
|
135
|
-
}
|
135
|
+
}
|
@@ -58,7 +58,7 @@
|
|
58
58
|
}
|
59
59
|
],
|
60
60
|
"rating" : 4.70,
|
61
|
-
"
|
61
|
+
"place_id" : "CpQBiAAAAGs4XDizjQoVk9NjuY3ll3aLBLafpDxaFPSJSO7icOj07IRHO4KjjcRIbKEmeSVTcG75kIvwqE7VzA8D7BFvWp8OPwgAiKMveQQUsTGfJrRG5EVd7J34hY8e5JDbaXEPOMUPIWLfiugwUfQqAImvWQCGrMG1iyOpZfaW22NNhornssEg90uxrLbwLJ7QZhwGIRIQSBc_BlD7mILqQaixzTqE1BoUbNrhbmsZYkIurvK4l9exKBryfKk",
|
62
62
|
"reviews" : [
|
63
63
|
{
|
64
64
|
"aspects" : [
|
@@ -128,4 +128,4 @@
|
|
128
128
|
"website" : "http://www.google.com.au/"
|
129
129
|
},
|
130
130
|
"status" : "OK"
|
131
|
-
}
|
131
|
+
}
|
@@ -67,7 +67,7 @@ describe Google::Maps::API do
|
|
67
67
|
end
|
68
68
|
|
69
69
|
context "per service overrides" do
|
70
|
-
let(:
|
70
|
+
let(:place_id) { "CpQBiAAAAGs4XDizjQoVk9NjuY3ll3aLBLafpDxaFPSJSO7icOj07IRHO4KjjcRIbKEmeSVTcG75kIvwqE7VzA8D7BFvWp8OPwgAiKMveQQUsTGfJrRG5EVd7J34hY8e5JDbaXEPOMUPIWLfiugwUfQqAImvWQCGrMG1iyOpZfaW22NNhornssEg90uxrLbwLJ7QZhwGIRIQSBc_BlD7mILqQaixzTqE1BoUbNrhbmsZYkIurvK4l9exKBryfKk" }
|
71
71
|
let(:api_key) { "some_api_key" }
|
72
72
|
let(:parameters) { [:premier_client_id, :premier_key, :api_key, :default_params] }
|
73
73
|
|
@@ -93,11 +93,11 @@ describe Google::Maps::API do
|
|
93
93
|
end
|
94
94
|
|
95
95
|
it "should not be used when configured for a certain service" do
|
96
|
-
stub_response("place_details.json", "https://maps.googleapis.com/maps/api/place/details/json?sensor=false&language=nl&
|
96
|
+
stub_response("place_details.json", "https://maps.googleapis.com/maps/api/place/details/json?sensor=false&language=nl&placeid=#{place_id}&key=#{api_key}")
|
97
97
|
|
98
|
-
Google::Maps::place(
|
98
|
+
Google::Maps::place(place_id, :nl).should_not be_nil
|
99
99
|
end
|
100
100
|
end
|
101
101
|
end
|
102
102
|
|
103
|
-
end
|
103
|
+
end
|
@@ -1,16 +1,16 @@
|
|
1
1
|
require File.expand_path('../../spec_helper', __FILE__)
|
2
2
|
|
3
3
|
describe Google::Maps::PlaceDetails do
|
4
|
-
let(:
|
4
|
+
let(:place_id) { "CpQBiAAAAGs4XDizjQoVk9NjuY3ll3aLBLafpDxaFPSJSO7icOj07IRHO4KjjcRIbKEmeSVTcG75kIvwqE7VzA8D7BFvWp8OPwgAiKMveQQUsTGfJrRG5EVd7J34hY8e5JDbaXEPOMUPIWLfiugwUfQqAImvWQCGrMG1iyOpZfaW22NNhornssEg90uxrLbwLJ7QZhwGIRIQSBc_BlD7mILqQaixzTqE1BoUbNrhbmsZYkIurvK4l9exKBryfKk" }
|
5
5
|
|
6
6
|
context "given a canned response" do
|
7
7
|
before(:each) do
|
8
8
|
stub_response("place_details.json")
|
9
|
-
@details = Google::Maps::PlaceDetails.find(
|
9
|
+
@details = Google::Maps::PlaceDetails.find(place_id, :nl)
|
10
10
|
end
|
11
11
|
|
12
|
-
it "should have a
|
13
|
-
@details.
|
12
|
+
it "should have a place_id" do
|
13
|
+
@details.place_id.should == place_id
|
14
14
|
end
|
15
15
|
|
16
16
|
it "should have a latlong" do
|
data/spec/spec_helper.rb
CHANGED
@@ -1,5 +1,11 @@
|
|
1
|
+
require 'coveralls'
|
2
|
+
Coveralls.wear!
|
3
|
+
|
1
4
|
require 'rspec'
|
5
|
+
require 'rspec/its'
|
6
|
+
require 'rspec/collection_matchers'
|
2
7
|
require 'simplecov'
|
8
|
+
|
3
9
|
SimpleCov.start do
|
4
10
|
add_group 'GoogleMaps', 'lib/google-maps'
|
5
11
|
add_group 'Specs', 'spec'
|
@@ -11,16 +17,16 @@ RSpec.configure do |config|
|
|
11
17
|
config.treat_symbols_as_metadata_keys_with_true_values = true
|
12
18
|
config.filter_run :focus => true
|
13
19
|
config.run_all_when_everything_filtered = true
|
14
|
-
|
15
|
-
config.before(:each) do
|
20
|
+
|
21
|
+
config.before(:each) do
|
16
22
|
# catch all unmocked requests
|
17
23
|
HTTPClient.any_instance.expects(:get_content).never
|
18
24
|
end
|
19
|
-
|
25
|
+
|
20
26
|
config.after(:each) do
|
21
27
|
# reset mock
|
22
28
|
HTTPClient.any_instance.unstub(:get_content)
|
23
|
-
|
29
|
+
|
24
30
|
# reset configuration
|
25
31
|
Google::Maps.reset
|
26
32
|
end
|
@@ -33,4 +39,4 @@ def stub_response(fixture, url = nil)
|
|
33
39
|
expectation.returns(File.open(fixture_path, "rb").read)
|
34
40
|
end
|
35
41
|
|
36
|
-
load File.expand_path('../../lib/google-maps.rb', __FILE__)
|
42
|
+
load File.expand_path('../../lib/google-maps.rb', __FILE__)
|
metadata
CHANGED
@@ -1,153 +1,195 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-maps
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel van Hoesel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-05-28 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.0'
|
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.0'
|
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: '0.9'
|
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: '0.9'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '2.6'
|
48
48
|
type: :development
|
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: '2.6'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec-its
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '1.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec-collection_matchers
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.1'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.1'
|
55
83
|
- !ruby/object:Gem::Dependency
|
56
84
|
name: mocha
|
57
85
|
requirement: !ruby/object:Gem::Requirement
|
58
86
|
requirements:
|
59
|
-
- - ~>
|
87
|
+
- - "~>"
|
60
88
|
- !ruby/object:Gem::Version
|
61
89
|
version: '0.10'
|
62
90
|
type: :development
|
63
91
|
prerelease: false
|
64
92
|
version_requirements: !ruby/object:Gem::Requirement
|
65
93
|
requirements:
|
66
|
-
- - ~>
|
94
|
+
- - "~>"
|
67
95
|
- !ruby/object:Gem::Version
|
68
96
|
version: '0.10'
|
69
97
|
- !ruby/object:Gem::Dependency
|
70
98
|
name: simplecov
|
71
99
|
requirement: !ruby/object:Gem::Requirement
|
72
100
|
requirements:
|
73
|
-
- - ~>
|
101
|
+
- - "~>"
|
74
102
|
- !ruby/object:Gem::Version
|
75
103
|
version: '0.5'
|
76
104
|
type: :development
|
77
105
|
prerelease: false
|
78
106
|
version_requirements: !ruby/object:Gem::Requirement
|
79
107
|
requirements:
|
80
|
-
- - ~>
|
108
|
+
- - "~>"
|
81
109
|
- !ruby/object:Gem::Version
|
82
110
|
version: '0.5'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: coveralls
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0.8'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0.8'
|
83
125
|
- !ruby/object:Gem::Dependency
|
84
126
|
name: yard
|
85
127
|
requirement: !ruby/object:Gem::Requirement
|
86
128
|
requirements:
|
87
|
-
- - ~>
|
129
|
+
- - "~>"
|
88
130
|
- !ruby/object:Gem::Version
|
89
131
|
version: '0.7'
|
90
132
|
type: :development
|
91
133
|
prerelease: false
|
92
134
|
version_requirements: !ruby/object:Gem::Requirement
|
93
135
|
requirements:
|
94
|
-
- - ~>
|
136
|
+
- - "~>"
|
95
137
|
- !ruby/object:Gem::Version
|
96
138
|
version: '0.7'
|
97
139
|
- !ruby/object:Gem::Dependency
|
98
140
|
name: json
|
99
141
|
requirement: !ruby/object:Gem::Requirement
|
100
142
|
requirements:
|
101
|
-
- -
|
143
|
+
- - ">="
|
102
144
|
- !ruby/object:Gem::Version
|
103
145
|
version: 1.7.5
|
104
146
|
type: :runtime
|
105
147
|
prerelease: false
|
106
148
|
version_requirements: !ruby/object:Gem::Requirement
|
107
149
|
requirements:
|
108
|
-
- -
|
150
|
+
- - ">="
|
109
151
|
- !ruby/object:Gem::Version
|
110
152
|
version: 1.7.5
|
111
153
|
- !ruby/object:Gem::Dependency
|
112
154
|
name: hashie
|
113
155
|
requirement: !ruby/object:Gem::Requirement
|
114
156
|
requirements:
|
115
|
-
- - ~>
|
157
|
+
- - "~>"
|
116
158
|
- !ruby/object:Gem::Version
|
117
159
|
version: 2.0.5
|
118
160
|
type: :runtime
|
119
161
|
prerelease: false
|
120
162
|
version_requirements: !ruby/object:Gem::Requirement
|
121
163
|
requirements:
|
122
|
-
- - ~>
|
164
|
+
- - "~>"
|
123
165
|
- !ruby/object:Gem::Version
|
124
166
|
version: 2.0.5
|
125
167
|
- !ruby/object:Gem::Dependency
|
126
168
|
name: httpclient
|
127
169
|
requirement: !ruby/object:Gem::Requirement
|
128
170
|
requirements:
|
129
|
-
- - ~>
|
171
|
+
- - "~>"
|
130
172
|
- !ruby/object:Gem::Version
|
131
173
|
version: 2.3.0.1
|
132
174
|
type: :runtime
|
133
175
|
prerelease: false
|
134
176
|
version_requirements: !ruby/object:Gem::Requirement
|
135
177
|
requirements:
|
136
|
-
- - ~>
|
178
|
+
- - "~>"
|
137
179
|
- !ruby/object:Gem::Version
|
138
180
|
version: 2.3.0.1
|
139
181
|
- !ruby/object:Gem::Dependency
|
140
182
|
name: ruby-hmac
|
141
183
|
requirement: !ruby/object:Gem::Requirement
|
142
184
|
requirements:
|
143
|
-
- - ~>
|
185
|
+
- - "~>"
|
144
186
|
- !ruby/object:Gem::Version
|
145
187
|
version: 0.4.0
|
146
188
|
type: :runtime
|
147
189
|
prerelease: false
|
148
190
|
version_requirements: !ruby/object:Gem::Requirement
|
149
191
|
requirements:
|
150
|
-
- - ~>
|
192
|
+
- - "~>"
|
151
193
|
- !ruby/object:Gem::Version
|
152
194
|
version: 0.4.0
|
153
195
|
description: This is a ruby wrapper for the Google Maps api
|
@@ -157,7 +199,8 @@ executables: []
|
|
157
199
|
extensions: []
|
158
200
|
extra_rdoc_files: []
|
159
201
|
files:
|
160
|
-
- .gitignore
|
202
|
+
- ".gitignore"
|
203
|
+
- ".travis.yml"
|
161
204
|
- Gemfile
|
162
205
|
- LICENSE.mkd
|
163
206
|
- README.mkd
|
@@ -198,17 +241,17 @@ require_paths:
|
|
198
241
|
- lib
|
199
242
|
required_ruby_version: !ruby/object:Gem::Requirement
|
200
243
|
requirements:
|
201
|
-
- -
|
244
|
+
- - ">="
|
202
245
|
- !ruby/object:Gem::Version
|
203
246
|
version: '0'
|
204
247
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
205
248
|
requirements:
|
206
|
-
- -
|
249
|
+
- - ">="
|
207
250
|
- !ruby/object:Gem::Version
|
208
251
|
version: '0'
|
209
252
|
requirements: []
|
210
253
|
rubyforge_project: google-maps
|
211
|
-
rubygems_version: 2.
|
254
|
+
rubygems_version: 2.4.5
|
212
255
|
signing_key:
|
213
256
|
specification_version: 4
|
214
257
|
summary: Ruby wrapper for the Google Maps API
|
@@ -231,3 +274,4 @@ test_files:
|
|
231
274
|
- spec/google-maps/route_spec.rb
|
232
275
|
- spec/google-maps_spec.rb
|
233
276
|
- spec/spec_helper.rb
|
277
|
+
has_rdoc:
|