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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7ebb8290a9ed4fb59e1d7b4672c7293482102b29
4
- data.tar.gz: fd4919453ea2a37c820150183762693ac972a5b4
3
+ metadata.gz: 3506341cbfc07d85e3262c0d63babbb2a6c99b1d
4
+ data.tar.gz: 112869d06cafd627e5ec1a60bfd4a739dd6a011d
5
5
  SHA512:
6
- metadata.gz: 11213627f86949e648a426f65db6eb5ec08a05ecf549abcba48b9c52a0496f9c914b6d49e156503af4d2c67567ec0a6e9a9ed727d7e7b6c228a47e8fd2074ab8
7
- data.tar.gz: cb7b62d7c1973b490d36320ada3c074353c8303790a3cdc95eb85f001af4a9c7113a67b4bae8577011f77323470bda6850e167e842cc40a8988474c134ac5cdd
6
+ metadata.gz: 6db23681d6a5e687b9be426315d5f666f839f81d95db29570ff2b401760108d0811da361655e649b6e14e9dbfb228a5f9e5c41debea38030d15c2ab90dae0c22
7
+ data.tar.gz: 0df0c0eb06854afb3c56a09231d0c26f006465028d12884b931a3b5d92ba7441366a992009bb9f98e51a444c483c243abdcba032dc6c747ee89c93dabdc83943
@@ -42,6 +42,10 @@ module DNSAdapter
42
42
  fetch_records(domain, 'SPF')
43
43
  end
44
44
 
45
+ def timeouts=(timeouts)
46
+ # Deliberate NOOP
47
+ end
48
+
45
49
  def fetch_records(domain, type)
46
50
  record_set = find_records_for_domain(domain)
47
51
  return [] if record_set.empty?
@@ -42,6 +42,10 @@ module DNSAdapter
42
42
  fetch_name_records(domain, 'CNAME')
43
43
  end
44
44
 
45
+ def timeouts=(timeouts)
46
+ dns_resolver.timeouts = timeouts
47
+ end
48
+
45
49
  private
46
50
 
47
51
  def fetch_a_type_records(domain, type)
@@ -1,3 +1,3 @@
1
1
  module DNSAdapter
2
- VERSION = '0.0.6'.freeze
2
+ VERSION = '0.0.7'.freeze
3
3
  end
@@ -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.6
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-17 00:00:00.000000000 Z
11
+ date: 2016-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler