evergreen 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. data/README.rdoc +30 -4
  2. data/config/routes.rb +1 -1
  3. data/lib/evergreen.rb +14 -50
  4. data/lib/evergreen/application.rb +46 -0
  5. data/lib/evergreen/cli.rb +2 -2
  6. data/lib/evergreen/rails.rb +4 -0
  7. data/lib/evergreen/resources/evergreen.css +3 -1
  8. data/lib/evergreen/resources/evergreen.js +3 -0
  9. data/lib/evergreen/runner.rb +124 -36
  10. data/lib/evergreen/server.rb +9 -18
  11. data/lib/evergreen/spec.rb +26 -14
  12. data/lib/evergreen/suite.rb +44 -0
  13. data/lib/evergreen/tasks.rb +6 -0
  14. data/lib/evergreen/template.rb +7 -10
  15. data/lib/evergreen/version.rb +1 -1
  16. data/lib/evergreen/views/layout.erb +1 -0
  17. data/lib/evergreen/views/list.erb +2 -2
  18. data/lib/evergreen/views/spec.erb +18 -10
  19. data/lib/jasmine/Gemfile +6 -0
  20. data/lib/jasmine/MIT.LICENSE +2 -2
  21. data/lib/jasmine/README.markdown +5 -459
  22. data/lib/jasmine/Rakefile +22 -16
  23. data/lib/jasmine/example/SpecRunner.html +1 -1
  24. data/lib/jasmine/jsdoc-template/allclasses.tmpl +17 -0
  25. data/lib/jasmine/jsdoc-template/allfiles.tmpl +56 -0
  26. data/lib/jasmine/jsdoc-template/class.tmpl +646 -0
  27. data/lib/jasmine/jsdoc-template/index.tmpl +39 -0
  28. data/lib/jasmine/jsdoc-template/publish.js +184 -0
  29. data/lib/jasmine/jsdoc-template/static/default.css +162 -0
  30. data/lib/jasmine/jsdoc-template/static/header.html +2 -0
  31. data/lib/jasmine/jsdoc-template/static/index.html +19 -0
  32. data/lib/jasmine/jsdoc-template/symbol.tmpl +35 -0
  33. data/lib/jasmine/lib/jasmine-html.js +12 -6
  34. data/lib/jasmine/lib/jasmine.js +122 -44
  35. data/lib/jasmine/spec/runner.html +0 -1
  36. data/lib/jasmine/spec/suites/CustomMatchersSpec.js +18 -9
  37. data/lib/jasmine/spec/suites/MatchersSpec.js +241 -162
  38. data/lib/jasmine/spec/suites/SpecRunningSpec.js +120 -62
  39. data/lib/jasmine/spec/suites/TrivialReporterSpec.js +3 -0
  40. data/lib/jasmine/spec/suites/WaitsForBlockSpec.js +9 -9
  41. data/lib/jasmine/src/Env.js +1 -0
  42. data/lib/jasmine/src/Matchers.js +35 -17
  43. data/lib/jasmine/src/Queue.js +6 -1
  44. data/lib/jasmine/src/Spec.js +34 -2
  45. data/lib/jasmine/src/WaitsForBlock.js +28 -13
  46. data/lib/jasmine/src/base.js +15 -8
  47. data/lib/jasmine/src/html/TrivialReporter.js +12 -6
  48. data/lib/jasmine/src/version.json +2 -2
  49. data/lib/tasks/evergreen.rake +1 -1
  50. data/spec/meta_spec.rb +21 -2
  51. data/spec/runner_spec.rb +16 -18
  52. data/spec/spec_helper.rb +12 -4
  53. data/spec/spec_spec.rb +4 -11
  54. data/spec/suite1/spec/javascripts/invalid_coffee_spec.coffee +1 -0
  55. data/spec/suite1/spec/javascripts/spec_helper.coffee +1 -1
  56. data/spec/suite2/config/evergreen.rb +5 -0
  57. data/spec/suite2/public_html/foo.js +1 -0
  58. data/spec/suite2/spec/awesome_spec.js +12 -0
  59. data/spec/suite2/spec/failing_spec.js +5 -0
  60. data/spec/suite2/templates/foo.html +1 -0
  61. data/spec/suite_spec.rb +26 -0
  62. data/spec/template_spec.rb +3 -9
  63. metadata +52 -20
  64. data/lib/jasmine/lib/consolex.js +0 -28
