cidrmergerb 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Binary file
@@ -1,3 +1,3 @@
1
1
  module Cidrmergerb
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/lib/cidrmergerb.rb CHANGED
@@ -34,7 +34,7 @@ module Cidrmergerb
34
34
  ip, netmask = cidr.split('/')
35
35
  ipaddr = IPAddr.new(ip)
36
36
  ipaddr && netmask.to_i.between?(1, 32)
37
- rescue IPAddr::InvalidAddressError => e
37
+ rescue IPAddr::Error => e
38
38
  false
39
39
  end
40
40