ip_lookup 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bf432b307f50395c06ef5c0bb9526db2d07f59612da2ba457518dc289e9dbe56
4
- data.tar.gz: 3b4e7cd8d283166c872e44ccb7e56cf58b38d4446acc4d42f46892124c673ff1
3
+ metadata.gz: 7182ce647ae6710dd46a7c30519ac35121163d503238155cc165481a54428254
4
+ data.tar.gz: 22fe3e0ed2016521a29f6a189a545c0ad2d2151abca09ef088d0bea481e3b818
5
5
  SHA512:
6
- metadata.gz: 0b1160edafe10379b0d9c4ea7093acb357e1d22d673e5c245556aff572d2ca627947255fd5edb5e0da9214b686f4cf3e3ca6d41925a822144e755d6a46290804
7
- data.tar.gz: 763dc6634c61f7b9f59bf090d98e58f02262d39befacc24de79d54d7b416df022a7075050a8c80d35c46ed1706e12b66e8418316e498e67dae013101c076be48
6
+ metadata.gz: 3b8d21d557d2bded0a3f8f7f5f0cb52dd07166f22bcd04ab4b307adaee476d2b9a8b1f80d261e1158c9435be6f447b9cd94ff00469d8fd2b6c451e7be979952c
7
+ data.tar.gz: e93e5707baa5254dc230bdee57cce33f0d3f44516bcce3e98d71f1d7eb8c26ef5ba7f4b806a8c0fd3ef2febf6226dd02e7526e8738ecf796bed3a9eabf12f562
@@ -0,0 +1,7 @@
1
+ require_relative "../../lib/ip_lookup/db"
2
+
3
+ puts "\nStart updating db."
4
+
5
+ IPLookup::DB.update
6
+
7
+ puts "Finished updating db.\n"
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class IPLookup
4
- VERSION = "1.0.3"
4
+ VERSION = "1.0.4"
5
5
  end
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.3
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 00:00:00.000000000 Z
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