vagrant-dns-server 0.4 → 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.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZTI0MGU2NGZiZTllODNkNDAwMjc1Mzk3YzQwMTkxYTUyNjBiZmJkMA==
4
+ M2E2ZmNjMWE2ODc0Mzc5ZTdmNjAyNGU0OTRiMGRmOTFiZjY5ZTJkMQ==
5
5
  data.tar.gz: !binary |-
6
- YTg1YWNiZmU1MDhkNDc2MWViMjE5NWRlOTI3ZWE1OGE0MDI5N2NhNg==
6
+ YTNjZjA5ODU5MjBiN2U3NjA1YjY5YTg1OTNjYjYxOGVkYmQ2NmU0Mg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NDk3ZTVhZDVmNWUxZjk0Yzk5NmFkMTIxOGVkYTVmMjE3NDBjNzJlODE2NGQ3
10
- YTQyNDM4YWVlY2I3OTdlODBiNDdkZmNlMjUzOTYxMWE2MTc3NzVkZmQ4MGQ0
11
- MDczYjUyZTlkMWNmMzAzOTkzOWMwNWQ3NjgzZDM4ZTYzNTBlZWI=
9
+ ZGNkMGY0ZjNhZDNiMDYxYjA0M2MyY2FmNTRlMjg4ZTlhNDRkNzc4ODFhYzA0
10
+ NzFlNDRmZDZiMzQ0MDMxY2Q0OGM5ZTEzMGFmN2MzMDdmNzY5MDA5MDQxNzk2
11
+ NDdlZmNjODYxMWUxOTRiZjVhMGE4NGZmYWVhZjU1YTJkMDc0MzI=
12
12
  data.tar.gz: !binary |-
13
- ZjcwNTAxZDJhNTczYjhiNTYyMWYwYmJmMTg0MmViNzM0YWQ3ZmFmMGEzNzFh
14
- YTIzMTU3ODMzYzYyMTRjODI4YzFkODBjZDllY2NhMmZiNmFkM2Q2MDIyOGRk
15
- MzhiOGFjNjZjZjU0OTcwZDVjMDE1Yzg3YmRiYzVkNDYwNDgxNmQ=
13
+ MWNkYzRiMTJjZmJlNTQ2YTg4ZGNkOGM4ZGI5MWVmMTY2NTU3M2RlNmQ0NTcw
14
+ MjEyYWM0YWI3ODkxNGM1ZmI0NjdkNDFhODgxY2E3ZDJhZjk4OTljZTMxMzNk
15
+ YmE5MDY3YmM1ZGI1MTc5M2VmNGFkOTcyZGI5NTM0MjNjY2YwYzA=
@@ -13,7 +13,7 @@ GIT
13
13
  PATH
14
14
  remote: .
15
15
  specs:
16
- vagrant-dns-server (0.4)
16
+ vagrant-dns-server (0.4.1)
17
17
  em-zeromq
18
18
  log4r
19
19
  moneta
@@ -1,7 +1,7 @@
1
1
  # -*- mode: ruby -*-
2
2
  # vi: set ft=ruby :
3
3
 
4
- require 'vagrant_init'
4
+ require 'vagrant_dns_server'
5
5
 
6
6
  Vagrant.configure("2") do |config|
7
7
 
@@ -4,7 +4,7 @@ $:.push 'lib'
4
4
  require 'rubygems'
5
5
  require 'thor'
6
6
  require 'thor/group'
7
- require 'vagrant_dns_server'
7
+ require 'std_server'
8
8
 
9
9
  module VagrantDns
10
10
  class Generate < Thor::Group
