ipcat 2.0.5 → 2.0.6

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
  SHA1:
3
- metadata.gz: 0faa3745e37f4b22aed482aa0b9bd52b8c8e6074
4
- data.tar.gz: c887264dd8de519e204c777d8d3c0256f6665856
3
+ metadata.gz: 21e54956ca41119389b62903d6872e7dce742272
4
+ data.tar.gz: 3d56004a1f23edcd06cd9f31dcf16d538217a433
5
5
  SHA512:
6
- metadata.gz: ccb7bb74e988f1f74d093acdb7516fd13257b7020c48cc1f35ef0a8311530fba69e542a0172aaa0b74398240fb7eb76722339a4f5d9cd19e09e9b9d56e46eb97
7
- data.tar.gz: f6892d2135dcf3345778ca629cb403c6fd5ea28fcc358cd27dd70007a7314d841de6f9877852d879aa0a5218152afd1e4ac7cc1b31402129a92df0deead83eaf
6
+ metadata.gz: 9de9057240544f1235e4e8d3bb6c6bf4dccde402149e00935b3e18992c9b39c1f8467e4634f448a00c5a1fa10d0f3ad0a4d8a173d990c7e7ff21b9c784447c2f
7
+ data.tar.gz: 991115aea5bc04680de0370c281098c3ec63756382b714ae17848c333f960c118fb7a7c3356baeea7cbcf0e8dfa961b74c9f1f61aea72fa2b324b5425e0d576e
data/README.md CHANGED
@@ -24,7 +24,7 @@ It will return an IPCat::IPRange if ip_address is from a known datacenter; nil o
24
24
 
25
25
  For example,
26
26
 
27
- range = IPCat.datacenter?('8.18.145.0') # => instance of IPCat::IPRange
27
+ range = IPCat.datacenter?('52.95.252.0') # => instance of IPCat::IPRange
28
28
  range.name # => 'Amazon AWS'
29
29
 
30
30
  IPCat.datacenter?('127.0.0.1') # => nil
data/data/datacenters CHANGED
Binary file
data/lib/ipcat.rb CHANGED
@@ -30,7 +30,7 @@ class IPCat
30
30
  reset_ranges!
31
31
 
32
32
  require 'open-uri'
33
- open(path).readlines[1..-1].each do |line|
33
+ open(path).readlines.each do |line|
34
34
  first, last, name, url = line.split(',')
35
35
  self.ranges << IPRange.new(first, last, name, url).freeze
36
36
  end
data/lib/ipcat/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class IPCat
2
- VERSION = '2.0.5'
2
+ VERSION = '2.0.6'
3
3
  end
@@ -20,7 +20,7 @@ describe 'IPCat::IPRange' do
20
20
  it("should match first") { (range <=> range.first).must_equal 0 }
21
21
  it("should match last") { (range <=> range.last).must_equal 0 }
22
22
  it("should match first-1") { (range <=> range.first - 1).must_equal 1 }
23
- it("should match last+1") { (range <=> range.last + 1).must_equal -1 }
23
+ it("should match last+1") { (range <=> range.last + 1).must_equal(-1) }
24
24
  end
25
25
  end
26
26
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ipcat
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.5
4
+ version: 2.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Suggs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-07 00:00:00.000000000 Z
11
+ date: 2016-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -74,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
74
74
  version: '0'
75
75
  requirements: []
76
76
  rubyforge_project:
77
- rubygems_version: 2.5.2
77
+ rubygems_version: 2.5.1
78
78
  signing_key:
79
79
  specification_version: 4
80
80
  summary: dataset for categorizing IP addresses in ruby