vagrant-plugin-bundler 0.1.0 → 0.1.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 +15 -0
- data/.travis.yml +4 -0
- data/CHANGELOG.md +8 -2
- data/README.md +39 -2
- data/lib/vagrant-plugin-bundler/config.rb +4 -0
- data/lib/vagrant-plugin-bundler/version.rb +1 -1
- data/spec/vagrant-plugin-bundler/config_spec.rb +11 -0
- metadata +30 -22
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
ZWQ3NjNmMDg0MGFjNzllZWZkYTAyMjFlODQ0MmQyZDEyNGIwOGI3NA==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
ODYyYWUzY2FiYmJhNTNlMzEyZTY2NmI5ODIwOTdmNDk4M2Y5MzViZg==
|
7
|
+
!binary "U0hBNTEy":
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
NGZmYzI5MWRjMjQ5NjZiMjcxZDAyMmI0OGE4NzZkNmMyOWEwY2RhZjBlZjYz
|
10
|
+
MzM5N2MxMDdhZjJlYjIzYzkzNTMxYTg4ZWRjNGY1MjllZTA4Mjk0NWQxZDgx
|
11
|
+
NzMxNjZjNzQ1ZWNkYzBlM2U2ODIwMWY0YzAwOWUwYzBiZDFhODM=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
N2Y3NTEzYWFhY2NkN2NmMzg3NjQ3NzUwYjlkODAzY2Y5ZGZiOTZiYjI4Zjgz
|
14
|
+
ZWJjMThiYzI0YmZjMWY5NWJlODQyZjQzZTJkNDBhNTI3NjYyNzg4YjBhYjU1
|
15
|
+
OTZjNDEwNWEzNzRiYTM2MzQ4M2U3MzA0NWM4MDBjN2ViNjQ0YmI=
|
data/.travis.yml
ADDED
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,10 @@
|
|
1
1
|
|
2
|
-
# 0.1.
|
2
|
+
# 0.1.1 [17th June 2013]
|
3
3
|
|
4
|
-
*
|
4
|
+
* add block syntax for specifying multiple plugin dependencies ([GH-2](https://github.com/tknerr/vagrant-plugin-bundler/issues/2))
|
5
|
+
* add Travis-CI ([GH-7](https://github.com/tknerr/vagrant-plugin-bundler/issues/7))
|
6
|
+
* update README ([GH-3](https://github.com/tknerr/vagrant-plugin-bundler/issues/3), [GH-9](https://github.com/tknerr/vagrant-plugin-bundler/issues/9)) and CHANGELOG
|
7
|
+
|
8
|
+
# 0.1.0 [13th June 2013]
|
9
|
+
|
10
|
+
* Initial release: minimal working version which ensures that the specified plugins are installed
|
data/README.md
CHANGED
@@ -1,11 +1,19 @@
|
|
1
1
|
# Vagrant PluginBundler Plugin
|
2
2
|
|
3
|
+
[](https://travis-ci.org/tknerr/vagrant-plugin-bundler)
|
4
|
+
|
3
5
|
This is a [Vagrant](http://www.vagrantup.com) 1.2+ plugin which hooks in before `vagrant up` and `vagrant reload` and ensures that the required vagrant plugins as specified in your Vagrantfile are installed. Think of a minimalist [Bundler](http://gembundler.com) for vagrant plugins.
|
4
6
|
|
5
|
-
##
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Install using the standard Vagrant 1.1+ plugin installation method:
|
10
|
+
```
|
11
|
+
$ vagrant plugin install vagrant-plugin-bundler
|
12
|
+
```
|
6
13
|
|
7
|
-
|
14
|
+
## Usage
|
8
15
|
|
16
|
+
After installing, you can specify the required plugin dependencies in your `Vagrantfile` like so:
|
9
17
|
```ruby
|
10
18
|
Vagrant.configure("2") do |config|
|
11
19
|
|
@@ -51,3 +59,32 @@ Bringing machine 'foo' up with 'virtualbox' provider...
|
|
51
59
|
[foo] Booting VM...
|
52
60
|
...
|
53
61
|
```
|
62
|
+
|
63
|
+
## Block Syntax
|
64
|
+
|
65
|
+
If you have multiple dependencies, you can specify them line by line:
|
66
|
+
```ruby
|
67
|
+
# multiple plugin dependencies, one per line
|
68
|
+
config.plugin.depend 'vagrant-omnibus', '1.0.2'
|
69
|
+
config.plugin.depend 'vagrant-cachier', '0.1.0'
|
70
|
+
config.plugin.depend 'vagrant-aws', '0.2.2'
|
71
|
+
```
|
72
|
+
|
73
|
+
But it reads better if you use the block syntax:
|
74
|
+
```ruby
|
75
|
+
# multiple plugin dependencies in a block
|
76
|
+
config.plugin.deps do
|
77
|
+
depend 'vagrant-omnibus', '1.0.2'
|
78
|
+
depend 'vagrant-cachier', '0.1.0'
|
79
|
+
depend 'vagrant-aws', '0.2.2'
|
80
|
+
end
|
81
|
+
```
|
82
|
+
|
83
|
+
## Contributing
|
84
|
+
|
85
|
+
1. Fork it
|
86
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
87
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
88
|
+
4. Make sure specs are passing (`rake spec`)
|
89
|
+
5. Push to the branch (`git push origin my-new-feature`)
|
90
|
+
6. Create new Pull Request
|
@@ -57,5 +57,16 @@ describe VagrantPlugins::PluginBundler::Config do
|
|
57
57
|
end
|
58
58
|
end
|
59
59
|
end
|
60
|
+
|
61
|
+
context "when specifying multiple dependencies in a block" do
|
62
|
+
it "should work too" do
|
63
|
+
config.deps do
|
64
|
+
depend 'foo', '1.0'
|
65
|
+
depend 'bar', '2.0'
|
66
|
+
end
|
67
|
+
config.finalize!
|
68
|
+
config.dependencies.should == { 'foo' => '1.0', 'bar' => '2.0' }
|
69
|
+
end
|
70
|
+
end
|
60
71
|
end
|
61
72
|
end
|
metadata
CHANGED
@@ -1,60 +1,71 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-plugin-bundler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Torben Knerr
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-06-
|
11
|
+
date: 2013-06-17 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rake
|
16
|
-
requirement:
|
17
|
-
none: false
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
18
16
|
requirements:
|
19
17
|
- - ! '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
22
20
|
type: :development
|
23
21
|
prerelease: false
|
24
|
-
version_requirements:
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ! '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
25
27
|
- !ruby/object:Gem::Dependency
|
26
28
|
name: rspec-core
|
27
|
-
requirement:
|
28
|
-
none: false
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
29
30
|
requirements:
|
30
31
|
- - ~>
|
31
32
|
- !ruby/object:Gem::Version
|
32
33
|
version: 2.12.2
|
33
34
|
type: :development
|
34
35
|
prerelease: false
|
35
|
-
version_requirements:
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 2.12.2
|
36
41
|
- !ruby/object:Gem::Dependency
|
37
42
|
name: rspec-expectations
|
38
|
-
requirement:
|
39
|
-
none: false
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
40
44
|
requirements:
|
41
45
|
- - ~>
|
42
46
|
- !ruby/object:Gem::Version
|
43
47
|
version: 2.12.1
|
44
48
|
type: :development
|
45
49
|
prerelease: false
|
46
|
-
version_requirements:
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 2.12.1
|
47
55
|
- !ruby/object:Gem::Dependency
|
48
56
|
name: rspec-mocks
|
49
|
-
requirement:
|
50
|
-
none: false
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
51
58
|
requirements:
|
52
59
|
- - ~>
|
53
60
|
- !ruby/object:Gem::Version
|
54
61
|
version: 2.12.1
|
55
62
|
type: :development
|
56
63
|
prerelease: false
|
57
|
-
version_requirements:
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ~>
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 2.12.1
|
58
69
|
description: This plugin checks a list of requirements against the installed plugins.
|
59
70
|
email: mail@tknerr.de
|
60
71
|
executables: []
|
@@ -79,31 +90,28 @@ files:
|
|
79
90
|
- Vagrantfile
|
80
91
|
- .gitignore
|
81
92
|
- .rspec
|
93
|
+
- .travis.yml
|
82
94
|
homepage: https://github.com/tknerr/vagrant-plugin-bundler
|
83
95
|
licenses: []
|
96
|
+
metadata: {}
|
84
97
|
post_install_message:
|
85
98
|
rdoc_options: []
|
86
99
|
require_paths:
|
87
100
|
- lib
|
88
101
|
required_ruby_version: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
102
|
requirements:
|
91
103
|
- - ! '>='
|
92
104
|
- !ruby/object:Gem::Version
|
93
105
|
version: '0'
|
94
|
-
segments:
|
95
|
-
- 0
|
96
|
-
hash: 712217213
|
97
106
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
98
|
-
none: false
|
99
107
|
requirements:
|
100
108
|
- - ! '>='
|
101
109
|
- !ruby/object:Gem::Version
|
102
110
|
version: 1.3.6
|
103
111
|
requirements: []
|
104
112
|
rubyforge_project: vagrant-plugin-bundler
|
105
|
-
rubygems_version:
|
113
|
+
rubygems_version: 2.0.3
|
106
114
|
signing_key:
|
107
|
-
specification_version:
|
115
|
+
specification_version: 4
|
108
116
|
summary: This plugin checks a list of requirements against the installed plugins.
|
109
117
|
test_files: []
|