better_ipaddr 0.2.1 → 0.2.2

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: 7b4aa183d3f44f56ff13ead56db0d6a6644d96be
4
- data.tar.gz: b8d6cfb47a73be0c2d8ccb7baee79ef9c9e88142
3
+ metadata.gz: fa1cd24ef7a0afb9034bfa9e7bcc92c986121d32
4
+ data.tar.gz: 4e69dfa1e6c92aa844037a58f178f840dce19be4
5
5
  SHA512:
6
- metadata.gz: 1dc675f631f316c5b265f7d6a30e194ef03c4717148c977c5c28c1b18e0596ce640bc42973e3307d225e794842e82a9e8f54ed42303c20756eaccbb5ec5eee12
7
- data.tar.gz: f68835b94ceb6ec6aec81db9136146c38c45a309d4a57f90ca603985e58790c5d3480f898bc6442fae8e989246ce0661487e296e5ac289ed7d9b9b25a7479d6f
6
+ metadata.gz: 2722acdf74657ae6597285186419175a81ebcc38a97f2325eed1a2a7e1148617f767843d4699448cf0e4a87a7a31925935e0c05a1be643289d5849724a198dc0
7
+ data.tar.gz: 995ae726a38e9b28a491b27acc83803ebeb5eee4bca04ba9c5594d3dd7071377e51b2c4a31340c431bf755e289236f22cfdae67e4bd002d765480492ee7ea93d
@@ -50,6 +50,7 @@ class IPAddr
50
50
  # @param family [Integer, Nil]
51
51
  # @return [IPAddr]
52
52
  def self.from_ipaddr(address, prefix_length, family: self::FAMILY)
53
+ address = specialize(address)
53
54
  new(address.to_i, family).mask(prefix_length || address.prefix_length)
54
55
  end
55
56
 
@@ -1,3 +1,3 @@
1
1
  module BetterIpaddr
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
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.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Miller