vagrant-dns 1.1.0 → 2.0.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1b5a5f6e14ebc5f918008c61685cfbf769596db1
4
- data.tar.gz: 2c3dfff6cf22d3960c4dcc12e783577a4e232cfe
3
+ metadata.gz: 6f0b5e94ce0cb174ab1d10026224ac2059870c6d
4
+ data.tar.gz: fc70e2dd85c4a34d7eb7a7f4b69f9993f8e95e89
5
5
  SHA512:
6
- metadata.gz: 6193969e02c212e396979e3cd69be02be51b86145cea153e65acea7511db177bfe4b1c75ddc3b49a80fc4dd3f63557c49da54ec935dd792c8f8f7b060dcd6b09
7
- data.tar.gz: 3fdcefc945ecbc726e58d69c967e336ede6bd5392c89c0ba6d121ec5635f55975b3641f1c9c7526fc32fcddc4e8295ac1bef5d2c5d3ed2c69505e6f3b0cce203
6
+ metadata.gz: b00002ae2b379f716dc25867bc5839fb572106cb3d193b6ed6d5d9a2192a350745b59b347f1e3bb2134931f8cc3dc1eef9d6f20e923cc6816aded15d4448f3c6
7
+ data.tar.gz: e290d49baa50b8bc9b03091bd3b091e6e1114e4bf6c21727722faceb8af41d9a14f95fa6a55bf0ea95f1a913f689fb4eb4296db9256ce7f99bbc5b81d7c14cc8
@@ -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.5')
2
+ ruby(ENV['TEST_RUBY_VERSION'] || '~> 2.3.4')
3
3
 
4
- ENV['TEST_VAGRANT_VERSION'] ||= 'v1.9.3'
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', :github => 'mitchellh/vagrant', :branch => 'master'
14
+ gem 'vagrant', :git => 'https://github.com/mitchellh/vagrant', :branch => 'master'
15
15
  else
16
- gem 'vagrant', :github => 'mitchellh/vagrant', :tag => ENV['TEST_VAGRANT_VERSION']
16
+ gem 'vagrant', :git => 'https://github.com/mitchellh/vagrant', :tag => ENV['TEST_VAGRANT_VERSION']
17
17
  end
18
- gem 'rubydns', '~> 1.0.2'
18
+ gem 'rubydns', '~> 2.0.0.pre.rc2'
19
19
  end
20
20
 
21
21
  group :test do
22
- # Pinned on 05/05/2014. Compatible with Vagrant 1.5.x and 1.6.x.
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:
@@ -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 'rubydns/system'
28
+ require 'async/dns/system'
29
29
 
30
30
  registry = YAML.load(File.read(config_file))
31
- std_resolver = RubyDNS::Resolver.new(RubyDNS::System::nameservers)
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|
@@ -1,5 +1,5 @@
1
1
  module Vagrant
2
2
  module Dns
3
- VERSION = "1.1.0"
3
+ VERSION = "2.0.0.rc1"
4
4
  end
5
5
  end
@@ -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
- directory ARTIFACT_DIR
8
- TEST_BOXES.each do |(provider, box_url)|
9
- file File.join(ARTIFACT_DIR, "#{provider}.box") => ARTIFACT_DIR do |path|
10
- puts 'Downloading: ' + box_url
11
- Kernel.system 'curl', '-L', '-o', path.to_s, box_url
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
- desc 'downloads test boxes and other artifacts'
16
- task :setup => TEST_BOXES.map { |(provider, box_url)| File.join(ARTIFACT_DIR, "#{provider}.box") }
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
- desc 'runs acceptance tests'
19
- task :run => :setup do
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
@@ -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", '~> 1.0.2'
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
@@ -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 'virtualbox',
11
- box: (acceptance_dir + 'artifacts' + 'virtualbox.box').to_s,
12
- env_vars: {
13
- 'VBOX_USER_HOME' => '{{homedir}}',
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: 1.1.0
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-04-19 00:00:00.000000000 Z
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: 1.0.2
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: 1.0.2
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: '0'
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: '0'
99
+ version: 1.3.1
100
100
  requirements: []
101
101
  rubyforge_project:
102
- rubygems_version: 2.4.5.1
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