vagrant-dns-server 0.3 → 0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZTI0MGU2NGZiZTllODNkNDAwMjc1Mzk3YzQwMTkxYTUyNjBiZmJkMA==
5
+ data.tar.gz: !binary |-
6
+ YTg1YWNiZmU1MDhkNDc2MWViMjE5NWRlOTI3ZWE1OGE0MDI5N2NhNg==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ NDk3ZTVhZDVmNWUxZjk0Yzk5NmFkMTIxOGVkYTVmMjE3NDBjNzJlODE2NGQ3
10
+ YTQyNDM4YWVlY2I3OTdlODBiNDdkZmNlMjUzOTYxMWE2MTc3NzVkZmQ4MGQ0
11
+ MDczYjUyZTlkMWNmMzAzOTkzOWMwNWQ3NjgzZDM4ZTYzNTBlZWI=
12
+ data.tar.gz: !binary |-
13
+ ZjcwNTAxZDJhNTczYjhiNTYyMWYwYmJmMTg0MmViNzM0YWQ3ZmFmMGEzNzFh
14
+ YTIzMTU3ODMzYzYyMTRjODI4YzFkODBjZDllY2NhMmZiNmFkM2Q2MDIyOGRk
15
+ MzhiOGFjNjZjZjU0OTcwZDVjMDE1Yzg3YmRiYzVkNDYwNDgxNmQ=
data/.gitignore CHANGED
@@ -1,2 +1,3 @@
1
1
  pkg
2
2
  hosts.yaml
3
+ .vagrant
@@ -0,0 +1 @@
1
+ vagrant-dns-server
@@ -0,0 +1 @@
1
+ 1.9.3
data/Gemfile CHANGED
@@ -3,3 +3,10 @@ source "https://rubygems.org"
3
3
 
4
4
  gemspec :development_group => :dev
5
5
 
6
+ group :development do
7
+ # We depend on Vagrant for development, but we don't add it as a
8
+ # gem dependency because we expect to be installed within the
9
+ # Vagrant environment itself using `vagrant plugin`.
10
+ gem "vagrant", :git => "git://github.com/mitchellh/vagrant.git"
11
+ end
12
+
@@ -1,7 +1,19 @@
1
+ GIT
2
+ remote: git://github.com/mitchellh/vagrant.git
3
+ revision: cc5793367594a0da3fe264bfe67a14208ab51c0f
4
+ specs:
5
+ vagrant (1.3.6.dev)
6
+ childprocess (~> 0.3.7)
7
+ erubis (~> 2.7.0)
8
+ i18n (~> 0.6.0)
9
+ log4r (~> 1.1.9)
10
+ net-scp (~> 1.1.0)
11
+ net-ssh (~> 2.6.6)
12
+
1
13
  PATH
2
14
  remote: .
3
15
  specs:
4
- vagrant-dns-server (0.3)
16
+ vagrant-dns-server (0.4)
5
17
  em-zeromq
6
18
  log4r
7
19
  moneta
@@ -9,56 +21,42 @@ PATH
9
21
  rubydns (= 0.6.0)
10
22
  rubydns
11
23
  thor
12
- vagrant (~> 1.0.3)
13
24
  zmq
14
25
 
15
26
  GEM
16
27
  remote: https://rubygems.org/
17
28
  specs:
18
- archive-tar-minitar (0.5.2)
19
29
  childprocess (0.3.9)
20
30
  ffi (~> 1.0, >= 1.0.11)
21
- em-zeromq (0.4.1)
31
+ em-zeromq (0.4.2)
22
32
  eventmachine (>= 1.0.0)
23
33
  ffi (>= 1.0.0)
24
- ffi-rzmq (= 0.9.7)
34
+ ffi-rzmq (~> 1.0.1)
25
35
  erubis (2.7.0)
26
36
  eventmachine (1.0.3)
27
- ffi (1.4.0)
28
- ffi-rzmq (0.9.7)
37
+ ffi (1.9.3)
38
+ ffi-rzmq (1.0.3)
29
39
  ffi
30
- i18n (0.6.4)
31
- json (1.7.7)
40
+ i18n (0.6.5)
32
41
  log4r (1.1.10)
33
42
  metaclass (0.0.1)
34
- minitest (4.4.0)
35
- mocha (0.12.8)
43
+ minitest (5.0.8)
44
+ mocha (0.12.10)
36
45
  metaclass (~> 0.0.1)
37
- moneta (0.7.14)
38
- net-ldap (0.2.2)
39
- net-ping (1.5.3)
46
+ moneta (0.7.20)
47
+ net-ping (1.7.1)
40
48
  ffi (>= 1.0.0)
41
- net-ldap (~> 0.2.2)
42
- net-scp (1.0.4)
43
- net-ssh (>= 1.99.1)
44
- net-ssh (2.2.2)
49
+ net-scp (1.1.2)
50
+ net-ssh (>= 2.6.5)
51
+ net-ssh (2.6.8)
45
52
  rainbow (1.1.4)
46
- rake (10.0.3)
47
- rexec (1.5.1)
53
+ rake (10.1.0)
54
+ rexec (1.5.2)
48
55
  rainbow
49
56
  rubydns (0.6.0)
50
57
  eventmachine (~> 1.0.0)
51
58
  rexec (~> 1.5.1)
52
- thor (0.17.0)
53
- vagrant (1.0.7)
54
- archive-tar-minitar (= 0.5.2)
55
- childprocess (~> 0.3.1)
56
- erubis (~> 2.7.0)
57
- i18n (~> 0.6.0)
58
- json (>= 1.5.1, < 1.8.0)
59
- log4r (~> 1.1.9)
60
- net-scp (~> 1.0.4)
61
- net-ssh (~> 2.2.2)
59
+ thor (0.18.1)
62
60
  zmq (2.1.4)
63
61
 
64
62
  PLATFORMS
@@ -69,4 +67,5 @@ DEPENDENCIES
69
67
  minitest
70
68
  mocha (~> 0.12.3)
71
69
  rake
70
+ vagrant!
72
71
  vagrant-dns-server!
@@ -0,0 +1,177 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
data/README.md CHANGED
@@ -1,3 +1,7 @@
1
+ # NOTICE
2
+
3
+ This plugin is moving to vagrant v2 api's in the near time, until its done don't try to use it
4
+
1
5
  # Intro
2
6
  vagrant-dns enables easy dns management of multiple local Vagrant machines.
3
7
 
