guard-jasmine 2.0.5 → 2.0.6

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: 0b47f780781cf1e46672308491cd8ec931f06b80
4
- data.tar.gz: c863d744e53d2fa85062dcb2c5837a443943f333
3
+ metadata.gz: 4a32c46dde08e58ce675e76ad7173e7bfb139d3b
4
+ data.tar.gz: c719c3dd1f8f532fdd397f9bfd06bd3f55aa5c71
5
5
  SHA512:
6
- metadata.gz: ab256f2699afa45d01d733dcab6f002899df4c6c376639928c62b451800db58f18e28a70fd286af5d63bb8c68045d69ad9c2e4e0b442ebb0f3735bd13d8eeb85
7
- data.tar.gz: 71d5f4827e424dcd6b4ef4bedc7a0723f356f2b855eafdd46c87d067decc63538563ffcd18930a053f0883573e1b4268d43de2a6fe3b1016b2f9cf23c30872b3
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)
@@ -1,6 +1,6 @@
1
1
  module Guard
2
2
  module JasmineVersion
3
3
  # Guard::Jasmine version that is used for the Gem specification
4
- VERSION = '2.0.5'
4
+ VERSION = '2.0.6'
5
5
  end
6
6
  end
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.5
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-03-16 00:00:00.000000000 Z
12
+ date: 2015-04-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: guard