landrush 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -25,7 +25,7 @@ module Landrush
25
25
  end
26
26
 
27
27
  def self.upstream
28
- @upstream ||= landrush::Resolver.new(upstream_servers)
28
+ @upstream ||= RubyDNS::Resolver.new(upstream_servers)
29
29
  end
30
30
 
31
31
  def self.pid
@@ -1,3 +1,3 @@
1
1
  module Landrush
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
@@ -17,6 +17,20 @@ module Landrush
17
17
 
18
18
  Server.running?.must_equal false
19
19
  end
20
+
21
+ it 'can be queried for upstream entries' do
22
+ hush { Server.start }
23
+
24
+ output = `dig -p #{Server.port} @127.0.0.1 phinze.com`
25
+
26
+ answer_line = output.split("\n").grep(/^phinze\.com\./).first
27
+
28
+ answer_line.wont_equal nil
29
+
30
+ ip_address = answer_line.split.last
31
+
32
+ ip_address.must_match(/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/)
33
+ end
20
34
  end
21
35
  end
22
36
  end
data/test/test_helper.rb CHANGED
@@ -25,6 +25,7 @@ def fake_environment_with_machine(hostname, ip)
25
25
  'fake_provider',
26
26
  provider_cls,
27
27
  'provider_config',
28
+ {}, # provider_options
28
29
  env.config_global,
29
30
  Pathname('data_dir'),
30
31
  'box',
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: landrush
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-17 00:00:00.000000000 Z
12
+ date: 2013-06-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rubydns