evergreen 1.0.1 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +4 -3
- data/lib/evergreen.rb +1 -0
- data/lib/evergreen/cli.rb +1 -0
- data/lib/evergreen/runner.rb +3 -1
- data/lib/evergreen/utils/timeout.rb +25 -0
- data/lib/evergreen/version.rb +1 -1
- data/spec/spec_helper.rb +3 -0
- metadata +62 -24
- checksums.yaml +0 -15
data/README.rdoc
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
= Evergreen
|
2
2
|
|
3
|
-
{<img src="
|
3
|
+
{<img src="https://travis-ci.org/jnicklas/evergreen.png" />}[http://travis-ci.org/jnicklas/evergreen]
|
4
|
+
{<img src="https://coveralls.io/repos/jnicklas/evergreen/badge.png" alt="Coverage Status" />}[https://coveralls.io/r/jnicklas/evergreen]
|
4
5
|
|
5
6
|
"Because green is the new Blue(Ridge)"
|
6
7
|
|
@@ -142,7 +143,7 @@ function in your specs:
|
|
142
143
|
|
143
144
|
If you add a spec_helper file like so:
|
144
145
|
|
145
|
-
spec/javascripts/spec_helper.js
|
146
|
+
spec/javascripts/helpers/spec_helper.js
|
146
147
|
|
147
148
|
It will automatically be loaded. This is a great place for adding custom
|
148
149
|
matchers and the like.
|
@@ -160,7 +161,7 @@ You can also add a CoffeeScript spec helper, but remember that CoffeeScript
|
|
160
161
|
encloses individual files in a closure, if you need something you define in the
|
161
162
|
spec helper to be available in your spec files, attach it to the window object:
|
162
163
|
|
163
|
-
# spec/javascripts/spec_helper.coffee
|
164
|
+
# spec/javascripts/helpers/spec_helper.coffee
|
164
165
|
|
165
166
|
MyThing: "foo" # local to spec helper
|
166
167
|
window.MyThing: "foo" # global
|
data/lib/evergreen.rb
CHANGED
data/lib/evergreen/cli.rb
CHANGED
data/lib/evergreen/runner.rb
CHANGED
@@ -49,7 +49,7 @@ module Evergreen
|
|
49
49
|
|
50
50
|
previous_results = ""
|
51
51
|
|
52
|
-
|
52
|
+
Evergreen.timeout(300) do
|
53
53
|
dots = session.evaluate_script('Evergreen.dots')
|
54
54
|
io.print dots.sub(/^#{Regexp.escape(previous_results)}/, '')
|
55
55
|
io.flush
|
@@ -149,3 +149,5 @@ module Evergreen
|
|
149
149
|
end
|
150
150
|
end
|
151
151
|
end
|
152
|
+
|
153
|
+
|
@@ -0,0 +1,25 @@
|
|
1
|
+
module Evergreen
|
2
|
+
class << self
|
3
|
+
|
4
|
+
##
|
5
|
+
# Provides timeout similar to standard library Timeout, but avoids threads
|
6
|
+
#
|
7
|
+
def timeout(seconds = 1, error_message = nil, &block)
|
8
|
+
start_time = Time.now
|
9
|
+
|
10
|
+
result = nil
|
11
|
+
|
12
|
+
until result
|
13
|
+
return result if result = yield
|
14
|
+
|
15
|
+
delay = seconds - (Time.now - start_time)
|
16
|
+
if delay <= 0
|
17
|
+
raise TimeoutError, error_message || "timed out"
|
18
|
+
end
|
19
|
+
|
20
|
+
sleep(0.05)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
end
|
25
|
+
end
|
data/lib/evergreen/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,32 +1,36 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: evergreen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Jonas Nicklas
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date:
|
12
|
+
date: 2014-01-27 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: capybara
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
16
18
|
requirements:
|
17
19
|
- - ~>
|
18
20
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
21
|
+
version: 2.1.0
|
20
22
|
type: :runtime
|
21
23
|
prerelease: false
|
22
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
23
26
|
requirements:
|
24
27
|
- - ~>
|
25
28
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
29
|
+
version: 2.1.0
|
27
30
|
- !ruby/object:Gem::Dependency
|
28
31
|
name: launchy
|
29
32
|
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
30
34
|
requirements:
|
31
35
|
- - ! '>='
|
32
36
|
- !ruby/object:Gem::Version
|
@@ -34,6 +38,7 @@ dependencies:
|
|
34
38
|
type: :runtime
|
35
39
|
prerelease: false
|
36
40
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
37
42
|
requirements:
|
38
43
|
- - ! '>='
|
39
44
|
- !ruby/object:Gem::Version
|
@@ -41,6 +46,7 @@ dependencies:
|
|
41
46
|
- !ruby/object:Gem::Dependency
|
42
47
|
name: sinatra
|
43
48
|
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
44
50
|
requirements:
|
45
51
|
- - ~>
|
46
52
|
- !ruby/object:Gem::Version
|
@@ -48,6 +54,7 @@ dependencies:
|
|
48
54
|
type: :runtime
|
49
55
|
prerelease: false
|
50
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
51
58
|
requirements:
|
52
59
|
- - ~>
|
53
60
|
- !ruby/object:Gem::Version
|
@@ -55,6 +62,7 @@ dependencies:
|
|
55
62
|
- !ruby/object:Gem::Dependency
|
56
63
|
name: json_pure
|
57
64
|
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
58
66
|
requirements:
|
59
67
|
- - ! '>='
|
60
68
|
- !ruby/object:Gem::Version
|
@@ -62,6 +70,7 @@ dependencies:
|
|
62
70
|
type: :runtime
|
63
71
|
prerelease: false
|
64
72
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
65
74
|
requirements:
|
66
75
|
- - ! '>='
|
67
76
|
- !ruby/object:Gem::Version
|
@@ -69,6 +78,7 @@ dependencies:
|
|
69
78
|
- !ruby/object:Gem::Dependency
|
70
79
|
name: coffee-script
|
71
80
|
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
72
82
|
requirements:
|
73
83
|
- - ! '>='
|
74
84
|
- !ruby/object:Gem::Version
|
@@ -76,6 +86,7 @@ dependencies:
|
|
76
86
|
type: :runtime
|
77
87
|
prerelease: false
|
78
88
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
79
90
|
requirements:
|
80
91
|
- - ! '>='
|
81
92
|
- !ruby/object:Gem::Version
|
@@ -83,6 +94,7 @@ dependencies:
|
|
83
94
|
- !ruby/object:Gem::Dependency
|
84
95
|
name: rspec
|
85
96
|
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
86
98
|
requirements:
|
87
99
|
- - ~>
|
88
100
|
- !ruby/object:Gem::Version
|
@@ -90,6 +102,7 @@ dependencies:
|
|
90
102
|
type: :development
|
91
103
|
prerelease: false
|
92
104
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
93
106
|
requirements:
|
94
107
|
- - ~>
|
95
108
|
- !ruby/object:Gem::Version
|
@@ -97,20 +110,23 @@ dependencies:
|
|
97
110
|
- !ruby/object:Gem::Dependency
|
98
111
|
name: capybara-webkit
|
99
112
|
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
100
114
|
requirements:
|
101
|
-
- -
|
115
|
+
- - ! '>='
|
102
116
|
- !ruby/object:Gem::Version
|
103
|
-
version: '0
|
117
|
+
version: '0'
|
104
118
|
type: :development
|
105
119
|
prerelease: false
|
106
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
107
122
|
requirements:
|
108
|
-
- -
|
123
|
+
- - ! '>='
|
109
124
|
- !ruby/object:Gem::Version
|
110
|
-
version: '0
|
125
|
+
version: '0'
|
111
126
|
- !ruby/object:Gem::Dependency
|
112
127
|
name: therubyracer
|
113
128
|
requirement: !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
114
130
|
requirements:
|
115
131
|
- - ~>
|
116
132
|
- !ruby/object:Gem::Version
|
@@ -118,6 +134,7 @@ dependencies:
|
|
118
134
|
type: :development
|
119
135
|
prerelease: false
|
120
136
|
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
121
138
|
requirements:
|
122
139
|
- - ~>
|
123
140
|
- !ruby/object:Gem::Version
|
@@ -125,6 +142,7 @@ dependencies:
|
|
125
142
|
- !ruby/object:Gem::Dependency
|
126
143
|
name: rake
|
127
144
|
requirement: !ruby/object:Gem::Requirement
|
145
|
+
none: false
|
128
146
|
requirements:
|
129
147
|
- - ! '>='
|
130
148
|
- !ruby/object:Gem::Version
|
@@ -132,6 +150,23 @@ dependencies:
|
|
132
150
|
type: :development
|
133
151
|
prerelease: false
|
134
152
|
version_requirements: !ruby/object:Gem::Requirement
|
153
|
+
none: false
|
154
|
+
requirements:
|
155
|
+
- - ! '>='
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: '0'
|
158
|
+
- !ruby/object:Gem::Dependency
|
159
|
+
name: coveralls
|
160
|
+
requirement: !ruby/object:Gem::Requirement
|
161
|
+
none: false
|
162
|
+
requirements:
|
163
|
+
- - ! '>='
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: '0'
|
166
|
+
type: :development
|
167
|
+
prerelease: false
|
168
|
+
version_requirements: !ruby/object:Gem::Requirement
|
169
|
+
none: false
|
135
170
|
requirements:
|
136
171
|
- - ! '>='
|
137
172
|
- !ruby/object:Gem::Version
|
@@ -163,19 +198,16 @@ files:
|
|
163
198
|
- lib/evergreen/suite.rb
|
164
199
|
- lib/evergreen/tasks.rb
|
165
200
|
- lib/evergreen/template.rb
|
201
|
+
- lib/evergreen/utils/timeout.rb
|
166
202
|
- lib/evergreen/version.rb
|
167
203
|
- lib/evergreen/views/_spec_error.erb
|
168
204
|
- lib/evergreen/views/layout.erb
|
169
205
|
- lib/evergreen/views/list.erb
|
170
206
|
- lib/evergreen/views/run.erb
|
171
207
|
- lib/evergreen.rb
|
208
|
+
- lib/jasmine/config.rb
|
172
209
|
- lib/jasmine/Contribute.markdown
|
173
210
|
- lib/jasmine/Gemfile
|
174
|
-
- lib/jasmine/MIT.LICENSE
|
175
|
-
- lib/jasmine/README.markdown
|
176
|
-
- lib/jasmine/Rakefile
|
177
|
-
- lib/jasmine/Release.markdown
|
178
|
-
- lib/jasmine/config.rb
|
179
211
|
- lib/jasmine/images/jasmine_favicon.png
|
180
212
|
- lib/jasmine/jasmine-core.gemspec
|
181
213
|
- lib/jasmine/jasmine_dev.thor
|
@@ -190,9 +222,9 @@ files:
|
|
190
222
|
- lib/jasmine/jsdoc-template/symbol.tmpl
|
191
223
|
- lib/jasmine/jshint/jshint.js
|
192
224
|
- lib/jasmine/jshint/run.js
|
193
|
-
- lib/jasmine/lib/jasmine-core/example/SpecRunner.html
|
194
225
|
- lib/jasmine/lib/jasmine-core/example/spec/PlayerSpec.js
|
195
226
|
- lib/jasmine/lib/jasmine-core/example/spec/SpecHelper.js
|
227
|
+
- lib/jasmine/lib/jasmine-core/example/SpecRunner.html
|
196
228
|
- lib/jasmine/lib/jasmine-core/example/src/Player.js
|
197
229
|
- lib/jasmine/lib/jasmine-core/example/src/Song.js
|
198
230
|
- lib/jasmine/lib/jasmine-core/jasmine-html.js
|
@@ -201,6 +233,10 @@ files:
|
|
201
233
|
- lib/jasmine/lib/jasmine-core/json2.js
|
202
234
|
- lib/jasmine/lib/jasmine-core/version.rb
|
203
235
|
- lib/jasmine/lib/jasmine-core.rb
|
236
|
+
- lib/jasmine/MIT.LICENSE
|
237
|
+
- lib/jasmine/Rakefile
|
238
|
+
- lib/jasmine/README.markdown
|
239
|
+
- lib/jasmine/Release.markdown
|
204
240
|
- lib/jasmine/spec/console/ConsoleReporterSpec.js
|
205
241
|
- lib/jasmine/spec/core/BaseSpec.js
|
206
242
|
- lib/jasmine/spec/core/CustomMatchersSpec.js
|
@@ -240,10 +276,12 @@ files:
|
|
240
276
|
- lib/jasmine/spec/templates/runner.html.erb
|
241
277
|
- lib/jasmine/spec/templates/script_tag.html.erb
|
242
278
|
- lib/jasmine/src/console/ConsoleReporter.js
|
279
|
+
- lib/jasmine/src/core/base.js
|
243
280
|
- lib/jasmine/src/core/Block.js
|
244
281
|
- lib/jasmine/src/core/Env.js
|
245
282
|
- lib/jasmine/src/core/JsApiReporter.js
|
246
283
|
- lib/jasmine/src/core/Matchers.js
|
284
|
+
- lib/jasmine/src/core/mock-timeout.js
|
247
285
|
- lib/jasmine/src/core/MultiReporter.js
|
248
286
|
- lib/jasmine/src/core/NestedResults.js
|
249
287
|
- lib/jasmine/src/core/PrettyPrinter.js
|
@@ -252,21 +290,19 @@ files:
|
|
252
290
|
- lib/jasmine/src/core/Runner.js
|
253
291
|
- lib/jasmine/src/core/Spec.js
|
254
292
|
- lib/jasmine/src/core/Suite.js
|
293
|
+
- lib/jasmine/src/core/util.js
|
255
294
|
- lib/jasmine/src/core/WaitsBlock.js
|
256
295
|
- lib/jasmine/src/core/WaitsForBlock.js
|
257
|
-
- lib/jasmine/src/
|
258
|
-
- lib/jasmine/src/
|
259
|
-
- lib/jasmine/src/core/util.js
|
296
|
+
- lib/jasmine/src/html/_HTMLReporter.scss
|
297
|
+
- lib/jasmine/src/html/_TrivialReporter.scss
|
260
298
|
- lib/jasmine/src/html/HtmlReporter.js
|
261
299
|
- lib/jasmine/src/html/HtmlReporterHelpers.js
|
300
|
+
- lib/jasmine/src/html/jasmine.css
|
301
|
+
- lib/jasmine/src/html/jasmine.scss
|
262
302
|
- lib/jasmine/src/html/ReporterView.js
|
263
303
|
- lib/jasmine/src/html/SpecView.js
|
264
304
|
- lib/jasmine/src/html/SuiteView.js
|
265
305
|
- lib/jasmine/src/html/TrivialReporter.js
|
266
|
-
- lib/jasmine/src/html/_HTMLReporter.scss
|
267
|
-
- lib/jasmine/src/html/_TrivialReporter.scss
|
268
|
-
- lib/jasmine/src/html/jasmine.css
|
269
|
-
- lib/jasmine/src/html/jasmine.scss
|
270
306
|
- lib/jasmine/src/templates/example_project_jasmine_tags.html.erb
|
271
307
|
- lib/jasmine/src/templates/version.js.erb
|
272
308
|
- lib/jasmine/src/templates/version.rb.erb
|
@@ -323,7 +359,6 @@ files:
|
|
323
359
|
- README.rdoc
|
324
360
|
homepage: http://github.com/jnicklas/evergreen
|
325
361
|
licenses: []
|
326
|
-
metadata: {}
|
327
362
|
post_install_message:
|
328
363
|
rdoc_options:
|
329
364
|
- --main
|
@@ -331,19 +366,22 @@ rdoc_options:
|
|
331
366
|
require_paths:
|
332
367
|
- lib
|
333
368
|
required_ruby_version: !ruby/object:Gem::Requirement
|
369
|
+
none: false
|
334
370
|
requirements:
|
335
371
|
- - ! '>='
|
336
372
|
- !ruby/object:Gem::Version
|
337
373
|
version: '0'
|
338
374
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
375
|
+
none: false
|
339
376
|
requirements:
|
340
377
|
- - ! '>='
|
341
378
|
- !ruby/object:Gem::Version
|
342
379
|
version: '0'
|
343
380
|
requirements: []
|
344
381
|
rubyforge_project: evergreen
|
345
|
-
rubygems_version:
|
382
|
+
rubygems_version: 1.8.23
|
346
383
|
signing_key:
|
347
|
-
specification_version:
|
384
|
+
specification_version: 3
|
348
385
|
summary: Run Jasmine JavaScript unit tests, integrate them into Ruby applications.
|
349
386
|
test_files: []
|
387
|
+
has_rdoc:
|
checksums.yaml
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
---
|
2
|
-
!binary "U0hBMQ==":
|
3
|
-
metadata.gz: !binary |-
|
4
|
-
YzIxZWE5Njc1ZmZkMzI2OTVmN2MwMmY5MDEwMGQ3OTQ5NDVhNzFjOA==
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
ZWQwY2RjNmI3MjAxYzMwODVhZTMxNDZjYjczNDk2ZDc0NWQ5OTY0OQ==
|
7
|
-
!binary "U0hBNTEy":
|
8
|
-
metadata.gz: !binary |-
|
9
|
-
ZmNjNGQ2OWU0NjdjNGFjYjVkMTlhMDkzMzkyNjdjNGU1OTQ2NDJlN2Q5NTdh
|
10
|
-
NWU2N2Q2NzQwZTFiYjI3MmViZGE0MDhhNmU2MjRkODdmY2U1MTk4MDVhNzE4
|
11
|
-
YTZjNjgwMjk2MmU5YjM4ZTg3MWI3ZjUxZjAzZGE0MjZkYTk4ZGI=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
ZDI0OWYzYzA0MGI1YzNmNGJiYTA5ODIzMmFmNDI3NzI5MjQ3MmRiM2MxMDc1
|
14
|
-
OThhOWE0YWI0MGEwM2FmZDNhYzFlMWY5OWI1OTE3NmY1ODQyZWI0MzdiNDdi
|
15
|
-
YzRhYjVkNTE2NjBlZWQ2ZTYzZjI2OGIyMjhlNTU0NDg4MjhkNDA=
|