@@ -0,0 +1,12 @@
1
+ require 'em-zeromq'
2
+ require 'eventmachine'
3
+ require 'vagrant_dns/consts'
4
+ require 'vagrant_dns/resolver'
5
+ require 'moneta'
6
+ require 'forwardable'
7
+ require 'vagrant_dns/configuration'
8
+ require 'rubydns'
9
+ require 'vagrant_dns/dns'
10
+ require 'vagrant_dns/server'
11
+
12
+
@@ -1,12 +1,23 @@
1
- require 'em-zeromq'
2
- require 'eventmachine'
3
- require 'vagrant_dns/consts'
4
- require 'vagrant_dns/resolver'
1
+ require 'vagrant'
2
+ require 'zmq'
3
+ # client
5
4
  require 'moneta'
6
- require 'forwardable'
5
+ require 'vagrant_dns/consts'
7
6
  require 'vagrant_dns/configuration'
8
- require 'rubydns'
9
- require 'vagrant_dns/dns'
10
- require 'vagrant_dns/server'
7
+ require 'vagrant_dns/port'
8
+ require 'vagrant_dns/middleware/update'
9
+ require 'vagrant_dns/middleware/remove'
10
+ require 'vagrant_dns/middleware/network_binder'
11
+
12
+ #see http://tinyurl.com/bfuawuj
13
+ class Plugin < Vagrant.plugin("2")
14
+ name 'Vagrant DNS plugin'
15
+
16
+ action_hook(:vagrant_dns_plugin) do |hook|
17
+ hook.after(::Vagrant::Action::Builtin::Provision, VagrantDns::Middleware::Update)
18
+ hook.after(VagrantPlugins::ProviderVirtualBox::Action::Boot, VagrantDns::Middleware::Update)
19
+ end
20
+
21
+ end
11
22
 
12
23
 
@@ -1,3 +1,3 @@
1
1
  module VagrantDns
2
- VERSION=0.4
2
+ VERSION='0.4.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-dns-server
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.4'
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ronen Narkis
@@ -197,6 +197,7 @@ files:
197
197
  - TODOS
198
198
  - Vagrantfile
199
199
  - bin/vagrant_dns
200
+ - lib/std_server.rb
200
201
  - lib/vagrant_dns/configuration.rb
201
202
  - lib/vagrant_dns/consts.rb
202
203
  - lib/vagrant_dns/dns.rb
@@ -206,9 +207,7 @@ files:
206
207
  - lib/vagrant_dns/port.rb
207
208
  - lib/vagrant_dns/resolver.rb
208
209
  - lib/vagrant_dns/server.rb
209
- - lib/vagrant_dns_plugin.rb
210
210
  - lib/vagrant_dns_server.rb
211
- - lib/vagrant_init.rb
212
211
  - lib/version.rb
213
212
  - templates/vagrant_dns.yaml
214
213
  - test/resolver_test.rb
@@ -1,10 +0,0 @@
1
- require 'vagrant'
2
- require 'zmq'
3
- # client
4
- require 'moneta'
5
- require 'vagrant_dns/consts'
6
- require 'vagrant_dns/configuration'
7
- require 'vagrant_dns/port'
8
- require 'vagrant_dns/middleware/update'
9
- require 'vagrant_dns/middleware/remove'
10
- require 'vagrant_dns/middleware/network_binder'
@@ -1,17 +0,0 @@
1
- require 'vagrant_dns_plugin'
2
-
3
- #see http://tinyurl.com/bfuawuj
4
- class Plugin < Vagrant.plugin("2")
5
- name 'Vagrant DNS plugin'
6
-
7
- action_hook(:vagrant_dns_plugin) do |hook|
8
- hook.after(::Vagrant::Action::Builtin::Provision, VagrantDns::Middleware::Update)
9
- hook.after(VagrantPlugins::ProviderVirtualBox::Action::Boot, VagrantDns::Middleware::Update)
10
- end
11
-
12
- # Vagrant.actions[:provision].insert_after(Vagrant::Action::VM::Provision, )
13
- # Vagrant.actions[:start].insert_after(Vagrant::Action::VM::Boot, VagrantDns::Middleware::Update)
14
- # Vagrant.actions[:destroy].insert_after(Vagrant::Action::VM::ProvisionerCleanup, VagrantDns::Middleware::Remove)
15
- end
16
-
17
-