knife-skeleton 0.5.1 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 32b689281b6637f8b39604758277b3f8df9b790d
4
- data.tar.gz: 47577b3e9873a8367c974fde2e64f8db14ad1790
3
+ metadata.gz: 8bffb76186eb14397d4edc594ec72a32d48779db
4
+ data.tar.gz: f46dbb437c1de8a33a34cfd517db1a10252ae7a5
5
5
  SHA512:
6
- metadata.gz: 6ca64faa30a0f53b5dddcd69f5532e7c052d758a6880112da3f5bda98982c983db9a1097f46fbaf95e710f859330b6530063566b81f0b83f42a8634920b6fae9
7
- data.tar.gz: b43b36960c210fd138c5f80c7d60f39cd84d5eb8cb784ef69ca6d9fb5112131a2b995f0aa1fc5b21fe264a24c49e75431384a7b0453e86b0c5da9707a7f05825
6
+ metadata.gz: e6e4e3b0399d6ea6aea04d8e1420ca214fa3bb56be50b4553f59074ea2ed6563009700916ffac784da4754ec36dec8518e1acc634c1411bd0fff39b1d01d86b7
7
+ data.tar.gz: c924b96c51f42ee707e15c7db18c40825c8303a0ce4d0909e1498dea816eb900df844383c28024dd2f323065127f870bdbd12159ce5d75eef33739f02ba00d84
data/files/Gemfile CHANGED
@@ -19,3 +19,10 @@ group :kitchen do
19
19
  gem 'kitchen-vagrant'
20
20
  gem 'kitchen-openstack'
21
21
  end
22
+
23
+ group :development do
24
+ gem 'guard'
25
+ gem 'guard-foodcritic'
26
+ gem 'guard-rubocop'
27
+ gem 'guard-rspec'
28
+ end
data/files/Guardfile ADDED
@@ -0,0 +1,28 @@
1
+ guard 'foodcritic', cookbook_paths: '.' do
2
+ watch(%r{attributes/.+\.rb$})
3
+ watch(%r{providers/.+\.rb$})
4
+ watch(%r{recipes/.+\.rb$})
5
+ watch(%r{resources/.+\.rb$})
6
+ watch(%r{templates/.+$})
7
+ watch('metadata.rb')
8
+ end
9
+
10
+ guard :rubocop do
11
+ watch(%r{/.+\.rb$/})
12
+ watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
13
+ end
14
+
15
+ guard :rspec, cmd: 'bundle exec rspec' do
16
+ require 'guard/rspec/dsl'
17
+ dsl = Guard::RSpec::Dsl.new(self)
18
+
19
+ # RSpec files
20
+ rspec = dsl.rspec
21
+ watch(rspec.spec_helper) { rspec.spec_dir }
22
+ watch(rspec.spec_support) { rspec.spec_dir }
23
+ watch(rspec.spec_files)
24
+
25
+ # Ruby files
26
+ ruby = dsl.ruby
27
+ dsl.watch_spec_files_for(ruby.lib_files)
28
+ end
data/files/Rakefile CHANGED
@@ -43,7 +43,7 @@ namespace :test do
43
43
  end
44
44
 
45
45
  task :chefspec do
46
- bundle_exec 'rspec spec --color --format documentation'
46
+ bundle_exec :rspec
47
47
  end
48
48
 
49
49
  task :kitchen do
data/files/chefignore CHANGED
@@ -27,6 +27,7 @@ tmtags
27
27
  *_flymake.*
28
28
  *_flymake
29
29
  *.tmproj
30
+ .idea
30
31
  .project
31
32
  .settings
32
33
  mkmf.log
data/files/gitignore CHANGED
@@ -1,3 +1,4 @@
1
+ .idea
1
2
  .project
2
3
  .bundle/
3
4
  .vagrant
data/files/rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --format documentation
data/files/rubocop.yml CHANGED
@@ -2,6 +2,7 @@ AllCops:
2
2
  Include:
3
3
  - metadata.rb
4
4
  - '**/Gemfile'
5
+ - '**/Guardfile'
5
6
  - attributes/**/*
6
7
  - definitions/**/*
7
8
  - libraries/**/*
@@ -12,8 +12,8 @@ eos
12
12
  s.license = 'Apache 2.0'
13
13
 
14
14
  s.files = `git ls-files`.split($OUTPUT_RECORD_SEPARATOR)
