better_ipaddr 0.1.4 → 0.1.5

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: 61c6aa3cc34a9fe15ccbae7c4372ce3256b5d63b
4
- data.tar.gz: 9c035b5f3d80367f08eb5ab2dce60c4dc08d805d
3
+ metadata.gz: 57f074d339fce3e1ee93c504b522db9a20402ee2
4
+ data.tar.gz: a084718ae607fa5b3da95968ca1a955a205bc83b
5
5
  SHA512:
6
- metadata.gz: 1f7316c8c184f10bfc7e30d84a90ef1003496b8e4f699228c4985be0e52a5319ed1fa4ca42e7929901e0a110707923dc3cbfb77d1f57f7f06724980a15082fd2
7
- data.tar.gz: f805c1a093751a5693b09d5b3591c71af6f2de7b9932003d569b2bccc72f3b4828115a3177af74ad1cf8e65ed61881eb7422e003bab1f237abf67089bdb4f948
6
+ metadata.gz: ba46d2de46da79afacd5816a6c57cf8ae1666d51f72344e5a193df75dd8d9ff9844f289ac3139513531937dd5e8c6e85f300396abcb98dd1d5817ada3a6e80c4
7
+ data.tar.gz: 738287a22491a5ba439dfc1649857d6039d79bcc4a488ae83fb6e4773d3f43e86c0b9de9c66131689249a3beb68a44b788f4303f840e550614e10499c2025ecc
@@ -105,7 +105,8 @@ module BetterIpaddr
105
105
  end
106
106
 
107
107
  # Return the address greater than the original address by the
108
- # given offset.
108
+ # given offset. Note that the result will always be a host
109
+ # address.
109
110
  # @param offset [Integer] the difference between the original
110
111
  # address and the returned address
111
112
  # @return [IPAddr]
@@ -115,7 +116,8 @@ module BetterIpaddr
115
116
  end
116
117
 
117
118
  # Return the address less than the original address by the given
118
- # offset.
119
+ # offset. Note that the result will always be a host
120
+ # address.
119
121
  # @param offset [Integer] the difference between the original
120
122
  # address and the returned address
121
123
  # @return [IPAddr]
@@ -45,6 +45,7 @@ module BetterIpaddr
45
45
  end
46
46
 
47
47
  def gaps
48
+ return export([space]) if space && networks.empty?
48
49
  gap_networks = if space
49
50
  gaps_before + gaps_between + gaps_after
50
51
  else
@@ -1,3 +1,3 @@
1
1
  module BetterIpaddr
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: better_ipaddr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Miller
@@ -95,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
95
95
  version: '0'
96
96
  requirements: []
97
97
  rubyforge_project:
98
- rubygems_version: 2.4.5.1
98
+ rubygems_version: 2.5.1
99
99
  signing_key:
100
100
  specification_version: 4
101
101
  summary: IPAddr enhancements for network management.