ip2location_ruby 8.3.0 → 8.3.1
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/Gemfile +0 -1
- data/Gemfile.lock +2 -43
- data/Rakefile +0 -14
- data/VERSION +1 -1
- data/ip2location_ruby.gemspec +1 -9
- data/lib/ip2location_ruby.rb +1 -1
- metadata +2 -16
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 88ca0a0eeda11477542ff26e73d650ee4710fe53cefacfae2becdab77a60b296
|
|
4
|
+
data.tar.gz: b53da2a74fb4cbe4580d0745cee0b9be50b21dc45d63b7baf4fd2d94090380a6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f20f7d2bb1fd83dacaacc4f78e9f2641a67be6a833be040c9ceaf289471d58658df35f01623bb8429bfaf9830df36e10517a693ab564c4542911c510f5b90292
|
|
7
|
+
data.tar.gz: b8f9340cd456e71a2e7920290f04aeea7d1d88692d53dee247f537f31b7ab25e5ccf83870667b5df626080c65a60c872ede67c606aab11dcdeef1d2cc7c5c4dd
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,49 +1,9 @@
|
|
|
1
1
|
GEM
|
|
2
2
|
remote: http://rubygems.org/
|
|
3
3
|
specs:
|
|
4
|
-
|
|
5
|
-
bindata (2.1.0)
|
|
6
|
-
builder (3.2.2)
|
|
4
|
+
bindata (2.4.10)
|
|
7
5
|
diff-lcs (1.1.3)
|
|
8
|
-
docile (1.1.1)
|
|
9
|
-
faraday (0.8.8)
|
|
10
|
-
multipart-post (~> 1.2.0)
|
|
11
|
-
git (1.2.6)
|
|
12
|
-
github_api (0.10.1)
|
|
13
|
-
addressable
|
|
14
|
-
faraday (~> 0.8.1)
|
|
15
|
-
hashie (>= 1.2)
|
|
16
|
-
multi_json (~> 1.4)
|
|
17
|
-
nokogiri (~> 1.5.2)
|
|
18
|
-
oauth2
|
|
19
|
-
hashie (2.0.5)
|
|
20
|
-
highline (1.6.20)
|
|
21
|
-
httpauth (0.2.0)
|
|
22
|
-
jeweler (1.8.8)
|
|
23
|
-
builder
|
|
24
|
-
bundler (~> 1.0)
|
|
25
|
-
git (>= 1.2.5)
|
|
26
|
-
github_api (= 0.10.1)
|
|
27
|
-
highline (>= 1.6.15)
|
|
28
|
-
nokogiri (>= 1.8.2)
|
|
29
|
-
rake
|
|
30
|
-
rdoc
|
|
31
6
|
json (>= 2.3.0)
|
|
32
|
-
jwt (0.1.8)
|
|
33
|
-
multi_json (>= 1.5)
|
|
34
|
-
multi_json (1.8.2)
|
|
35
|
-
multi_xml (0.5.5)
|
|
36
|
-
multipart-post (1.2.0)
|
|
37
|
-
nokogiri (>= 1.8.2)
|
|
38
|
-
oauth2 (0.9.2)
|
|
39
|
-
faraday (~> 0.8)
|
|
40
|
-
httpauth (~> 0.2)
|
|
41
|
-
jwt (~> 0.1.4)
|
|
42
|
-
multi_json (~> 1.0)
|
|
43
|
-
multi_xml (~> 0.5)
|
|
44
|
-
rack (~> 1.2)
|
|
45
|
-
rack (>= 1.6.11)
|
|
46
|
-
rake (>= 12.3.3)
|
|
47
7
|
rdoc (3.12.2)
|
|
48
8
|
json (~> 1.4)
|
|
49
9
|
rspec (2.8.0)
|
|
@@ -61,6 +21,5 @@ PLATFORMS
|
|
|
61
21
|
DEPENDENCIES
|
|
62
22
|
bindata
|
|
63
23
|
bundler (>= 1.2.0)
|
|
64
|
-
jeweler (~> 1.8.4)
|
|
65
24
|
rdoc (~> 3.12)
|
|
66
|
-
rspec (~> 2.8.0)
|
|
25
|
+
rspec (~> 2.8.0)
|
data/Rakefile
CHANGED
|
@@ -11,20 +11,6 @@ rescue Bundler::BundlerError => e
|
|
|
11
11
|
end
|
|
12
12
|
require 'rake'
|
|
13
13
|
|
|
14
|
-
require 'jeweler'
|
|
15
|
-
Jeweler::Tasks.new do |gem|
|
|
16
|
-
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
|
17
|
-
gem.name = "ip2location_ruby"
|
|
18
|
-
gem.homepage = "https://github.com/ip2location/ip2location-ruby"
|
|
19
|
-
gem.license = "MIT"
|
|
20
|
-
gem.summary = %Q{the ip2location ruby library}
|
|
21
|
-
gem.description = %Q{ip2location ruby library}
|
|
22
|
-
gem.email = "support@ip2location.com"
|
|
23
|
-
gem.authors = ["Vincent.Z"]
|
|
24
|
-
# dependencies defined in Gemfile
|
|
25
|
-
end
|
|
26
|
-
Jeweler::RubygemsDotOrgTasks.new
|
|
27
|
-
|
|
28
14
|
require 'rspec/core'
|
|
29
15
|
require 'rspec/core/rake_task'
|
|
30
16
|
RSpec::Core::RakeTask.new(:spec) do |spec|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
8.3.
|
|
1
|
+
8.3.1
|
data/ip2location_ruby.gemspec
CHANGED
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
# Generated by jeweler
|
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
|
-
# -*- encoding: utf-8 -*-
|
|
5
|
-
|
|
6
1
|
Gem::Specification.new do |s|
|
|
7
2
|
s.name = "ip2location_ruby"
|
|
8
|
-
s.version = "8.3.
|
|
3
|
+
s.version = "8.3.1"
|
|
9
4
|
|
|
10
5
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
6
|
s.require_paths = ["lib"]
|
|
@@ -61,20 +56,17 @@ Gem::Specification.new do |s|
|
|
|
61
56
|
s.add_development_dependency(%q<rspec>, ["~> 2.8.0"])
|
|
62
57
|
s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
|
|
63
58
|
s.add_development_dependency(%q<bundler>, [">= 1.2.0"])
|
|
64
|
-
s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
|
|
65
59
|
else
|
|
66
60
|
s.add_dependency(%q<bindata>, [">= 0"])
|
|
67
61
|
s.add_dependency(%q<rspec>, ["~> 2.8.0"])
|
|
68
62
|
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
|
69
63
|
s.add_dependency(%q<bundler>, [">= 1.2.0"])
|
|
70
|
-
s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
|
|
71
64
|
end
|
|
72
65
|
else
|
|
73
66
|
s.add_dependency(%q<bindata>, [">= 0"])
|
|
74
67
|
s.add_dependency(%q<rspec>, ["~> 2.8.0"])
|
|
75
68
|
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
|
76
69
|
s.add_dependency(%q<bundler>, [">= 1.2.0"])
|
|
77
|
-
s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
|
|
78
70
|
end
|
|
79
71
|
end
|
|
80
72
|
|
data/lib/ip2location_ruby.rb
CHANGED
|
@@ -13,7 +13,7 @@ require 'ip2location_ruby/ip2location_record'
|
|
|
13
13
|
class Ip2location
|
|
14
14
|
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
|
|
15
15
|
|
|
16
|
-
VERSION = '8.3.
|
|
16
|
+
VERSION = '8.3.1'
|
|
17
17
|
FIELD_NOT_SUPPORTED = 'NOT SUPPORTED'
|
|
18
18
|
INVALID_IP_ADDRESS = 'INVALID IP ADDRESS'
|
|
19
19
|
INVALID_BIN_DATABASE = 'Incorrect IP2Location BIN file format. Please make sure that you are using the latest IP2Location BIN file.'
|
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.3.
|
|
4
|
+
version: 8.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ip2location
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-07-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bindata
|
|
@@ -66,20 +66,6 @@ dependencies:
|
|
|
66
66
|
- - ">="
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
68
|
version: 1.2.0
|
|
69
|
-
- !ruby/object:Gem::Dependency
|
|
70
|
-
name: jeweler
|
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
|
72
|
-
requirements:
|
|
73
|
-
- - "~>"
|
|
74
|
-
- !ruby/object:Gem::Version
|
|
75
|
-
version: 1.8.4
|
|
76
|
-
type: :development
|
|
77
|
-
prerelease: false
|
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
-
requirements:
|
|
80
|
-
- - "~>"
|
|
81
|
-
- !ruby/object:Gem::Version
|
|
82
|
-
version: 1.8.4
|
|
83
69
|
description: The official IP2Location Ruby library to geolocate an IP address. You
|
|
84
70
|
can lookup for country, region, city, latitude, longitude, zip code, time zone,
|
|
85
71
|
ISP, domain, area code, usage type, mobile data, weather data and elevation from
|