ip_lookup 1.0.3 → 1.0.4
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/ext/ip_lookup/extconf.rb +7 -0
- data/lib/ip_lookup/db.rb +0 -8
- data/lib/ip_lookup/version.rb +1 -1
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7182ce647ae6710dd46a7c30519ac35121163d503238155cc165481a54428254
|
4
|
+
data.tar.gz: 22fe3e0ed2016521a29f6a189a545c0ad2d2151abca09ef088d0bea481e3b818
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b8d21d557d2bded0a3f8f7f5f0cb52dd07166f22bcd04ab4b307adaee476d2b9a8b1f80d261e1158c9435be6f447b9cd94ff00469d8fd2b6c451e7be979952c
|
7
|
+
data.tar.gz: e93e5707baa5254dc230bdee57cce33f0d3f44516bcce3e98d71f1d7eb8c26ef5ba7f4b806a8c0fd3ef2febf6226dd02e7526e8738ecf796bed3a9eabf12f562
|
data/lib/ip_lookup/db.rb
CHANGED
@@ -72,14 +72,6 @@ class IPLookup
|
|
72
72
|
end
|
73
73
|
end
|
74
74
|
|
75
|
-
def teleport(*args)
|
76
|
-
if args.length == 1
|
77
|
-
teleport_timezone(args[0])
|
78
|
-
else
|
79
|
-
teleport_location(args)
|
80
|
-
end
|
81
|
-
end
|
82
|
-
|
83
75
|
def update_db?(update_period)
|
84
76
|
!db_exists? || (update_period >= 0 && db_age > update_period)
|
85
77
|
end
|
data/lib/ip_lookup/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ip_lookup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ole Richter
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2018-08-
|
13
|
+
date: 2018-08-14 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: maxminddb
|
@@ -145,11 +145,13 @@ email:
|
|
145
145
|
- tomek@blinkist.com
|
146
146
|
- sj@blinkist.com
|
147
147
|
executables: []
|
148
|
-
extensions:
|
148
|
+
extensions:
|
149
|
+
- ext/ip_lookup/extconf.rb
|
149
150
|
extra_rdoc_files: []
|
150
151
|
files:
|
151
152
|
- README.md
|
152
153
|
- Rakefile
|
154
|
+
- ext/ip_lookup/extconf.rb
|
153
155
|
- lib/ip-lookup.rb
|
154
156
|
- lib/ip_lookup/db.rb
|
155
157
|
- lib/ip_lookup/defaults.rb
|