vagrant-dns 1.1.0 → 2.0.0.rc1
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 +4 -4
- data/CHANGELOG.md +6 -0
- data/Gemfile +6 -7
- data/README.md +4 -0
- data/lib/vagrant-dns/service.rb +2 -2
- data/lib/vagrant-dns/version.rb +1 -1
- data/tasks/acceptance.rake +27 -14
- data/vagrant-dns.gemspec +4 -2
- data/vagrant-spec.config.rb +7 -5
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f0b5e94ce0cb174ab1d10026224ac2059870c6d
|
4
|
+
data.tar.gz: fc70e2dd85c4a34d7eb7a7f4b69f9993f8e95e89
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b00002ae2b379f716dc25867bc5839fb572106cb3d193b6ed6d5d9a2192a350745b59b347f1e3bb2134931f8cc3dc1eef9d6f20e923cc6816aded15d4448f3c6
|
7
|
+
data.tar.gz: e290d49baa50b8bc9b03091bd3b091e6e1114e4bf6c21727722faceb8af41d9a14f95fa6a55bf0ea95f1a913f689fb4eb4296db9256ce7f99bbc5b81d7c14cc8
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
# 2.2.0.rc1
|
2
|
+
|
3
|
+
* Upgrades RubyDNS to `2.0.0.pre.rc2`, which removes it's dependency on `celluloid`/`celluloid-dns` 🎉
|
4
|
+
* Requires Vagrant >= 1.9.6 which ships with ruby 2.3.4 (RubyDNS requires ruby >= 2.2.6)
|
5
|
+
* Development note: Upgraded to vagrant-share HEAD (d558861f)
|
6
|
+
|
1
7
|
# 1.1.0
|
2
8
|
|
3
9
|
* Fixes handling of networks without static IP, such as DHCP. [GH-37], [GH-39], [GH-50]
|
data/Gemfile
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
|
-
ruby(ENV['TEST_RUBY_VERSION'] || '~> 2.
|
2
|
+
ruby(ENV['TEST_RUBY_VERSION'] || '~> 2.3.4')
|
3
3
|
|
4
|
-
ENV['TEST_VAGRANT_VERSION'] ||= 'v1.9.
|
4
|
+
ENV['TEST_VAGRANT_VERSION'] ||= 'v1.9.6'
|
5
5
|
|
6
6
|
# Using the :plugins group causes Vagrant to automagially load auto_network
|
7
7
|
# during acceptance tests.
|
@@ -11,16 +11,15 @@ end
|
|
11
11
|
|
12
12
|
group :test, :development do
|
13
13
|
if ENV['TEST_VAGRANT_VERSION'] == 'HEAD'
|
14
|
-
gem 'vagrant', :
|
14
|
+
gem 'vagrant', :git => 'https://github.com/mitchellh/vagrant', :branch => 'master'
|
15
15
|
else
|
16
|
-
gem 'vagrant', :
|
16
|
+
gem 'vagrant', :git => 'https://github.com/mitchellh/vagrant', :tag => ENV['TEST_VAGRANT_VERSION']
|
17
17
|
end
|
18
|
-
gem 'rubydns', '~>
|
18
|
+
gem 'rubydns', '~> 2.0.0.pre.rc2'
|
19
19
|
end
|
20
20
|
|
21
21
|
group :test do
|
22
|
-
|
23
|
-
gem 'vagrant-spec', :github => 'mitchellh/vagrant-spec', :ref => 'aae28ee'
|
22
|
+
gem 'vagrant-spec', :git => 'https://github.com/mitchellh/vagrant-spec'
|
24
23
|
gem 'rake'
|
25
24
|
end
|
26
25
|
|
data/README.md
CHANGED
@@ -6,6 +6,10 @@
|
|
6
6
|
|
7
7
|
$ vagrant plugin install vagrant-dns
|
8
8
|
|
9
|
+
**Attention: As of v2.0.0, vagrant-dns requires vagrant >= 1.9.6 **(because it ships with a more modern version of ruby)
|
10
|
+
If you get an error like `rubydns requires Ruby version >= 2.2.6.` while installing, you probably need to upgrade vagrant.
|
11
|
+
Alternatively, you can install an older version of vagrant-dns like this: `vagrant plugin install --plugin-version="<2" vagrant-dns`
|
12
|
+
|
9
13
|
## Usage
|
10
14
|
|
11
15
|
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:
|
data/lib/vagrant-dns/service.rb
CHANGED
@@ -25,10 +25,10 @@ module VagrantDNS
|
|
25
25
|
def run!(run_options)
|
26
26
|
Daemons.run_proc("vagrant-dns", run_options) do
|
27
27
|
require 'rubydns'
|
28
|
-
require '
|
28
|
+
require 'async/dns/system'
|
29
29
|
|
30
30
|
registry = YAML.load(File.read(config_file))
|
31
|
-
std_resolver = RubyDNS::Resolver.new(
|
31
|
+
std_resolver = RubyDNS::Resolver.new(Async::DNS::System.nameservers)
|
32
32
|
|
33
33
|
RubyDNS::run_server(:listen => VagrantDNS::Config.listen) do
|
34
34
|
registry.each do |pattern, ip|
|
data/lib/vagrant-dns/version.rb
CHANGED
data/tasks/acceptance.rake
CHANGED
@@ -1,25 +1,38 @@
|
|
1
1
|
namespace :acceptance do
|
2
|
+
def tmp_dir_path
|
3
|
+
@tmp_dir_path ||= ENV["VS_TEMP"] || Dir.mktmpdir('vagrant-dns-spec')
|
4
|
+
end
|
5
|
+
|
2
6
|
ARTIFACT_DIR = File.join('test', 'acceptance', 'artifacts')
|
7
|
+
|
3
8
|
TEST_BOXES = {
|
4
9
|
:virtualbox => 'http://files.vagrantup.com/precise32.box'
|
5
10
|
}
|
6
11
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
+
TEST_BOXES.each do |provider, box_url|
|
13
|
+
# Declare file download tasks
|
14
|
+
directory ARTIFACT_DIR do
|
15
|
+
file File.join(ARTIFACT_DIR, "#{provider}.box") => ARTIFACT_DIR do |path|
|
16
|
+
puts 'Downloading: ' + box_url
|
17
|
+
Kernel.system 'curl', '-L', '-o', path.to_s, box_url
|
18
|
+
end
|
12
19
|
end
|
13
|
-
end
|
14
20
|
|
15
|
-
|
16
|
-
|
21
|
+
desc "Run acceptance tests for #{provider}"
|
22
|
+
task provider => :"setup:#{provider}" do |task|
|
23
|
+
box_path = File.expand_path(File.join('..', '..', ARTIFACT_DIR, "#{provider}.box"), __FILE__)
|
24
|
+
puts "TMPDIR: " + tmp_dir_path
|
25
|
+
Kernel.system(
|
26
|
+
{
|
27
|
+
"VS_PROVIDER" => provider.to_s,
|
28
|
+
"VS_BOX_PATH" => box_path,
|
29
|
+
"TMPDIR" => tmp_dir_path
|
30
|
+
},
|
31
|
+
"bundle", "exec", "vagrant-spec", "test"
|
32
|
+
)
|
33
|
+
end
|
17
34
|
|
18
|
-
|
19
|
-
|
20
|
-
command = 'vagrant-spec test'
|
21
|
-
puts command
|
22
|
-
puts
|
23
|
-
exec(command)
|
35
|
+
desc "downloads test boxes and other artifacts for #{provider}"
|
36
|
+
task :"setup:#{provider}" => File.join(ARTIFACT_DIR, "#{provider}.box")
|
24
37
|
end
|
25
38
|
end
|
data/vagrant-dns.gemspec
CHANGED
@@ -15,8 +15,10 @@ Gem::Specification.new do |gem|
|
|
15
15
|
gem.require_paths = ["lib"]
|
16
16
|
gem.version = Vagrant::Dns::VERSION
|
17
17
|
|
18
|
+
gem.required_ruby_version = '>= 2.2.6'
|
19
|
+
|
18
20
|
gem.add_dependency "daemons"
|
19
|
-
gem.add_dependency "rubydns", '~>
|
21
|
+
gem.add_dependency "rubydns", '~> 2.0.0.pre.rc2'
|
20
22
|
|
21
|
-
gem.add_development_dependency 'rspec', '~> 2.14.0'
|
23
|
+
gem.add_development_dependency 'rspec', '~> 2.14.0' # pin for vagrant-spec
|
22
24
|
end
|
data/vagrant-spec.config.rb
CHANGED
@@ -7,9 +7,11 @@ Vagrant::Spec::Acceptance.configure do |c|
|
|
7
7
|
c.component_paths = [acceptance_dir.to_s]
|
8
8
|
c.skeleton_paths = [(acceptance_dir + 'skeletons').to_s]
|
9
9
|
|
10
|
-
c.provider '
|
11
|
-
box:
|
12
|
-
|
13
|
-
|
14
|
-
|
10
|
+
c.provider ENV['VS_PROVIDER'],
|
11
|
+
box: ENV['VS_BOX_PATH'],
|
12
|
+
skeleton_path: c.skeleton_paths
|
13
|
+
|
14
|
+
# there seems no other way to set additional environment variables
|
15
|
+
# see: https://github.com/mitchellh/vagrant-spec/pull/17
|
16
|
+
c.instance_variable_set(:@env, c.env.merge('VBOX_USER_HOME' => "{{homedir}}"))
|
15
17
|
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:
|
4
|
+
version: 2.0.0.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Florian Gilcher
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-06-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: daemons
|
@@ -31,14 +31,14 @@ dependencies:
|
|
31
31
|
requirements:
|
32
32
|
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version:
|
34
|
+
version: 2.0.0.pre.rc2
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version:
|
41
|
+
version: 2.0.0.pre.rc2
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: rspec
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
@@ -91,15 +91,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
91
91
|
requirements:
|
92
92
|
- - ">="
|
93
93
|
- !ruby/object:Gem::Version
|
94
|
-
version:
|
94
|
+
version: 2.2.6
|
95
95
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
96
96
|
requirements:
|
97
|
-
- - "
|
97
|
+
- - ">"
|
98
98
|
- !ruby/object:Gem::Version
|
99
|
-
version:
|
99
|
+
version: 1.3.1
|
100
100
|
requirements: []
|
101
101
|
rubyforge_project:
|
102
|
-
rubygems_version: 2.
|
102
|
+
rubygems_version: 2.5.2
|
103
103
|
signing_key:
|
104
104
|
specification_version: 4
|
105
105
|
summary: vagrant-dns manages DNS records of vagrant machines
|