google_distance_matrix 0.6.1 → 0.6.5
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 +4 -4
- data/.github/workflows/ruby.yml +31 -0
- data/.ruby-version +1 -1
- data/CHANGELOG.md +17 -1
- data/README.md +1 -4
- data/google_distance_matrix.gemspec +2 -2
- data/lib/google_distance_matrix/client_cache.rb +1 -1
- data/lib/google_distance_matrix/version.rb +1 -1
- metadata +8 -9
- data/.travis.yml +0 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 19d33e843a74e3d6f5c335182c92c2937c40dc616162486fe516ee4516ef540a
|
4
|
+
data.tar.gz: 3a88825149042aa2985d1e9eb0a950c7c2bb0150248a513b1bebc6ba5c353c13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46402654a232ed265243c342379cd0e940a4f8c020169c8aaaf7250e10d5e470f73a69f7ea5fca1b35bdac45a365cf588bcc63847543c213639cbfd44a7e989a
|
7
|
+
data.tar.gz: e5ae795ff5dc36f18b0d62c6e86e002d87419116d63baeb8b0b1919b1008678f7c043be8b9bd79b72536f515ba467d3ed5315a8d90adb647acf984be99397c5b
|
@@ -0,0 +1,31 @@
|
|
1
|
+
name: Ruby
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches:
|
6
|
+
- master
|
7
|
+
pull_request:
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
test:
|
11
|
+
|
12
|
+
runs-on: ubuntu-latest
|
13
|
+
strategy:
|
14
|
+
matrix:
|
15
|
+
ruby-version:
|
16
|
+
- '2.6'
|
17
|
+
- '2.7'
|
18
|
+
- '3.0'
|
19
|
+
|
20
|
+
steps:
|
21
|
+
- uses: actions/checkout@v2
|
22
|
+
- name: Set up Ruby
|
23
|
+
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
|
24
|
+
# change this to (see https://github.com/ruby/setup-ruby#versioning):
|
25
|
+
# uses: ruby/setup-ruby@v1
|
26
|
+
uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e
|
27
|
+
with:
|
28
|
+
ruby-version: ${{ matrix.ruby-version }}
|
29
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
30
|
+
- name: Run tests
|
31
|
+
run: bundle exec rake
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.5.
|
1
|
+
2.5.5
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,20 @@
|
|
1
|
-
## v.0.6.
|
1
|
+
## v.0.6.5
|
2
|
+
|
3
|
+
* chore: bumped dependency support up to Rails 7 (by justisb)
|
4
|
+
|
5
|
+
## v.0.6.4
|
6
|
+
|
7
|
+
* fix: no longer throwing "Wrong number of arguments" when using the cache (by brianlow)
|
8
|
+
|
9
|
+
## v.0.6.3
|
10
|
+
|
11
|
+
* chore: bumped dependency support up to Rails 6.1 (by mintyfresh)
|
12
|
+
|
13
|
+
## v.0.6.2
|
14
|
+
|
15
|
+
* chore: bumped dependency support up to Rails 6 (by zackchandler)
|
16
|
+
|
17
|
+
## v.0.6.1
|
2
18
|
|
3
19
|
* fix: when matrix places were built from hashes, passing hashes to route/s_for doesnt't work (by brauliomartinezlm)
|
4
20
|
* fix: place comparison was not working with == (by brauliomartinezlm)
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# GoogleDistanceMatrix
|
2
2
|
|
3
|
-
|
3
|
+

|
4
4
|
|
5
5
|
Ruby client for the [Google Distance Matrix API](https://developers.google.com/maps/documentation/distance-matrix/intro).
|
6
6
|
|
@@ -11,9 +11,6 @@ pull the distance matrix from Google.
|
|
11
11
|
Once you have the matrix you can fetch all routes from a given
|
12
12
|
origin or to a given destination.
|
13
13
|
|
14
|
-
The matrix may also be used as a data set for traveling salesman problem,
|
15
|
-
but to solve it you may look at <http://ai4r.org/>.
|
16
|
-
|
17
14
|
|
18
15
|
|
19
16
|
|
@@ -19,8 +19,8 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
20
20
|
spec.require_paths = ['lib']
|
21
21
|
|
22
|
-
spec.add_dependency 'activemodel', '>= 3.2.13', '<
|
23
|
-
spec.add_dependency 'activesupport', '>= 3.2.13', '<
|
22
|
+
spec.add_dependency 'activemodel', '>= 3.2.13', '< 7.1'
|
23
|
+
spec.add_dependency 'activesupport', '>= 3.2.13', '< 7.1'
|
24
24
|
spec.add_dependency 'google_business_api_url_signer', '~> 0.1.3'
|
25
25
|
|
26
26
|
spec.add_development_dependency 'bundler'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google_distance_matrix
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thorbjørn Hermansen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-12-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: 3.2.13
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
22
|
+
version: '7.1'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: 3.2.13
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
32
|
+
version: '7.1'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: activesupport
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -39,7 +39,7 @@ dependencies:
|
|
39
39
|
version: 3.2.13
|
40
40
|
- - "<"
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: '
|
42
|
+
version: '7.1'
|
43
43
|
type: :runtime
|
44
44
|
prerelease: false
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -49,7 +49,7 @@ dependencies:
|
|
49
49
|
version: 3.2.13
|
50
50
|
- - "<"
|
51
51
|
- !ruby/object:Gem::Version
|
52
|
-
version: '
|
52
|
+
version: '7.1'
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
54
|
name: google_business_api_url_signer
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
@@ -156,10 +156,10 @@ extensions: []
|
|
156
156
|
extra_rdoc_files: []
|
157
157
|
files:
|
158
158
|
- ".editorconfig"
|
159
|
+
- ".github/workflows/ruby.yml"
|
159
160
|
- ".gitignore"
|
160
161
|
- ".rubocop.yml"
|
161
162
|
- ".ruby-version"
|
162
|
-
- ".travis.yml"
|
163
163
|
- CHANGELOG.md
|
164
164
|
- Gemfile
|
165
165
|
- LICENSE.txt
|
@@ -221,8 +221,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
221
221
|
- !ruby/object:Gem::Version
|
222
222
|
version: '0'
|
223
223
|
requirements: []
|
224
|
-
|
225
|
-
rubygems_version: 2.7.6
|
224
|
+
rubygems_version: 3.0.3.1
|
226
225
|
signing_key:
|
227
226
|
specification_version: 4
|
228
227
|
summary: Ruby client for The Google Distance Matrix API
|