better_ipaddr 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/better_ipaddr/methods.rb +6 -1
- data/lib/better_ipaddr/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61c6aa3cc34a9fe15ccbae7c4372ce3256b5d63b
|
4
|
+
data.tar.gz: 9c035b5f3d80367f08eb5ab2dce60c4dc08d805d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f7316c8c184f10bfc7e30d84a90ef1003496b8e4f699228c4985be0e52a5319ed1fa4ca42e7929901e0a110707923dc3cbfb77d1f57f7f06724980a15082fd2
|
7
|
+
data.tar.gz: f805c1a093751a5693b09d5b3591c71af6f2de7b9932003d569b2bccc72f3b4828115a3177af74ad1cf8e65ed61881eb7422e003bab1f237abf67089bdb4f948
|
@@ -97,7 +97,12 @@ module BetterIpaddr
|
|
97
97
|
# Return the integer representation of the netmask.
|
98
98
|
# @return [Integer]
|
99
99
|
attr_reader :mask_addr
|
100
|
-
|
100
|
+
|
101
|
+
# Return the string representation of the netmask.
|
102
|
+
# @return [String]
|
103
|
+
def netmask
|
104
|
+
self.class[mask_addr].to_s
|
105
|
+
end
|
101
106
|
|
102
107
|
# Return the address greater than the original address by the
|
103
108
|
# given offset.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: better_ipaddr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Miller
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
11
|
+
date: 2016-01-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|