dns_adapter 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dns_adapter/mock_client.rb +4 -0
- data/lib/dns_adapter/resolv_client.rb +4 -0
- data/lib/dns_adapter/version.rb +1 -1
- data/spec/resolv_client_spec.rb +9 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3506341cbfc07d85e3262c0d63babbb2a6c99b1d
|
4
|
+
data.tar.gz: 112869d06cafd627e5ec1a60bfd4a739dd6a011d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6db23681d6a5e687b9be426315d5f666f839f81d95db29570ff2b401760108d0811da361655e649b6e14e9dbfb228a5f9e5c41debea38030d15c2ab90dae0c22
|
7
|
+
data.tar.gz: 0df0c0eb06854afb3c56a09231d0c26f006465028d12884b931a3b5d92ba7441366a992009bb9f98e51a444c483c243abdcba032dc6c747ee89c93dabdc83943
|
data/lib/dns_adapter/version.rb
CHANGED
data/spec/resolv_client_spec.rb
CHANGED
@@ -487,4 +487,13 @@ describe DNSAdapter::ResolvClient do
|
|
487
487
|
.to raise_error(DNSAdapter::TimeoutError)
|
488
488
|
end
|
489
489
|
end
|
490
|
+
|
491
|
+
context '#timeouts=' do
|
492
|
+
let(:timeout_val) { 5 }
|
493
|
+
it 'should delegate timeouts=' do
|
494
|
+
expect(Resolv::DNS).to receive(:new).and_return(mock_resolver)
|
495
|
+
expect(mock_resolver).to receive(:timeouts=).with(timeout_val)
|
496
|
+
expect { subject.timeouts = timeout_val }.not_to raise_error
|
497
|
+
end
|
498
|
+
end
|
490
499
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dns_adapter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter M. Goldstein
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|