meez 0.1.5 → 0.2.0

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.
Files changed (6) hide show
  1. data/Gemfile +17 -14
  2. data/README.md +14 -1
  3. data/lib/meez/meez.rb +12 -11
  4. data/meez.gemspec +5 -5
  5. metadata +24 -14
  6. checksums.yaml +0 -15
data/Gemfile CHANGED
@@ -1,20 +1,23 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'chefspec', '~> 3.2'
4
- gem 'foodcritic', '~> 3.0'
5
- gem 'rubocop', '~> 0.18'
6
- gem 'chef', '~> 11.8'
7
- gem 'berkshelf', '~> 2.0'
8
- gem 'test-kitchen', '~> 1.1'
9
- gem 'serverspec', '~> 0.14'
10
- gem 'rake'
3
+ gem 'chef', '> 11.8'
4
+ gem 'rubocop', '~> 0.21'
11
5
 
12
- group :development do
13
- gem 'guard', '~> 1.8'
14
- gem 'guard-rubocop', '~> 0.2'
6
+ group :withoutchefdk do
7
+ gem 'chefspec', '~> 3.4'
8
+ gem 'foodcritic', '~> 3.0'
9
+ gem 'berkshelf', '~> 3.1'
10
+ gem 'test-kitchen', '~> 1.2'
11
+ gem 'serverspec', '~> 1.6'
12
+ gem 'rake', '~> 10.2'
15
13
  end
16
14
 
17
- group :infinite_loop_solver do
18
- gem 'celluloid', '~> 0.14'
19
- gem 'celluloid-io', '~> 0.14'
15
+ group :development do
16
+ gem 'guard', '~> 2.6'
17
+ gem 'guard-rubocop', '~> 1.1'
20
18
  end
19
+
20
+ #group :infinite_loop_solver do
21
+ # gem 'celluloid', '~> 0.14'
22
+ # gem 'celluloid-io', '~> 0.14'
23
+ #end
data/README.md CHANGED
@@ -13,7 +13,20 @@ About
13
13
  Install
14
14
  =======
15
15
 
16
- `gem install meez`
16
+ Official
17
+ ----------
18
+
19
+ as of version `0.2.0` this is offered as a `chefdk` plugin.
20
+
21
+ `knife gem install meez`
22
+
23
+ Unofficial
24
+ -------------
25
+
26
+ Your results may vary using it outside of `chefdk`
27
+
28
+ `knife gem install meez`
29
+
17
30
 
18
31
  Usage
19
32
  =====
data/lib/meez/meez.rb CHANGED
@@ -72,7 +72,6 @@ class Meez
72
72
  def self.init_berkshelf(cookbook_name, options)
73
73
  puts '* Initializing Berkshelf'
74
74
  path = File.join(options[:path], cookbook_name)
75
- gem 'berkshelf', '~> 2.0.11'
76
75
  require 'berkshelf'
77
76
  require 'berkshelf/base_generator'
78
77
  require 'berkshelf/init_generator'
@@ -81,7 +80,9 @@ class Meez
81
80
  skip_test_kitchen: true,
82
81
  skip_vagrant: true
83
82
  ).invoke_all
84
- append_file(File.join(path, 'Berksfile'), 'metadata')
83
+ contents = File.read(File.join(path, 'Gemfile'))
84
+ newgemfile = contents.gsub("\ngem 'berkshelf'\n","\ngem 'berkshelf', '> 3'\n")
85
+ File.open(File.join(path, 'Gemfile'), 'w') { |f| f.write(newgemfile) }
85
86
  end
86
87
 
87
88
  def self.init_kitchenci(cookbook_name, options)
@@ -107,32 +108,32 @@ class Meez
107
108
  write_template('chefspec/spec_helper.rb.erb', spec_path, cookbook_name, options)
108
109
  write_template('chefspec/default_spec.rb.erb', spec_path, cookbook_name, options)
109
110
  gitignore(path, '.coverage/*')
110
- add_gem(path, 'chefspec', '~> 3.2')
111
+ add_gem(path, 'chefspec', '>= 3.4')
111
112
  end
112
113
 
113
114
  def self.init_rakefile(cookbook_name, options)
114
115
  puts '* Initializing Rakefile'
115
116
  path = File.join(options[:path], cookbook_name)
116
117
  write_template('Rakefile.erb', path, cookbook_name, options)
117
- add_gem(path, 'rake')
118
+ add_gem(path, 'rake', '>= 10.2')
118
119
  end
119
120
 
120
121
  def self.init_rubocop(cookbook_name, options)
121
122
  puts '* Initializing Rubocop'
122
123
  path = File.join(options[:path], cookbook_name)
123
- add_gem(path, 'rubocop', '~> 0.18')
124
+ add_gem(path, 'rubocop', '>= 0.21')
124
125
  end
125
126
 
126
127
  def self.init_knife(cookbook_name, options)
127
128
  puts '* Initializing Knife'
128
129
  path = File.join(options[:path], cookbook_name)
129
- add_gem(path, 'chef', '~> 11.8')
130
+ add_gem(path, 'chef', '>= 11.8')
130
131
  end
131
132
 
132
133
  def self.init_foodcritic(cookbook_name, options)
133
134
  puts '* Initializing Food Critic'
134
135
  path = File.join(options[:path], cookbook_name)
135
- add_gem(path, 'foodcritic', '~> 3.0')
136
+ add_gem(path, 'foodcritic', '>= 3.0')
136
137
  end
137
138
 
138
139
  def self.init_serverspec(cookbook_name, options)
@@ -142,16 +143,16 @@ class Meez
142
143
  FileUtils.mkdir_p(spec_path)
143
144
  write_template('serverspec/spec_helper.rb.erb', spec_path, cookbook_name, options)
144
145
  write_template('serverspec/default_spec.rb.erb', spec_path, cookbook_name, options)
145
- add_gem(path, 'serverspec', '~> 0.14')
146
+ add_gem(path, 'serverspec', '>= 1.6')
146
147
  end
147
148
 
148
149
  def self.init_guard(cookbook_name, options)
149
150
  puts '* Initializing Guard'
150
151
  path = File.join(options[:path], cookbook_name)
151
152
  write_template('Guardfile.erb', path, cookbook_name, options)
152
- add_gem(path, 'guard', '~> 1.8')
153
- add_gem(path, 'guard-rubocop', '~> 0.2')
154
- add_gem(path, 'guard-foodcritic', '~> 1.0.2')
153
+ add_gem(path, 'guard', '>= 2.6')
154
+ add_gem(path, 'guard-rubocop', '>= 1.1')
155
+ add_gem(path, 'guard-foodcritic', '>= 1.0.2')
155
156
  end
156
157
 
157
158
  def self.init_drone(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.1.5'
3
+ s.version = '0.2.0'
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,8 +16,8 @@ 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.8.0'
20
- s.add_dependency 'test-kitchen', '~> 1.1.1'
21
- s.add_dependency 'bundler', '~> 1.5.1'
22
- s.add_dependency 'berkshelf', '~> 2.0.12'
19
+ s.add_dependency 'chef', '> 11.8'
20
+ s.add_dependency 'test-kitchen', '~> 1.2'
21
+ s.add_dependency 'bundler', '~> 1.5'
22
+ s.add_dependency 'berkshelf', '~> 3.1'
23
23
  end
metadata CHANGED
@@ -1,7 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: meez
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.2.0
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Paul Czarkowski
@@ -13,59 +14,67 @@ dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: chef
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - ~>
19
+ - - ! '>'
18
20
  - !ruby/object:Gem::Version
19
- version: 11.8.0
21
+ version: '11.8'
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
- - - ~>
27
+ - - ! '>'
25
28
  - !ruby/object:Gem::Version
26
- version: 11.8.0
29
+ version: '11.8'
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: test-kitchen
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
35
  - - ~>
32
36
  - !ruby/object:Gem::Version
33
- version: 1.1.1
37
+ version: '1.2'
34
38
  type: :runtime
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
43
  - - ~>
39
44
  - !ruby/object:Gem::Version
40
- version: 1.1.1
45
+ version: '1.2'
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: bundler
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
51
  - - ~>
46
52
  - !ruby/object:Gem::Version
47
- version: 1.5.1
53
+ version: '1.5'
48
54
  type: :runtime
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
59
  - - ~>
53
60
  - !ruby/object:Gem::Version
54
- version: 1.5.1
61
+ version: '1.5'
55
62
  - !ruby/object:Gem::Dependency
56
63
  name: berkshelf
57
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
58
66
  requirements:
59
67
  - - ~>
60
68
  - !ruby/object:Gem::Version
61
- version: 2.0.12
69
+ version: '3.1'
62
70
  type: :runtime
63
71
  prerelease: false
64
72
  version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
65
74
  requirements:
66
75
  - - ~>
67
76
  - !ruby/object:Gem::Version
68
- version: 2.0.12
77
+ version: '3.1'
69
78
  description: ! "`Meez` (slang for `mise en place`) will create an opinionated chef
70
79
  cookbook skeleton complete with testing suite including:\n berkshelf, chefspec,
71
80
  test kitchen, foodcritic, server spec\n\n"
@@ -97,25 +106,26 @@ files:
97
106
  homepage: http://github.com/paulczar/meez
98
107
  licenses:
99
108
  - apache2
100
- metadata: {}
101
109
  post_install_message:
102
110
  rdoc_options: []
103
111
  require_paths:
104
112
  - lib
105
113
  required_ruby_version: !ruby/object:Gem::Requirement
114
+ none: false
106
115
  requirements:
107
116
  - - ! '>='
108
117
  - !ruby/object:Gem::Version
109
118
  version: '0'
110
119
  required_rubygems_version: !ruby/object:Gem::Requirement
120
+ none: false
111
121
  requirements:
112
122
  - - ! '>='
113
123
  - !ruby/object:Gem::Version
114
124
  version: '0'
115
125
  requirements: []
116
126
  rubyforge_project:
117
- rubygems_version: 2.1.10
127
+ rubygems_version: 1.8.23
118
128
  signing_key:
119
- specification_version: 4
129
+ specification_version: 3
120
130
  summary: Initializes a chef cookbook with TDD framework
121
131
  test_files: []
checksums.yaml DELETED
@@ -1,15 +0,0 @@
1
- ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- MTc4NTA1NmQxNWM5NDdlODdkMTQ3ZGU4YTE4NzJmNmY5ZDMyODVlOQ==
5
- data.tar.gz: !binary |-
6
- NDdmYWU4ZDg4NDc0ODkxNmU5NWIyMjA4NTBhMmZiN2UxMTI1ZjA5NA==
7
- SHA512:
8
- metadata.gz: !binary |-
9
- MTVlOGE3N2ZiZWFlMjcyNTg3ZDY2NzcwZDI4OGQ2NmRiNDIyYzNmMmU1ZGE3
10
- ZjZlMDU3MDM0NjYwYmQ5NjIzM2ZkNmU3MjVhZWZiNWUyMjNjNzMzMjFkNjgx
11
- ZjY4N2VhY2YxZDgwMTc1NzE3NjIyMTUwNDQxODdjNjY0YWQwY2U=
12
- data.tar.gz: !binary |-
13
- M2U0YTYwNjU5Y2NjZTQzZmQ3ZTc5ZjMwOGI4NTczNmEzZjRlNTk4Yzg0N2Iz
14
- YzhkMmJmMzFkNDFjOGZhOTU1NDAzNDMxMTBiZjEyMWJlODJiNjhlM2Q2MGI4
15
- NjI3ZWQ0MjI0NzhhNjA1MjllZjE4MDZhMmRhYTc5OGYyNzk5YzI=