15
- s.executables = s.files.grep(/^bin\//).map { |f| File.basename(f) }
16
- s.test_files = s.files.grep(/^(test|spec|features)\//)
15
+ s.executables = s.files.grep(%r{^bin/}).map { |f| File.basename(f) }
16
+ s.test_files = s.files.grep(%r{^(test|spec|features)/})
17
17
  s.name = 'knife-skeleton'
18
18
  s.require_paths = ['lib']
19
19
  s.version = KnifeSkeleton::VERSION
@@ -190,7 +190,9 @@ eos
190
190
  %w(
191
191
  Berksfile
192
192
  Gemfile
193
+ Guardfile
193
194
  .gitignore
195
+ .rspec
194
196
  .rubocop.yml
195
197
  .travis.yml
196
198
  .chefignore
@@ -1,6 +1,6 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  # Knife skeleton version
3
3
  module KnifeSkeleton
4
- VERSION = '0.5.1'
4
+ VERSION = '0.6.0'
5
5
  MAJOR, MINOR, TINY = VERSION.split('.')
6
6
  end
@@ -166,9 +166,11 @@ describe Chef::Knife::CookbookCreate do
166
166
  @knife.ui.should_receive(:msg).with('** Create cookbook foobar into /tmp')
167
167
  @knife.ui.should_receive(:msg).with("** Create 'Berksfile'")
168
168
  @knife.ui.should_receive(:msg).with("** Create 'Gemfile'")
169
+ @knife.ui.should_receive(:msg).with("** Create 'Guardfile'")
169
170
  @knife.ui.should_receive(:msg).with("** Create '.gitignore'")
170
171
  @knife.ui.should_receive(:msg).with("** Create '.travis.yml'")
171
172
  @knife.ui.should_receive(:msg).with("** Create '.chefignore'")
173
+ @knife.ui.should_receive(:msg).with("** Create '.rspec'")
172
174
  @knife.ui.should_receive(:msg).with("** Create '.rubocop.yml'")
173
175
  @knife.ui.should_receive(:msg).with("** Create '.kitchen.yml'")
174
176
  @knife.ui.should_receive(:msg).with("** Create 'Rakefile'")
@@ -188,7 +190,9 @@ describe Chef::Knife::CookbookCreate do
188
190
  @knife.ui.should_receive(:msg).with('** Create cookbook foobar into /tmp')
189
191
  @knife.ui.should_receive(:warn).with("'Berksfile' already exists")
190
192
  @knife.ui.should_receive(:warn).with("'Gemfile' already exists")
193
+ @knife.ui.should_receive(:warn).with("'Guardfile' already exists")
191
194
  @knife.ui.should_receive(:warn).with("'.gitignore' already exists")
195
+ @knife.ui.should_receive(:warn).with("'.rspec' already exists")
192
196
  @knife.ui.should_receive(:warn).with("'.rubocop.yml' already exists")
193
197
  @knife.ui.should_receive(:warn).with("'.kitchen.yml' already exists")
194
198
  @knife.ui.should_receive(:warn).with("'.travis.yml' already exists")
@@ -229,7 +233,9 @@ describe Chef::Knife::CookbookCreate do
229
233
  metadata.rb
230
234
  Berksfile
231
235
  Gemfile
236
+ Guardfile
232
237
  .gitignore
238
+ .rspec
233
239
  .rubocop.yml
234
240
  .travis.yml
235
241
  .chefignore
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-skeleton
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pierre Rambaud
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-06-10 00:00:00.000000000 Z
12
+ date: 2015-06-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: chef
@@ -109,9 +109,8 @@ dependencies:
109
109
  - - ">="
110
110
  - !ruby/object:Gem::Version
111
111
  version: 0.5.3
112
- description: 'Knife plugin to create skeleton with rubocop, chefspec, kitchen, etc...
113
-
114
- '
112
+ description: |
113
+ Knife plugin to create skeleton with rubocop, chefspec, kitchen, etc...
115
114
  email:
116
115
  - pierre.rambaud@numergy.com
117
116
  - antoine.rouyer@numergy.com
@@ -128,6 +127,7 @@ files:
128
127
  - Rakefile
129
128
  - files/Berksfile
130
129
  - files/Gemfile
130
+ - files/Guardfile
131
131
  - files/Rakefile
132
132
  - files/chefignore
133
133
  - files/gitignore
@@ -135,6 +135,7 @@ files:
135
135
  - files/licenses/gplv2
136
136
  - files/licenses/gplv3
137
137
  - files/licenses/mit
138
+ - files/rspec
138
139
  - files/rubocop.yml
139
140
  - files/travis.yml
140
141
  - knife_skeleton.gemspec
@@ -178,7 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
178
179
  version: '0'
179
180
  requirements: []
180
181
  rubyforge_project:
181
- rubygems_version: 2.4.5
182
+ rubygems_version: 2.4.6
182
183
  signing_key:
183
184
  specification_version: 4
184
185
  summary: Knife plugin to create skeleton with rubocop, chefspec, kitchen, etc...