rspec-dns 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: e5b6231b44ef47c7d13817cabb728ee64606795e
4
- data.tar.gz: 0beef35ee9c42afa03744ee95e7349a37555b0c7
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NWRiZTRhMmQxNzEwM2NjYzFlOTI3MDRiMTBmZDgyM2ViMDk5ODAzMQ==
5
+ data.tar.gz: !binary |-
6
+ ZmE3YmFlOWVlYjM3ZWFhMDc5NGI0NmI4ZmFjODVlYzA2Yzk5ODIwZA==
5
7
  SHA512:
6
- metadata.gz: f72b1b10eab61c6007487f8c1160ee83df571bb8ff5ed7dc5960930061ec481e79c62099c2d96251cab30640f1b0e4d6142926875444541b0b65c604517db373
7
- data.tar.gz: 3495b27a458725ec45a8b6307b2af34b74da2af7a953ec4411d4882eb4d14287b0787f03ddb5976fb9440e7d40278b7c8928b945306cf90b8035d02753497208
8
+ metadata.gz: !binary |-
9
+ NWIyMTg1YTJhNTgyMTZkZjcyMjIyZDcwNTg2ZjY1OTE3YWMyMzhiMmJlOGM5
10
+ NzQ0YjRlMDYzZGZhYjI1YTU4ZTA3MTRmNjY3YTY0OTljOGQxMmRjNDQxOGQy
11
+ ZjgzMTU3OGQxYzg4ZTFlYzU1MGVlMDQ0NzUzNzRlMzQ5NTQ2MTA=
12
+ data.tar.gz: !binary |-
13
+ YjQ0NTc3YjQ4MWU4N2RmMzFlYzJkYzdiYmQwZmRkODk1ZjgxZjFmYzU3ZjFm
14
+ YmQ2MDQ5ZjIyMDVmYTAzYjYyYzE3YWZlMjhjOGFhYTgzZjBlNDg2OTI1YzMy
15
+ Yzc2YjEwZWRmNjY3ZTJiN2Y3NjdkNzA3NGNkZGEyNTU1N2Q1ZGM=
data/.travis.yml CHANGED
@@ -1,13 +1,20 @@
1
1
  language: ruby
2
-
3
- script: "rake travis"
4
-
2
+ cache: bundler
3
+ sudo: false
4
+ script: bundle exec rake travis
5
+ before_install:
6
+ - gem update bundler
5
7
  rvm:
6
- - 1.9.3
7
- - 2.2.0
8
- - jruby-19mode
9
- - rbx-2
10
-
8
+ - 1.9.3
9
+ - 2.2.0
10
+ - jruby-19mode
11
+ - rbx-2
11
12
  addons:
12
13
  code_climate:
13
14
  repo_token: 2feb9f7ee6d879b72c3b33fd897a801d7aa0eadcc72898242b5a2dff2435b937
15
+ deploy:
16
+ provider: rubygems
17
+ on:
18
+ tags: true
19
+ api_key:
20
+ secure: XFUKxH18R6lT5In7phyVsL3a5mcESrssD2dlNrQvC2TXeBGif+0sSSt7ZfRuFve5XB0Wa8ruClFxRr0uMXRqUZUKc1/VbLM2DnLLkruK8pwdu2oQI3JMdcDtMmVsVxvJViAAy3ibuKuCTF2NbU+Yg/VrwMNU+aN63zsDR44t1IU=
data/README.md CHANGED
@@ -73,7 +73,7 @@ Here's some usage examples:
73
73
  end
74
74
 
75
75
  it 'checks if gslb subdomain is delegated to dynect' do
76
- expect('gslb.example.com').to have_dns.in_authority.with_type('NS').and_name(/dynect/).at_least(3)
76
+ expect('gslb.example.com').to have_dns.in_authority.with_type('NS').and_domainname(/dynect/).at_least(3)
77
77
  end
78
78
 
79
79
  it 'checks number of hosts in round robin' do
@@ -122,7 +122,7 @@ Depending on the type of record, the following attributes may be available:
122
122
  If you try checking an attribute on a record that is non-existent (like checking the `rmailbx` on an `A` record), you'll get an error like this:
