IPinfo 0.1.2 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.editorconfig +1 -1
- data/.github/workflows/cd_rubygems.yaml +34 -0
- data/.github/workflows/unittest.yaml +31 -0
- data/.gitignore +1 -0
- data/.rubocop.yml +48 -0
- data/.ruby-version +1 -0
- data/Gemfile +7 -28
- data/README.md +126 -24
- data/Rakefile +8 -6
- data/bin/console +4 -10
- data/bin/setup +1 -2
- data/ipinfo.gemspec +21 -29
- data/lib/ipinfo/adapter.rb +23 -18
- data/lib/ipinfo/cache/cache_interface.rb +10 -9
- data/lib/ipinfo/cache/default_cache.rb +8 -9
- data/lib/ipinfo/continent.json +252 -0
- data/lib/ipinfo/currency.json +253 -0
- data/lib/ipinfo/errors.rb +3 -3
- data/lib/ipinfo/eu.json +1 -0
- data/lib/ipinfo/flags.json +252 -0
- data/lib/ipinfo/ipAddressMatcher.rb +92 -0
- data/lib/ipinfo/mod.rb +4 -0
- data/lib/ipinfo/response.rb +8 -9
- data/lib/ipinfo/version.rb +3 -1
- data/lib/ipinfo.rb +168 -52
- metadata +27 -24
- data/.travis.yml +0 -13
metadata
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: IPinfo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stanislav K, James Timmins
|
8
|
+
- Uman Shahzad
|
8
9
|
autorequire:
|
9
10
|
bindir: exe
|
10
11
|
cert_chain: []
|
11
|
-
date:
|
12
|
+
date: 2023-09-18 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: faraday
|
@@ -16,55 +17,56 @@ dependencies:
|
|
16
17
|
requirements:
|
17
18
|
- - "~>"
|
18
19
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
20
|
+
version: '1.0'
|
20
21
|
type: :runtime
|
21
22
|
prerelease: false
|
22
23
|
version_requirements: !ruby/object:Gem::Requirement
|
23
24
|
requirements:
|
24
25
|
- - "~>"
|
25
26
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
27
|
+
version: '1.0'
|
27
28
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
29
|
+
name: json
|
29
30
|
requirement: !ruby/object:Gem::Requirement
|
30
31
|
requirements:
|
31
32
|
- - "~>"
|
32
33
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
34
|
+
version: '2.1'
|
34
35
|
type: :runtime
|
35
36
|
prerelease: false
|
36
37
|
version_requirements: !ruby/object:Gem::Requirement
|
37
38
|
requirements:
|
38
39
|
- - "~>"
|
39
40
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
41
|
+
version: '2.1'
|
41
42
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
43
|
+
name: lru_redux
|
43
44
|
requirement: !ruby/object:Gem::Requirement
|
44
45
|
requirements:
|
45
46
|
- - "~>"
|
46
47
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
48
|
+
version: '1.1'
|
48
49
|
type: :runtime
|
49
50
|
prerelease: false
|
50
51
|
version_requirements: !ruby/object:Gem::Requirement
|
51
52
|
requirements:
|
52
53
|
- - "~>"
|
53
54
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
55
|
-
description: "
|
56
|
-
the most reliable, accurate, and in-depth source of IP address data available anywhere.
|
57
|
-
We process terabytes of data to produce our custom IP geolocation, company, carrier
|
58
|
-
and IP type data sets. You can visit our developer docs at https://ipinfo.io/developers. "
|
55
|
+
version: '1.1'
|
56
|
+
description: " This is a ruby wrapper for http://ipinfo.io. "
|
59
57
|
email:
|
60
58
|
- jameshtimmins@gmail.com
|
59
|
+
- uman@mslm.io
|
61
60
|
executables: []
|
62
61
|
extensions: []
|
63
62
|
extra_rdoc_files: []
|
64
63
|
files:
|
65
64
|
- ".editorconfig"
|
65
|
+
- ".github/workflows/cd_rubygems.yaml"
|
66
|
+
- ".github/workflows/unittest.yaml"
|
66
67
|
- ".gitignore"
|
67
|
-
- ".
|
68
|
+
- ".rubocop.yml"
|
69
|
+
- ".ruby-version"
|
68
70
|
- Gemfile
|
69
71
|
- LICENSE
|
70
72
|
- README.md
|
@@ -76,13 +78,18 @@ files:
|
|
76
78
|
- lib/ipinfo/adapter.rb
|
77
79
|
- lib/ipinfo/cache/cache_interface.rb
|
78
80
|
- lib/ipinfo/cache/default_cache.rb
|
81
|
+
- lib/ipinfo/continent.json
|
79
82
|
- lib/ipinfo/countries.json
|
83
|
+
- lib/ipinfo/currency.json
|
80
84
|
- lib/ipinfo/errors.rb
|
85
|
+
- lib/ipinfo/eu.json
|
86
|
+
- lib/ipinfo/flags.json
|
87
|
+
- lib/ipinfo/ipAddressMatcher.rb
|
88
|
+
- lib/ipinfo/mod.rb
|
81
89
|
- lib/ipinfo/response.rb
|
82
90
|
- lib/ipinfo/version.rb
|
83
91
|
homepage: https://ipinfo.io
|
84
|
-
licenses:
|
85
|
-
- Apache-2.0
|
92
|
+
licenses: []
|
86
93
|
metadata: {}
|
87
94
|
post_install_message:
|
88
95
|
rdoc_options: []
|
@@ -92,19 +99,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
92
99
|
requirements:
|
93
100
|
- - ">="
|
94
101
|
- !ruby/object:Gem::Version
|
95
|
-
version: 2.
|
102
|
+
version: 2.5.0
|
96
103
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
97
104
|
requirements:
|
98
105
|
- - ">="
|
99
106
|
- !ruby/object:Gem::Version
|
100
107
|
version: '0'
|
101
108
|
requirements: []
|
102
|
-
|
103
|
-
rubygems_version: 2.7.6
|
109
|
+
rubygems_version: 3.1.4
|
104
110
|
signing_key:
|
105
111
|
specification_version: 4
|
106
|
-
summary:
|
107
|
-
most reliable, accurate, and in-depth source of IP address data available anywhere.
|
108
|
-
We process terabytes of data to produce our custom IP geolocation, company, carrier
|
109
|
-
and IP type data sets. You can visit our developer docs at https://ipinfo.io/developers.
|
112
|
+
summary: This is a ruby wrapper for http://ipinfo.io.
|
110
113
|
test_files: []
|