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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 44911d183145a57efbc10650b9f7da538ca39613
4
- data.tar.gz: 3291ad4bf6a24bbcd557d57b33af26ea4d8695c0
3
+ metadata.gz: 61c6aa3cc34a9fe15ccbae7c4372ce3256b5d63b
4
+ data.tar.gz: 9c035b5f3d80367f08eb5ab2dce60c4dc08d805d
5
5
  SHA512:
6
- metadata.gz: 851ccffe6d759df96863562ff26e12cb3446450d9b57e0a6887a9eeabf0b80df9ffe53585fd1486f1f2043016cce4c8e7172361432e2011a1f4641696f64ba0d
7
- data.tar.gz: 82966ccbd03491190b9bcbf73c2bd73f9ba4d52aa0c8fa739e2a9d2287f6c5cfd9e7cf74041832146d95fa9f8950de18980d196d58686c473db7c67f4bfb2a3a
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
- alias_method :netmask, :mask_addr
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.
@@ -1,3 +1,3 @@
1
1
  module BetterIpaddr
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
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.3
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-29 00:00:00.000000000 Z
11
+ date: 2016-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler