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 CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'iplogic'
3
- s.version = '0.1.1'
3
+ s.version = '0.1.2'
4
4
 
5
5
  s.authors = ["Jay Adkisson"]
6
6
  s.date = '2010-11-13'
data/lib/iplogic.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module IPLogic
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.2'
3
3
 
4
4
  LIB = File.expand_path(File.dirname(__FILE__))
5
5
  end
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: 25
5
- prerelease: false
4
+ hash: 31
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.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.3.7
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.