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 +4 -4
- data/lib/cyborg/plugin/assets/javascripts.rb +6 -5
- data/lib/cyborg/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: 9cf18cb2dd99fd138db54e28a447704d391b196f
|
4
|
+
data.tar.gz: 14f0aeea0ad8d01517b5f0689943f068a95c23a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/cyborg/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2017-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sass
|