resolv 0.1.0 → 0.2.0

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/lib/resolv.rb +27 -2
  3. data/resolv.gemspec +1 -1
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f39fbf2129374c8d1f9ed410bccf264bce7efeb9d42e472e47dad7fff85af81e
4
- data.tar.gz: 834c5e48ead61ba3b57f25c95b63ac49724cfc1de467c50067dd9d963a95eafd
3
+ metadata.gz: 240a66a5e747e1f666b2a6b95ddf8eb4eb14c5c8ac158d271917ac4a1b2399ec
4
+ data.tar.gz: 6a8aaab87f6106d158e19fa3238d05d6c01570e1f3d0a47e1ff5d38feb163627
5
5
  SHA512:
6
- metadata.gz: 8acfedd93125c5cda492e0456bc9390025df2a8ce9f8918ec69607a0cf821544e86180af010722116cd42a0fa8b88b7721b85191de26a16a71751e0dc9da1364
7
- data.tar.gz: 8df9e5caed44b8a4ec672f3abaa053968d2f71b8c5c12316bddcff23b28fc780491b0342530c1ae21e9393a0b6319518bb22d16dacb226dc393fb53970a8ee0a
6
+ metadata.gz: e92ffff6b41c6c3fc835a0b486e52dd882d3182eb2d5b33cce7b44194d85de3bf0d654e1cf7a41e20c52d6f8e22733ea3d32e323dcd2b57a6f8bb77a7a25f898
7
+ data.tar.gz: 254f8a2de06257d8acdd6eb980a70b06910f83c49f8d404a4082047bf90abbc63443968f1e585c3fc3ff331235d2a80a78089e73c9208f3cf8b367a1da0396bd
@@ -706,7 +706,7 @@ class Resolv
706
706
  end
707
707
 
708
708
  def sender_for(addr, msg)
709
- @senders[[addr,msg.id]]
709
+ @senders.delete([addr,msg.id])
710
710
  end
711
711
 
712
712
  def close
@@ -2459,6 +2459,28 @@ class Resolv
2459
2459
  (\d+)\.(\d+)\.(\d+)\.(\d+)
2460
2460
  \z/x
2461
2461
 
2462
+ ##
2463
+ # IPv6 link local address format fe80:b:c:d:e:f:g:h%em1
2464
+ Regex_8HexLinkLocal = /\A
2465
+ [Ff][Ee]80
2466
+ (?::[0-9A-Fa-f]{1,4}){7}
2467
+ %[0-9A-Za-z]+
2468
+ \z/x
2469
+
2470
+ ##
2471
+ # Compressed IPv6 link local address format fe80::b%em1
2472
+
2473
+ Regex_CompressedHexLinkLocal = /\A
2474
+ [Ff][Ee]80:
2475
+ (?:
2476
+ ((?:[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4})*)?) ::
2477
+ ((?:[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4})*)?)
2478
+ |
2479
+ :((?:[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4})*)?)
2480
+ )?
2481
+ :[0-9A-Fa-f]{1,4}%[0-9A-Za-z.]+
2482
+ \z/x
2483
+
2462
2484
  ##
2463
2485
  # A composite IPv6 address Regexp.
2464
2486
 
@@ -2466,7 +2488,10 @@ class Resolv
2466
2488
  (?:#{Regex_8Hex}) |
2467
2489
  (?:#{Regex_CompressedHex}) |
2468
2490
  (?:#{Regex_6Hex4Dec}) |
2469
- (?:#{Regex_CompressedHex4Dec})/x
2491
+ (?:#{Regex_CompressedHex4Dec}) |
2492
+ (?:#{Regex_8HexLinkLocal}) |
2493
+ (?:#{Regex_CompressedHexLinkLocal})
2494
+ /x
2470
2495
 
2471
2496
  ##
2472
2497
  # Creates a new IPv6 address from +arg+ which may be:
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "resolv"
3
- spec.version = "0.1.0"
3
+ spec.version = "0.2.0"
4
4
  spec.authors = ["Tanaka Akira"]
5
5
  spec.email = ["akr@fsij.org"]
6
6
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resolv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tanaka Akira
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-09-18 00:00:00.000000000 Z
11
+ date: 2020-12-22 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Thread-aware DNS resolver library in Ruby.
14
14
  email:
@@ -49,7 +49,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
49
49
  - !ruby/object:Gem::Version
50
50
  version: '0'
51
51
  requirements: []
52
- rubygems_version: 3.2.0.rc.1
52
+ rubygems_version: 3.2.2
53
53
  signing_key:
54
54
  specification_version: 4
55
55
  summary: Thread-aware DNS resolver library in Ruby.