cyborg 0.5.15 → 0.5.16

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: deaac461b4f0974e0ad9a1f51439096dd087329c
4
- data.tar.gz: dd7093d99a3c253c06f24d0939c5dac99e584a60
3
+ metadata.gz: 9cf18cb2dd99fd138db54e28a447704d391b196f
4
+ data.tar.gz: 14f0aeea0ad8d01517b5f0689943f068a95c23a7
5
5
  SHA512:
6
- metadata.gz: 7471921a487d3b2bef35e63d157f5c9d8fc82558a0e660beffdb45eefb68beef9547da36725b64b7fd34f169cde54a7911d0f422a58923fcdf29feaf8aad3879
7
- data.tar.gz: c657b4e2d50285d5cff98bdef05841b43a44db12ab36b4d059c9237dd05331cc540e00b64cc18cbcb38c418bfdd322dc5b7cab90548d751c6dffe69147cb4dd3
6
+ metadata.gz: 5204cb4ad3b6a0f5a93c74e8331e5599834fa6b15eb2697af63cf77231ba0c6221567867d2efc2ee9dfea2415c02999043e7d27e1d8d92bcbcabb53601b1a033
7
+ data.tar.gz: 93a24cdc1a039496b4f608037e97f1d7a4a89e8749fbee98630442f5854cc3cd2e03d6a98c6d6c4523d3664b19ac6821bd6a08d8bce2c1f5583f5e01a9bbd7cd
@@ -22,10 +22,11 @@ module Cyborg
22
22
 
23
23
  dest = destination(file)
24
24
 
25
- FileUtils.rm dest
25
+ FileUtils.rm(dest) if File.exists?(dest)
26
26
 
27
27
  response = Open3.capture3(build_command(file))
28
28
 
29
+ # If the file exists and is not empty (a failed build is empty)
29
30
  if File.exist?(dest) && !File.read(dest).strip.empty?
30
31
  compress(dest) if Cyborg.production?
31
32
  build_success file
@@ -35,10 +36,10 @@ module Cyborg
35
36
  response = response.map { |l| l.to_s.split("\n") }.flatten
36
37
 
37
38
  response.each do |line|
38
- if !line.empty? &&
39
- !line.match(/node_modules/i) &&
40
- !line.match(/pid (\d+?) exit/i) &&
41
- !line.match(/\[BABEL\] Note:/i)
39
+ if !line.empty? && # Don't print empty lines
40
+ !line.match(/node_modules/i) && # Ignore stack traces from installed modules
41
+ !line.match(/pid (\d+?) exit/i) && # Ignore pid exit stack line
42
+ !line.match(/\[BABEL\] Note:/i) # Notices from Bable are noisy
42
43
  log_error line.gsub(plugin.root+'/','')
43
44
  end
44
45
  end
@@ -1,3 +1,3 @@
1
1
  module Cyborg
2
- VERSION = "0.5.15"
2
+ VERSION = "0.5.16"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cyborg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.15
4
+ version: 0.5.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-06 00:00:00.000000000 Z
11
+ date: 2017-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sass