pointpin 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pointpin/configuration.rb +3 -3
- data/lib/pointpin/version.rb +1 -1
- data/pointpin.gemspec +1 -1
- data/spec/cassettes/location_for_ip.yml +2 -2
- data/spec/pointpin/pointpin_spec.rb +2 -2
- data/spec/pointpin/version_spec.rb +1 -1
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 28d1d5052223861e63447115b7e06721ddf45a3a
|
4
|
+
data.tar.gz: b6ae43479465af0382d57cb4360f90babeed9ee0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27b9b4d6e57f2e76e822b5d10f7b0802a011d564afe747e9064a47d889247400cbc3a796583f044ca71bac8b9577174aff32a854bda566c1b784e659664d5364
|
7
|
+
data.tar.gz: 81aea2c278874727887a7a3422fa59732aaf16b74bc6e48d995adf8b879de4a9934cf0b4c0af7cae8707640e957abdbddcb5ef216581fe063f2d6ea009f07992
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module Pointpin
|
2
2
|
module Configuration
|
3
3
|
# Default API endpoint
|
4
|
-
DEFAULT_API_ENDPOINT = '
|
4
|
+
DEFAULT_API_ENDPOINT = 'https://geo.pointp.in'
|
5
5
|
|
6
6
|
# Pointpin API endpoint
|
7
7
|
attr_writer :api_endpoint
|
@@ -11,7 +11,7 @@ module Pointpin
|
|
11
11
|
|
12
12
|
# Default parameters
|
13
13
|
attr_accessor :default_params
|
14
|
-
|
14
|
+
|
15
15
|
def configure
|
16
16
|
yield self
|
17
17
|
end
|
@@ -26,4 +26,4 @@ module Pointpin
|
|
26
26
|
@api_key
|
27
27
|
end
|
28
28
|
end
|
29
|
-
end
|
29
|
+
end
|
data/lib/pointpin/version.rb
CHANGED
data/pointpin.gemspec
CHANGED
@@ -19,7 +19,7 @@ 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_development_dependency "bundler", "~>
|
22
|
+
spec.add_development_dependency "bundler", "~> 2.2"
|
23
23
|
spec.add_development_dependency('rake')
|
24
24
|
spec.add_development_dependency('rspec')
|
25
25
|
spec.add_development_dependency('vcr')
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri:
|
5
|
+
uri: https://geo.pointp.in/this-is-a-valid-api-key/json/55.111.555.555
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -38,6 +38,6 @@ http_interactions:
|
|
38
38
|
City","city_name":"Dublin","postcode":null,"latitude":53.3331,"longitude":-6.2489,"time_zone":"Europe/Dublin"}'
|
39
39
|
http_version: '1.1'
|
40
40
|
adapter_metadata:
|
41
|
-
effective_url:
|
41
|
+
effective_url: https://geo.pointp.in/this-is-a-valid-api-key/json/55.111.555.555
|
42
42
|
recorded_at: Wed, 16 Jul 2014 08:42:12 GMT
|
43
43
|
recorded_with: VCR 2.9.2
|
@@ -38,7 +38,7 @@ describe Pointpin do
|
|
38
38
|
|
39
39
|
it "sends a standard request" do
|
40
40
|
faraday.should_receive(:get).with(
|
41
|
-
'
|
41
|
+
'https://geo.pointp.in/api-key/json/1.2.3.4', {}
|
42
42
|
).and_return(response)
|
43
43
|
|
44
44
|
Pointpin.locate('1.2.3.4')
|
@@ -46,4 +46,4 @@ describe Pointpin do
|
|
46
46
|
end
|
47
47
|
end
|
48
48
|
end
|
49
|
-
end
|
49
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pointpin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Flanagan
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '2.2'
|
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: '2.2'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -148,7 +148,7 @@ homepage: ''
|
|
148
148
|
licenses:
|
149
149
|
- MIT
|
150
150
|
metadata: {}
|
151
|
-
post_install_message:
|
151
|
+
post_install_message:
|
152
152
|
rdoc_options: []
|
153
153
|
require_paths:
|
154
154
|
- lib
|
@@ -163,9 +163,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
163
163
|
- !ruby/object:Gem::Version
|
164
164
|
version: '0'
|
165
165
|
requirements: []
|
166
|
-
rubyforge_project:
|
167
|
-
rubygems_version: 2.4
|
168
|
-
signing_key:
|
166
|
+
rubyforge_project:
|
167
|
+
rubygems_version: 2.6.14.4
|
168
|
+
signing_key:
|
169
169
|
specification_version: 4
|
170
170
|
summary: Pointp.in API wrapper in Ruby
|
171
171
|
test_files:
|