ip_lookup 1.2.5 → 1.2.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 111ffdc27f8c86e94ce46db56a48ecf30cfa00ceb8a5a7dd3143dba347779743
4
- data.tar.gz: 3adb39fd533363360c12791faef12e2bd381d1061c3f86eb7ba77475b2d5e8bc
3
+ metadata.gz: dc15ddfcd74b8f2d0f5791ff5b9fa8cb338a268089f4752f56651998a249d3b8
4
+ data.tar.gz: 390502baa98adcd714614fc1e2523f2f573a68413736eac4fd0b8dff7c3f44ec
5
5
  SHA512:
6
- metadata.gz: 1c161032742b74a058185f64ed299b976ba05da8e2eaaf3ba3494e2179c804e15482cd0d5b9993f6b92cdf47a0ca1c9a61d9cc48858edd56f7c2ff6d5c796d87
7
- data.tar.gz: 8b8c28972ba83c9126585fb3c7f5d8ddc79d007c177e74388e4e6195b0e2c6dc2792726cc9677a8bcf251b4cd1594411d8e93c09a9a68c1b7ff99c08acf4df32
6
+ metadata.gz: a3f7f41b81b44191b19feb1f9eca3b52f8079a105146c4e9139f96c8bd4e3f34973695316bc2f770326a33c216087312b6d372683a275061eec4f2d81cc8bfbf
7
+ data.tar.gz: b1265d7c51808cd27e64f069c2d5c468776f5ccb647a2002deb59d62cc9e9cfd10ac9260824b0b4cb8a406928aaf97ec42fd9362f8630d9aa40876ad17dab7d9
data/lib/ip_lookup.rb CHANGED
@@ -49,7 +49,7 @@ class IPLookup
49
49
  private
50
50
 
51
51
  def sanitize(ip_address)
52
- ip_address.split(/\s*,\s*/).first
52
+ ip_address&.split(/\s*,\s*/)&.first
53
53
  end
54
54
 
55
55
  def timezone_for(iso_code)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class IPLookup
4
- VERSION = "1.2.5"
4
+ VERSION = "1.2.6"
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.2.5
4
+ version: 1.2.6
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: 2019-06-04 00:00:00.000000000 Z
13
+ date: 2019-06-05 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: maxminddb