vagrant-dns 0.4.0 → 0.4.1

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.
data/CHANGELOG.md CHANGED
@@ -1,9 +1,15 @@
1
+ # v0.4.1
2
+
3
+ * Fixes an issue with not configured private networks [GH-21], [GH-19]
4
+
1
5
  # v0.4.0
2
6
 
3
7
  **This version is not compatible to vagrant < 1.2**
4
8
 
5
- * Supports vagrant 1.2.x
9
+ * Supports vagrant 1.2.x [GH-17]
6
10
  * Update RubyDNS ~> 0.6.0
11
+ * Fixes an issue where user-space files got created as root [GH-12]
12
+ * Adds command line option `--purge` which deletes the created config file (not only the system symlink to it) [GH-3]
7
13
 
8
14
  # v0.3.0
9
15
 
data/README.md CHANGED
@@ -4,8 +4,6 @@
4
4
 
5
5
  ## Installation
6
6
 
7
- If you use the gem version of Vagrant, use:
8
-
9
7
  $ vagrant plugin install vagrant-dns
10
8
 
11
9
  ## Usage
@@ -13,15 +11,15 @@ If you use the gem version of Vagrant, use:
13
11
  In addition to your networking config, configure a toplevel domain and a `hostname` for your machine. Optionally, configure a set of free matching patterns. Global configuration options can be given through the `VagrantDNS::Config` object:
14
12
 
15
13
  ```ruby
16
- Vagrant::Config.run do |config|
14
+ Vagrant.configure("2") do |config|
17
15
  #...
18
-
16
+
19
17
  config.dns.tld = "dev"
20
-
18
+
21
19
  config.vm.hostname = "machine"
22
-
20
+
23
21
  config.dns.patterns = [/^.*mysite.dev$/, /^.*myothersite.dev$/]
24
-
22
+
25
23
  config.vm.network :private_network, ip: "33.33.33.60"
26
24
  end
27
25
 
@@ -43,6 +41,13 @@ You can delete this file by running:
43
41
  $ vagrant dns --uninstall
44
42
  ```
45
43
 
44
+ To also delete the created config file for this TLD (`~/.vagrant.d/tmp/dns/resolver/dev` in our example) run:
45
+
46
+
47
+ ```bash
48
+ $ vagrant dns --purge
49
+ ```
50
+
46
51
  Then, run the DNS server:
47
52
 
48
53
  ```bash
@@ -41,7 +41,7 @@ module VagrantDNS
41
41
  network = nw if nw.first == :private_network
42
42
  end
43
43
 
44
- if network
44
+ if ! network.empty?
45
45
  ip = network.last[:ip]
46
46
  else
47
47
  ip = '127.0.0.1'
@@ -1,5 +1,5 @@
1
1
  module Vagrant
2
2
  module Dns
3
- VERSION = "0.4.0"
3
+ VERSION = "0.4.1"
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.4.0
4
+ version: 0.4.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-03 00:00:00.000000000 Z
12
+ date: 2013-09-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: daemons