google_maps_geocoder 0.7.10 → 1.0.0

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: 3126baa6f246df340f154bbe7a1ba9ed6df01748309e1c19fe812bd7a6fbb79d
4
- data.tar.gz: dd6e0372f6cb04cdc1cf659cecb2284b0eddac1c1da0a4854915e2ae75510575
3
+ metadata.gz: 5c568a9b578691865efa5fb3e960924c1d26eb1c6f041f6586897b56fb789ffd
4
+ data.tar.gz: 88b05d3af710f1de4fda1377769f69d8f9b0d65a993ec4890dc5ee24998f2d7f
5
5
  SHA512:
6
- metadata.gz: 5b6a03c9acb411000e808021112c4d28d83546c9b6cf9bf6eea22c067f33a6206f84dbd1efb4a4111a7e26ab07ffac0c4a2bb7daa570d3ed9fd888a40cadbfd8
7
- data.tar.gz: 1c2125dad69b7b11dec1645f0f9b7dfefd42c19ea2101ae78ea02bb1dc0f30851804f819bc30e9efe7e199b2fd10fe77774df698b7f22e95fa41620ad76f5710
6
+ metadata.gz: 688f7c22172faa20e5108120a680130a30accbf78a2597e0b2f4af2886e45af917d4c3358f115d7af9a073fea6f01e3e0e3e9cbc7172810ada348ca33597ffa6
7
+ data.tar.gz: 206170d5705a87acd41d58a00e230962437d0369fc08ca7b29bb8e26eee09789a71b6ca21eb77dd20302338ed96e052dc271faeaa98090a58d4c4ee063f4ffc0
checksums.yaml.gz.sig CHANGED
Binary file
@@ -9,3 +9,7 @@ updates:
9
9
  directory: "/" # Location of package manifests
10
10
  schedule:
11
11
  interval: "daily"
12
+ - package-ecosystem: "github-actions"
13
+ directory: "/"
14
+ schedule:
15
+ interval: "weekly"
@@ -12,10 +12,10 @@ jobs:
12
12
  name: Ruby ${{ matrix.ruby-version }}
13
13
  strategy:
14
14
  matrix:
15
- ruby-version: [2.5, 2.6, 2.7, '3.0']
15
+ ruby-version: ['3.0', 3.1, 3.2, 3.3]
16
16
  steps:
17
17
  - name: Checkout code
18
- uses: actions/checkout@v2
18
+ uses: actions/checkout@v4
19
19
  - name: Set up Ruby ${{ matrix.ruby-version }}
20
20
  uses: ruby/setup-ruby@v1
21
21
  with:
data/Gemfile CHANGED
@@ -7,7 +7,7 @@ gem 'inch', '~> 0.8'
7
7
  gem 'pry', '~> 0.14.1'
8
8
  gem 'rake', ['>= 12.3.3', '~> 13.0']
9
9
  gem 'rspec', '~> 3'
10
- gem 'rubocop', '< 1.29'
10
+ gem 'rubocop', '< 1.63'
11
11
  gem 'rubocop-rake', '~> 0'
12
12
  gem 'rubocop-rspec', '~> 2'
13
13
  gem 'simplecov', '~> 0.18'
