google_maps_geocoder 0.7.4 → 0.7.5

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: ebf92567ff1dc2d2b77b02b0f5355853560eff14e4fa261db1370d5464f76218
4
- data.tar.gz: 81d9e015f6bef01e1419a2b1d0ed309de07dacd6dd93601ac5caf7cc16f12b35
3
+ metadata.gz: 199a0d174e4d20c3ae3729e928ba4beef461e48aaa173c1e143a23125a2a2ecb
4
+ data.tar.gz: 2cec3def39626191c9e2bf7bbf4db038f76f1004b2ace817a92a338e4cb1f89f
5
5
  SHA512:
6
- metadata.gz: a09f215cdba56cc193efef990cfc4036e7fcf5cd808840e07f9b707e82aa11a7676feb8bbce581245d2bcb537977860adc9b649373e38a23061b2103145fe5fc
7
- data.tar.gz: add1deabe68a6233d1c67ef27955bdea103a7a07b2c06d9537550477bf49711472b70c3014e1579352b1e66f482c7ccb3b2b0624c6faeeb2d87e463e5a574aa7
6
+ metadata.gz: 1d97c1f39d866b8fe92c81302bc91ace6ef06a35edda54836ec10a858784a37bb72a840182687f81437a307f29df2c04cbf072c263f12532fe4c20b23f694467
7
+ data.tar.gz: 7a8c93b2a0a2dde27abb7678b0a413b1360b2bf855b9cb97176d616e7528b132984f462f3d0d1ee60bf86f0132bd5f7666a81991aea36d28d45ec8a8ae942f61
checksums.yaml.gz.sig ADDED
Binary file
@@ -1,5 +1,9 @@
1
1
  # How to contribute
2
2
 
