resolv 0.2.0 → 0.2.1

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
  SHA256:
3
- metadata.gz: 240a66a5e747e1f666b2a6b95ddf8eb4eb14c5c8ac158d271917ac4a1b2399ec
4
- data.tar.gz: 6a8aaab87f6106d158e19fa3238d05d6c01570e1f3d0a47e1ff5d38feb163627
3
+ metadata.gz: 1bf3ba9bb88ab06a53d2e20d8349c226de8a53bcdf67b2c29072857d691d1a12
4
+ data.tar.gz: e260ec02eacdb6ea69505dd272afd8292f03af269a215792425c33dfc89a7b6f
5
5
  SHA512:
6
- metadata.gz: e92ffff6b41c6c3fc835a0b486e52dd882d3182eb2d5b33cce7b44194d85de3bf0d654e1cf7a41e20c52d6f8e22733ea3d32e323dcd2b57a6f8bb77a7a25f898
7
- data.tar.gz: 254f8a2de06257d8acdd6eb980a70b06910f83c49f8d404a4082047bf90abbc63443968f1e585c3fc3ff331235d2a80a78089e73c9208f3cf8b367a1da0396bd
6
+ metadata.gz: 608c379803d480eddb1f48858d7ac1a79d02bfa54499b8ac47c58aef390e7ec4c611ee48034146668644bc5873cfd4f7c41302a6b686ff7ac774c0d1e15fa9eb
7
+ data.tar.gz: bf6e669b18e58754ace2258dd0dad1d6bae791e1e361b72e2151d24b91adfd3df277ad6cefba3cb37b52c6ef6874b56a83e16bc3df0e24d129a840ae1cec6433
@@ -7,18 +7,16 @@ jobs:
7
7
  name: build (${{ matrix.ruby }} / ${{ matrix.os }})
8
8
  strategy:
9
9
  matrix:
10
- ruby: [ 2.7, 2.6, 2.5, head ]
10
+ ruby: [ '3.0', 2.7, 2.6, 2.5, head ]
11
11
  os: [ ubuntu-latest, macos-latest ]
12
12
  runs-on: ${{ matrix.os }}
13
13
  steps:
14
- - uses: actions/checkout@master
14
+ - uses: actions/checkout@v2
15
15
  - name: Set up Ruby
16
16
  uses: ruby/setup-ruby@v1
17
17
  with:
18
18
  ruby-version: ${{ matrix.ruby }}
19
19
  - name: Install dependencies
20
- run: |
21
- gem install bundler --no-document
22
- bundle install
20
+ run: bundle install
23
21
  - name: Run test
24
22
  run: rake test
data/lib/resolv.rb CHANGED
@@ -696,17 +696,17 @@ class Resolv
696
696
  rescue DecodeError
697
697
  next # broken DNS message ignored
698
698
  end
699
- if s = sender_for(from, msg)
699
+ if sender == sender_for(from, msg)
700
700
  break
701
701
  else
702
702
  # unexpected DNS message ignored
703
703
  end
704
704
  end
705
- return msg, s.data
705
+ return msg, sender.data
706
706
  end
707
707
 
708
708
  def sender_for(addr, msg)
709
- @senders.delete([addr,msg.id])
709
+ @senders[[addr,msg.id]]
710
710
  end
711
711
 
712
712
  def close
data/resolv.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "resolv"
3
- spec.version = "0.2.0"
3
+ spec.version = "0.2.1"
4
4
  spec.authors = ["Tanaka Akira"]
5
5
  spec.email = ["akr@fsij.org"]
6
6
 
@@ -17,6 +17,6 @@ Gem::Specification.new do |spec|
17
17
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
18
  end
19
19
  spec.bindir = "exe"
20
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
+ spec.executables = []
21
21
  spec.require_paths = ["lib"]
22
22
  end
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.2.0
4
+ version: 0.2.1
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-12-22 00:00:00.000000000 Z
11
+ date: 2021-06-01 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.2
52
+ rubygems_version: 3.3.0.dev
53
53
  signing_key:
54
54
  specification_version: 4
55
55
  summary: Thread-aware DNS resolver library in Ruby.