ip2location_ruby 8.7.1 → 8.7.2
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/VERSION +1 -1
- data/ip2location_ruby.gemspec +1 -1
- data/lib/ip2location_ruby.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9172b1c0b6b238c12d44df60b765218045e6fc3d27e3b2c551e2613bd9cf23cd
|
4
|
+
data.tar.gz: 4a45aad55ad12dbd2a80b6093d3f228e0fc57399f78a5238fa738a5fbaff3f27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d83b024d3f3357b35552f236e55ab482f8fdbc3cd059b8ed27d5cd5b02eeb2e2ccf535fb5cde230b0b9445ea0c5dc5326a6fc9f706d5745f9adbaf60a6f7d9b
|
7
|
+
data.tar.gz: cac3c8810e8b30a65d0b6a92e75ef872169b1f4880c1dbc2758be3bc79645fed97ed962afa2fabddbfa104d7664af6b3f0fd4ec1bf26a75219eda45e1fc584fc
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
8.7.
|
1
|
+
8.7.2
|
data/ip2location_ruby.gemspec
CHANGED
data/lib/ip2location_ruby.rb
CHANGED
@@ -14,7 +14,7 @@ require 'ip2location_ruby/ip2location_record'
|
|
14
14
|
class Ip2location
|
15
15
|
attr_accessor :record_class4, :record_class6, :v4, :file, :db_index, :count, :base_addr, :ipno, :count, :record, :database, :columns, :ip_version, :ipv4databasecount, :ipv4databaseaddr, :ipv4indexbaseaddr, :ipv6databasecount, :ipv6databaseaddr, :ipv6indexbaseaddr, :databaseyear, :databasemonth, :databaseday, :last_err_msg
|
16
16
|
|
17
|
-
VERSION = '8.7.
|
17
|
+
VERSION = '8.7.2'
|
18
18
|
FIELD_NOT_SUPPORTED = 'NOT SUPPORTED'
|
19
19
|
INVALID_IP_ADDRESS = 'INVALID IP ADDRESS'
|
20
20
|
INVALID_BIN_DATABASE = 'Incorrect IP2Location BIN file format. Please make sure that you are using the latest IP2Location BIN file.'
|
@@ -988,7 +988,7 @@ class Ip2locationIpTools
|
|
988
988
|
|
989
989
|
def cidr_to_ipv6(cidr)
|
990
990
|
if cidr.include? "/"
|
991
|
-
ip_start = IPAddr.new(cidr
|
991
|
+
ip_start = IPAddr.new(cidr).to_i.to_s(16).scan(/.{4}/)
|
992
992
|
ip_start = ip_start[0] + ':' + ip_start[1] + ':' + ip_start[2] + ':' + ip_start[3] + ':' + ip_start[4] + ':' + ip_start[5] + ':' + ip_start[6] + ':' + ip_start[7]
|
993
993
|
|
994
994
|
cidr_new = IPAddr.new(cidr)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ip2location_ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 8.7.
|
4
|
+
version: 8.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ip2location
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-11-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bindata
|