3
+ ## **New to open-source?**
4
+
5
+ Try your hand at one of the small tasks ideal for new or casual contributors that are [up-for-grabs](https://github.com/ivanoblomov/google_maps_geocoder/issues?q=is%3Aissue+is%3Aopen+label%3Aup-for-grabs). Welcome to the community!
6
+
3
7
  ## **Did you find a bug?**
4
8
 
5
9
  1. **Ensure the bug was not already reported** by searching on GitHub under [Issues](https://github.com/ivanoblomov/google_maps_geocoder/issues).
@@ -11,7 +15,7 @@
11
15
 
12
16
  ## **Did you write a patch that fixes a bug or adds a new feature?**
13
17
 
14
- 1. **Add specs** that either reproduces the bug or covers the new feature. In the former's case, *make sure it fails without the fix!*
18
+ 1. **Add specs** that either *reproduce the bug* or *cover the new feature*. In the former's case, *make sure it fails without the fix!*
15
19
 
16
20
  2. **Confirm your last build passes** on your GitHub branch or PR.
17
21
 
@@ -19,4 +23,12 @@
19
23
 
20
24
  4. [Open a pull request](https://github.com/ivanoblomov/google_maps_geocoder/compare) with the patch or feature. Follow the template's directions.
21
25
 
26
+ ## Developer Certificate of Origin (DCO)
27
+
28
+ All contributions (including pull requests) must agree to the [Developer Certificate of Origin (DCO) version 1.1](https://developercertificate.org). This is a developer's certification that he or she has the right to submit the patch for inclusion into the project.
29
+
30
+ Simply submitting a contribution implies this agreement, however, please include a `Signed-off-by` tag in the PR (this tag is a conventional way to confirm that you agree to the DCO).
31
+
32
+ It's not practical to fix old contributions in git, so if one is forgotten, do not try to fix them. We presume that if someone sometimes used a DCO, a commit without a DCO is an accident and the DCO still applies.
33
+
22
34
  ## Thanks for contributing!
@@ -4,6 +4,32 @@ Closes: #
4
4
  What problem does this pull request solve? This should be close to the goal of the issue this pull request addresses.
5
5
 
6
6
  # Approach
7
- 1. Describe the approach you chose to solve the above problem.
8
- 2. This will help code reviewers get oriented quickly.
9
- 3. It will also document for future maintainers exactly what changed (and why) when this PR was merged.
7
+ 1. **Describe, in numbered steps, the approach you chose** to solve the above problem.
8
+ 1. This will help code reviewers get oriented quickly.
9
+ 2. It will also document for future maintainers exactly what changed (and why) when this PR was merged.
10
+ 2. **Add specs** that either *reproduce the bug* or *cover the new feature*. In the former's case, *make sure it fails without the fix!*
11
+ 3. Document any new public methods using standard RDoc syntax, or update the existing RDoc for any modified public methods. As an example, see the RDoc for `GoogleMapsGeocoder.new`:
12
+
13
+ ```ruby
14
+ # Geocodes the specified address and wraps the results in a GoogleMapsGeocoder
15
+ # object.
16
+ #
17
+ # @param address [String] a geocodable address
18
+ # @return [GoogleMapsGeocoder] the Google Maps result for the specified
19
+ # address
20
+ # @example
21
+ # chez_barack = GoogleMapsGeocoder.new '1600 Pennsylvania DC'
22
+ def initialize(address)
23
+ @json = address.is_a?(String) ? google_maps_response(address) : address
24
+ status = @json && @json['status']
25
+ raise RuntimeError if status == 'OVER_QUERY_LIMIT'
26
+ raise GeocodingError, @json if @json.blank? || status != 'OK'
27
+
28
+ set_attributes_from_json
29
+ Logger.new($stderr).info('GoogleMapsGeocoder') do
30
+ "Geocoded \"#{address}\" => \"#{formatted_address}\""
31
+ end
32
+ end
33
+ ```
34
+
35
+ Signed-off-by: YOUR NAME <YOUR.EMAIL@EXAMPLE.COM>
@@ -2,16 +2,16 @@
2
2
  name: test
3
3
  on:
4
4
  push:
5
- branches: [ master ]
6
- pull_request:
7
- branches: [ master ]
5
+ paths-ignore:
6
+ - '**.md'
7
+ - '**.txt'
8
8
  jobs:
9
9
  test:
10
10
  environment: staging
11
11
  runs-on: ubuntu-latest
12
12
  strategy:
13
13
  matrix:
14
- ruby-version: [2.4, 2.5, 2.6, 2.7, 3.0]
14
+ ruby-version: [2.5, 2.6, 2.7, 3.0]
15
15
  steps:
16
16
  - name: Checkout code
17
17
  uses: actions/checkout@v2
@@ -0,0 +1,10 @@
1
+ # The Ruby Community Conduct Guideline
2
+
3
+ We have picked the following conduct guideline based on an early proposed draft of the PostgreSQL CoC, for Ruby developers community for safe, productive collaboration. Each Ruby related community (conference etc.) may pick their own Code of Conduct.
4
+
5
+ This document provides community guidelines for a safe, respectful, productive, and collaborative place for any person who is willing to contribute to the Ruby community. It applies to all “collaborative space”, which is defined as community communications channels (such as mailing lists, submitted patches, commit comments, etc.).
6
+
7
+ * Participants will be tolerant of opposing views.
8
+ * Participants must ensure that their language and actions are free of personal attacks and disparaging personal remarks.
9
+ * When interpreting the words and actions of others, participants should always assume good intentions.
10
+ * Behaviour which can be reasonably considered harassment will not be tolerated.
data/README.md CHANGED
@@ -1,9 +1,10 @@
1
1
  # GoogleMapsGeocoder
2
2
 
3
3
  ![Build status](https://github.com/ivanoblomov/google_maps_geocoder/workflows/test/badge.svg)
4
- [![Code Climate](https://codeclimate.com/github/ivanoblomov/google_maps_geocoder.png)](https://codeclimate.com/github/ivanoblomov/google_maps_geocoder)
4
+ [![Code Climate](https://codeclimate.com/github/ivanoblomov/google_maps_geocoder.svg)](https://codeclimate.com/github/ivanoblomov/google_maps_geocoder)
5
5
  [![Coverage Status](https://coveralls.io/repos/github/ivanoblomov/google_maps_geocoder/badge.svg?branch=master)](https://coveralls.io/github/ivanoblomov/google_maps_geocoder?branch=master)
6
6
  [![Inline docs](https://inch-ci.org/github/Ivanoblomov/google_maps_geocoder.svg?branch=master)](https://inch-ci.org/github/Ivanoblomov/google_maps_geocoder)
7
+ [![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/92/badge)](https://bestpractices.coreinfrastructure.org/projects/92)
7
8
  [![Gem Version](https://badge.fury.io/rb/google_maps_geocoder.svg)](https://rubygems.org/gems/google_maps_geocoder)
8
9
 
9
10
  A simple Plain Old Ruby Object wrapper for geocoding with Google Maps.
@@ -93,6 +94,10 @@ For compatibility with [Geocoder](https://github.com/alexreisner/geocoder), the
93
94
  * `GoogleMapsGeocoder#state`
94
95
  * `GoogleMapsGeocoder#state_code`
95
96
 
97
+ ## Documentation
98
+
99
+ Complete RDoc documentation is available at [RubyDoc.info](https://www.rubydoc.info/gems/google_maps_geocoder).
100
+
96
101
  ## [Contributing to GoogleMapsGeocoder](https://github.com/ivanoblomov/google_maps_geocoder/blob/master/.github/CONTRIBUTING.md)
97
102
 
98
103
  ## Cheers!
data/SECURITY.md ADDED
@@ -0,0 +1,16 @@
1
+ # Security Policy
2
+
3
+ ## Supported Versions
4
+
5
+ [Dependabot](https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/about-dependabot-version-updates) automatically [patches known vulnerabilities](https://github.com/ivanoblomov/google_maps_geocoder/pulls?q=is%3Apr+is%3Aclosed+author%3Aapp%2Fdependabot).
6
+
7
+ | Version | Supported |
8
+ | ------- | ------------------ |
9
+ | 0.7.5 | :white_check_mark: |
10
+ | < 0.7.5 | :x: |
11
+
12
+ ## Reporting a Vulnerability
13
+
14
+ 1. To report a security vulnerability, [open an issue](https://github.com/ivanoblomov/google_maps_geocoder/issues/new/choose).
15
+ 2. Updates are made within 48 hours.
16
+ 3. If the vulnerability is accepted, we'll try to patch it within a week.
@@ -0,0 +1,25 @@
1
+ -----BEGIN CERTIFICATE-----
2
+ MIIEQDCCAqigAwIBAgIBATANBgkqhkiG9w0BAQsFADAlMSMwIQYDVQQDDBpyb2Qv
3
+ REM9Zm92ZWFjZW50cmFsL0RDPWNvbTAeFw0yMTExMTUwMzEwMTRaFw0yMjExMTUw
4
+ MzEwMTRaMCUxIzAhBgNVBAMMGnJvZC9EQz1mb3ZlYWNlbnRyYWwvREM9Y29tMIIB
5
+ ojANBgkqhkiG9w0BAQEFAAOCAY8AMIIBigKCAYEAsMm8RdCTuhYTnbH5a8pesLYn
6
+ BD7cLPkeNfPWp8ohGVXL3988lRBYHwI/LRhxKXncmwmjYFWjuyR1m3e+EgmpBO3e
7
+ gCn4G9paWlwvPF+dSBF4pjhPtYBSXMFDfoeUTyHuNCcQOFJUMSAxo1pg9S9KvslC
8
+ Y1fpstOJtVnUjoeT8BRQAqV0WZuzFhgj74oSoHP/ETEd7Uzw/ST/kKgtNGcxoIYu
9
+ FEqAfEsqEpV0d6FbExYmVTR12288MaGGrfc6Y/QC1VC6RhEYG8Sn8a3utqkn7y47
10
+ 0J6SROECo5x9TWU0s3HDco06jYb5sV1cGsDYXFpEczxJ9i1YVX2IDvYrpZsSJLzq
11
+ tfCdJ2jIj4rnMjGMg/kschfDnBKRIt8p7LlDhc0p/m0fYO4JQpWbvCc/F5vmUzpF
12
+ kRbiNr30dkYqDbfvcdQUWBOa5rSyZOIQiW6kfK9ZbLjBGFeP8pwSNME+yfJsZObS
13
+ AIiSqYtcP4mMriBLi+x981z1kpjTGZSWOpZrgAELAgMBAAGjezB5MAkGA1UdEwQC
14
+ MAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQWBBQzajljgeoJIjO/4h4X7ve/jYWVSDAf
15
+ BgNVHREEGDAWgRRyb2RAZm92ZWFjZW50cmFsLmNvbTAfBgNVHRIEGDAWgRRyb2RA
16
+ Zm92ZWFjZW50cmFsLmNvbTANBgkqhkiG9w0BAQsFAAOCAYEAqqybBWM9gIPn8Quj
17
+ R8L0HPEE/1NjNLrlNG1DhJ8MAbYFA7mo4bWp4kjXwVdw+TMQZfrLjXLgmfiTvzxV
18
+ cE10liYjCWQNxectkkYmOsCBlEDfOngNKdl3QJ+Y5+SEsqfKYhZXZypn+SwuXx8F
19
+ LuVPsP7/R6VlrI8WbtPU1oSfM+rmdpUZzDcvmtvy1S+tPfFWalo8tSXPg0gE3Nis
20
+ UZAwHu8x3v5N7lxtjJa+s9ARkH/BO5Uytz1XrUmUWLQqo9ZJtqbZ/iV9HEWhG+xx
21
+ lR8SnXcsohvP/eIY2BTyBay0eOb9BwGHmnAVRiiAfLvCftzHtBEBr6jCKESSYDuc
22
+ bUIRDNLzRjl2KOoNLjKymicWrBdz1roBpy8cFIDzi6ebE45ve/xoZbsGJ3zaLo9T
23
+ G5iWAeYsmSjJxz7iOZOsx+vPCwMy7j6nWF2CDbaxioGR/hIqNbVBveCCRyjyunD3
24
+ kvv576EuULmQcLpOKwB3RlxAG7j8JJl4ueqjF+rz7x1lBqEU
25
+ -----END CERTIFICATE-----
@@ -1,4 +1,3 @@
1
- # rubocop:disable Gemspec/RequiredRubyVersion
2
1
  # frozen_string_literal: true
3
2
 
4
3
  require File.expand_path('lib/google_maps_geocoder/version', __dir__)
@@ -12,12 +11,14 @@ Gem::Specification.new do |s|
12
11
  'Ruby object.'
13
12
  s.homepage = 'https://github.com/ivanoblomov/google_maps_geocoder'
14
13
  s.authors = ['Roderick Monje']
14
+ s.cert_chain = ['certs/ivanoblomov.pem']
15
15
  s.email = 'rod@foveacentral.com'
16
+ s.signing_key = File.expand_path('~/.ssh/gem-private_key.pem') if $PROGRAM_NAME =~ /gem\z/
16
17
 
17
18
  s.add_development_dependency 'codeclimate-test-reporter', '~> 1'
18
19
  s.add_development_dependency 'rake', '>= 12.3.3', '~> 13.0'
19
20
  s.add_development_dependency 'rspec', '~> 3'
20
- s.add_development_dependency 'rubocop', '< 1.18'
21
+ s.add_development_dependency 'rubocop', '< 1.23'
21
22
  s.add_development_dependency 'rubocop-rake', '~> 0'
22
23
  s.add_development_dependency 'rubocop-rspec', '~> 2'
23
24
  s.add_development_dependency 'simplecov', '~> 0.18'
@@ -31,5 +32,5 @@ Gem::Specification.new do |s|
31
32
  s.executables = `git ls-files -- bin/*`.split("\n")
32
33
  .map { |f| File.basename f }
33
34
  s.require_paths = ['lib']
35
+ s.required_ruby_version = '>= 2.5'
34
36
  end
35
- # rubocop:enable Gemspec/RequiredRubyVersion
@@ -1,3 +1,5 @@
1
+ # Copyright the GoogleMapsGeocoder contributors.
2
+ # SPDX-License-Identifier: MIT
1
3
  # frozen_string_literal: true
2
4
 
3
5
  require 'active_support'
@@ -2,5 +2,5 @@
2
2
 
3
3
  # A simple PORO wrapper for geocoding with Google Maps.
4
4
  class GoogleMapsGeocoder
5
- VERSION = '0.7.4' unless defined?(GoogleMapsGeocoder::VERSION)
5
+ VERSION = '0.7.5' unless defined?(GoogleMapsGeocoder::VERSION)
6
6
  end
@@ -1,3 +1,5 @@
1
+ # Copyright the GoogleMapsGeocoder contributors.
2
+ # SPDX-License-Identifier: MIT
1
3
  # frozen_string_literal: true
2
4
 
3
5
  require "#{File.dirname(__FILE__)}/../spec_helper"
data.tar.gz.sig ADDED
Binary file
metadata CHANGED
@@ -1,14 +1,40 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google_maps_geocoder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.4
4
+ version: 0.7.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roderick Monje
8
8
  autorequire:
9
9
  bindir: bin
10
- cert_chain: []
11
- date: 2021-06-29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0BAQsFAAOCAYEAqqybBWM9gIPn8Quj
28
+ R8L0HPEE/1NjNLrlNG1DhJ8MAbYFA7mo4bWp4kjXwVdw+TMQZfrLjXLgmfiTvzxV
29
+ cE10liYjCWQNxectkkYmOsCBlEDfOngNKdl3QJ+Y5+SEsqfKYhZXZypn+SwuXx8F
30
+ LuVPsP7/R6VlrI8WbtPU1oSfM+rmdpUZzDcvmtvy1S+tPfFWalo8tSXPg0gE3Nis
31
+ UZAwHu8x3v5N7lxtjJa+s9ARkH/BO5Uytz1XrUmUWLQqo9ZJtqbZ/iV9HEWhG+xx
32
+ lR8SnXcsohvP/eIY2BTyBay0eOb9BwGHmnAVRiiAfLvCftzHtBEBr6jCKESSYDuc
33
+ bUIRDNLzRjl2KOoNLjKymicWrBdz1roBpy8cFIDzi6ebE45ve/xoZbsGJ3zaLo9T
34
+ G5iWAeYsmSjJxz7iOZOsx+vPCwMy7j6nWF2CDbaxioGR/hIqNbVBveCCRyjyunD3
35
+ kvv576EuULmQcLpOKwB3RlxAG7j8JJl4ueqjF+rz7x1lBqEU
36
+ -----END CERTIFICATE-----
37
+ date: 2021-11-15 00:00:00.000000000 Z
12
38
  dependencies:
13
39
  - !ruby/object:Gem::Dependency
14
40
  name: codeclimate-test-reporter
@@ -64,14 +90,14 @@ dependencies:
64
90
  requirements:
65
91
  - - "<"
66
92
  - !ruby/object:Gem::Version
67
- version: '1.18'
93
+ version: '1.23'
68
94
  type: :development
69
95
  prerelease: false
70
96
  version_requirements: !ruby/object:Gem::Requirement
71
97
  requirements:
72
98
  - - "<"
73
99
  - !ruby/object:Gem::Version
74
- version: '1.18'
100
+ version: '1.23'
75
101
  - !ruby/object:Gem::Dependency
76
102
  name: rubocop-rake
77
103
  requirement: !ruby/object:Gem::Requirement
@@ -186,10 +212,13 @@ files:
186
212
  - ".github/workflows/test.yml"
187
213
  - ".gitignore"
188
214
  - ".simplecov"
215
+ - CODE_OF_CONDUCT.md
189
216
  - Gemfile
190
217
  - LICENSE.txt
191
218
  - README.md
192
219
  - Rakefile
220
+ - SECURITY.md
221
+ - certs/ivanoblomov.pem
193
222
  - google_maps_geocoder.gemspec
194
223
  - lib/google_maps_geocoder/google_maps_geocoder.rb
195
224
  - lib/google_maps_geocoder/version.rb
@@ -207,7 +236,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
207
236
  requirements:
208
237
  - - ">="
209
238
  - !ruby/object:Gem::Version
210
- version: '0'
239
+ version: '2.5'
211
240
  required_rubygems_version: !ruby/object:Gem::Requirement
212
241
  requirements:
213
242
  - - ">="
metadata.gz.sig ADDED
Binary file