geokit_here_geocoder 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +25 -0
- data/.rspec +2 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +48 -0
- data/Rakefile +7 -0
- data/circle.yml +9 -0
- data/geokit_here_geocoder.gemspec +28 -0
- data/lib/geokit_here_geocoder.rb +70 -0
- data/spec/cassettes/fake_location.yml +48 -0
- data/spec/cassettes/permission_denied.yml +47 -0
- data/spec/cassettes/sunnyvale_location.yml +54 -0
- data/spec/geokit_here_geocoder_spec.rb +73 -0
- data/spec/spec_helper.rb +14 -0
- metadata +147 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: e234f09eed7dc3c9fff9ce26fb6cf4e13aa3ebbb
|
4
|
+
data.tar.gz: 0935d68f64074385cda3255a740df82fefde59b4
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 18088cbc0785f4cc197a00b750fe7c0412b1d1848a012ca343423cfdacc095ad6f0f335dfd0a592f5df603094679ac1b4a451d2b63866980d0ae9a50b1de5e45
|
7
|
+
data.tar.gz: 7a0e8727218e51d09e433f0c57e552e0bb5da7c8eb824a701a5256ae3629b3d3bdce0a7b3aeed7e451884f6457f450ab6a134b59f8cbd890eb6cf3986e3b82e5
|
data/.gitignore
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
.bundle
|
4
|
+
.config
|
5
|
+
.yardoc
|
6
|
+
Gemfile.lock
|
7
|
+
InstalledFiles
|
8
|
+
_yardoc
|
9
|
+
coverage
|
10
|
+
doc/
|
11
|
+
lib/bundler/man
|
12
|
+
pkg
|
13
|
+
rdoc
|
14
|
+
spec/reports
|
15
|
+
test/tmp
|
16
|
+
test/version_tmp
|
17
|
+
tmp
|
18
|
+
*.bundle
|
19
|
+
*.so
|
20
|
+
*.o
|
21
|
+
*.a
|
22
|
+
mkmf.log
|
23
|
+
.env
|
24
|
+
.ruby-version
|
25
|
+
.ruby-gemset
|
data/.rspec
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2016 EasyPost
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
[![Gem Version](https://badge.fury.io/rb/geokit_here_geocoder.svg)](https://badge.fury.io/rb/geokit_here_geocoder)
|
2
|
+
|
3
|
+
# HereGeocoder
|
4
|
+
|
5
|
+
Custom [geokit](https://github.com/geokit/geokit) geocoder for [Here.com](https://company.here.com/here/) service.
|
6
|
+
|
7
|
+
[API Documentation](https://developer.here.com/rest-apis/documentation/geocoder/topics/quick-start.html)
|
8
|
+
|
9
|
+
|
10
|
+
## Installation
|
11
|
+
|
12
|
+
Add this line to your application's Gemfile:
|
13
|
+
|
14
|
+
gem 'geokit_here_geocoder'
|
15
|
+
|
16
|
+
And then execute:
|
17
|
+
|
18
|
+
$ bundle
|
19
|
+
|
20
|
+
Or install it yourself as:
|
21
|
+
|
22
|
+
$ gem install geokit_here_geocoder
|
23
|
+
|
24
|
+
## Configuration
|
25
|
+
|
26
|
+
|
27
|
+
```ruby
|
28
|
+
# This is your Here application key for the Here Geocoder.
|
29
|
+
# See https://developer.here.com/develop/rest-apis
|
30
|
+
Geokit::Geocoders::HereGeocoder.app_id = 'REPLACE_WITH_YOUR_KEY'
|
31
|
+
Geokit::Geocoders::HereGeocoder.app_code = 'REPLACE_WITH_YOUR_CODE'
|
32
|
+
```
|
33
|
+
|
34
|
+
|
35
|
+
## Usage
|
36
|
+
|
37
|
+
```ruby
|
38
|
+
# use :here to specify this geocoder in your list of geocoders.
|
39
|
+
Geokit::Geocoders::HereGeocoder.geocode("Sunnyvale, CA")
|
40
|
+
```
|
41
|
+
|
42
|
+
## Contributing
|
43
|
+
|
44
|
+
1. Fork it ( https://github.com/[my-github-username]/geokit_here_geocoder/fork )
|
45
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
46
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
47
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
48
|
+
5. Create a new Pull Request
|
data/Rakefile
ADDED
data/circle.yml
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = "geokit_here_geocoder"
|
7
|
+
spec.version = "0.0.3"
|
8
|
+
spec.authors = ["Serhiy Rozum"]
|
9
|
+
spec.email = ["serhiy@easypost.com"]
|
10
|
+
spec.summary = %q{Geokit custom geocoder for Here.com service}
|
11
|
+
spec.description = %q{Geokit custom geocoder for Here.com service}
|
12
|
+
spec.homepage = "https://github.com/easypost/geokit_here_geocoder.git"
|
13
|
+
spec.license = "MIT"
|
14
|
+
|
15
|
+
spec.files = `git ls-files -z`.split("\x0")
|
16
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
17
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
|
+
spec.require_paths = ["lib"]
|
19
|
+
|
20
|
+
spec.add_development_dependency "bundler", "~> 1.6"
|
21
|
+
spec.add_development_dependency "rake"
|
22
|
+
spec.add_development_dependency "rspec"
|
23
|
+
spec.add_development_dependency "vcr"
|
24
|
+
spec.add_development_dependency "webmock"
|
25
|
+
|
26
|
+
spec.add_dependency "geokit"
|
27
|
+
|
28
|
+
end
|
@@ -0,0 +1,70 @@
|
|
1
|
+
require "uri"
|
2
|
+
require "geokit"
|
3
|
+
|
4
|
+
module Geokit
|
5
|
+
module Geocoders
|
6
|
+
class HereGeocoder < Geocoder
|
7
|
+
|
8
|
+
config :app_id, :app_code
|
9
|
+
|
10
|
+
private
|
11
|
+
|
12
|
+
def self.do_geocode(address, options = {})
|
13
|
+
|
14
|
+
if (app_id.nil? || app_id.empty?) || (app_code.nil? || app_code.empty?)
|
15
|
+
raise(Geokit::Geocoders::GeocodeError, "Here geocoder API requires auth id and code to use their service.")
|
16
|
+
end
|
17
|
+
|
18
|
+
process :xml, submit_url(address)
|
19
|
+
end
|
20
|
+
|
21
|
+
def self.submit_url(address)
|
22
|
+
args = []
|
23
|
+
args << ["app_id", app_id]
|
24
|
+
args << ["app_code", app_code]
|
25
|
+
args << ["additionaldata", "Country2,1"]
|
26
|
+
args << ["language", "en-US"]
|
27
|
+
args << ["gen", "9"]
|
28
|
+
|
29
|
+
address_str = address.is_a?(GeoLoc) ? address.to_geocodeable_s : address
|
30
|
+
|
31
|
+
args << ["searchtext", address_str]
|
32
|
+
|
33
|
+
[api_endpoint, '?', URI.encode_www_form(args)].join('')
|
34
|
+
end
|
35
|
+
|
36
|
+
def self.api_endpoint
|
37
|
+
if ENV['RAKE_ENV'] == 'test'
|
38
|
+
"https://geocoder.cit.api.here.com/6.2/geocode.xml"
|
39
|
+
else
|
40
|
+
"https://geocoder.api.here.com/6.2/geocode.xml"
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
XML_MAPPINGS = {
|
45
|
+
street_number: "Location/Address/HouseNumber",
|
46
|
+
street_name: "Location/Address/Street",
|
47
|
+
province: "Location/Address/County",
|
48
|
+
city: "Location/Address/City",
|
49
|
+
state_name: "Location/Address/AdditionalData[@key='StateName']",
|
50
|
+
state_code: "Location/Address/State",
|
51
|
+
zip: "Location/Address/PostalCode",
|
52
|
+
country_code: "Location/Address/AdditionalData[@key='Country2']",
|
53
|
+
country: "Location/Address/AdditionalData[@key='CountryName']",
|
54
|
+
lat: "Location/DisplayPosition/Latitude",
|
55
|
+
lng: "Location/DisplayPosition/Longitude",
|
56
|
+
}
|
57
|
+
|
58
|
+
def self.parse_xml(xml)
|
59
|
+
results = xml.elements.to_a("//Result")
|
60
|
+
return GeoLoc.new if results.nil? || results.count == 0
|
61
|
+
loc = new_loc
|
62
|
+
# only take the first result
|
63
|
+
set_mappings(loc, results.first, XML_MAPPINGS)
|
64
|
+
loc.success = true
|
65
|
+
loc
|
66
|
+
end
|
67
|
+
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://geocoder.cit.api.here.com/6.2/geocode.xml?additionaldata=Country2,1&app_code=<HERE_APP_CODE>&app_id=<HERE_APP_ID>&gen=9&language=en-US&searchtext=Abcdefg
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Access-Control-Allow-Origin:
|
22
|
+
- "*"
|
23
|
+
Cache-Control:
|
24
|
+
- public, max-age=86400
|
25
|
+
Content-Type:
|
26
|
+
- application/xml;charset=utf-8
|
27
|
+
Date:
|
28
|
+
- Thu, 08 Sep 2016 22:12:01 GMT
|
29
|
+
Server:
|
30
|
+
- nginx-clojure
|
31
|
+
X-Nlp-Irt:
|
32
|
+
- '5502'
|
33
|
+
X-Nlp-Log:
|
34
|
+
- Z2NfYz0tIGdjX2w9LSBnY19tPWFk
|
35
|
+
X-Nlp-Tid:
|
36
|
+
- 2f747c34-bc45-4e2a-a3a2-31b5f5ccce59
|
37
|
+
X-Served-By:
|
38
|
+
- i-0a61c712.us-west-2a
|
39
|
+
Content-Length:
|
40
|
+
- '185'
|
41
|
+
Connection:
|
42
|
+
- keep-alive
|
43
|
+
body:
|
44
|
+
encoding: ASCII-8BIT
|
45
|
+
string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><ns2:Search xmlns:ns2="http://www.navteq.com/lbsp/Search-Search/4"><Response><MetaInfo><Timestamp>2016-09-08T22:12:01.564Z</Timestamp></MetaInfo></Response></ns2:Search>
|
46
|
+
http_version:
|
47
|
+
recorded_at: Thu, 08 Sep 2016 22:12:01 GMT
|
48
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,47 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://geocoder.cit.api.here.com/6.2/geocode.xml?additionaldata=Country2,1&app_code=fake&app_id=test&gen=9&language=en-US&searchtext=Sunnyvale,%20CA
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 401
|
19
|
+
message: Unauthorized
|
20
|
+
headers:
|
21
|
+
Access-Control-Allow-Origin:
|
22
|
+
- "*"
|
23
|
+
Content-Type:
|
24
|
+
- application/xml;charset=utf-8
|
25
|
+
Date:
|
26
|
+
- Thu, 08 Sep 2016 22:12:01 GMT
|
27
|
+
Server:
|
28
|
+
- nginx-clojure
|
29
|
+
X-Nlp-Irt:
|
30
|
+
- '955'
|
31
|
+
X-Nlp-Log:
|
32
|
+
- ''
|
33
|
+
X-Nlp-Tid:
|
34
|
+
- 08b8079e-9848-45d2-ba7c-537c48d49e46
|
35
|
+
X-Served-By:
|
36
|
+
- i-0a61c712.us-west-2a
|
37
|
+
Content-Length:
|
38
|
+
- '170'
|
39
|
+
Connection:
|
40
|
+
- keep-alive
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: <ns2:Error xmlns:ns2="http://www.navteq.com/lbsp/Errors/1" type="PermissionError"
|
44
|
+
subtype="InvalidCredentials"><Details>invalid credentials for test</Details></ns2:Error>
|
45
|
+
http_version:
|
46
|
+
recorded_at: Thu, 08 Sep 2016 22:12:01 GMT
|
47
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,54 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://geocoder.cit.api.here.com/6.2/geocode.xml?additionaldata=Country2,1&app_code=<HERE_APP_CODE>&app_id=<HERE_APP_ID>&gen=9&language=en-US&searchtext=Sunnyvale,%20CA
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Access-Control-Allow-Origin:
|
22
|
+
- "*"
|
23
|
+
Cache-Control:
|
24
|
+
- public, max-age=86400
|
25
|
+
Content-Type:
|
26
|
+
- application/xml;charset=utf-8
|
27
|
+
Date:
|
28
|
+
- Thu, 08 Sep 2016 22:12:01 GMT
|
29
|
+
Server:
|
30
|
+
- nginx-clojure
|
31
|
+
X-Nlp-Irt:
|
32
|
+
- '4414'
|
33
|
+
X-Nlp-Log:
|
34
|
+
- Z2NfYz1VU0EgZ2NfbD1jaXR5IGdjX209YXI=
|
35
|
+
X-Nlp-Tid:
|
36
|
+
- 06eae949-4ffa-4aaa-9bc2-9b018d2f6a63
|
37
|
+
X-Served-By:
|
38
|
+
- i-0a61c712.us-west-2a
|
39
|
+
Content-Length:
|
40
|
+
- '626'
|
41
|
+
Connection:
|
42
|
+
- keep-alive
|
43
|
+
body:
|
44
|
+
encoding: ASCII-8BIT
|
45
|
+
string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><ns2:Search xmlns:ns2="http://www.navteq.com/lbsp/Search-Search/4"><Response><MetaInfo><Timestamp>2016-09-08T22:12:01.403Z</Timestamp></MetaInfo><View
|
46
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns2:SearchResultsViewType"><ViewId>0</ViewId><Result><Relevance>1.0</Relevance><MatchLevel>city</MatchLevel><MatchQuality><State>1.0</State><City>1.0</City></MatchQuality><Location><LocationId>NT_FE3T7HawlbK76SxDmyKlUA</LocationId><LocationType>area</LocationType><DisplayPosition><Latitude>37.37172</Latitude><Longitude>-122.03801</Longitude></DisplayPosition><NavigationPosition><Latitude>37.37172</Latitude><Longitude>-122.03801</Longitude></NavigationPosition><MapView><TopLeft><Latitude>37.45103</Latitude><Longitude>-122.06566</Longitude></TopLeft><BottomRight><Latitude>37.3323</Latitude><Longitude>-121.98241</Longitude></BottomRight></MapView><Address><Label>Sunnyvale,
|
47
|
+
CA, United States</Label><Country>USA</Country><State>CA</State><County>Santa
|
48
|
+
Clara</County><City>Sunnyvale</City><PostalCode>94086</PostalCode><AdditionalData
|
49
|
+
key="Country2">US</AdditionalData><AdditionalData key="CountryName">United
|
50
|
+
States</AdditionalData><AdditionalData key="StateName">California</AdditionalData><AdditionalData
|
51
|
+
key="CountyName">Santa Clara</AdditionalData><AdditionalData key="PostalCodeType">N</AdditionalData></Address></Location></Result></View></Response></ns2:Search>
|
52
|
+
http_version:
|
53
|
+
recorded_at: Thu, 08 Sep 2016 22:12:01 GMT
|
54
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,73 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Geokit::Geocoders::HereGeocoder do
|
4
|
+
|
5
|
+
let(:address) { "Sunnyvale, CA" }
|
6
|
+
|
7
|
+
subject { described_class.geocode(address) }
|
8
|
+
|
9
|
+
context "when missing credentials" do
|
10
|
+
|
11
|
+
it 'raises an error' do
|
12
|
+
expect { subject }.to raise_error Geokit::Geocoders::GeocodeError
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
context "with invalid credentials" do
|
17
|
+
|
18
|
+
before do
|
19
|
+
Geokit::Geocoders::HereGeocoder.app_id = "test"
|
20
|
+
Geokit::Geocoders::HereGeocoder.app_code = "fake"
|
21
|
+
end
|
22
|
+
|
23
|
+
it 'returns invalid location' do
|
24
|
+
VCR.use_cassette("permission_denied") do
|
25
|
+
expect( subject.success? ).to be false
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
context "with correct credentials" do
|
31
|
+
|
32
|
+
before do
|
33
|
+
Geokit::Geocoders::HereGeocoder.app_id = ENV['HERE_APP_ID']
|
34
|
+
Geokit::Geocoders::HereGeocoder.app_code = ENV['HERE_APP_CODE']
|
35
|
+
end
|
36
|
+
|
37
|
+
it 'not raises an error' do
|
38
|
+
VCR.use_cassette("sunnyvale_location") do
|
39
|
+
expect { subject }.not_to raise_error
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
it 'returns valid location' do
|
44
|
+
VCR.use_cassette("sunnyvale_location") do
|
45
|
+
expect( subject.success? ).to be true
|
46
|
+
expect( subject.province ).to eq "Santa Clara"
|
47
|
+
expect( subject.city ).to eq "Sunnyvale"
|
48
|
+
expect( subject.state_name ).to eq "California"
|
49
|
+
expect( subject.state_code ).to eq "CA"
|
50
|
+
expect( subject.state ).to eq "CA"
|
51
|
+
expect( subject.zip ).to eq "94086"
|
52
|
+
expect( subject.country_code ).to eq "US"
|
53
|
+
expect( subject.country ).to eq "United States"
|
54
|
+
expect( subject.lat ).to eq 37.37172
|
55
|
+
expect( subject.lng ).to eq -122.03801
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
context "fake location" do
|
60
|
+
|
61
|
+
let(:address) { "Abcdefg" }
|
62
|
+
|
63
|
+
it 'returns invalid location' do
|
64
|
+
VCR.use_cassette("fake_location") do
|
65
|
+
expect( subject.success? ).to be false
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
end
|
70
|
+
|
71
|
+
end
|
72
|
+
|
73
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
ENV['RAKE_ENV'] = 'test'
|
2
|
+
|
3
|
+
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
|
4
|
+
require 'geokit_here_geocoder'
|
5
|
+
|
6
|
+
require "vcr"
|
7
|
+
|
8
|
+
VCR.configure do |config|
|
9
|
+
config.cassette_library_dir = "spec/cassettes"
|
10
|
+
config.hook_into :webmock
|
11
|
+
|
12
|
+
config.filter_sensitive_data('<HERE_APP_ID>') { ENV['HERE_APP_ID'] }
|
13
|
+
config.filter_sensitive_data('<HERE_APP_CODE>') { ENV['HERE_APP_CODE'] }
|
14
|
+
end
|
metadata
ADDED
@@ -0,0 +1,147 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: geokit_here_geocoder
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.3
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Serhiy Rozum
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-09-09 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.6'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.6'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: vcr
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: webmock
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: geokit
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
description: Geokit custom geocoder for Here.com service
|
98
|
+
email:
|
99
|
+
- serhiy@easypost.com
|
100
|
+
executables: []
|
101
|
+
extensions: []
|
102
|
+
extra_rdoc_files: []
|
103
|
+
files:
|
104
|
+
- ".gitignore"
|
105
|
+
- ".rspec"
|
106
|
+
- Gemfile
|
107
|
+
- LICENSE.txt
|
108
|
+
- README.md
|
109
|
+
- Rakefile
|
110
|
+
- circle.yml
|
111
|
+
- geokit_here_geocoder.gemspec
|
112
|
+
- lib/geokit_here_geocoder.rb
|
113
|
+
- spec/cassettes/fake_location.yml
|
114
|
+
- spec/cassettes/permission_denied.yml
|
115
|
+
- spec/cassettes/sunnyvale_location.yml
|
116
|
+
- spec/geokit_here_geocoder_spec.rb
|
117
|
+
- spec/spec_helper.rb
|
118
|
+
homepage: https://github.com/easypost/geokit_here_geocoder.git
|
119
|
+
licenses:
|
120
|
+
- MIT
|
121
|
+
metadata: {}
|
122
|
+
post_install_message:
|
123
|
+
rdoc_options: []
|
124
|
+
require_paths:
|
125
|
+
- lib
|
126
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - ">="
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '0'
|
131
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
132
|
+
requirements:
|
133
|
+
- - ">="
|
134
|
+
- !ruby/object:Gem::Version
|
135
|
+
version: '0'
|
136
|
+
requirements: []
|
137
|
+
rubyforge_project:
|
138
|
+
rubygems_version: 2.2.2
|
139
|
+
signing_key:
|
140
|
+
specification_version: 4
|
141
|
+
summary: Geokit custom geocoder for Here.com service
|
142
|
+
test_files:
|
143
|
+
- spec/cassettes/fake_location.yml
|
144
|
+
- spec/cassettes/permission_denied.yml
|
145
|
+
- spec/cassettes/sunnyvale_location.yml
|
146
|
+
- spec/geokit_here_geocoder_spec.rb
|
147
|
+
- spec/spec_helper.rb
|