ipcat 2.0.5 → 2.0.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 +4 -4
- data/README.md +1 -1
- data/data/datacenters +0 -0
- data/lib/ipcat.rb +1 -1
- data/lib/ipcat/version.rb +1 -1
- data/spec/ipcat_iprange_spec.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 21e54956ca41119389b62903d6872e7dce742272
|
4
|
+
data.tar.gz: 3d56004a1f23edcd06cd9f31dcf16d538217a433
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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?('
|
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
data/lib/ipcat/version.rb
CHANGED
data/spec/ipcat_iprange_spec.rb
CHANGED
@@ -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
|
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.
|
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-
|
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.
|
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
|