google_distance_matrix 0.0.3 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.rbenv-version +1 -1
- data/CHANGELOG.md +6 -0
- data/google_distance_matrix.gemspec +7 -7
- data/lib/google_distance_matrix/configuration.rb +1 -1
- data/lib/google_distance_matrix/route.rb +1 -6
- data/lib/google_distance_matrix/version.rb +1 -1
- data/spec/lib/google_distance_matrix/client_cache_spec.rb +5 -5
- data/spec/lib/google_distance_matrix/configuration_spec.rb +32 -13
- data/spec/lib/google_distance_matrix/logger_spec.rb +4 -4
- data/spec/lib/google_distance_matrix/matrix_spec.rb +14 -14
- data/spec/lib/google_distance_matrix/place_spec.rb +6 -6
- data/spec/lib/google_distance_matrix/places_spec.rb +2 -2
- data/spec/lib/google_distance_matrix/route_spec.rb +6 -13
- data/spec/lib/google_distance_matrix/routes_finder_spec.rb +2 -2
- data/spec/lib/google_distance_matrix/url_builder_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +74 -86
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: daba322586706a934e7a0c37a6ff05e104b4668d
|
4
|
+
data.tar.gz: f243fbebe95c8fe0eb41cfeb225eccccdf193115
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: b835fef4ef30276e69619511771e76807c07e7d8ee4b365e06ac8cd3581df8e23d08cfa5133c848359e3da911c80b791daac98d465cb27b828a9b685c14488c7
|
7
|
+
data.tar.gz: ce2a4b6ac843540aa1add4741a43d3b97cdbd94aa0a01d840d3c4e20c12b7b82d1b1fb24574e0af66e12cff95f253cd10c063dcbf7dea8d287338e39949c0d63
|
data/.rbenv-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
2.1.2
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
## v.0.1.0
|
2
|
+
* Allowed for ActiveSupport and ActiveModel 4.1.
|
3
|
+
* Removed Route#distance_value and Route#duration_value. Use distance_in_meters and duration_in_seconds.
|
4
|
+
* Add language parameter to matrix configuration (by Iuri Fernandes)
|
5
|
+
|
6
|
+
|
1
7
|
## v.0.0.3
|
2
8
|
* Bumped version of google_business_api_url_signer to get Ruby 2 support.
|
3
9
|
|
@@ -18,13 +18,13 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_dependency "activesupport", "
|
22
|
-
spec.add_dependency "activemodel", "
|
23
|
-
spec.add_dependency "google_business_api_url_signer", "~> 0.0
|
21
|
+
spec.add_dependency "activesupport", [">= 3.2.13", "<= 4.1"]
|
22
|
+
spec.add_dependency "activemodel", [">= 3.2.13", "<= 4.1"]
|
23
|
+
spec.add_dependency "google_business_api_url_signer", "~> 0.1.0"
|
24
24
|
|
25
|
-
spec.add_development_dependency "bundler"
|
26
|
-
spec.add_development_dependency "rspec", "~>
|
27
|
-
spec.add_development_dependency "shoulda-matchers", "~> 2.
|
28
|
-
spec.add_development_dependency "webmock", "~> 1.
|
25
|
+
spec.add_development_dependency "bundler"
|
26
|
+
spec.add_development_dependency "rspec", "~> 3.0.0"
|
27
|
+
spec.add_development_dependency "shoulda-matchers", "~> 2.6.2"
|
28
|
+
spec.add_development_dependency "webmock", "~> 1.18.0"
|
29
29
|
spec.add_development_dependency "rake"
|
30
30
|
end
|
@@ -33,12 +33,7 @@ module GoogleDistanceMatrix
|
|
33
33
|
end
|
34
34
|
end
|
35
35
|
|
36
|
-
|
37
|
-
define_method old_attr do
|
38
|
-
ActiveSupport::Deprecation.warn "#{old_attr} is being replaced by #{new_attr}. Please use #{new_attr}."
|
39
|
-
public_send new_attr
|
40
|
-
end
|
41
|
-
end
|
36
|
+
|
42
37
|
|
43
38
|
def inspect
|
44
39
|
inspection = ATTRIBUTES.reject { |a| public_send(a).blank? }.map { |a| "#{a}: #{public_send(a).inspect}" }.join ', '
|
@@ -4,20 +4,20 @@ describe GoogleDistanceMatrix::ClientCache do
|
|
4
4
|
let(:url) { "http://www.example.com" }
|
5
5
|
let(:options) { {hello: :options} }
|
6
6
|
|
7
|
-
let(:client) {
|
8
|
-
let(:cache) {
|
7
|
+
let(:client) { double get: "data" }
|
8
|
+
let(:cache) { double }
|
9
9
|
|
10
10
|
subject { described_class.new client, cache }
|
11
11
|
|
12
12
|
describe "#get" do
|
13
13
|
it "returns from cache if it hits" do
|
14
|
-
cache.
|
14
|
+
expect(cache).to receive(:fetch).with(url).and_return "cached-data"
|
15
15
|
expect(subject.get(url, options)).to eq "cached-data"
|
16
16
|
end
|
17
17
|
|
18
18
|
it "asks client when cache miss" do
|
19
|
-
client.
|
20
|
-
cache.
|
19
|
+
expect(client).to receive(:get).with(url, options).and_return "api-data"
|
20
|
+
expect(cache).to receive(:fetch) { |&block| block.call }
|
21
21
|
|
22
22
|
expect(subject.get(url, options)).to eq "api-data"
|
23
23
|
end
|
@@ -4,7 +4,25 @@ describe GoogleDistanceMatrix::Configuration do
|
|
4
4
|
subject { described_class.new }
|
5
5
|
|
6
6
|
describe "Validations" do
|
7
|
-
|
7
|
+
describe "sensor" do
|
8
|
+
it "is valid with true" do
|
9
|
+
subject.sensor = true
|
10
|
+
subject.valid?
|
11
|
+
expect(subject.errors[:sensor].length).to eq 0
|
12
|
+
end
|
13
|
+
|
14
|
+
it "is valid with false" do
|
15
|
+
subject.sensor = false
|
16
|
+
subject.valid?
|
17
|
+
expect(subject.errors[:sensor].length).to eq 0
|
18
|
+
end
|
19
|
+
|
20
|
+
it "is invalid with 'foo'" do
|
21
|
+
subject.sensor = 'foo'
|
22
|
+
subject.valid?
|
23
|
+
expect(subject.errors[:sensor].length).to eq 1
|
24
|
+
end
|
25
|
+
end
|
8
26
|
|
9
27
|
it { should ensure_inclusion_of(:mode).in_array(["driving", "walking", "bicycling"]) }
|
10
28
|
it { should allow_value(nil).for(:mode) }
|
@@ -20,18 +38,19 @@ describe GoogleDistanceMatrix::Configuration do
|
|
20
38
|
|
21
39
|
|
22
40
|
describe "defaults" do
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
41
|
+
it { expect(subject.sensor).to eq false }
|
42
|
+
it { expect(subject.mode).to eq "driving" }
|
43
|
+
it { expect(subject.avoid).to be_nil }
|
44
|
+
it { expect(subject.units).to eq "metric" }
|
45
|
+
it { expect(subject.lat_lng_scale).to eq 5 }
|
46
|
+
it { expect(subject.protocol).to eq 'http' }
|
47
|
+
it { expect(subject.language).to be_nil }
|
48
|
+
|
49
|
+
it { expect(subject.google_business_api_client_id).to be_nil }
|
50
|
+
it { expect(subject.google_business_api_private_key).to be_nil }
|
51
|
+
|
52
|
+
it { expect(subject.logger).to be_nil }
|
53
|
+
it { expect(subject.cache).to be_nil }
|
35
54
|
end
|
36
55
|
|
37
56
|
|
@@ -12,24 +12,24 @@ describe GoogleDistanceMatrix::Logger do
|
|
12
12
|
end
|
13
13
|
|
14
14
|
context "with a logger backend" do
|
15
|
-
let(:backend) {
|
15
|
+
let(:backend) { double }
|
16
16
|
|
17
17
|
subject { described_class.new backend }
|
18
18
|
|
19
19
|
described_class::LEVELS.each do |level|
|
20
20
|
describe level do
|
21
21
|
it "sends log message to the backend" do
|
22
|
-
backend.
|
22
|
+
expect(backend).to receive(level).with("[google_distance_matrix] log msg")
|
23
23
|
subject.public_send level, "log msg"
|
24
24
|
end
|
25
25
|
|
26
26
|
it "supports sending in a tag" do
|
27
|
-
backend.
|
27
|
+
expect(backend).to receive(level).with("[google_distance_matrix] [client] log msg")
|
28
28
|
subject.public_send level, "log msg", tag: :client
|
29
29
|
end
|
30
30
|
|
31
31
|
it "supports sending in multiple tags" do
|
32
|
-
backend.
|
32
|
+
expect(backend).to receive(level).with("[google_distance_matrix] [client] [request] log msg")
|
33
33
|
subject.public_send level, "log msg", tag: ['client', 'request']
|
34
34
|
end
|
35
35
|
end
|
@@ -35,9 +35,9 @@ describe GoogleDistanceMatrix::Matrix do
|
|
35
35
|
|
36
36
|
describe "#configuration" do
|
37
37
|
it "is by default set from default_configuration" do
|
38
|
-
config =
|
39
|
-
config.
|
40
|
-
GoogleDistanceMatrix.
|
38
|
+
config = double
|
39
|
+
allow(config).to receive(:dup).and_return config
|
40
|
+
expect(GoogleDistanceMatrix).to receive(:default_configuration).and_return config
|
41
41
|
|
42
42
|
expect(described_class.new.configuration).to eq config
|
43
43
|
end
|
@@ -83,12 +83,12 @@ describe GoogleDistanceMatrix::Matrix do
|
|
83
83
|
shortest_route_by_distance_to!
|
84
84
|
].each do |method|
|
85
85
|
it "delegates #{method} to routes_finder" do
|
86
|
-
finder =
|
87
|
-
result =
|
86
|
+
finder = double
|
87
|
+
result = double
|
88
88
|
|
89
|
-
subject.
|
89
|
+
allow(subject).to receive(:routes_finder).and_return finder
|
90
90
|
|
91
|
-
finder.
|
91
|
+
expect(finder).to receive(method).and_return result
|
92
92
|
expect(subject.public_send(method)).to eq result
|
93
93
|
end
|
94
94
|
end
|
@@ -106,7 +106,7 @@ describe GoogleDistanceMatrix::Matrix do
|
|
106
106
|
subject.reset!
|
107
107
|
subject.data
|
108
108
|
|
109
|
-
stub.
|
109
|
+
expect(stub).to have_been_requested.twice
|
110
110
|
end
|
111
111
|
end
|
112
112
|
|
@@ -123,7 +123,7 @@ describe GoogleDistanceMatrix::Matrix do
|
|
123
123
|
subject.reset!
|
124
124
|
subject.data
|
125
125
|
|
126
|
-
stub.
|
126
|
+
expect(stub).to have_been_requested.once
|
127
127
|
end
|
128
128
|
|
129
129
|
it "clears the cache key on reload" do
|
@@ -132,7 +132,7 @@ describe GoogleDistanceMatrix::Matrix do
|
|
132
132
|
subject.reload
|
133
133
|
subject.data
|
134
134
|
|
135
|
-
stub.
|
135
|
+
expect(stub).to have_been_requested.twice
|
136
136
|
end
|
137
137
|
end
|
138
138
|
end
|
@@ -143,12 +143,12 @@ describe GoogleDistanceMatrix::Matrix do
|
|
143
143
|
|
144
144
|
it "loads from Google's API" do
|
145
145
|
subject.data
|
146
|
-
api_request_stub.
|
146
|
+
expect(api_request_stub).to have_been_requested
|
147
147
|
end
|
148
148
|
|
149
149
|
it "does not load twice" do
|
150
150
|
2.times { subject.data }
|
151
|
-
api_request_stub.
|
151
|
+
expect(api_request_stub).to have_been_requested
|
152
152
|
end
|
153
153
|
|
154
154
|
it "contains one row" do
|
@@ -182,7 +182,7 @@ describe GoogleDistanceMatrix::Matrix do
|
|
182
182
|
|
183
183
|
it "loads from Google's API" do
|
184
184
|
subject.data
|
185
|
-
api_request_stub.
|
185
|
+
expect(api_request_stub).to have_been_requested
|
186
186
|
end
|
187
187
|
|
188
188
|
it "as loaded route with errors correctly" do
|
@@ -196,7 +196,7 @@ describe GoogleDistanceMatrix::Matrix do
|
|
196
196
|
|
197
197
|
describe "#reload" do
|
198
198
|
before do
|
199
|
-
subject.
|
199
|
+
allow(subject).to receive(:load_matrix) { ['loaded'] }
|
200
200
|
subject.data.clear
|
201
201
|
end
|
202
202
|
|
@@ -18,7 +18,7 @@ describe GoogleDistanceMatrix::Place do
|
|
18
18
|
end
|
19
19
|
|
20
20
|
it "builds with an object responding to lat and lng" do
|
21
|
-
point =
|
21
|
+
point = double lat: 1, lng: 2
|
22
22
|
place = described_class.new(point)
|
23
23
|
|
24
24
|
expect(place.lat).to eq point.lat
|
@@ -27,20 +27,20 @@ describe GoogleDistanceMatrix::Place do
|
|
27
27
|
|
28
28
|
|
29
29
|
it "keeps a record of the object it built itself from" do
|
30
|
-
point =
|
30
|
+
point = double lat: 1, lng: 2
|
31
31
|
place = described_class.new(point)
|
32
32
|
|
33
33
|
expect(place.extracted_attributes_from).to eq point
|
34
34
|
end
|
35
35
|
it "builds with an object responding to address" do
|
36
|
-
object =
|
36
|
+
object = double address: address
|
37
37
|
place = described_class.new(object)
|
38
38
|
|
39
39
|
expect(place.address).to eq object.address
|
40
40
|
end
|
41
41
|
|
42
42
|
it "builds with an object responding to lat, lng and address" do
|
43
|
-
object =
|
43
|
+
object = double lat: 1, lng:2, address: address
|
44
44
|
place = described_class.new(object)
|
45
45
|
|
46
46
|
expect(place.lat).to eq object.lat
|
@@ -63,13 +63,13 @@ describe GoogleDistanceMatrix::Place do
|
|
63
63
|
context "with address" do
|
64
64
|
subject { described_class.new address: address }
|
65
65
|
|
66
|
-
|
66
|
+
it { expect(subject.to_param).to eq address }
|
67
67
|
end
|
68
68
|
|
69
69
|
context "with lat lng" do
|
70
70
|
subject { described_class.new lng: lng, lat: lat }
|
71
71
|
|
72
|
-
|
72
|
+
it { expect(subject.to_param).to eq "#{lat},#{lng}" }
|
73
73
|
end
|
74
74
|
end
|
75
75
|
|
@@ -39,8 +39,8 @@ describe GoogleDistanceMatrix::Places do
|
|
39
39
|
it "wraps values in a Place" do
|
40
40
|
subject.public_send attr, {address: "four"}
|
41
41
|
|
42
|
-
expect(subject.all? { |place| place.is_a? GoogleDistanceMatrix::Place }).to
|
43
|
-
expect(subject.any? { |place| place.address == "four" }).to
|
42
|
+
expect(subject.all? { |place| place.is_a? GoogleDistanceMatrix::Place }).to be true
|
43
|
+
expect(subject.any? { |place| place.address == "four" }).to be true
|
44
44
|
end
|
45
45
|
end
|
46
46
|
end
|
@@ -11,18 +11,11 @@ describe GoogleDistanceMatrix::Route do
|
|
11
11
|
|
12
12
|
subject { described_class.new attributes }
|
13
13
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
14
|
+
it { expect(subject.status).to eq "ok" }
|
15
|
+
it { expect(subject.distance_in_meters).to eq 2032 }
|
16
|
+
it { expect(subject.distance_text).to eq "2.0 km" }
|
17
|
+
it { expect(subject.duration_in_seconds).to eq 367 }
|
18
|
+
it { expect(subject.duration_text).to eq "6 mins" }
|
19
19
|
|
20
|
-
|
21
|
-
around { |example| ActiveSupport::Deprecation.silence { example.run } }
|
22
|
-
|
23
|
-
its(:duration_value) { should eq 367 }
|
24
|
-
its(:distance_value) { should eq 2032 }
|
25
|
-
end
|
26
|
-
|
27
|
-
it { should be_ok }
|
20
|
+
it { is_expected.to be_ok }
|
28
21
|
end
|
@@ -6,7 +6,7 @@ describe GoogleDistanceMatrix::RoutesFinder, :request_recordings do
|
|
6
6
|
|
7
7
|
let(:destination_1) { GoogleDistanceMatrix::Place.new address: "Drammensveien 1, Oslo" }
|
8
8
|
|
9
|
-
let(:destination_2_built_from) {
|
9
|
+
let(:destination_2_built_from) { double address: "Skjellestadhagen, Heggedal" }
|
10
10
|
let(:destination_2) { GoogleDistanceMatrix::Place.new destination_2_built_from }
|
11
11
|
|
12
12
|
let(:url_builder) { GoogleDistanceMatrix::UrlBuilder.new matrix }
|
@@ -79,7 +79,7 @@ describe GoogleDistanceMatrix::RoutesFinder, :request_recordings do
|
|
79
79
|
end
|
80
80
|
|
81
81
|
it "fails with argument error if sent in object is neither place nor something it was built from" do
|
82
|
-
expect { subject.route_for origin: origin_1, destination:
|
82
|
+
expect { subject.route_for origin: origin_1, destination: double }.to raise_error ArgumentError
|
83
83
|
end
|
84
84
|
end
|
85
85
|
|
@@ -47,7 +47,7 @@ describe GoogleDistanceMatrix::UrlBuilder do
|
|
47
47
|
long_string = ""
|
48
48
|
2049.times { long_string << "a" }
|
49
49
|
|
50
|
-
subject.
|
50
|
+
allow(subject).to receive(:get_params_string).and_return long_string
|
51
51
|
|
52
52
|
expect { subject.url }.to raise_error GoogleDistanceMatrix::MatrixUrlTooLong
|
53
53
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -5,6 +5,7 @@ require 'webmock/rspec'
|
|
5
5
|
require 'shoulda-matchers'
|
6
6
|
|
7
7
|
WebMock.disable_net_connect!
|
8
|
+
I18n.enforce_available_locales = false
|
8
9
|
|
9
10
|
module RecordedRequestHelpers
|
10
11
|
def recorded_request_for(name)
|
@@ -19,6 +20,5 @@ module RecordedRequestHelpers
|
|
19
20
|
end
|
20
21
|
|
21
22
|
RSpec.configure do |c|
|
22
|
-
c.treat_symbols_as_metadata_keys_with_true_values = true
|
23
23
|
c.include RecordedRequestHelpers, :request_recordings
|
24
24
|
end
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google_distance_matrix
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
version: 0.0.3
|
4
|
+
version: 0.1.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Thorbjørn Hermansen
|
@@ -12,133 +11,129 @@ cert_chain: []
|
|
12
11
|
date: 2014-08-30 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
|
-
prerelease: false
|
16
14
|
name: activesupport
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 3.2.13
|
20
|
+
- - "<="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '4.1'
|
17
23
|
type: :runtime
|
24
|
+
prerelease: false
|
18
25
|
version_requirements: !ruby/object:Gem::Requirement
|
19
26
|
requirements:
|
20
|
-
- -
|
27
|
+
- - ">="
|
21
28
|
- !ruby/object:Gem::Version
|
22
29
|
version: 3.2.13
|
23
|
-
|
30
|
+
- - "<="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '4.1'
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: activemodel
|
24
35
|
requirement: !ruby/object:Gem::Requirement
|
25
36
|
requirements:
|
26
|
-
- -
|
37
|
+
- - ">="
|
27
38
|
- !ruby/object:Gem::Version
|
28
39
|
version: 3.2.13
|
29
|
-
|
30
|
-
- !ruby/object:Gem::
|
31
|
-
|
32
|
-
name: activemodel
|
40
|
+
- - "<="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '4.1'
|
33
43
|
type: :runtime
|
44
|
+
prerelease: false
|
34
45
|
version_requirements: !ruby/object:Gem::Requirement
|
35
46
|
requirements:
|
36
|
-
- -
|
47
|
+
- - ">="
|
37
48
|
- !ruby/object:Gem::Version
|
38
49
|
version: 3.2.13
|
39
|
-
|
40
|
-
requirement: !ruby/object:Gem::Requirement
|
41
|
-
requirements:
|
42
|
-
- - ~>
|
50
|
+
- - "<="
|
43
51
|
- !ruby/object:Gem::Version
|
44
|
-
version:
|
45
|
-
none: false
|
52
|
+
version: '4.1'
|
46
53
|
- !ruby/object:Gem::Dependency
|
47
|
-
prerelease: false
|
48
54
|
name: google_business_api_url_signer
|
55
|
+
requirement: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - "~>"
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: 0.1.0
|
49
60
|
type: :runtime
|
61
|
+
prerelease: false
|
50
62
|
version_requirements: !ruby/object:Gem::Requirement
|
51
63
|
requirements:
|
52
|
-
- - ~>
|
64
|
+
- - "~>"
|
53
65
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.0
|
55
|
-
|
66
|
+
version: 0.1.0
|
67
|
+
- !ruby/object:Gem::Dependency
|
68
|
+
name: bundler
|
56
69
|
requirement: !ruby/object:Gem::Requirement
|
57
70
|
requirements:
|
58
|
-
- -
|
71
|
+
- - ">="
|
59
72
|
- !ruby/object:Gem::Version
|
60
|
-
version: 0
|
61
|
-
none: false
|
62
|
-
- !ruby/object:Gem::Dependency
|
63
|
-
prerelease: false
|
64
|
-
name: bundler
|
73
|
+
version: '0'
|
65
74
|
type: :development
|
75
|
+
prerelease: false
|
66
76
|
version_requirements: !ruby/object:Gem::Requirement
|
67
77
|
requirements:
|
68
|
-
- -
|
78
|
+
- - ">="
|
69
79
|
- !ruby/object:Gem::Version
|
70
|
-
version: '
|
71
|
-
|
80
|
+
version: '0'
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
name: rspec
|
72
83
|
requirement: !ruby/object:Gem::Requirement
|
73
84
|
requirements:
|
74
|
-
- - ~>
|
85
|
+
- - "~>"
|
75
86
|
- !ruby/object:Gem::Version
|
76
|
-
version:
|
77
|
-
none: false
|
78
|
-
- !ruby/object:Gem::Dependency
|
79
|
-
prerelease: false
|
80
|
-
name: rspec
|
87
|
+
version: 3.0.0
|
81
88
|
type: :development
|
89
|
+
prerelease: false
|
82
90
|
version_requirements: !ruby/object:Gem::Requirement
|
83
91
|
requirements:
|
84
|
-
- - ~>
|
92
|
+
- - "~>"
|
85
93
|
- !ruby/object:Gem::Version
|
86
|
-
version:
|
87
|
-
|
94
|
+
version: 3.0.0
|
95
|
+
- !ruby/object:Gem::Dependency
|
96
|
+
name: shoulda-matchers
|
88
97
|
requirement: !ruby/object:Gem::Requirement
|
89
98
|
requirements:
|
90
|
-
- - ~>
|
99
|
+
- - "~>"
|
91
100
|
- !ruby/object:Gem::Version
|
92
|
-
version:
|
93
|
-
none: false
|
94
|
-
- !ruby/object:Gem::Dependency
|
95
|
-
prerelease: false
|
96
|
-
name: shoulda-matchers
|
101
|
+
version: 2.6.2
|
97
102
|
type: :development
|
103
|
+
prerelease: false
|
98
104
|
version_requirements: !ruby/object:Gem::Requirement
|
99
105
|
requirements:
|
100
|
-
- - ~>
|
106
|
+
- - "~>"
|
101
107
|
- !ruby/object:Gem::Version
|
102
|
-
version: 2.
|
103
|
-
|
108
|
+
version: 2.6.2
|
109
|
+
- !ruby/object:Gem::Dependency
|
110
|
+
name: webmock
|
104
111
|
requirement: !ruby/object:Gem::Requirement
|
105
112
|
requirements:
|
106
|
-
- - ~>
|
113
|
+
- - "~>"
|
107
114
|
- !ruby/object:Gem::Version
|
108
|
-
version:
|
109
|
-
none: false
|
110
|
-
- !ruby/object:Gem::Dependency
|
111
|
-
prerelease: false
|
112
|
-
name: webmock
|
115
|
+
version: 1.18.0
|
113
116
|
type: :development
|
117
|
+
prerelease: false
|
114
118
|
version_requirements: !ruby/object:Gem::Requirement
|
115
119
|
requirements:
|
116
|
-
- - ~>
|
120
|
+
- - "~>"
|
117
121
|
- !ruby/object:Gem::Version
|
118
|
-
version:
|
119
|
-
none: false
|
120
|
-
requirement: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - ~>
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: '1.11'
|
125
|
-
none: false
|
122
|
+
version: 1.18.0
|
126
123
|
- !ruby/object:Gem::Dependency
|
127
|
-
prerelease: false
|
128
124
|
name: rake
|
129
|
-
|
130
|
-
version_requirements: !ruby/object:Gem::Requirement
|
125
|
+
requirement: !ruby/object:Gem::Requirement
|
131
126
|
requirements:
|
132
|
-
- -
|
127
|
+
- - ">="
|
133
128
|
- !ruby/object:Gem::Version
|
134
129
|
version: '0'
|
135
|
-
|
136
|
-
|
130
|
+
type: :development
|
131
|
+
prerelease: false
|
132
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
133
|
requirements:
|
138
|
-
- -
|
134
|
+
- - ">="
|
139
135
|
- !ruby/object:Gem::Version
|
140
136
|
version: '0'
|
141
|
-
none: false
|
142
137
|
description: Ruby client for The Google Distance Matrix API
|
143
138
|
email:
|
144
139
|
- thhermansen@gmail.com
|
@@ -146,9 +141,9 @@ executables: []
|
|
146
141
|
extensions: []
|
147
142
|
extra_rdoc_files: []
|
148
143
|
files:
|
149
|
-
- .gitignore
|
150
|
-
- .rbenv-version
|
151
|
-
- .travis.yml
|
144
|
+
- ".gitignore"
|
145
|
+
- ".rbenv-version"
|
146
|
+
- ".travis.yml"
|
152
147
|
- CHANGELOG.md
|
153
148
|
- Gemfile
|
154
149
|
- LICENSE.txt
|
@@ -186,33 +181,26 @@ files:
|
|
186
181
|
homepage: ''
|
187
182
|
licenses:
|
188
183
|
- MIT
|
184
|
+
metadata: {}
|
189
185
|
post_install_message:
|
190
186
|
rdoc_options: []
|
191
187
|
require_paths:
|
192
188
|
- lib
|
193
189
|
required_ruby_version: !ruby/object:Gem::Requirement
|
194
190
|
requirements:
|
195
|
-
- -
|
191
|
+
- - ">="
|
196
192
|
- !ruby/object:Gem::Version
|
197
|
-
segments:
|
198
|
-
- 0
|
199
|
-
hash: 4095186925905366277
|
200
193
|
version: '0'
|
201
|
-
none: false
|
202
194
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
203
195
|
requirements:
|
204
|
-
- -
|
196
|
+
- - ">="
|
205
197
|
- !ruby/object:Gem::Version
|
206
|
-
segments:
|
207
|
-
- 0
|
208
|
-
hash: 4095186925905366277
|
209
198
|
version: '0'
|
210
|
-
none: false
|
211
199
|
requirements: []
|
212
200
|
rubyforge_project:
|
213
|
-
rubygems_version:
|
201
|
+
rubygems_version: 2.2.2
|
214
202
|
signing_key:
|
215
|
-
specification_version:
|
203
|
+
specification_version: 4
|
216
204
|
summary: Ruby client for The Google Distance Matrix API
|
217
205
|
test_files:
|
218
206
|
- spec/lib/google_distance_matrix/client_cache_spec.rb
|