ip2geo 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +6 -4
- data/ip2geo.gemspec +3 -3
- data/lib/ip2geo/data/constants.rb +1 -1
- data/lib/ip2geo/helpers/check_version.rb +1 -1
- data/lib/ip2geo/methods/get_conversion.rb +3 -3
- data/lib/ip2geo.rb +1 -1
- metadata +5 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 50f0c6bf97839c3537e0560bfb9a9092f4082a25402bd1dc93646509e9e3c198
|
|
4
|
+
data.tar.gz: 463aeee751dcabf9ecfba98663c4a651158e7ce6f397ff1271b2b8c8cf8e4c3f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 84d089b7a87965c1d59593adab9d03a3c8b8966e3a0c38c6a1321fc0dd5fd493259f0a4ede7f1597233fc142f201b5e4b7cd6d0b1a10c01f78704bbbdd56221a
|
|
7
|
+
data.tar.gz: ee10736fb63cbadc5ce38c1059f43eb460d9dc21ee8d7aa0f544dabac25d4710caf32915a2e721920a119c4f9a3fef014e9906878f15b3b27c39b96bbd55d687
|
data/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<div align='center'>
|
|
2
|
-
<a href='https://
|
|
2
|
+
<a href='https://ip2geo.dev'>
|
|
3
3
|
<img
|
|
4
4
|
src='https://cdn-prod.ip2geo.dev/assets/ruby/generals/ip2geo.svg'
|
|
5
5
|
alt='Ip2Geo Logo'
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
</div>
|
|
11
11
|
|
|
12
12
|
<p align='center'>
|
|
13
|
-
Your go-to IP-to-Geo cloud service
|
|
13
|
+
Your go-to IP-to-Geo cloud service, fast, accurate, and built for developers. Start free with 1,000 monthly stored conversions.
|
|
14
14
|
</p>
|
|
15
15
|
|
|
16
16
|
<p align='center'>
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
</b>
|
|
21
21
|
</a>
|
|
22
22
|
•
|
|
23
|
-
<a href='https://
|
|
23
|
+
<a href='https://ip2geo.dev/dashboard'>
|
|
24
24
|
<b>
|
|
25
25
|
Dashboard
|
|
26
26
|
</b>
|
|
27
27
|
</a>
|
|
28
28
|
•
|
|
29
|
-
<a href='https://
|
|
29
|
+
<a href='https://ip2geo.dev/docs'>
|
|
30
30
|
<b>
|
|
31
31
|
Documentation
|
|
32
32
|
</b>
|
|
@@ -45,6 +45,8 @@
|
|
|
45
45
|
|
|
46
46
|
This gem provides a lightweight way to integrate Ip2Geo into your Ruby applications.
|
|
47
47
|
|
|
48
|
+
Working from a terminal instead? The [ip2geo CLI](https://ip2geo.dev/docs/cli/introduction) (`npm i -g @ip2geo/cli`) makes the same calls, and everything the dashboard does, from the command line.
|
|
49
|
+
|
|
48
50
|
### Installing
|
|
49
51
|
```bash
|
|
50
52
|
gem install ip2geo
|
data/ip2geo.gemspec
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |spec|
|
|
4
4
|
spec.name = 'ip2geo'
|
|
5
|
-
spec.version = '0.0.
|
|
5
|
+
spec.version = '0.0.3'
|
|
6
6
|
spec.authors = ['Ip2Geo']
|
|
7
7
|
spec.email = ['support@ip2geo.dev']
|
|
8
8
|
|
|
@@ -14,8 +14,8 @@ Gem::Specification.new do |spec|
|
|
|
14
14
|
spec.license = 'Nonstandard'
|
|
15
15
|
|
|
16
16
|
spec.metadata['homepage_uri'] = spec.homepage
|
|
17
|
-
spec.metadata['changelog_uri'] = 'https://
|
|
18
|
-
spec.metadata['documentation_uri'] = 'https://
|
|
17
|
+
spec.metadata['changelog_uri'] = 'https://ip2geo.dev/docs/sdk/changelogs'
|
|
18
|
+
spec.metadata['documentation_uri'] = 'https://ip2geo.dev/docs'
|
|
19
19
|
|
|
20
20
|
spec.files = Dir.glob('lib/**/*') + ['ip2geo.gemspec', 'README.md', 'LICENSE']
|
|
21
21
|
spec.require_paths = ['lib']
|
|
@@ -54,7 +54,7 @@ module Ip2Geo
|
|
|
54
54
|
'',
|
|
55
55
|
top_border,
|
|
56
56
|
center_text("\e[1m\e[33mUpdate available\e[0m \e[2m#{current_version} \u2192 #{latest_version}\e[0m", box_width),
|
|
57
|
-
center_text("Changelog: \e[36mhttps://
|
|
57
|
+
center_text("Changelog: \e[36mhttps://ip2geo.dev/docs/sdk/changelogs\e[0m", box_width),
|
|
58
58
|
center_text("Run \e[32m`gem update ip2geo`\e[0m to update.", box_width),
|
|
59
59
|
center_text('', box_width),
|
|
60
60
|
center_text("Disable this warning using: \e[36mversion_update_message: false\e[0m on init.", box_width),
|
|
@@ -20,13 +20,13 @@ module Ip2Geo
|
|
|
20
20
|
)
|
|
21
21
|
end
|
|
22
22
|
|
|
23
|
-
params = []
|
|
23
|
+
params = ["conversionId=#{conversion_id}"]
|
|
24
24
|
params << "select=#{select.map { |f| "data.#{f}" }.join(',')}" if select.is_a?(Array) && !select.empty?
|
|
25
25
|
|
|
26
|
-
query_string =
|
|
26
|
+
query_string = "?#{params.join('&')}"
|
|
27
27
|
url = "#{Data::API_ENDPOINT}#{Data::ENDPOINTS[:CONVERSIONS][:GET]}#{query_string}"
|
|
28
28
|
|
|
29
|
-
Helpers::Http.request(url
|
|
29
|
+
Helpers::Http.request(url)
|
|
30
30
|
rescue StandardError => e
|
|
31
31
|
warn "[Ip2Geo::GetConversion] Error: #{e.message}"
|
|
32
32
|
nil
|
data/lib/ip2geo.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ip2geo
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ip2Geo
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
10
|
+
date: 2026-10-05 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: json
|
|
@@ -55,9 +54,8 @@ licenses:
|
|
|
55
54
|
- Nonstandard
|
|
56
55
|
metadata:
|
|
57
56
|
homepage_uri: https://ip2geo.dev
|
|
58
|
-
changelog_uri: https://
|
|
59
|
-
documentation_uri: https://
|
|
60
|
-
post_install_message:
|
|
57
|
+
changelog_uri: https://ip2geo.dev/docs/sdk/changelogs
|
|
58
|
+
documentation_uri: https://ip2geo.dev/docs
|
|
61
59
|
rdoc_options: []
|
|
62
60
|
require_paths:
|
|
63
61
|
- lib
|
|
@@ -72,8 +70,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
72
70
|
- !ruby/object:Gem::Version
|
|
73
71
|
version: '0'
|
|
74
72
|
requirements: []
|
|
75
|
-
rubygems_version: 3.
|
|
76
|
-
signing_key:
|
|
73
|
+
rubygems_version: 3.6.3
|
|
77
74
|
specification_version: 4
|
|
78
75
|
summary: Official Ruby SDK for Ip2Geo - IP to Geolocation API.
|
|
79
76
|
test_files: []
|