rspec-dns 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZjA1MGNlM2VlOWQ3N2M4OWI1MDMwN2ViNjc1ZmRhNDk0NTQ2NTBjNg==
4
+ MDk3ZDBlNjQ0NTJhZmNjNjZiNWNmMWU5MzgzODg3ZjJmNjI5MmZiZA==
5
5
  data.tar.gz: !binary |-
6
- YjAxNjUxYjEzZjM3YTg1YjA1MWVhMjdiMTM2NmU0ZjYzYmZhNDY2Yg==
6
+ YjZhMmQzOGJkOGYwNzhjMjZmZTE0YWIyYzcwYWJlNTBiYTQwYjE4Yw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- OTA4ZWNlMWEwNTFmNWE1NWI0Nzk3NWIyYmI0MWIyNzlhNWRiNGJiZTQzZjA4
10
- NmNjZDljOWUxOThkMDliNzYwNTIyZTQwMWFkY2EzNTlmNDhmYzZhZGFiZmIy
11
- YWY5MTUzMzNmMTg3Mzk0ZjUxY2Q4Mzk4MzQ4NmUzN2Y1MDRkYzA=
9
+ MzhjOTc4MDZmYjZlYWNkZjhjOGE1NzlhOWQ1M2I0OWE0ZmVhOWNlM2QwNDBm
10
+ MTUxOTQ5N2U1YjMyOWRlMzQ0Y2RiYjU4ZDc0MDlkNmU5OWI0ODUzMWIzZWUy
11
+ YzY2YzdhYTcxYzk4YzE4MDMyZDM5ZWE2MTAxNGZkYTA0MWY5MjM=
12
12
  data.tar.gz: !binary |-
13
- NTFlMDk5YTJiNTAwMDQ5ZTkwNzYxNmU4N2FiYjc0MjI4NDI5ZjY4Zjc3YTcy
14
- NjAxY2IxNmVkZjM1YzUxM2FiYzUzZGRjMjhjOWQ4M2Q5YmU5OGQzNDA1Nzkx
15
- MDYwYTJkZmY1ZTMxYzFkY2QzYjM4YzdjNDEzYThiNTkzNzJkZmU=
13
+ YzVmZjBhZTZlMzcwMjQxMDUzMTcwY2U5MjVlNjI4MjQ3MGE0NDMxYTY1ZGI4
14
+ YzY4MGZlZWE2MDZlMWQ5NzIzMzA2NDI4OWY3YmMyNjNkM2NiYWZjODRiOWJj
15
+ NmE0MWFmMzJjNzQyZTc4ZTk2YzY1NjU1NThjYzU0MDlhZThkZDc=
data/.gitignore CHANGED
@@ -14,4 +14,5 @@ rdoc
14
14
  spec/reports
15
15
  test/tmp
16
16
  test/version_tmp
17
+ vendor
17
18
  tmp
data/lib/rspec-dns.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  require 'erb'
2
- require 'resolv'
2
+ require 'dnsruby'
3
3
  require 'rspec/expectations'
4
4
 
5
5
  require 'rspec-dns/have_dns'
data/rspec-dns.gemspec CHANGED
@@ -1,5 +1,5 @@
1
1
  Gem::Specification.new do |s|
2
- s.version = '0.1.0'
2
+ s.version = '0.1.1'
3
3
  s.name = 'rspec-dns'
4
4
  s.authors = ['Seth Vargo', 'Alexey Lapitsky', 'Johannes Russek']
5
5
  s.email = 'alexey@spotify.com'
@@ -1,7 +1,4 @@
1
1
  require 'spec_helper'
2
- require 'dnsruby'
3
- require 'resolv'
4
- require_relative '../../lib/rspec-dns'
5
2
 
6
3
  def stub_records(strings)
7
4
  records = strings.map { |s| Dnsruby::RR.new_from_string(s) }
@@ -22,7 +19,7 @@ describe 'rspec-dns matchers' do
22
19
 
23
20
  'example.com'.should have_dns.with_type('A')
24
21
  'example.com'.should_not have_dns.with_type('TXT')
25
- 'example.com'.should have_dns.with_type('A').and_address(Resolv::IPv4.create('192.168.100.100'))
22
+ 'example.com'.should have_dns.with_type('A').and_address('192.168.100.100')
26
23
  end
27
24
 
28
25
  it 'can evalutate a AAAA record' do
@@ -31,7 +28,7 @@ describe 'rspec-dns matchers' do
31
28
  'example.com'.should have_dns.with_type('AAAA')
32
29
  'example.com'.should_not have_dns.with_type('A')
33
30
  'example.com'.should have_dns.with_type('AAAA')
34
- .and_address(Resolv::IPv6.create('2001:0002:6c::430'))
31
+ .and_address('2001:2:6C::430')
35
32
  end
36
33
 
37
34
  it 'can evalutate a CNAME record' do
data/spec/spec_helper.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require 'rspec'
2
+ require 'rspec-dns'
2
3
 
3
4
  RSpec.configure do |config|
4
5
  end
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.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seth Vargo
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-03-19 00:00:00.000000000 Z
13
+ date: 2014-04-14 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake