meez 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +5 -5
- data/README.md +2 -2
- data/lib/meez/meez.rb +7 -7
- data/meez.gemspec +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f7434a503a79a2e35d4ccc19740fa8f62bc5582
|
4
|
+
data.tar.gz: 295d7840a520629cce5844981b00fbd307a49ac3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b79c64e1fc5983593d048dd3bc5f6d9ad7a3c4fb56a759ee7da6494db740a6dee09c8bc5a59f8335ab6745d299d96e5b70440e29a4cd87ee34bc39c3c591e77
|
7
|
+
data.tar.gz: 47b61f81aadb8da103f3d5742a35eddd6c1103e993c3a8f5a99e0965fb1ebc9965169c36cc7555ce1f01eb7622c1d5899d8d4706ebbed4cc1f7c633b4ad8af41
|
data/Gemfile
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
|
-
gem 'berkshelf', '
|
4
|
-
gem 'chef', '
|
5
|
-
gem 'rake', '>= 10.
|
3
|
+
gem 'berkshelf', '= 3.1.3'
|
4
|
+
gem 'chef', '> 11.12.0'
|
5
|
+
gem 'rake', '>= 10.3'
|
6
6
|
gem 'rubocop', '= 0.23'
|
7
7
|
gem 'foodcritic', '>= 3.0'
|
8
|
-
gem 'chefspec', '
|
9
|
-
gem 'serverspec', '>= 1.
|
8
|
+
gem 'chefspec', '> 4'
|
9
|
+
gem 'serverspec', '>= 1.10'
|
10
10
|
gem 'guard', '>= 2.6'
|
11
11
|
gem 'guard-rubocop', '>= 1.1'
|
12
12
|
gem 'guard-foodcritic', '>= 1.0.2'
|
data/README.md
CHANGED
@@ -8,7 +8,7 @@ About
|
|
8
8
|
|
9
9
|
`Mise en place` is a French phrase which means "putting in place", as in set up. It is used in professional kitchens to refer to organizing and arranging the ingredients (e.g., cuts of meat, relishes, sauces, par-cooked items, spices, freshly chopped vegetables, and other components) that a cook will require for the menu items that he or she expects to prepare during his/her shift.[1] The practice is also effective in home kitchens.
|
10
10
|
|
11
|
-
`Meez` will create an opinionated chef cookbook skeleton complete with testing suite.
|
11
|
+
`Meez` will create an opinionated chef cookbook skeleton complete with testing suite.
|
12
12
|
|
13
13
|
Install
|
14
14
|
=======
|
@@ -62,7 +62,7 @@ $ meez --cookbook-path /tmp --copyright Foo -I apachev2 -m foo@bah.com test
|
|
62
62
|
create /tmp/test/.gitignore
|
63
63
|
run git init from "/tmp/test"
|
64
64
|
create /tmp/test/Gemfile
|
65
|
-
* Initializing
|
65
|
+
* Initializing Vagrantfile
|
66
66
|
* Initializing Knife
|
67
67
|
Append Gemfile
|
68
68
|
* Initializing Rakefile
|
data/lib/meez/meez.rb
CHANGED
@@ -82,7 +82,7 @@ class Meez
|
|
82
82
|
skip_vagrant: true
|
83
83
|
).invoke_all
|
84
84
|
contents = File.read(File.join(path, 'Gemfile'))
|
85
|
-
newgemfile = contents.gsub("\ngem 'berkshelf'\n", "\ngem 'berkshelf', '
|
85
|
+
newgemfile = contents.gsub("\ngem 'berkshelf'\n", "\ngem 'berkshelf', '>= 3.1.3'\n")
|
86
86
|
File.open(File.join(path, 'Gemfile'), 'w') { |f| f.write(newgemfile) }
|
87
87
|
end
|
88
88
|
|
@@ -94,11 +94,11 @@ class Meez
|
|
94
94
|
Kitchen::Generator::Init.new([], {}, destination_root: path).invoke_all
|
95
95
|
options[:driver] ||= 'vagrant'
|
96
96
|
write_template('.kitchen.yml.erb', path, cookbook_name, options)
|
97
|
-
add_gem(path, 'kitchen-docker'
|
97
|
+
add_gem(path, 'kitchen-docker') if options[:driver].eql? 'docker'
|
98
98
|
end
|
99
99
|
|
100
100
|
def self.init_vagrant(cookbook_name, options)
|
101
|
-
puts '* Initializing
|
101
|
+
puts '* Initializing Vagrantfile'
|
102
102
|
path = File.join(options[:path], cookbook_name)
|
103
103
|
write_template('Vagrantfile.erb', path, cookbook_name, options)
|
104
104
|
end
|
@@ -111,14 +111,14 @@ class Meez
|
|
111
111
|
write_template('chefspec/spec_helper.rb.erb', spec_path, cookbook_name, options)
|
112
112
|
write_template('chefspec/default_spec.rb.erb', spec_path, cookbook_name, options)
|
113
113
|
gitignore(path, '.coverage/*')
|
114
|
-
add_gem(path, 'chefspec', '
|
114
|
+
add_gem(path, 'chefspec', '> 4')
|
115
115
|
end
|
116
116
|
|
117
117
|
def self.init_rakefile(cookbook_name, options)
|
118
118
|
puts '* Initializing Rakefile'
|
119
119
|
path = File.join(options[:path], cookbook_name)
|
120
120
|
write_template('Rakefile.erb', path, cookbook_name, options)
|
121
|
-
add_gem(path, 'rake'
|
121
|
+
add_gem(path, 'rake')
|
122
122
|
end
|
123
123
|
|
124
124
|
def self.init_rubocop(cookbook_name, options)
|
@@ -131,7 +131,7 @@ class Meez
|
|
131
131
|
def self.init_knife(cookbook_name, options)
|
132
132
|
puts '* Initializing Knife'
|
133
133
|
path = File.join(options[:path], cookbook_name)
|
134
|
-
add_gem(path, 'chef', '
|
134
|
+
add_gem(path, 'chef', '> 11.12')
|
135
135
|
end
|
136
136
|
|
137
137
|
def self.init_foodcritic(cookbook_name, options)
|
@@ -147,7 +147,7 @@ class Meez
|
|
147
147
|
FileUtils.mkdir_p(spec_path)
|
148
148
|
write_template('serverspec/spec_helper.rb.erb', spec_path, cookbook_name, options)
|
149
149
|
write_template('serverspec/default_spec.rb.erb', spec_path, cookbook_name, options)
|
150
|
-
add_gem(path, 'serverspec', '>= 1.
|
150
|
+
add_gem(path, 'serverspec', '>= 1.10')
|
151
151
|
end
|
152
152
|
|
153
153
|
def self.init_guard(cookbook_name, options)
|
data/meez.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = %q(meez)
|
3
|
-
s.version = '0.2.
|
3
|
+
s.version = '0.2.6'
|
4
4
|
s.date = %q(2014-01-08)
|
5
5
|
s.summary = 'Initializes a chef cookbook with TDD framework'
|
6
6
|
s.description = <<EOF
|
@@ -16,7 +16,7 @@ EOF
|
|
16
16
|
s.homepage = 'http://github.com/paulczar/meez'
|
17
17
|
s.license = 'apache2'
|
18
18
|
s.require_paths = ['lib']
|
19
|
-
s.add_dependency 'chef', '~> 11.
|
19
|
+
s.add_dependency 'chef', '~> 11.12'
|
20
20
|
s.add_dependency 'test-kitchen', '~> 1.2'
|
21
21
|
s.add_dependency 'bundler', '~> 1.5'
|
22
22
|
s.add_dependency 'berkshelf', '~> 3.1'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: meez
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Czarkowski
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '11.
|
19
|
+
version: '11.12'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '11.
|
26
|
+
version: '11.12'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: test-kitchen
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|