guard-jasmine 2.0.5 → 2.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a32c46dde08e58ce675e76ad7173e7bfb139d3b
|
4
|
+
data.tar.gz: c719c3dd1f8f532fdd397f9bfd06bd3f55aa5c71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46a01b21d0d1b1e0aaebf3f8aeeb48c937f71bfd3b39dd038432c44587958a89b6188bd8b6e488dba816d783f7d5634693ff3cfb1b293c5cc94cca20801ac532
|
7
|
+
data.tar.gz: 73802e267a0b8a38fc4a7341733e34324fe1e2addd2312fb7f2af4eca8cda376198f6374b112a877b43de2b72e25460ca5eebe86fd1aba41c1268586589a306a
|
@@ -1,5 +1,5 @@
|
|
1
1
|
(function() {
|
2
|
-
var exitError, exitSuccessfully, jasmineAvailable, options, page, phantomExit, reportError, reporterMissing, reporterReady, specsDone, specsTimedout, system, waitFor;
|
2
|
+
var exitError, exitSuccessfully, hasLoggedError, jasmineAvailable, options, page, phantomExit, reportError, reporterMissing, reporterReady, specsDone, specsTimedout, system, waitFor;
|
3
3
|
|
4
4
|
system = require('system');
|
5
5
|
|
@@ -129,11 +129,16 @@
|
|
129
129
|
return interval = setInterval(wait, 250);
|
130
130
|
};
|
131
131
|
|
132
|
+
hasLoggedError = false;
|
133
|
+
|
132
134
|
reportError = function(msg, trace) {
|
133
135
|
var err;
|
134
136
|
if (trace == null) {
|
135
137
|
trace = [];
|
136
138
|
}
|
139
|
+
if (hasLoggedError) {
|
140
|
+
return;
|
141
|
+
}
|
137
142
|
if (0 === trace.length) {
|
138
143
|
err = new Error();
|
139
144
|
trace = err.stack;
|
@@ -142,6 +147,7 @@
|
|
142
147
|
error: msg,
|
143
148
|
trace: trace
|
144
149
|
}));
|
150
|
+
hasLoggedError = true;
|
145
151
|
return phantomExit(1);
|
146
152
|
};
|
147
153
|
|
@@ -116,9 +116,12 @@ waitFor = (test, ready, timeout = 10000, timeoutFunction)->
|
|
116
116
|
interval = setInterval( wait, 250 )
|
117
117
|
|
118
118
|
# Logs the error to the console as JSON and exits with status '1'
|
119
|
+
hasLoggedError = false
|
119
120
|
reportError = (msg, trace=[])->
|
121
|
+
return if hasLoggedError
|
120
122
|
if 0 == trace.length
|
121
123
|
err = new Error();
|
122
124
|
trace = err.stack
|
123
125
|
console.log JSON.stringify({ error: msg, trace: trace })
|
126
|
+
hasLoggedError = true
|
124
127
|
return phantomExit(1)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-jasmine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Kessler
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-04-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: guard
|