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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9d95262e2f29c248bbf1d42d16d95b9148ef0d16354a4e4dc8e4f5af23364980
4
- data.tar.gz: 8911ea692148753e4325908ae0c3b6dffa2c08fbcef4b0585afe5d4f2e45f10d
3
+ metadata.gz: 19d33e843a74e3d6f5c335182c92c2937c40dc616162486fe516ee4516ef540a
4
+ data.tar.gz: 3a88825149042aa2985d1e9eb0a950c7c2bb0150248a513b1bebc6ba5c353c13
5
5
  SHA512:
6
- metadata.gz: 9149df909c7604f327b4d342d34e3df99c5898e109a434ef30a123e848cd5591ab01d51d921460907ba53b3a31deccd5ad484fe89e7027aafdbb7a3309eb7ac8
7
- data.tar.gz: c8c1054b9060e0ecec7648313931f1d3349ec24cd74ce2f0ffec14cc893c7eda47654cd6df2422b1b162d51c57d1e92222f568d4c9ba25a0d67ff554b9f1aaa5
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.3
1
+ 2.5.5
data/CHANGELOG.md CHANGED
@@ -1,4 +1,20 @@
1
- ## v.0.6.1 (to be released)
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
- [![Build Status](https://travis-ci.org/Skalar/google_distance_matrix.svg?branch=master)](https://travis-ci.org/Skalar/google_distance_matrix)
3
+ ![Build Status](https://github.com/Skalar/google_distance_matrix/workflows/Ruby/badge.svg)
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', '< 5.3'
23
- spec.add_dependency 'activesupport', '>= 3.2.13', '< 5.3'
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'
@@ -19,7 +19,7 @@ module GoogleDistanceMatrix
19
19
 
20
20
  def get(url, options = {})
21
21
  cache.fetch self.class.key(url, options.fetch(:configuration)) do
22
- client.get url, options
22
+ client.get url, **options
23
23
  end
24
24
  end
25
25
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GoogleDistanceMatrix
4
- VERSION = '0.6.1'
4
+ VERSION = '0.6.5'
5
5
  end
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.1
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: 2019-03-20 00:00:00.000000000 Z
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: '5.3'
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: '5.3'
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: '5.3'
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: '5.3'
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
- rubyforge_project:
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
data/.travis.yml DELETED
@@ -1,11 +0,0 @@
1
- before_install:
2
- - gem update bundler
3
- rvm:
4
- - 2.3.8
5
- - 2.4.5
6
- - 2.5.5
7
- - 2.6.2
8
- - ruby-head
9
- matrix:
10
- allow_failures:
11
- - rvm: ruby-head