123
123
 
124
124
  ```text
125
- Failure/Error: it { is_expected.to have_dns.with_type('TXT').and_ftl(300).and_data('a=b') }
125
+ Failure/Error: it { is_expected.to have_dns.with_type('TXT').and_ttl(300).and_data('a=b') }
126
126
  got 1 exception(s): undefined method `rmailbx' for #<Dnsruby::RR::IN::A:0x007f66a0339b00>
127
127
  ```
128
128
 
@@ -143,7 +143,15 @@ nameserver:
143
143
  If this file is missing Resolv will use the settings in /etc/resolv.conf.
144
144
  You can also configure with `config` chain.
145
145
 
146
- The full list of configuration options can be found on the [Dnsruby docs](http://www.rubydoc.info/gems/dnsruby/Dnsruby/Config).
146
+ ```ruby
147
+ it 'checks with configuration' do
148
+ expect('example.com').to have_dns
149
+ .with_type('A').config(nameserver: '192.0.2.4', recurse: false)
150
+ end
151
+ ```
152
+
153
+ The full list of configuration options can be found on the Dnsruby docs
154
+ [(Config)](http://www.rubydoc.info/gems/dnsruby/Dnsruby/Config) and [(Resolver#initialize)](http://www.rubydoc.info/gems/dnsruby/Dnsruby/Resolver:initialize).
147
155
 
148
156
  ### Configuring connection timeout
149
157
 
@@ -153,7 +153,7 @@ RSpec::Matchers.define :have_dns do
153
153
  resolver = Dnsruby::Resolver.new(config)
154
154
  resolver.query_timeout = query_timeout
155
155
  resolver.do_caching = false
156
- resolver.query(@_name, Dnsruby::Types.ANY)
156
+ resolver.query(@_name, _options[:type] || Dnsruby::Types.ANY)
157
157
  end
158
158
  rescue Exception => e
159
159
  if Dnsruby::NXDomain === e
data/rspec-dns.gemspec CHANGED
@@ -1,5 +1,5 @@
1
1
  Gem::Specification.new do |s|
2
- s.version = '0.1.6'
2
+ s.version = '0.1.7'
3
3
  s.name = 'rspec-dns'
4
4
  s.authors = ['Seth Vargo', 'Alexey Lapitsky', 'Johannes Russek', 'Hiroshi OTA']
5
5
  s.email = 'alexey@spotify.com'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-dns
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seth Vargo
@@ -11,34 +11,34 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2015-05-04 00:00:00.000000000 Z
14
+ date: 2016-10-27 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rake
18
18
  requirement: !ruby/object:Gem::Requirement
19
19
  requirements:
20
- - - '>='
20
+ - - ! '>='
21
21
  - !ruby/object:Gem::Version
22
22
  version: '0'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - '>='
27
+ - - ! '>='
28
28
  - !ruby/object:Gem::Version
29
29
  version: '0'
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: rspec
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  requirements:
34
- - - '>='
34
+ - - ! '>='
35
35
  - !ruby/object:Gem::Version
36
36
  version: '2.9'
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
- - - '>='
41
+ - - ! '>='
42
42
  - !ruby/object:Gem::Version
43
43
  version: '2.9'
44
44
  - !ruby/object:Gem::Dependency
@@ -85,17 +85,17 @@ require_paths:
85
85
  - lib
86
86
  required_ruby_version: !ruby/object:Gem::Requirement
87
87
  requirements:
88
- - - '>='
88
+ - - ! '>='
89
89
  - !ruby/object:Gem::Version
90
90
  version: '0'
91
91
  required_rubygems_version: !ruby/object:Gem::Requirement
92
92
  requirements:
93
- - - '>='
93
+ - - ! '>='
94
94
  - !ruby/object:Gem::Version
95
95
  version: '0'
96
96
  requirements: []
97
97
  rubyforge_project:
98
- rubygems_version: 2.0.3
98
+ rubygems_version: 2.4.5
99
99
  signing_key:
100
100
  specification_version: 4
101
101
  summary: rspec-dns provides an easy-to-use DSL for testing your DNS records are responding