iplogic 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/iplogic.gemspec +1 -1
- data/lib/iplogic.rb +1 -1
- data/lib/iplogic/ip.rb +3 -2
- metadata +5 -5
data/iplogic.gemspec
CHANGED
data/lib/iplogic.rb
CHANGED
data/lib/iplogic/ip.rb
CHANGED
@@ -96,7 +96,7 @@ module IPLogic
|
|
96
96
|
end
|
97
97
|
|
98
98
|
def eql?(other)
|
99
|
-
self.int == IP(other).int
|
99
|
+
self.int == IP.wrap(other).int
|
100
100
|
end
|
101
101
|
alias == eql?
|
102
102
|
|
@@ -106,9 +106,10 @@ module IPLogic
|
|
106
106
|
end
|
107
107
|
|
108
108
|
def +(int_ish)
|
109
|
-
IP(int + int_ish.to_i)
|
109
|
+
IP.wrap(int + int_ish.to_i)
|
110
110
|
end
|
111
111
|
|
112
|
+
# This allows IP "ranges" with (ip1..ip2)
|
112
113
|
def succ
|
113
114
|
self + 1
|
114
115
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iplogic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 31
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 2
|
10
|
+
version: 0.1.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jay Adkisson
|
@@ -86,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
86
86
|
requirements: []
|
87
87
|
|
88
88
|
rubyforge_project:
|
89
|
-
rubygems_version: 1.
|
89
|
+
rubygems_version: 1.5.2
|
90
90
|
signing_key:
|
91
91
|
specification_version: 3
|
92
92
|
summary: Because it's just a 32-bit integer.
|