google_maps_geocoder 0.7.3 → 0.7.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/CONTRIBUTING.md +1 -1
- data/.github/ISSUE_TEMPLATE/bug-report.md +1 -1
- data/.github/ISSUE_TEMPLATE/feature_request.md +1 -0
- data/.github/ISSUE_TEMPLATE/task.md +21 -0
- data/.github/dependabot.yml +11 -0
- data/.github/workflows/publish.yml +24 -0
- data/.github/workflows/test.yml +33 -0
- data/.simplecov +15 -0
- data/Gemfile +2 -0
- data/README.md +5 -2
- data/Rakefile +2 -0
- data/google_maps_geocoder.gemspec +13 -6
- data/lib/google_maps_geocoder/google_maps_geocoder.rb +6 -4
- data/lib/google_maps_geocoder/version.rb +3 -1
- data/spec/lib/google_maps_geocoder_spec.rb +5 -1
- data/spec/spec_helper.rb +2 -6
- metadata +81 -30
- data/.github/ISSUE_TEMPLATE.md +0 -17
- data/.travis.yml +0 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ebf92567ff1dc2d2b77b02b0f5355853560eff14e4fa261db1370d5464f76218
|
4
|
+
data.tar.gz: 81d9e015f6bef01e1419a2b1d0ed309de07dacd6dd93601ac5caf7cc16f12b35
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a09f215cdba56cc193efef990cfc4036e7fcf5cd808840e07f9b707e82aa11a7676feb8bbce581245d2bcb537977860adc9b649373e38a23061b2103145fe5fc
|
7
|
+
data.tar.gz: add1deabe68a6233d1c67ef27955bdea103a7a07b2c06d9537550477bf49711472b70c3014e1579352b1e66f482c7ccb3b2b0624c6faeeb2d87e463e5a574aa7
|
data/.github/CONTRIBUTING.md
CHANGED
@@ -13,7 +13,7 @@
|
|
13
13
|
|
14
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!*
|
15
15
|
|
16
|
-
2. **Confirm your last build passes** on
|
16
|
+
2. **Confirm your last build passes** on your GitHub branch or PR.
|
17
17
|
|
18
18
|
3. **Update the inline documentation.** Format it with [YARD](http://www.rubydoc.info/gems/yard/file/docs/GettingStarted.md). For example, see [`GoogleMapsGeocoder.new`](https://github.com/ivanoblomov/google_maps_geocoder/blob/github-templates/lib/google_maps_geocoder/google_maps_geocoder.rb#L43-L50).
|
19
19
|
|
@@ -0,0 +1,21 @@
|
|
1
|
+
---
|
2
|
+
name: Task
|
3
|
+
about: Define a task to complete
|
4
|
+
title: ''
|
5
|
+
labels: 'task'
|
6
|
+
assignees: ''
|
7
|
+
|
8
|
+
---
|
9
|
+
# Task
|
10
|
+
|
11
|
+
## Goal
|
12
|
+
|
13
|
+
Explain the goal of this task.
|
14
|
+
|
15
|
+
## Description
|
16
|
+
|
17
|
+
Provide whatever background the assignee would need to complete the task. This can include screenshots or links to other issues or pull requests.
|
18
|
+
|
19
|
+
## Success Criteria
|
20
|
+
|
21
|
+
How can stakeholders tell whether the task was completed successfully or not?
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# To get started with Dependabot version updates, you'll need to specify which
|
2
|
+
# package ecosystems to update and where the package manifests are located.
|
3
|
+
# Please see the documentation for all configuration options:
|
4
|
+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
|
5
|
+
|
6
|
+
version: 2
|
7
|
+
updates:
|
8
|
+
- package-ecosystem: "bundler" # See documentation for possible values
|
9
|
+
directory: "/" # Location of package manifests
|
10
|
+
schedule:
|
11
|
+
interval: "daily"
|
@@ -0,0 +1,24 @@
|
|
1
|
+
name: publish
|
2
|
+
on:
|
3
|
+
workflow_dispatch:
|
4
|
+
jobs:
|
5
|
+
build:
|
6
|
+
name: Build + Publish
|
7
|
+
runs-on: ubuntu-latest
|
8
|
+
steps:
|
9
|
+
- uses: actions/checkout@v2
|
10
|
+
- name: Set up Ruby 2.7
|
11
|
+
uses: ruby/setup-ruby@v1
|
12
|
+
with:
|
13
|
+
ruby-version: 2.7
|
14
|
+
- run: bundle install
|
15
|
+
- name: Publish to RubyGems
|
16
|
+
env:
|
17
|
+
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_API_KEY}}"
|
18
|
+
run: |
|
19
|
+
mkdir -p $HOME/.gem
|
20
|
+
touch $HOME/.gem/credentials
|
21
|
+
chmod 0600 $HOME/.gem/credentials
|
22
|
+
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
23
|
+
gem build *.gemspec
|
24
|
+
gem push *.gem
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# Download the latest Ruby patch versions, install dependencies, and run tests.
|
2
|
+
name: test
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [ master ]
|
6
|
+
pull_request:
|
7
|
+
branches: [ master ]
|
8
|
+
jobs:
|
9
|
+
test:
|
10
|
+
environment: staging
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
strategy:
|
13
|
+
matrix:
|
14
|
+
ruby-version: [2.4, 2.5, 2.6, 2.7, 3.0]
|
15
|
+
steps:
|
16
|
+
- name: Checkout code
|
17
|
+
uses: actions/checkout@v2
|
18
|
+
- name: Set up Ruby ${{ matrix.ruby-version }}
|
19
|
+
uses: ruby/setup-ruby@v1
|
20
|
+
with:
|
21
|
+
ruby-version: ${{ matrix.ruby-version }}
|
22
|
+
- name: Install dependencies
|
23
|
+
run: bundle install
|
24
|
+
- name: Run tests
|
25
|
+
env:
|
26
|
+
GOOGLE_MAPS_API_KEY: ${{ secrets.GOOGLE_MAPS_API_KEY }}
|
27
|
+
run: bundle exec rake
|
28
|
+
- name: Coveralls
|
29
|
+
uses: coverallsapp/github-action@master
|
30
|
+
with:
|
31
|
+
github-token: ${{ secrets.GITHUB_TOKEN }}
|
32
|
+
- name: Rubocop
|
33
|
+
run: bundle ex rubocop
|
data/.simplecov
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'simplecov-lcov'
|
4
|
+
|
5
|
+
SimpleCov::Formatter::LcovFormatter.config do |c|
|
6
|
+
c.report_with_single_file = true
|
7
|
+
c.single_report_path = 'coverage/lcov.info'
|
8
|
+
end
|
9
|
+
SimpleCov.formatters = SimpleCov::Formatter::MultiFormatter.new(
|
10
|
+
[
|
11
|
+
SimpleCov::Formatter::HTMLFormatter,
|
12
|
+
SimpleCov::Formatter::LcovFormatter
|
13
|
+
]
|
14
|
+
)
|
15
|
+
SimpleCov.start
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,11 +1,10 @@
|
|
1
1
|
# GoogleMapsGeocoder
|
2
2
|
|
3
|
-
|
3
|
+
![Build status](https://github.com/ivanoblomov/google_maps_geocoder/workflows/test/badge.svg)
|
4
4
|
[![Code Climate](https://codeclimate.com/github/ivanoblomov/google_maps_geocoder.png)](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
7
|
[![Gem Version](https://badge.fury.io/rb/google_maps_geocoder.svg)](https://rubygems.org/gems/google_maps_geocoder)
|
8
|
-
[![security](https://hakiri.io/github/ivanoblomov/google_maps_geocoder/master.svg)](https://hakiri.io/github/ivanoblomov/google_maps_geocoder/master)
|
9
8
|
|
10
9
|
A simple Plain Old Ruby Object wrapper for geocoding with Google Maps.
|
11
10
|
|
@@ -96,6 +95,10 @@ For compatibility with [Geocoder](https://github.com/alexreisner/geocoder), the
|
|
96
95
|
|
97
96
|
## [Contributing to GoogleMapsGeocoder](https://github.com/ivanoblomov/google_maps_geocoder/blob/master/.github/CONTRIBUTING.md)
|
98
97
|
|
98
|
+
## Cheers!
|
99
|
+
|
100
|
+
<a href="https://www.buymeacoffee.com/oblomov" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-green.png" alt="Buy Me A Coffee" height="41" width="174" ></a>
|
101
|
+
|
99
102
|
## Copyright
|
100
103
|
|
101
104
|
Copyright © 2011-2021 Roderick Monje. See [LICENSE.txt](https://github.com/ivanoblomov/google_maps_geocoder/blob/master/LICENSE.txt) for further details.
|
data/Rakefile
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
# rubocop:disable Gemspec/RequiredRubyVersion
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
1
4
|
require File.expand_path('lib/google_maps_geocoder/version', __dir__)
|
2
5
|
Gem::Specification.new do |s|
|
3
6
|
s.name = 'google_maps_geocoder'
|
@@ -11,14 +14,17 @@ Gem::Specification.new do |s|
|
|
11
14
|
s.authors = ['Roderick Monje']
|
12
15
|
s.email = 'rod@foveacentral.com'
|
13
16
|
|
14
|
-
s.add_development_dependency 'codeclimate-test-reporter', '~>
|
15
|
-
s.add_development_dependency '
|
16
|
-
s.add_development_dependency 'rake', '~> 12.3', '>= 12.3.3'
|
17
|
+
s.add_development_dependency 'codeclimate-test-reporter', '~> 1'
|
18
|
+
s.add_development_dependency 'rake', '>= 12.3.3', '~> 13.0'
|
17
19
|
s.add_development_dependency 'rspec', '~> 3'
|
18
|
-
s.add_development_dependency 'rubocop', '
|
20
|
+
s.add_development_dependency 'rubocop', '< 1.18'
|
21
|
+
s.add_development_dependency 'rubocop-rake', '~> 0'
|
22
|
+
s.add_development_dependency 'rubocop-rspec', '~> 2'
|
23
|
+
s.add_development_dependency 'simplecov', '~> 0.18'
|
24
|
+
s.add_development_dependency 'simplecov-lcov', '~> 0.8'
|
19
25
|
|
20
|
-
s.add_runtime_dependency 'activesupport', '
|
21
|
-
s.add_runtime_dependency 'rack', '
|
26
|
+
s.add_runtime_dependency 'activesupport', '>= 4.1.11', '< 7.0'
|
27
|
+
s.add_runtime_dependency 'rack', '>= 2.1.4', '< 2.3.0'
|
22
28
|
|
23
29
|
s.files = `git ls-files`.split "\n"
|
24
30
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split "\n"
|
@@ -26,3 +32,4 @@ Gem::Specification.new do |s|
|
|
26
32
|
.map { |f| File.basename f }
|
27
33
|
s.require_paths = ['lib']
|
28
34
|
end
|
35
|
+
# rubocop:enable Gemspec/RequiredRubyVersion
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'active_support'
|
2
4
|
require 'logger'
|
3
5
|
require 'net/http'
|
@@ -15,7 +17,7 @@ class GoogleMapsGeocoder
|
|
15
17
|
city country_long_name country_short_name county lat lng postal_code
|
16
18
|
state_long_name state_short_name
|
17
19
|
].freeze
|
18
|
-
GOOGLE_MAPS_API = 'https://maps.googleapis.com/maps/api/geocode/json'
|
20
|
+
GOOGLE_MAPS_API = 'https://maps.googleapis.com/maps/api/geocode/json'
|
19
21
|
|
20
22
|
ALL_ADDRESS_SEGMENTS = (
|
21
23
|
GOOGLE_ADDRESS_SEGMENTS + %i[formatted_address formatted_street_address]
|
@@ -70,7 +72,7 @@ class GoogleMapsGeocoder
|
|
70
72
|
raise GeocodingError, @json if @json.blank? || status != 'OK'
|
71
73
|
|
72
74
|
set_attributes_from_json
|
73
|
-
Logger.new(
|
75
|
+
Logger.new($stderr).info('GoogleMapsGeocoder') do
|
74
76
|
"Geocoded \"#{address}\" => \"#{formatted_address}\""
|
75
77
|
end
|
76
78
|
end
|
@@ -119,7 +121,7 @@ class GoogleMapsGeocoder
|
|
119
121
|
def initialize(json = {})
|
120
122
|
@json = json
|
121
123
|
if (message = @json['error_message'])
|
122
|
-
Logger.new(
|
124
|
+
Logger.new($stderr).error(message)
|
123
125
|
end
|
124
126
|
super @json['status']
|
125
127
|
end
|
@@ -147,7 +149,7 @@ class GoogleMapsGeocoder
|
|
147
149
|
|
148
150
|
def parse_address_component_type(type, name = 'long_name')
|
149
151
|
address_component = @json['results'][0]['address_components'].detect do |ac|
|
150
|
-
ac['types']
|
152
|
+
ac['types']&.include?(type)
|
151
153
|
end
|
152
154
|
address_component && address_component[name]
|
153
155
|
end
|
@@ -1,7 +1,10 @@
|
|
1
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "#{File.dirname(__FILE__)}/../spec_helper"
|
2
4
|
# rubocop:disable Metrics/BlockLength
|
3
5
|
describe GoogleMapsGeocoder do
|
4
6
|
before(:all) do
|
7
|
+
# rubocop:disable Lint/RedundantCopDisableDirective, Style/RedundantBegin
|
5
8
|
begin
|
6
9
|
@exact_match = GoogleMapsGeocoder.new('White House')
|
7
10
|
rescue SocketError
|
@@ -9,6 +12,7 @@ describe GoogleMapsGeocoder do
|
|
9
12
|
rescue RuntimeError
|
10
13
|
@query_limit = true
|
11
14
|
end
|
15
|
+
# rubocop:enable Lint/RedundantCopDisableDirective, Style/RedundantBegin
|
12
16
|
end
|
13
17
|
|
14
18
|
before(:each) do
|
data/spec/spec_helper.rb
CHANGED
@@ -1,10 +1,6 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'simplecov'
|
2
|
-
SimpleCov.start
|
3
|
-
require 'coveralls'
|
4
|
-
Coveralls.wear!
|
5
|
-
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new(
|
6
|
-
Coveralls::SimpleCov::Formatter
|
7
|
-
)
|
8
4
|
require 'rubygems'
|
9
5
|
require 'bundler'
|
10
6
|
begin
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google_maps_geocoder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roderick Monje
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-06-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: codeclimate-test-reporter
|
@@ -16,110 +16,158 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '1'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 12.3.3
|
31
34
|
- - "~>"
|
32
35
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
36
|
+
version: '13.0'
|
34
37
|
type: :development
|
35
38
|
prerelease: false
|
36
39
|
version_requirements: !ruby/object:Gem::Requirement
|
37
40
|
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 12.3.3
|
38
44
|
- - "~>"
|
39
45
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
46
|
+
version: '13.0'
|
41
47
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
48
|
+
name: rspec
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|
44
50
|
requirements:
|
45
51
|
- - "~>"
|
46
52
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
48
|
-
|
53
|
+
version: '3'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - "~>"
|
49
59
|
- !ruby/object:Gem::Version
|
50
|
-
version:
|
60
|
+
version: '3'
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: rubocop
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - "<"
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '1.18'
|
51
68
|
type: :development
|
52
69
|
prerelease: false
|
53
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - "<"
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '1.18'
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: rubocop-rake
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
54
78
|
requirements:
|
55
79
|
- - "~>"
|
56
80
|
- !ruby/object:Gem::Version
|
57
|
-
version: '
|
58
|
-
|
81
|
+
version: '0'
|
82
|
+
type: :development
|
83
|
+
prerelease: false
|
84
|
+
version_requirements: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - "~>"
|
59
87
|
- !ruby/object:Gem::Version
|
60
|
-
version:
|
88
|
+
version: '0'
|
61
89
|
- !ruby/object:Gem::Dependency
|
62
|
-
name: rspec
|
90
|
+
name: rubocop-rspec
|
63
91
|
requirement: !ruby/object:Gem::Requirement
|
64
92
|
requirements:
|
65
93
|
- - "~>"
|
66
94
|
- !ruby/object:Gem::Version
|
67
|
-
version: '
|
95
|
+
version: '2'
|
68
96
|
type: :development
|
69
97
|
prerelease: false
|
70
98
|
version_requirements: !ruby/object:Gem::Requirement
|
71
99
|
requirements:
|
72
100
|
- - "~>"
|
73
101
|
- !ruby/object:Gem::Version
|
74
|
-
version: '
|
102
|
+
version: '2'
|
75
103
|
- !ruby/object:Gem::Dependency
|
76
|
-
name:
|
104
|
+
name: simplecov
|
77
105
|
requirement: !ruby/object:Gem::Requirement
|
78
106
|
requirements:
|
79
107
|
- - "~>"
|
80
108
|
- !ruby/object:Gem::Version
|
81
|
-
version: 0.
|
109
|
+
version: '0.18'
|
82
110
|
type: :development
|
83
111
|
prerelease: false
|
84
112
|
version_requirements: !ruby/object:Gem::Requirement
|
85
113
|
requirements:
|
86
114
|
- - "~>"
|
87
115
|
- !ruby/object:Gem::Version
|
88
|
-
version: 0.
|
116
|
+
version: '0.18'
|
89
117
|
- !ruby/object:Gem::Dependency
|
90
|
-
name:
|
118
|
+
name: simplecov-lcov
|
91
119
|
requirement: !ruby/object:Gem::Requirement
|
92
120
|
requirements:
|
93
121
|
- - "~>"
|
94
122
|
- !ruby/object:Gem::Version
|
95
|
-
version: '
|
123
|
+
version: '0.8'
|
124
|
+
type: :development
|
125
|
+
prerelease: false
|
126
|
+
version_requirements: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - "~>"
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '0.8'
|
131
|
+
- !ruby/object:Gem::Dependency
|
132
|
+
name: activesupport
|
133
|
+
requirement: !ruby/object:Gem::Requirement
|
134
|
+
requirements:
|
96
135
|
- - ">="
|
97
136
|
- !ruby/object:Gem::Version
|
98
137
|
version: 4.1.11
|
138
|
+
- - "<"
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
version: '7.0'
|
99
141
|
type: :runtime
|
100
142
|
prerelease: false
|
101
143
|
version_requirements: !ruby/object:Gem::Requirement
|
102
144
|
requirements:
|
103
|
-
- - "~>"
|
104
|
-
- !ruby/object:Gem::Version
|
105
|
-
version: '4.1'
|
106
145
|
- - ">="
|
107
146
|
- !ruby/object:Gem::Version
|
108
147
|
version: 4.1.11
|
148
|
+
- - "<"
|
149
|
+
- !ruby/object:Gem::Version
|
150
|
+
version: '7.0'
|
109
151
|
- !ruby/object:Gem::Dependency
|
110
152
|
name: rack
|
111
153
|
requirement: !ruby/object:Gem::Requirement
|
112
154
|
requirements:
|
113
|
-
- - "
|
155
|
+
- - ">="
|
114
156
|
- !ruby/object:Gem::Version
|
115
157
|
version: 2.1.4
|
158
|
+
- - "<"
|
159
|
+
- !ruby/object:Gem::Version
|
160
|
+
version: 2.3.0
|
116
161
|
type: :runtime
|
117
162
|
prerelease: false
|
118
163
|
version_requirements: !ruby/object:Gem::Requirement
|
119
164
|
requirements:
|
120
|
-
- - "
|
165
|
+
- - ">="
|
121
166
|
- !ruby/object:Gem::Version
|
122
167
|
version: 2.1.4
|
168
|
+
- - "<"
|
169
|
+
- !ruby/object:Gem::Version
|
170
|
+
version: 2.3.0
|
123
171
|
description: Geocode a location without worrying about parsing Google Maps' response.
|
124
172
|
GoogleMapsGeocoder wraps it in a plain-old Ruby object.
|
125
173
|
email: rod@foveacentral.com
|
@@ -129,12 +177,15 @@ extra_rdoc_files: []
|
|
129
177
|
files:
|
130
178
|
- ".document"
|
131
179
|
- ".github/CONTRIBUTING.md"
|
132
|
-
- ".github/ISSUE_TEMPLATE.md"
|
133
180
|
- ".github/ISSUE_TEMPLATE/bug-report.md"
|
134
181
|
- ".github/ISSUE_TEMPLATE/feature_request.md"
|
182
|
+
- ".github/ISSUE_TEMPLATE/task.md"
|
135
183
|
- ".github/PULL_REQUEST_TEMPLATE.md"
|
184
|
+
- ".github/dependabot.yml"
|
185
|
+
- ".github/workflows/publish.yml"
|
186
|
+
- ".github/workflows/test.yml"
|
136
187
|
- ".gitignore"
|
137
|
-
- ".
|
188
|
+
- ".simplecov"
|
138
189
|
- Gemfile
|
139
190
|
- LICENSE.txt
|
140
191
|
- README.md
|
@@ -163,7 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
163
214
|
- !ruby/object:Gem::Version
|
164
215
|
version: '0'
|
165
216
|
requirements: []
|
166
|
-
rubygems_version: 3.1.
|
217
|
+
rubygems_version: 3.1.4
|
167
218
|
signing_key:
|
168
219
|
specification_version: 4
|
169
220
|
summary: A simple PORO wrapper for geocoding with Google Maps.
|
data/.github/ISSUE_TEMPLATE.md
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
# Description
|
2
|
-
|
3
|
-
Provide as much background as you need to get the implementer up to speed on the problem to be solved. This can also include screenshots and links to other issues or pull requests.
|
4
|
-
|
5
|
-
# Steps to Reproduce
|
6
|
-
|
7
|
-
Don't forget to point out the difference between what *should* happen and what *does* happen. Here's an example:
|
8
|
-
|
9
|
-
1. Try geocoding "1600 Pennsylvania Ave":
|
10
|
-
```ruby
|
11
|
-
white_house = GoogleMapsGeocoder.new('1600 Pennsylvania Ave')
|
12
|
-
```
|
13
|
-
2. The formatted address doesn't match the White House:
|
14
|
-
```ruby
|
15
|
-
white_house.formatted_address
|
16
|
-
=> "1600 Pennsylvania Ave, Charleston, WV 25302, USA"
|
17
|
-
```
|