data/README.md CHANGED
@@ -114,4 +114,4 @@ Complete RDoc documentation is available at [RubyDoc.info](https://www.rubydoc.i
114
114
 
115
115
  ## Copyright
116
116
 
117
- Copyright © 2011-2022 Roderick Monje. See [LICENSE.txt](LICENSE.txt) for further details.
117
+ Copyright © 2011-2024 Roderick Monje. See [LICENSE.txt](LICENSE.txt) for further details.
data/SECURITY.md CHANGED
@@ -6,8 +6,8 @@
6
6
 
7
7
  | Version | Supported |
8
8
  | ------- | ------------------ |
9
- | 0.7.10 | :white_check_mark: |
10
- | < 0.7.10 | :x: |
9
+ | 1.0.0 | :white_check_mark: |
10
+ | < 1.0.0 | :x: |
11
11
 
12
12
  ## Reporting a Vulnerability
13
13
 
@@ -1,25 +1,26 @@
1
1
  -----BEGIN CERTIFICATE-----
2
- MIIEQDCCAqigAwIBAgIBATANBgkqhkiG9w0BAQsFADAlMSMwIQYDVQQDDBpyb2Qv
3
- REM9Zm92ZWFjZW50cmFsL0RDPWNvbTAeFw0yMTExMTUwMzEwMTRaFw0yMjExMTUw
4
- MzEwMTRaMCUxIzAhBgNVBAMMGnJvZC9EQz1mb3ZlYWNlbnRyYWwvREM9Y29tMIIB
5
- ojANBgkqhkiG9w0BAQEFAAOCAY8AMIIBigKCAYEAsMm8RdCTuhYTnbH5a8pesLYn
6
- BD7cLPkeNfPWp8ohGVXL3988lRBYHwI/LRhxKX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BGkCAwEAAaN7MHkw
15
+ CQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFO1rwHyxg39rlp0MN5Kj
16
+ s1uxvHyiMB8GA1UdEQQYMBaBFHJvZEBmb3ZlYWNlbnRyYWwuY29tMB8GA1UdEgQY
17
+ MBaBFHJvZEBmb3ZlYWNlbnRyYWwuY29tMA0GCSqGSIb3DQEBCwUAA4IBgQBg9aO1
18
+ 1OhvQMbzefkcxE1QxuqwGzBh8kNiE2JL5FSGTtgFbXKqM1eeA0GWeZnksSVXOX40
19
+ 01HDxW8CHdBnyNGorJPgbypZNI+gpi5bYKox0en7jj+88k9VA4fIbR+a/6sUSDsZ
20
+ 82qpicz/Q+qkfnhQxHJ1Cj0lrZBq0Kuc+ooNxE4U3VT25CQCvUN9dlgyMZsH15ND
21
+ DpektzMLDzH4suOVGK09j7C3sTyVdwI5UkN8ix27Me0N4zPxjjYo0HFXIRNhEjVF
22
+ DWm9LGr9npmhQtd3A3ZyASawp+UUZ5pdc57YaBRDrJdFZr9056MpeByj+Fsg5Jkh
23
+ 4o08iHs5bMPDyXBcj5XsYDLwAwTANPjGWGRNvrnY3KGGWdRMgtni3NJyMRCZ5tIT
24
+ UNicoJ8NJMgduyTPvZBJtvUPddQr1yAL66/l+CFewbGb/1DbqfSvA2atfUobhDrG
25
+ zYKOF/ofPEZhX7sqLK5GzDW4x1QDHAgr1YIdttVxhHADOxF4EVSJCHH0RGw=
25
26
  -----END CERTIFICATE-----
@@ -19,5 +19,5 @@ Gem::Specification.new do |s|
19
19
 
20
20
  s.files = `git ls-files`.split "\n"
21
21
  s.require_paths = ['lib']
22
- s.required_ruby_version = '>= 2.5'
22
+ s.required_ruby_version = '>= 3.0'
23
23
  end
@@ -128,7 +128,7 @@ class GoogleMapsGeocoder
128
128
  if (message = @json['error_message'])
129
129
  Logger.new($stderr).error(message)
130
130
  end
131
- super @json['status']
131
+ super @json
132
132
  end
133
133
  end
134
134
 
@@ -3,5 +3,5 @@
3
3
  # A simple PORO wrapper for geocoding with Google Maps.
4
4
  class GoogleMapsGeocoder
5
5
  # This gem's version.
6
- VERSION = '0.7.10' unless defined?(GoogleMapsGeocoder::VERSION)
6
+ VERSION = '1.0.0' unless defined?(GoogleMapsGeocoder::VERSION)
7
7
  end
@@ -11,7 +11,9 @@ RSpec.describe GoogleMapsGeocoder do
11
11
  GoogleMapsGeocoder.new('White House')
12
12
  rescue SocketError
13
13
  pending 'waiting for a network connection'
14
- rescue GoogleMapsGeocoder::GeocodingError
14
+ rescue GoogleMapsGeocoder::GeocodingError => e
15
+ raise if e.json['status'] == 'REQUEST_DENIED'
16
+
15
17
  pending 'waiting for query limit to pass'
16
18
  end
17
19
 
@@ -66,10 +68,7 @@ RSpec.describe GoogleMapsGeocoder do
66
68
  pending 'waiting for a network connection'
67
69
  end
68
70
 
69
- it do
70
- expect { geocoder }.to raise_error GoogleMapsGeocoder::GeocodingError,
71
- 'REQUEST_DENIED'
72
- end
71
+ it { expect { geocoder }.to raise_error GoogleMapsGeocoder::GeocodingError }
73
72
  end
74
73
  end
75
74
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google_maps_geocoder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.10
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roderick Monje
@@ -10,31 +10,32 @@ bindir: bin
10
10
  cert_chain:
11
11
  - |
12
12
  -----BEGIN CERTIFICATE-----
13
- MIIEQDCCAqigAwIBAgIBATANBgkqhkiG9w0BAQsFADAlMSMwIQYDVQQDDBpyb2Qv
14
- REM9Zm92ZWFjZW50cmFsL0RDPWNvbTAeFw0yMTExMTUwMzEwMTRaFw0yMjExMTUw
15
- MzEwMTRaMCUxIzAhBgNVBAMMGnJvZC9EQz1mb3ZlYWNlbnRyYWwvREM9Y29tMIIB
16
- ojANBgkqhkiG9w0BAQEFAAOCAY8AM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X9QSKP0muM4+GtE9619hPFK
25
+ RMXUFKNUlrZ6gcpyX5weP2OKwd9Z7LkVsK/lgyxyaDqGwuajBGkCAwEAAaN7MHkw
26
+ CQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFO1rwHyxg39rlp0MN5Kj
27
+ s1uxvHyiMB8GA1UdEQQYMBaBFHJvZEBmb3ZlYWNlbnRyYWwuY29tMB8GA1UdEgQY
28
+ MBaBFHJvZEBmb3ZlYWNlbnRyYWwuY29tMA0GCSqGSIb3DQEBCwUAA4IBgQBg9aO1
29
+ 1OhvQMbzefkcxE1QxuqwGzBh8kNiE2JL5FSGTtgFbXKqM1eeA0GWeZnksSVXOX40
30
+ 01HDxW8CHdBnyNGorJPgbypZNI+gpi5bYKox0en7jj+88k9VA4fIbR+a/6sUSDsZ
31
+ 82qpicz/Q+qkfnhQxHJ1Cj0lrZBq0Kuc+ooNxE4U3VT25CQCvUN9dlgyMZsH15ND
32
+ DpektzMLDzH4suOVGK09j7C3sTyVdwI5UkN8ix27Me0N4zPxjjYo0HFXIRNhEjVF
33
+ DWm9LGr9npmhQtd3A3ZyASawp+UUZ5pdc57YaBRDrJdFZr9056MpeByj+Fsg5Jkh
34
+ 4o08iHs5bMPDyXBcj5XsYDLwAwTANPjGWGRNvrnY3KGGWdRMgtni3NJyMRCZ5tIT
35
+ UNicoJ8NJMgduyTPvZBJtvUPddQr1yAL66/l+CFewbGb/1DbqfSvA2atfUobhDrG
36
+ zYKOF/ofPEZhX7sqLK5GzDW4x1QDHAgr1YIdttVxhHADOxF4EVSJCHH0RGw=
36
37
  -----END CERTIFICATE-----
37
- date: 2022-09-27 00:00:00.000000000 Z
38
+ date: 2024-03-29 00:00:00.000000000 Z
38
39
  dependencies:
39
40
  - !ruby/object:Gem::Dependency
40
41
  name: rack
@@ -97,14 +98,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
97
98
  requirements:
98
99
  - - ">="
99
100
  - !ruby/object:Gem::Version
100
- version: '2.5'
101
+ version: '3.0'
101
102
  required_rubygems_version: !ruby/object:Gem::Requirement
102
103
  requirements:
103
104
  - - ">="
104
105
  - !ruby/object:Gem::Version
105
106
  version: '0'
106
107
  requirements: []
107
- rubygems_version: 3.1.6
108
+ rubygems_version: 3.5.6
108
109
  signing_key:
109
110
  specification_version: 4
110
111
  summary: A simple PORO wrapper for geocoding with Google Maps.
metadata.gz.sig CHANGED
Binary file