foodcritic-rackspace-rules 1.3.2 → 1.4.1

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: 28817c337c8ca445b12015ec6778e1c83ed7729e
4
- data.tar.gz: 26e11890f84c1a63749dad2a87edbe9b20db1b78
3
+ metadata.gz: b78b87efb36e5c6370ccb0eba7e56be1c21367ae
4
+ data.tar.gz: 6ff8bc4ba3befccd47df1226fbe63eb9117317e8
5
5
  SHA512:
6
- metadata.gz: a6206aec9cb7f3fdb68b762986d1798d32e7afcacfb3f70a6bdd73c4a6be8ae03d44959cfea62be09dd2c6a0c6d7d3e029534706f21fd58eb8a1ef8699948bf0
7
- data.tar.gz: a8690d39632c38a3850e7a25007392e4c3adaf061ad30509020f88fe76cd062061b4a6d333f9ce88f77794ec871e8671a839254ac501efb7fe3537394ba71516
6
+ metadata.gz: c4d74ca325c3c0a0bd7c66bdc2583f0803884dcbfbc6942e97ad25776232229f6d3110512af61d966d7824c132cc02d2a62502e6c69e3b54def04aee230b9bf0
7
+ data.tar.gz: 6fb1e0161c28704c6707ba06f1c9bdec3aa1e9dc417ea50d105c2c461dc9e0f488df0e68a5c195e52cf84103585416e93bc5c8b643cb7e0a1ecb0828498a59d9
@@ -1,7 +1,7 @@
1
1
  module Foodcritic
2
2
  module Rackspace
3
3
  module Rules
4
- VERSION = "1.3.2"
4
+ VERSION = "1.4.1"
5
5
  end
6
6
  end
7
7
  end
@@ -181,3 +181,46 @@ rule 'RACK007', "Cookbook must be licensed Apache 2.0 (public) or All rights res
181
181
  matches
182
182
  end # metadata
183
183
  end # rule
184
+
185
+ rule 'RACK008', 'Files expected by Support must exist' do
186
+ tags %w(style rackspace-support)
187
+ expected_files = %w(Berksfile.lock)
188
+
189
+ cookbook do |path|
190
+ matches = []
191
+ expected_files.each do |f|
192
+ next unless !File.exist?("#{path}/#{f}")
193
+
194
+ matches << {
195
+ filename: "#{f}",
196
+ matched: 'missing',
197
+ line: 0,
198
+ column: 0
199
+ }
200
+ end
201
+ matches
202
+ end # cookbook
203
+ end
204
+
205
+ rule 'RACK009', 'Berksfile.lock must not be in .gitignore' do
206
+ tags %w(style rackspace-support)
207
+
208
+ cookbook do
209
+ matches = []
210
+
211
+ gitignore = '.gitignore'
212
+ lines = File.readlines(gitignore)
213
+
214
+ lines.each do |line|
215
+ if line.include?('Berksfile.lock')
216
+ matches << {
217
+ filename: gitignore,
218
+ matched: 'Berksfile.lock should not be here',
219
+ line: lines.index(line),
220
+ column: 0
221
+ }
222
+ end
223
+ end
224
+ matches
225
+ end
226
+ end # rule
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foodcritic-rackspace-rules
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Smith
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-07 00:00:00.000000000 Z
11
+ date: 2015-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler