ipaddr 1.2.1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/ipaddr.gemspec +1 -1
  3. data/lib/ipaddr.rb +2 -0
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f8cb14fdb3f8348c7bc311ccc8849780308351aa
4
- data.tar.gz: c4abec7410bd5418133225309263bb2ac664894e
3
+ metadata.gz: 78c5854e872965800e79a6508cb7d8ff3cb3ea73
4
+ data.tar.gz: 0b6b8d515a8718a852beb923e7f5c24c9f65353d
5
5
  SHA512:
6
- metadata.gz: 6230a8dddd78fa8669e750845964337a26ee0cb223492987b25feb2f80d5a7bbd42be8f706a5e417840965cf11e470efcf0009ecd76ee4673f58c0a657148d37
7
- data.tar.gz: 04c735f491e8f8690b83c529f394e48e8dfb208d4ed8a8303a0605aefb9c7d906a1ed4bae5bc7e0f56977fabf855aef70b6937d144acc5e97e399d2fd6269ece
6
+ metadata.gz: e3089db198e90b6c0860b09483f052fa1eb24cfb034d1473db3817e46e06b00d52afec9d5f43abaf09e01bf603324473ed9ed0de770e5bdf6de308f4e57cd556
7
+ data.tar.gz: ed8a0801bc5aa5df9ddcbcb7d8134e521ab1e77af14c19a38b0e625c1ac77bf0e48f271ef54b517a805585d4d3611a2bed848f997d0b8166cccf25747fcdee35
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "ipaddr"
8
- spec.version = "1.2.1"
8
+ spec.version = "1.2.2"
9
9
  spec.authors = ["Akinori MUSHA", "Hajimu UMEMOTO"]
10
10
  spec.email = ["knu@idaemons.org", "ume@mahoroba.org"]
11
11
 
@@ -594,6 +594,8 @@ class IPAddr
594
594
  else
595
595
  @mask_addr = (@family == Socket::AF_INET) ? IN4MASK : IN6MASK
596
596
  end
597
+ rescue InvalidAddressError => e
598
+ raise e.class, "#{e.message}: #{addr}"
597
599
  end
598
600
 
599
601
  def coerce_other(other)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ipaddr
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Akinori MUSHA