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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9ee64a44d70af371c8e118e89eeb1d6f975f289835c67dfc1695e7e750985df1
4
- data.tar.gz: 16f87bf015c8f85a14b51e22b8e336838d9cb9f12ca3ea2b125dd19f7d368ceb
3
+ metadata.gz: 50f0c6bf97839c3537e0560bfb9a9092f4082a25402bd1dc93646509e9e3c198
4
+ data.tar.gz: 463aeee751dcabf9ecfba98663c4a651158e7ce6f397ff1271b2b8c8cf8e4c3f
5
5
  SHA512:
6
- metadata.gz: bbcb5312ccb091395e24a694deb5c4eb1118c66caf00cbd3c993d47146e29529f41d886b5aff731208df87a0de5fc64ca5600cfe0e48feb6da9da6550b4a4c81
7
- data.tar.gz: 10502431e5289199d0e4eadbd31fb41e46707534233dbe64574e6c56d6dcf14edc0d50a8461a57b3423e18d4388166eb46c3c5bc6dea73a6880359db3d9025ae
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://axios-http.com'>
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 — fast, accurate, and built for developers. Start free with 1,000 monthly stored conversions.
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://app.ip2geo.dev'>
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://docs.ip2geo.dev'>
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.2'
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://docs.ip2geo.dev/changelog'
18
- spec.metadata['documentation_uri'] = 'https://docs.ip2geo.dev'
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']
@@ -3,7 +3,7 @@
3
3
  module Ip2Geo
4
4
  module Data
5
5
  API_ENDPOINT = 'https://api.ip2geo.dev'
6
- DOCS_URL = 'https://docs.ip2geo.dev'
6
+ DOCS_URL = 'https://ip2geo.dev/docs'
7
7
  RUBYGEMS_URL = 'https://rubygems.org/api/v1/gems/ip2geo.json'
8
8
 
9
9
  IP_TYPES = {
@@ -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://docs.ip2geo.dev/sdk/changelogs\e[0m", box_width),
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 = params.empty? ? '' : "?#{params.join('&')}"
26
+ query_string = "?#{params.join('&')}"
27
27
  url = "#{Data::API_ENDPOINT}#{Data::ENDPOINTS[:CONVERSIONS][:GET]}#{query_string}"
28
28
 
29
- Helpers::Http.request(url, { conversionId: conversion_id })
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
@@ -33,7 +33,7 @@ require_relative 'ip2geo/methods/get_conversions'
33
33
  require_relative 'ip2geo/methods/list_conversions'
34
34
 
35
35
  module Ip2Geo
36
- VERSION = '0.0.1'
36
+ VERSION = '0.0.3'
37
37
 
38
38
  class << self
39
39
  # Initializes the SDK with the given API key.
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.2
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-04-19 00:00:00.000000000 Z
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://docs.ip2geo.dev/changelog
59
- documentation_uri: https://docs.ip2geo.dev
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.0.3.1
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: []