@@ -2,26 +2,20 @@ require 'spec_helper'
2
2
 
3
3
  describe Evergreen::Template do
4
4
  let(:root) { File.expand_path('suite1', File.dirname(__FILE__)) }
5
- subject { Evergreen::Template.new(root, 'one_template.html') }
5
+ let(:suite) { Evergreen::Suite.new(root) }
6
+ subject { Evergreen::Template.new(suite, 'one_template.html') }
6
7
 
7
8
  its(:name) { should == 'one_template.html' }
8
9
  its(:root) { should == root }
9
10
  its(:full_path) { should == "#{root}/spec/javascripts/templates/one_template.html" }
10
11
  its(:contents) { should =~ %r(<h1 id="from\-template">This is from the template</h1>) }
11
- describe '.all' do
12
- subject { Evergreen::Template.all(root) }
13
-
14
- it "should find all specs in the given root directory" do
15
- subject.map(&:name).should include('one_template.html', 'another_template.html')
16
- end
17
- end
18
12
 
19
13
  context "with existing spec file" do
20
14
  it { should exist }
21
15
  end
22
16
 
23
17
  context "with missing spec file" do
24
- subject { Evergreen::Template.new(root, 'does_not_exist.html') }
18
+ subject { Evergreen::Template.new(suite, 'does_not_exist.html') }
25
19
  it { should_not exist }
26
20
  end
27
21
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evergreen
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 15
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 3
8
+ - 4
9
9
  - 0
10
- version: 0.3.0
10
+ version: 0.4.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jonas Nicklas
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-16 00:00:00 +02:00
18
+ date: 2010-11-05 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -24,14 +24,14 @@ dependencies:
24
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
25
  none: false
26
26
  requirements:
27
- - - ">="
27
+ - - ~>
28
28
  - !ruby/object:Gem::Version
29
- hash: 1
29
+ hash: 15
30
30
  segments:
31
31
  - 0
32
- - 3
33
- - 9
34
- version: 0.3.9
32
+ - 4
33
+ - 0
34
+ version: 0.4.0
35
35
  type: :runtime
36
36
  version_requirements: *id001
37
37
  - !ruby/object:Gem::Dependency
@@ -58,11 +58,11 @@ dependencies:
58
58
  requirements:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
- hash: 15
61
+ hash: 13
62
62
  segments:
63
63
  - 1
64
- - 0
65
- version: "1.0"
64
+ - 1
65
+ version: "1.1"
66
66
  type: :runtime
67
67
  version_requirements: *id003
68
68
  - !ruby/object:Gem::Dependency
@@ -87,18 +87,31 @@ dependencies:
87
87
  requirement: &id005 !ruby/object:Gem::Requirement
88
88
  none: false
89
89
  requirements:
90
- - - ">="
90
+ - - ~>
91
91
  - !ruby/object:Gem::Version
92
- hash: 62196477
92
+ hash: 3
93
93
  segments:
94
94
  - 2
95
95
  - 0
96
- - 0
97
- - beta
98
- - 15
99
- version: 2.0.0.beta.15
96
+ version: "2.0"
100
97
  type: :development
101
98
  version_requirements: *id005
99
+ - !ruby/object:Gem::Dependency
100
+ name: capybara-envjs
101
+ prerelease: false
102
+ requirement: &id006 !ruby/object:Gem::Requirement
103
+ none: false
104
+ requirements:
105
+ - - ~>
106
+ - !ruby/object:Gem::Version
107
+ hash: 15
108
+ segments:
109
+ - 0
110
+ - 4
111
+ - 0
112
+ version: 0.4.0
113
+ type: :development
114
+ version_requirements: *id006
102
115
  description: Run Jasmine JavaScript unit tests, integrate them into Ruby applications.
103
116
  email:
104
117
  - jonas.nicklas@gmail.com
@@ -109,6 +122,8 @@ extensions: []
109
122
  extra_rdoc_files:
110
123
  - README.rdoc
111
124
  files:
125
+ - bin/evergreen
126
+ - lib/evergreen/application.rb
112
127
  - lib/evergreen/cli.rb
113
128
  - lib/evergreen/rails.rb
114
129
  - lib/evergreen/resources/evergreen.css
@@ -116,6 +131,8 @@ files:
116
131
  - lib/evergreen/runner.rb
117
132
  - lib/evergreen/server.rb
118
133
  - lib/evergreen/spec.rb
134
+ - lib/evergreen/suite.rb
135
+ - lib/evergreen/tasks.rb
119
136
  - lib/evergreen/template.rb
120
137
  - lib/evergreen/version.rb
121
138
  - lib/evergreen/views/layout.erb
@@ -128,6 +145,7 @@ files:
128
145
  - lib/jasmine/example/SpecRunner.html
129
146
  - lib/jasmine/example/src/Player.js
130
147
  - lib/jasmine/example/src/Song.js
148
+ - lib/jasmine/Gemfile
131
149
  - lib/jasmine/images/fail-16.png
132
150
  - lib/jasmine/images/fail.png
133
151
  - lib/jasmine/images/go-16.png
@@ -137,7 +155,15 @@ files:
137
155
  - lib/jasmine/images/question-bk.png
138
156
  - lib/jasmine/images/questionbk-16.png
139
157
  - lib/jasmine/images/spinner.gif
140
- - lib/jasmine/lib/consolex.js
158
+ - lib/jasmine/jsdoc-template/allclasses.tmpl
159
+ - lib/jasmine/jsdoc-template/allfiles.tmpl
160
+ - lib/jasmine/jsdoc-template/class.tmpl
161
+ - lib/jasmine/jsdoc-template/index.tmpl
162
+ - lib/jasmine/jsdoc-template/publish.js
163
+ - lib/jasmine/jsdoc-template/static/default.css
164
+ - lib/jasmine/jsdoc-template/static/header.html
165
+ - lib/jasmine/jsdoc-template/static/index.html
166
+ - lib/jasmine/jsdoc-template/symbol.tmpl
141
167
  - lib/jasmine/lib/jasmine-html.js
142
168
  - lib/jasmine/lib/jasmine.css
143
169
  - lib/jasmine/lib/jasmine.js
@@ -198,6 +224,7 @@ files:
198
224
  - spec/suite1/spec/javascripts/coffeescript_spec.coffee
199
225
  - spec/suite1/spec/javascripts/failing_spec.js
200
226
  - spec/suite1/spec/javascripts/foo_spec.js
227
+ - spec/suite1/spec/javascripts/invalid_coffee_spec.coffee
201
228
  - spec/suite1/spec/javascripts/slow_spec.coffee
202
229
  - spec/suite1/spec/javascripts/spec_helper.coffee
203
230
  - spec/suite1/spec/javascripts/spec_helper.js
@@ -207,10 +234,15 @@ files:
207
234
  - spec/suite1/spec/javascripts/testing_spec.js
208
235
  - spec/suite1/spec/javascripts/transactions_spec.js
209
236
  - spec/suite1/spec/javascripts/with_helper_spec.js
237
+ - spec/suite2/config/evergreen.rb
238
+ - spec/suite2/public_html/foo.js
239
+ - spec/suite2/spec/awesome_spec.js
240
+ - spec/suite2/spec/failing_spec.js
241
+ - spec/suite2/templates/foo.html
242
+ - spec/suite_spec.rb
210
243
  - spec/template_spec.rb
211
244
  - config/routes.rb
212
245
  - README.rdoc
213
- - bin/evergreen
214
246
  has_rdoc: true
215
247
  homepage: http://github.com/jnicklas/evergreen
216
248
  licenses: []
@@ -1,28 +0,0 @@
1
- /** Console X
2
- * http://github.com/deadlyicon/consolex.js
3
- *
4
- * By Jared Grippe <jared@jaredgrippe.com>
5
- *
6
- * Copyright (c) 2009 Jared Grippe
7
- * Licensed under the MIT license.
8
- *
9
- * consolex avoids ever having to see javascript bugs in browsers that do not implement the entire
10
- * firebug console suit
11
- *
12
- */
13
- (function(window) {
14
- window.console || (window.console = {});
15
-
16
- var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml",
17
- "group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];
18
-
19
- function emptyFunction(){}
20
-
21
- for (var i = 0; i < names.length; ++i){
22
- window.console[names[i]] || (window.console[names[i]] = emptyFunction);
23
- if (typeof window.console[names[i]] !== 'function')
24
- window.console[names[i]] = (function(method) {
25
- return function(){ return Function.prototype.apply.apply(method, [console,arguments]); };
26
- })(window.console[names[i]]);
27
- }
28
- })(this);