@@ -8,15 +12,28 @@ Follow [this](https://www.youtube.com/watch?v=6GFobNDvwpI) this demo to see it i
8
12
  # Install
9
13
 
10
14
  ```bash
11
- $ sudo aptitude install libzmq1 libzmq-dev
12
- $ gem install vagrant-dns-server
15
+ $ sudo aptitude install libzmq1 libzmq-dev
16
+ $ vagrant plugin install vagrant-dns-server
13
17
  ```
14
18
 
15
19
  # Usage
16
20
 
17
- Add the plugin to the project Gemfile, use vagrant_dns server to boot the local dns server
21
+ TBD
22
+
23
+ # Developing
18
24
 
25
+ Its recommended to have RVM installed, currently ruby 1.9.3 is used (see .ruby files)
19
26
 
27
+ ```bash
28
+ $ git clone git://github.com/narkisr/vagrant-dns-server.git
29
+ $ gem install bundle
30
+ $ bundle install
31
+ # start the server (generating default configuration first)
32
+ $ ./bin/vagrant_dns generate
33
+ $ rvmsudo ./bin/vagrant_dns server
34
+ # run the plugin in development mode
35
+ $ bundle exec vagrant up
36
+ ```
20
37
  # Alternatives
21
38
 
22
39
  There are two existing project that aim to provide similar functionality:
@@ -24,3 +41,21 @@ There are two existing project that aim to provide similar functionality:
24
41
  * BerlinVagran [vagrant-dns](https://github.com/BerlinVagrant/vagrant-dns) which seems to be able to manage only a single machine and is OSX only.
25
42
 
26
43
  * [vagrant-hostname](https://github.com/mosaicxm/vagrant-hostmaster) which manipulates /etc/hosts, this requires to enter sudo password for each machine (not an option when starting numerous machines).
44
+
45
+
46
+ # Copyright and license
47
+
48
+ Copyright [2013] [Ronen Narkis]
49
+
50
+ Licensed under the Apache License, Version 2.0 (the "License");
51
+ you may not use this file except in compliance with the License.
52
+ You may obtain a copy of the License at
53
+
54
+ [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)
55
+
56
+ Unless required by applicable law or agreed to in writing, software
57
+ distributed under the License is distributed on an "AS IS" BASIS,
58
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
59
+ See the License for the specific language governing permissions and
60
+ limitations under the License.
61
+
@@ -0,0 +1,21 @@
1
+ # -*- mode: ruby -*-
2
+ # vi: set ft=ruby :
3
+
4
+ require 'vagrant_init'
5
+
6
+ Vagrant.configure("2") do |config|
7
+
8
+ config.vm.define :ubuntu do |ubuntu|
9
+ ubuntu.vm.box = 'ubuntu-13.04_puppet-3.3.1'
10
+ ubuntu.vm.network :public_network, :bridge => 'eth0'
11
+ ubuntu.vm.hostname = 'ubuntu.local'
12
+ ubuntu.vm.network :forwarded_port, guest: 6379, host: 6379
13
+ ubuntu.vm.network :private_network, ip: "192.168.2.25"
14
+
15
+ ubuntu.vm.provider :virtualbox do |vb|
16
+ vb.customize ['modifyvm', :id, '--memory', 2048, '--cpus', 2]
17
+ end
18
+
19
+ end
20
+
21
+ end
@@ -3,7 +3,7 @@ require 'zmq'
3
3
 
4
4
  module VagrantDns
5
5
 
6
- UI = Vagrant::UI::Colored.new('dns')
6
+ UI = Vagrant::UI::Colored.new()
7
7
  class NetworkBinder
8
8
  def bind(vm)
9
9
  (host,ip) = host_ip(vm)
@@ -17,12 +17,12 @@ module VagrantDns
17
17
 
18
18
  private
19
19
  def host_ip(vm)
20
- networks = vm.config.vm.networks.find_all do |type,network_parameters|
21
- type == :hostonly
20
+ network = vm.config.vm.networks.find do |type,network_parameters|
21
+ type == :private_network
22
22
  end
23
- ips = networks.map {|type,params| params.first}
24
- host = vm.config.vm.host_name
25
- [host,ips.first]
23
+ ip = network[1][:ip]
24
+ host = vm.config.vm.hostname
25
+ [host, ip]
26
26
  end
27
27
  end
28
28
 
@@ -35,7 +35,7 @@ module VagrantDns
35
35
  pub = context.socket(ZMQ::PUB)
36
36
  pub.connect(url)
37
37
  UI.say(:debug,"connection made")
38
- res = pub.send("#{CHANNEL} #{host} #{ip} #{status.to_s}", ZMQ::NOBLOCK)
38
+ pub.send("#{CHANNEL} #{host} #{ip} #{status.to_s}", ZMQ::NOBLOCK)
39
39
  UI.say(:info,"notifying dns server with #{status} status")
40
40
  pub.close
41
41
  else
@@ -8,7 +8,7 @@ module VagrantDns
8
8
 
9
9
  def call(env)
10
10
  @app.call(env)
11
- update env[:vm] if env["vm"].state == :running
11
+ update env[:machine] if env[:machine].provider.state.id == :running
12
12
  end
13
13
 
14
14
  protected
@@ -1,8 +1,17 @@
1
1
  require 'vagrant_dns_plugin'
2
2
 
3
3
  #see http://tinyurl.com/bfuawuj
4
- Vagrant.actions[:provision].insert_after(Vagrant::Action::VM::Provision, VagrantDns::Middleware::Update)
5
- Vagrant.actions[:start].insert_after(Vagrant::Action::VM::Boot, VagrantDns::Middleware::Update)
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
6
16
 
7
- Vagrant.actions[:destroy].insert_after(Vagrant::Action::VM::ProvisionerCleanup, VagrantDns::Middleware::Remove)
8
17
 
@@ -1,3 +1,3 @@
1
1
  module VagrantDns
2
- VERSION=0.3
2
+ VERSION=0.4
3
3
  end
@@ -15,7 +15,6 @@ Gem::Specification.new do |gem|
15
15
  gem.require_paths = ["lib"]
16
16
  gem.version = VagrantDns::VERSION
17
17
 
18
- gem.add_dependency 'vagrant', '~>1.0.3'
19
18
  gem.add_dependency 'rubydns', '= 0.6.0'
20
19
  gem.add_dependency 'em-zeromq'
21
20
  gem.add_dependency 'zmq' # required by client
metadata CHANGED
@@ -1,213 +1,201 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: vagrant-dns-server
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 3
8
- version: "0.3"
3
+ version: !ruby/object:Gem::Version
4
+ version: '0.4'
9
5
  platform: ruby
10
- authors:
6
+ authors:
11
7
  - Ronen Narkis
12
8
  autorequire:
13
9
  bindir: bin
14
10
  cert_chain: []
15
-
16
- date: 2013-03-19 00:00:00 +02:00
17
- default_executable:
18
- dependencies:
19
- - !ruby/object:Gem::Dependency
20
- name: vagrant
21
- requirement: &id001 !ruby/object:Gem::Requirement
22
- none: false
23
- requirements:
24
- - - ~>
25
- - !ruby/object:Gem::Version
26
- segments:
27
- - 1
28
- - 0
29
- - 3
30
- version: 1.0.3
31
- type: :runtime
32
- prerelease: false
33
- version_requirements: *id001
34
- - !ruby/object:Gem::Dependency
11
+ date: 2013-12-10 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
35
14
  name: rubydns
36
- requirement: &id002 !ruby/object:Gem::Requirement
37
- none: false
38
- requirements:
39
- - - "="
40
- - !ruby/object:Gem::Version
41
- segments:
42
- - 0
43
- - 6
44
- - 0
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '='
18
+ - !ruby/object:Gem::Version
45
19
  version: 0.6.0
46
20
  type: :runtime
47
21
  prerelease: false
48
- version_requirements: *id002
49
- - !ruby/object:Gem::Dependency
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '='
25
+ - !ruby/object:Gem::Version
26
+ version: 0.6.0
27
+ - !ruby/object:Gem::Dependency
50
28
  name: em-zeromq
51
- requirement: &id003 !ruby/object:Gem::Requirement
52
- none: false
53
- requirements:
54
- - - ">="
55
- - !ruby/object:Gem::Version
56
- segments:
57
- - 0
58
- version: "0"
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
59
34
  type: :runtime
60
35
  prerelease: false
61
- version_requirements: *id003
62
- - !ruby/object:Gem::Dependency
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ! '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
63
42
  name: zmq
64
- requirement: &id004 !ruby/object:Gem::Requirement
65
- none: false
66
- requirements:
67
- - - ">="
68
- - !ruby/object:Gem::Version
69
- segments:
70
- - 0
71
- version: "0"
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ! '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
72
48
  type: :runtime
73
49
  prerelease: false
74
- version_requirements: *id004
75
- - !ruby/object:Gem::Dependency
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
76
56
  name: thor
77
- requirement: &id005 !ruby/object:Gem::Requirement
78
- none: false
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- segments:
83
- - 0
84
- version: "0"
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
85
62
  type: :runtime
86
63
  prerelease: false
87
- version_requirements: *id005
88
- - !ruby/object:Gem::Dependency
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ! '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
89
70
  name: rubydns
90
- requirement: &id006 !ruby/object:Gem::Requirement
91
- none: false
92
- requirements:
93
- - - ">="
94
- - !ruby/object:Gem::Version
95
- segments:
96
- - 0
97
- version: "0"
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ! '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
98
76
  type: :runtime
99
77
  prerelease: false
100
- version_requirements: *id006
101
- - !ruby/object:Gem::Dependency
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ! '>='
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
102
84
  name: moneta
103
- requirement: &id007 !ruby/object:Gem::Requirement
104
- none: false
105
- requirements:
106
- - - ">="
107
- - !ruby/object:Gem::Version
108
- segments:
109
- - 0
110
- version: "0"
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ! '>='
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
111
90
  type: :runtime
112
91
  prerelease: false
113
- version_requirements: *id007
114
- - !ruby/object:Gem::Dependency
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ! '>='
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
115
98
  name: net-ping
116
- requirement: &id008 !ruby/object:Gem::Requirement
117
- none: false
118
- requirements:
119
- - - ">="
120
- - !ruby/object:Gem::Version
121
- segments:
122
- - 0
123
- version: "0"
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ! '>='
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
124
104
  type: :runtime
125
105
  prerelease: false
126
- version_requirements: *id008
127
- - !ruby/object:Gem::Dependency
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ! '>='
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
128
112
  name: log4r
129
- requirement: &id009 !ruby/object:Gem::Requirement
130
- none: false
131
- requirements:
132
- - - ">="
133
- - !ruby/object:Gem::Version
134
- segments:
135
- - 0
136
- version: "0"
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ! '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
137
118
  type: :runtime
138
119
  prerelease: false
139
- version_requirements: *id009
140
- - !ruby/object:Gem::Dependency
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ! '>='
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
141
126
  name: bundler
142
- requirement: &id010 !ruby/object:Gem::Requirement
143
- none: false
144
- requirements:
145
- - - ">="
146
- - !ruby/object:Gem::Version
147
- segments:
148
- - 0
149
- version: "0"
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ! '>='
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
150
132
  type: :development
151
133
  prerelease: false
152
- version_requirements: *id010
153
- - !ruby/object:Gem::Dependency
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ! '>='
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
154
140
  name: mocha
155
- requirement: &id011 !ruby/object:Gem::Requirement
156
- none: false
157
- requirements:
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
158
143
  - - ~>
159
- - !ruby/object:Gem::Version
160
- segments:
161
- - 0
162
- - 12
163
- - 3
144
+ - !ruby/object:Gem::Version
164
145
  version: 0.12.3
165
146
  type: :development
166
147
  prerelease: false
167
- version_requirements: *id011
168
- - !ruby/object:Gem::Dependency
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ~>
151
+ - !ruby/object:Gem::Version
152
+ version: 0.12.3
153
+ - !ruby/object:Gem::Dependency
169
154
  name: rake
170
- requirement: &id012 !ruby/object:Gem::Requirement
171
- none: false
172
- requirements:
173
- - - ">="
174
- - !ruby/object:Gem::Version
175
- segments:
176
- - 0
177
- version: "0"
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ! '>='
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
178
160
  type: :development
179
161
  prerelease: false
180
- version_requirements: *id012
181
- - !ruby/object:Gem::Dependency
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ! '>='
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ - !ruby/object:Gem::Dependency
182
168
  name: minitest
183
- requirement: &id013 !ruby/object:Gem::Requirement
184
- none: false
185
- requirements:
186
- - - ">="
187
- - !ruby/object:Gem::Version
188
- segments:
189
- - 0
190
- version: "0"
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ! '>='
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
191
174
  type: :development
192
175
  prerelease: false
193
- version_requirements: *id013
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ! '>='
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
194
181
  description: A vagrant plugin to automanage dns registration on local machine
195
- email:
182
+ email:
196
183
  - narkisr@gmail.com
197
- executables:
184
+ executables:
198
185
  - vagrant_dns
199
186
  extensions: []
200
-
201
187
  extra_rdoc_files: []
202
-
203
- files:
188
+ files:
204
189
  - .gitignore
205
- - .rvmrc
190
+ - .ruby-gemset
191
+ - .ruby-version
206
192
  - Gemfile
207
193
  - Gemfile.lock
194
+ - LICENSE-2.0.txt
208
195
  - README.md
209
196
  - Rakefile
210
197
  - TODOS
198
+ - Vagrantfile
211
199
  - bin/vagrant_dns
212
200
  - lib/vagrant_dns/configuration.rb
213
201
  - lib/vagrant_dns/consts.rb
@@ -225,39 +213,28 @@ files:
225
213
  - templates/vagrant_dns.yaml
226
214
  - test/resolver_test.rb
227
215
  - vagrant-dns-server.gemspec
228
- has_rdoc: true
229
216
  homepage: https://github.com/narkisr/vagrant-dns
230
217
  licenses: []
231
-
218
+ metadata: {}
232
219
  post_install_message:
233
220
  rdoc_options: []
234
-
235
- require_paths:
221
+ require_paths:
236
222
  - lib
237
- required_ruby_version: !ruby/object:Gem::Requirement
238
- none: false
239
- requirements:
240
- - - ">="
241
- - !ruby/object:Gem::Version
242
- hash: -1575390751045527185
243
- segments:
244
- - 0
245
- version: "0"
246
- required_rubygems_version: !ruby/object:Gem::Requirement
247
- none: false
248
- requirements:
249
- - - ">="
250
- - !ruby/object:Gem::Version
251
- hash: -1575390751045527185
252
- segments:
253
- - 0
254
- version: "0"
223
+ required_ruby_version: !ruby/object:Gem::Requirement
224
+ requirements:
225
+ - - ! '>='
226
+ - !ruby/object:Gem::Version
227
+ version: '0'
228
+ required_rubygems_version: !ruby/object:Gem::Requirement
229
+ requirements:
230
+ - - ! '>='
231
+ - !ruby/object:Gem::Version
232
+ version: '0'
255
233
  requirements: []
256
-
257
234
  rubyforge_project:
258
- rubygems_version: 1.3.7.1
235
+ rubygems_version: 2.1.11
259
236
  signing_key:
260
- specification_version: 3
237
+ specification_version: 4
261
238
  summary: A vagrant plugin that sets up a local dns server
262
- test_files:
239
+ test_files:
263
240
  - test/resolver_test.rb
data/.rvmrc DELETED
@@ -1 +0,0 @@
1
- rvm use ruby-1.9.2-p320@dns --create