google_distance_matrix 0.6.5 → 0.6.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 19d33e843a74e3d6f5c335182c92c2937c40dc616162486fe516ee4516ef540a
4
- data.tar.gz: 3a88825149042aa2985d1e9eb0a950c7c2bb0150248a513b1bebc6ba5c353c13
3
+ metadata.gz: fd7b57fa45392b8c5efbb5aac1c78785a1b6ebee87cf6dad1e9d1b6e46343ffb
4
+ data.tar.gz: 65f7561df069c5a95704c18573ddffee4f3244ffe31fc5a6f3c41eac439b1ce5
5
5
  SHA512:
6
- metadata.gz: 46402654a232ed265243c342379cd0e940a4f8c020169c8aaaf7250e10d5e470f73a69f7ea5fca1b35bdac45a365cf588bcc63847543c213639cbfd44a7e989a
7
- data.tar.gz: e5ae795ff5dc36f18b0d62c6e86e002d87419116d63baeb8b0b1919b1008678f7c043be8b9bd79b72536f515ba467d3ed5315a8d90adb647acf984be99397c5b
6
+ metadata.gz: 045bece3efd707661135fc7d53ce7177b52d430ad7f3dc0a7d61146bcf459749faa36fc45fb38d5f3d433c74ecf75a67ac8c4b39f20f8d29f11fe66c9482141f
7
+ data.tar.gz: 846634a14851b622021bba17927730c9ec9c256dcc5533d0348b4e819c69fd89cc4e912fa0eaf68419ba6ecfb04a1d661888d94eb2bc203bfcfc74274cda8662
@@ -3,7 +3,7 @@ name: Ruby
3
3
  on:
4
4
  push:
5
5
  branches:
6
- - master
6
+ - main
7
7
  pull_request:
8
8
 
9
9
  jobs:
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## v.0.6.7
2
+
3
+ * chore: bumped dependency support up to Rails 7.1 (by justisb)
4
+
5
+ ## v.0.6.6
6
+
7
+ * chore: require net/http in client.rb (#57)
8
+
1
9
  ## v.0.6.5
2
10
 
3
11
  * chore: bumped dependency support up to Rails 7 (by justisb)
data/Rakefile CHANGED
@@ -6,9 +6,6 @@ require 'rubocop/rake_task'
6
6
  RuboCop::RakeTask.new
7
7
 
8
8
  require 'rspec/core/rake_task'
9
- RSpec::Core::RakeTask.new(:spec) do |t|
10
- t.rspec_opts = ['-c', '-f progress', '-r ./spec/spec_helper.rb']
11
- t.pattern = 'spec/**/*_spec.rb'
12
- end
9
+ RSpec::Core::RakeTask.new(:spec)
13
10
 
14
11
  task default: %i[rubocop spec]
@@ -19,13 +19,13 @@ 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', '< 7.1'
23
- spec.add_dependency 'activesupport', '>= 3.2.13', '< 7.1'
22
+ spec.add_dependency 'activemodel', '>= 3.2.13', '< 7.2'
23
+ spec.add_dependency 'activesupport', '>= 3.2.13', '< 7.2'
24
24
  spec.add_dependency 'google_business_api_url_signer', '~> 0.1.3'
25
25
 
26
26
  spec.add_development_dependency 'bundler'
27
27
  spec.add_development_dependency 'rake'
28
- spec.add_development_dependency 'rspec', '~> 3.8.0'
28
+ spec.add_development_dependency 'rspec', '~> 3.12.0'
29
29
  spec.add_development_dependency 'rubocop', '~> 0.59.2'
30
30
  spec.add_development_dependency 'shoulda-matchers', '~> 4.0.0.rc1'
31
31
  spec.add_development_dependency 'webmock', '~> 3.4.2'
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'net/http'
4
+
3
5
  module GoogleDistanceMatrix
4
6
  # HTTP client making request to Google's API
5
7
  class Client
@@ -23,6 +23,10 @@ module GoogleDistanceMatrix
23
23
  end
24
24
  end
25
25
 
26
+ def level
27
+ backend&.level || 1
28
+ end
29
+
26
30
  private
27
31
 
28
32
  def tag_msg(msg, tags)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GoogleDistanceMatrix
4
- VERSION = '0.6.5'
4
+ VERSION = '0.6.7'
5
5
  end
@@ -18,6 +18,10 @@ module GoogleDistanceMatrix
18
18
  def error(msg)
19
19
  raise msg
20
20
  end
21
+
22
+ def level
23
+ 1
24
+ end
21
25
  end
22
26
 
23
27
  # Little helper to clean up examples
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.5
4
+ version: 0.6.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thorbjørn Hermansen
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-31 00:00:00.000000000 Z
11
+ date: 2023-10-21 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: '7.1'
22
+ version: '7.2'
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: '7.1'
32
+ version: '7.2'
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: '7.1'
42
+ version: '7.2'
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: '7.1'
52
+ version: '7.2'
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: google_business_api_url_signer
55
55
  requirement: !ruby/object:Gem::Requirement
@@ -98,14 +98,14 @@ dependencies:
98
98
  requirements:
99
99
  - - "~>"
100
100
  - !ruby/object:Gem::Version
101
- version: 3.8.0
101
+ version: 3.12.0
102
102
  type: :development
103
103
  prerelease: false
104
104
  version_requirements: !ruby/object:Gem::Requirement
105
105
  requirements:
106
106
  - - "~>"
107
107
  - !ruby/object:Gem::Version
108
- version: 3.8.0
108
+ version: 3.12.0
109
109
  - !ruby/object:Gem::Dependency
110
110
  name: rubocop
111
111
  requirement: !ruby/object:Gem::Requirement
@@ -206,7 +206,7 @@ homepage: ''
206
206
  licenses:
207
207
  - MIT
208
208
  metadata: {}
209
- post_install_message:
209
+ post_install_message:
210
210
  rdoc_options: []
211
211
  require_paths:
212
212
  - lib
@@ -221,8 +221,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
221
221
  - !ruby/object:Gem::Version
222
222
  version: '0'
223
223
  requirements: []
224
- rubygems_version: 3.0.3.1
225
- signing_key:
224
+ rubygems_version: 3.4.10
225
+ signing_key:
226
226
  specification_version: 4
227
227
  summary: Ruby client for The Google Distance Matrix API
228
228
  test_files: