vagrant-dns 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,8 @@
1
+ # v0.2.3
2
+
3
+ * Remove unneeded iteraton in installers/mac.rb. (thanks to JonathanTron for reporting)
4
+ * Fix crash when no tld option was given.
5
+
1
6
  # v0.2.2
2
7
 
3
8
  * Default to 127.0.0.1 when no network option is given
@@ -24,11 +24,15 @@ module VagrantDNS
24
24
  def pattern=(pattern)
25
25
  self.patterns = pattern
26
26
  end
27
-
27
+
28
28
  def tld=(tld)
29
29
  @tlds = Array(tld)
30
30
  end
31
31
 
32
+ def tlds
33
+ @tlds ||= []
34
+ end
35
+
32
36
  # explicit hash, to get symbols in hash keys
33
37
  def to_hash
34
38
  {
@@ -11,9 +11,7 @@ module VagrantDNS
11
11
  require 'fileutils'
12
12
  FileUtils.mkdir_p('/etc/resolver')
13
13
 
14
- registered_resolvers.each do |r|
15
- FileUtils.ln_s(registered_resolvers, "/etc/resolver", :force => true)
16
- end
14
+ FileUtils.ln_s(registered_resolvers, "/etc/resolver", :force => true)
17
15
  rescue Errno::EACCES => e
18
16
  warn "vagrant-dns needs superuser access to manipulate DNS settings"
19
17
  raise e
@@ -1,5 +1,5 @@
1
1
  module Vagrant
2
2
  module Dns
3
- VERSION = "0.2.2"
3
+ VERSION = "0.2.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-dns
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
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: 2012-05-03 00:00:00.000000000 Z
12
+ date: 2012-05-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: vagrant