sumodev 0.12.0 → 0.12.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sumodev/commands/hooks.rb +11 -6
- data/lib/sumodev/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f11da5a00f66cb64108f26f38b0feb7b5e05be31
|
4
|
+
data.tar.gz: a3967841cbd4c98eb2ceb34ec6be220f3b9f3fa1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a3bd084461a4ec0a9c3c3e9718f6d7533e5f4cf1243d2d0e71196e51de1ed75a5ea7f375b46deae2f9e7af7c77485e43d5337a800544818235bc814cb026836
|
7
|
+
data.tar.gz: 2df50fcc08316e7440bf16ff36f12b34f6ee8ec09b32b74aac346b27e5672e6096d8868eef3f296e6fb9069a2f3dc301c3e4581712fec522a5f4fc6f6389abcd
|
@@ -244,7 +244,7 @@ class Sumodev::Commands::Hooks < Sumodev::Command
|
|
244
244
|
puts "\n"
|
245
245
|
|
246
246
|
if errors_and_warnings.empty?
|
247
|
-
say("Atta boy, no errors!
|
247
|
+
say("Atta boy, no errors! 🍺", :green)
|
248
248
|
return
|
249
249
|
end
|
250
250
|
|
@@ -294,31 +294,36 @@ class Sumodev::Commands::Hooks < Sumodev::Command
|
|
294
294
|
# Check the CSS files
|
295
295
|
css_files = find_files_by_extension(files, 'css')
|
296
296
|
if css_files.any?
|
297
|
-
|
297
|
+
results = check_css_files(css_files)
|
298
|
+
errors_and_warnings['CSS'] = results unless results.empty?
|
298
299
|
end
|
299
300
|
|
300
301
|
# Check the SCSS files
|
301
302
|
scss_files = find_files_by_extension(files, 's(c|a)ss')
|
302
303
|
if scss_files.any?
|
303
|
-
|
304
|
+
results = check_scss_files(scss_files)
|
305
|
+
errors_and_warnings['SCSS'] = results unless results.empty?
|
304
306
|
end
|
305
307
|
|
306
308
|
# Check the Coffee files
|
307
309
|
coffee_files = find_files_by_extension(files, 'coffee')
|
308
310
|
if coffee_files.any?
|
309
|
-
|
311
|
+
results = check_coffee_files(coffee_files)
|
312
|
+
errors_and_warnings['Coffee'] = results unless results.empty?
|
310
313
|
end
|
311
314
|
|
312
315
|
# Check the JS files
|
313
316
|
js_files = find_files_by_extension(files, 'js')
|
314
317
|
if js_files.any?
|
315
|
-
|
318
|
+
results = check_js_files(js_files)
|
319
|
+
errors_and_warnings['JS'] = results unless results.empty?
|
316
320
|
end
|
317
321
|
|
318
322
|
# Check the php files
|
319
323
|
php_files = find_files_by_extension(files, 'php')
|
320
324
|
if php_files.any?
|
321
|
-
|
325
|
+
results = check_php_files(php_files)
|
326
|
+
errors_and_warnings['PHP'] = results unless results.empty?
|
322
327
|
end
|
323
328
|
|
324
329
|
output_results(errors_and_warnings)
|
data/lib/sumodev/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sumodev
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.12.
|
4
|
+
version: 0.12.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan De Poorter
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|