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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 75e56e45f005b1a47199fe2d1536b262e551e34a
4
- data.tar.gz: e1e8d4cc9fc7d0d059d268bf162b00a029d4c783
3
+ metadata.gz: f11da5a00f66cb64108f26f38b0feb7b5e05be31
4
+ data.tar.gz: a3967841cbd4c98eb2ceb34ec6be220f3b9f3fa1
5
5
  SHA512:
6
- metadata.gz: 0b9d0ea709daf3d8b2b5509e81d912cccfc6d62792029a46db9fde01b8df611847f95322bcaacc5011966ac8dd448544174246d3f8f8d8f815dc96d27fd68f12
7
- data.tar.gz: 9d9020a6c3246fdeaa32828005acd57e69789c0357fb6a99f9cf919fd96bf828cbbf275c3969d6a319cd877460d002c622ed21b46edab8df421bc7b47c053bbe
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! 🍺", :green)
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
- errors_and_warnings['CSS'] = check_css_files(css_files)
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
- errors_and_warnings['SCSS'] = check_scss_files(scss_files)
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
- errors_and_warnings['Coffee'] = check_coffee_files(coffee_files)
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
- errors_and_warnings['JS'] = check_js_files(js_files)
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
- errors_and_warnings['PHP'] = check_php_files(php_files)
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)
@@ -1,3 +1,3 @@
1
1
  module Sumodev
2
- VERSION = "0.12.0"
2
+ VERSION = "0.12.1"
3
3
  end
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.0
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-19 00:00:00.000000000 Z
11
+ date: 2015-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport