konacha 1.5.1 → 2.0.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. data/History.md +7 -0
  2. data/README.md +71 -57
  3. data/app/assets/javascripts/konacha/iframe.js +40 -0
  4. data/app/assets/javascripts/konacha/parent.js +14 -0
  5. data/app/assets/javascripts/konacha/runner.js +45 -0
  6. data/app/assets/stylesheets/konacha.css +75 -0
  7. data/app/controllers/konacha/specs_controller.rb +6 -1
  8. data/app/models/konacha/spec.rb +1 -1
  9. data/app/views/konacha/specs/iframe.html.erb +18 -0
  10. data/app/views/konacha/specs/parent.html.erb +16 -0
  11. data/config/routes.rb +4 -2
  12. data/images/frame-select.png +0 -0
  13. data/konacha.gemspec +1 -1
  14. data/lib/konacha/engine.rb +1 -0
  15. data/lib/konacha/runner.rb +22 -57
  16. data/spec/controllers/specs_controller_spec.rb +4 -4
  17. data/spec/dummy/config/application.rb +1 -0
  18. data/spec/dummy/spec/isolated/errors/failing_iframe_spec.js.coffee +1 -0
  19. data/spec/dummy/spec/javascripts/{test_element_spec.js.coffee → body_spec.js.coffee} +4 -7
  20. data/spec/dummy/spec/javascripts/isolation/a_spec.js +6 -0
  21. data/spec/dummy/spec/javascripts/isolation/b_spec.js +6 -0
  22. data/spec/dummy/spec/javascripts/templating_spec.js +4 -4
  23. data/spec/dummy/spec/javascripts/ui_spec.js +7 -0
  24. data/spec/error_handling_spec.rb +33 -0
  25. data/spec/models/spec_spec.rb +1 -1
  26. data/spec/spec_helper.rb +5 -0
  27. data/spec/views/specs/{specs.html.erb_spec.rb → iframe.html.erb_spec.rb} +12 -8
  28. data/vendor/assets/javascripts/mocha.js +297 -114
  29. metadata +195 -180
  30. data/app/views/konacha/specs/specs.html.erb +0 -16
  31. data/lib/assets/javascripts/konacha.js +0 -20
  32. data/lib/assets/javascripts/konacha/runner.js +0 -50
  33. data/lib/assets/javascripts/konacha/server.js +0 -6
  34. data/lib/assets/stylesheets/konacha.css +0 -5
  35. data/spec/dummy/spec/javascripts/konacha_config.js +0 -2
  36. data/spec/dummy/spec/javascripts/konacha_config_spec.js +0 -9
metadata CHANGED
@@ -1,195 +1,210 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: konacha
3
- version: !ruby/object:Gem::Version
4
- hash: 1
5
- prerelease:
6
- segments:
7
- - 1
8
- - 5
9
- - 1
10
- version: 1.5.1
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.0.0.beta1
5
+ prerelease: 6
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - John Firebaugh
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2012-09-04 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2012-09-29 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: railties
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
18
+ requirements:
26
19
  - - ~>
27
- - !ruby/object:Gem::Version
28
- hash: 5
29
- segments:
30
- - 3
31
- - 1
32
- version: "3.1"
20
+ - !ruby/object:Gem::Version
21
+ version: '3.1'
33
22
  type: :runtime
34
- version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
36
- name: actionpack
37
23
  prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '3.1'
30
+ - !ruby/object:Gem::Dependency
31
+ name: actionpack
32
+ requirement: !ruby/object:Gem::Requirement
39
33
  none: false
40
- requirements:
34
+ requirements:
41
35
  - - ~>
42
- - !ruby/object:Gem::Version
43
- hash: 5
44
- segments:
45
- - 3
46
- - 1
47
- version: "3.1"
36
+ - !ruby/object:Gem::Version
37
+ version: '3.1'
48
38
  type: :runtime
49
- version_requirements: *id002
50
- - !ruby/object:Gem::Dependency
51
- name: sprockets
52
39
  prerelease: false
53
- requirement: &id003 !ruby/object:Gem::Requirement
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: '3.1'
46
+ - !ruby/object:Gem::Dependency
47
+ name: sprockets
48
+ requirement: !ruby/object:Gem::Requirement
54
49
  none: false
55
- requirements:
56
- - - ">="
57
- - !ruby/object:Gem::Version
58
- hash: 3
59
- segments:
60
- - 0
61
- version: "0"
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
62
54
  type: :runtime
63
- version_requirements: *id003
64
- - !ruby/object:Gem::Dependency
65
- name: capybara
66
55
  prerelease: false
67
- requirement: &id004 !ruby/object:Gem::Requirement
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: capybara
64
+ requirement: !ruby/object:Gem::Requirement
68
65
  none: false
69
- requirements:
70
- - - ">="
71
- - !ruby/object:Gem::Version
72
- hash: 3
73
- segments:
74
- - 0
75
- version: "0"
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
76
70
  type: :runtime
77
- version_requirements: *id004
78
- - !ruby/object:Gem::Dependency
79
- name: colorize
80
71
  prerelease: false
81
- requirement: &id005 !ruby/object:Gem::Requirement
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ - !ruby/object:Gem::Dependency
79
+ name: colorize
80
+ requirement: !ruby/object:Gem::Requirement
82
81
  none: false
83
- requirements:
84
- - - ">="
85
- - !ruby/object:Gem::Version
86
- hash: 3
87
- segments:
88
- - 0
89
- version: "0"
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
90
86
  type: :runtime
91
- version_requirements: *id005
92
- - !ruby/object:Gem::Dependency
93
- name: jquery-rails
94
87
  prerelease: false
95
- requirement: &id006 !ruby/object:Gem::Requirement
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ - !ruby/object:Gem::Dependency
95
+ name: jquery-rails
96
+ requirement: !ruby/object:Gem::Requirement
96
97
  none: false
97
- requirements:
98
- - - ">="
99
- - !ruby/object:Gem::Version
100
- hash: 3
101
- segments:
102
- - 0
103
- version: "0"
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
104
102
  type: :development
105
- version_requirements: *id006
106
- - !ruby/object:Gem::Dependency
107
- name: rspec-rails
108
103
  prerelease: false
109
- requirement: &id007 !ruby/object:Gem::Requirement
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ - !ruby/object:Gem::Dependency
111
+ name: rspec-rails
112
+ requirement: !ruby/object:Gem::Requirement
110
113
  none: false
111
- requirements:
112
- - - ">="
113
- - !ruby/object:Gem::Version
114
- hash: 3
115
- segments:
116
- - 0
117
- version: "0"
114
+ requirements:
115
+ - - ! '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
118
  type: :development
119
- version_requirements: *id007
120
- - !ruby/object:Gem::Dependency
121
- name: capybara-firebug
122
119
  prerelease: false
123
- requirement: &id008 !ruby/object:Gem::Requirement
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ - !ruby/object:Gem::Dependency
127
+ name: capybara-firebug
128
+ requirement: !ruby/object:Gem::Requirement
124
129
  none: false
125
- requirements:
130
+ requirements:
126
131
  - - ~>
127
- - !ruby/object:Gem::Version
128
- hash: 13
129
- segments:
130
- - 1
131
- - 1
132
- version: "1.1"
132
+ - !ruby/object:Gem::Version
133
+ version: '1.1'
133
134
  type: :development
134
- version_requirements: *id008
135
- - !ruby/object:Gem::Dependency
136
- name: coffee-script
137
135
  prerelease: false
138
- requirement: &id009 !ruby/object:Gem::Requirement
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ~>
140
+ - !ruby/object:Gem::Version
141
+ version: '1.1'
142
+ - !ruby/object:Gem::Dependency
143
+ name: coffee-script
144
+ requirement: !ruby/object:Gem::Requirement
139
145
  none: false
140
- requirements:
141
- - - ">="
142
- - !ruby/object:Gem::Version
143
- hash: 3
144
- segments:
145
- - 0
146
- version: "0"
146
+ requirements:
147
+ - - ! '>='
148
+ - !ruby/object:Gem::Version
149
+ version: '0'
147
150
  type: :development
148
- version_requirements: *id009
149
- - !ruby/object:Gem::Dependency
150
- name: ejs
151
151
  prerelease: false
152
- requirement: &id010 !ruby/object:Gem::Requirement
152
+ version_requirements: !ruby/object:Gem::Requirement
153
153
  none: false
154
- requirements:
155
- - - ">="
156
- - !ruby/object:Gem::Version
157
- hash: 3
158
- segments:
159
- - 0
160
- version: "0"
154
+ requirements:
155
+ - - ! '>='
156
+ - !ruby/object:Gem::Version
157
+ version: '0'
158
+ - !ruby/object:Gem::Dependency
159
+ name: ejs
160
+ requirement: !ruby/object:Gem::Requirement
161
+ none: false
162
+ requirements:
163
+ - - ! '>='
164
+ - !ruby/object:Gem::Version
165
+ version: '0'
161
166
  type: :development
162
- version_requirements: *id010
163
- - !ruby/object:Gem::Dependency
164
- name: tzinfo
165
167
  prerelease: false
166
- requirement: &id011 !ruby/object:Gem::Requirement
168
+ version_requirements: !ruby/object:Gem::Requirement
167
169
  none: false
168
- requirements:
169
- - - ">="
170
- - !ruby/object:Gem::Version
171
- hash: 3
172
- segments:
173
- - 0
174
- version: "0"
170
+ requirements:
171
+ - - ! '>='
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ - !ruby/object:Gem::Dependency
175
+ name: tzinfo
176
+ requirement: !ruby/object:Gem::Requirement
177
+ none: false
178
+ requirements:
179
+ - - ! '>='
180
+ - !ruby/object:Gem::Version
181
+ version: '0'
175
182
  type: :development
176
- version_requirements: *id011
177
- description: |-
178
- Konacha is a Rails engine that allows you to test your JavaScript with the
183
+ prerelease: false
184
+ version_requirements: !ruby/object:Gem::Requirement
185
+ none: false
186
+ requirements:
187
+ - - ! '>='
188
+ - !ruby/object:Gem::Version
189
+ version: '0'
190
+ description: ! 'Konacha is a Rails engine that allows you to test your JavaScript
191
+ with the
192
+
179
193
  mocha test framework and chai assertion library.
180
-
194
+
195
+
181
196
  It is similar to Jasmine and Evergreen, but does not attempt to be framework
182
- agnostic. By sticking with Rails, Konacha can take full advantage of features such as
183
- the asset pipeline and engines.
184
- email:
197
+
198
+ agnostic. By sticking with Rails, Konacha can take full advantage of features such
199
+ as
200
+
201
+ the asset pipeline and engines.'
202
+ email:
185
203
  - john.firebaugh@gmail.com
186
204
  executables: []
187
-
188
205
  extensions: []
189
-
190
206
  extra_rdoc_files: []
191
-
192
- files:
207
+ files:
193
208
  - .gitignore
194
209
  - .gitmodules
195
210
  - .rspec
@@ -199,16 +214,18 @@ files:
199
214
  - LICENSE
200
215
  - README.md
201
216
  - Rakefile
217
+ - app/assets/javascripts/konacha/iframe.js
218
+ - app/assets/javascripts/konacha/parent.js
219
+ - app/assets/javascripts/konacha/runner.js
220
+ - app/assets/stylesheets/konacha.css
202
221
  - app/controllers/konacha/specs_controller.rb
203
222
  - app/helpers/konacha/specs_helper.rb
204
223
  - app/models/konacha/spec.rb
205
- - app/views/konacha/specs/specs.html.erb
224
+ - app/views/konacha/specs/iframe.html.erb
225
+ - app/views/konacha/specs/parent.html.erb
206
226
  - config/routes.rb
227
+ - images/frame-select.png
207
228
  - konacha.gemspec
208
- - lib/assets/javascripts/konacha.js
209
- - lib/assets/javascripts/konacha/runner.js
210
- - lib/assets/javascripts/konacha/server.js
211
- - lib/assets/stylesheets/konacha.css
212
229
  - lib/konacha.rb
213
230
  - lib/konacha/engine.rb
214
231
  - lib/konacha/runner.rb
@@ -223,66 +240,61 @@ files:
223
240
  - spec/dummy/config/environment.rb
224
241
  - spec/dummy/config/environments/development.rb
225
242
  - spec/dummy/config/initializers/konacha.rb
243
+ - spec/dummy/spec/isolated/errors/failing_iframe_spec.js.coffee
226
244
  - spec/dummy/spec/javascripts/array_sum_cs_spec.js.coffee
227
245
  - spec/dummy/spec/javascripts/array_sum_js_spec.js
228
246
  - spec/dummy/spec/javascripts/assert_spec.js.coffee
247
+ - spec/dummy/spec/javascripts/body_spec.js.coffee
229
248
  - spec/dummy/spec/javascripts/do_not_include_spec.js.bak
230
249
  - spec/dummy/spec/javascripts/do_not_include_spec.png
231
250
  - spec/dummy/spec/javascripts/failing_spec.js
232
251
  - spec/dummy/spec/javascripts/file_ending_in_test.js
233
- - spec/dummy/spec/javascripts/konacha_config.js
234
- - spec/dummy/spec/javascripts/konacha_config_spec.js
252
+ - spec/dummy/spec/javascripts/isolation/a_spec.js
253
+ - spec/dummy/spec/javascripts/isolation/b_spec.js
235
254
  - spec/dummy/spec/javascripts/pending_spec.js
236
255
  - spec/dummy/spec/javascripts/spec_helper.js
237
256
  - spec/dummy/spec/javascripts/spec_helper_spec.js
238
257
  - spec/dummy/spec/javascripts/subdirectory/subdirectory_spec.js
239
258
  - spec/dummy/spec/javascripts/templates/hello.jst.ejs
240
259
  - spec/dummy/spec/javascripts/templating_spec.js
241
- - spec/dummy/spec/javascripts/test_element_spec.js.coffee
260
+ - spec/dummy/spec/javascripts/ui_spec.js
261
+ - spec/error_handling_spec.rb
242
262
  - spec/konacha_spec.rb
243
263
  - spec/models/spec_spec.rb
244
264
  - spec/runner_spec.rb
245
265
  - spec/server_spec.rb
246
266
  - spec/spec_helper.rb
247
- - spec/views/specs/specs.html.erb_spec.rb
267
+ - spec/views/specs/iframe.html.erb_spec.rb
248
268
  - vendor/assets/javascripts/chai.js
249
269
  - vendor/assets/javascripts/mocha.js
250
270
  - vendor/assets/stylesheets/mocha.css
251
271
  - vendor/images/konacha.jpg
252
272
  homepage: http://github.com/jfirebaugh/konacha
253
273
  licenses: []
254
-
255
274
  post_install_message:
256
275
  rdoc_options: []
257
-
258
- require_paths:
276
+ require_paths:
259
277
  - lib
260
- required_ruby_version: !ruby/object:Gem::Requirement
278
+ required_ruby_version: !ruby/object:Gem::Requirement
261
279
  none: false
262
- requirements:
263
- - - ">="
264
- - !ruby/object:Gem::Version
265
- hash: 3
266
- segments:
267
- - 0
268
- version: "0"
269
- required_rubygems_version: !ruby/object:Gem::Requirement
280
+ requirements:
281
+ - - ! '>='
282
+ - !ruby/object:Gem::Version
283
+ version: '0'
284
+ required_rubygems_version: !ruby/object:Gem::Requirement
270
285
  none: false
271
- requirements:
272
- - - ">="
273
- - !ruby/object:Gem::Version
274
- hash: 3
275
- segments:
276
- - 0
277
- version: "0"
286
+ requirements:
287
+ - - ! '>'
288
+ - !ruby/object:Gem::Version
289
+ version: 1.3.1
278
290
  requirements: []
279
-
280
291
  rubyforge_project:
281
- rubygems_version: 1.8.23
292
+ rubygems_version: 1.8.24
282
293
  signing_key:
283
294
  specification_version: 3
284
- summary: Unit-test your Rails JavaScript with the mocha test framework and chai assertion library
285
- test_files:
295
+ summary: Unit-test your Rails JavaScript with the mocha test framework and chai assertion
296
+ library
297
+ test_files:
286
298
  - spec/controllers/specs_controller_spec.rb
287
299
  - spec/dummy/app/assets/javascripts/application.js
288
300
  - spec/dummy/app/assets/javascripts/array_sum.js.coffee
@@ -292,25 +304,28 @@ test_files:
292
304
  - spec/dummy/config/environment.rb
293
305
  - spec/dummy/config/environments/development.rb
294
306
  - spec/dummy/config/initializers/konacha.rb
307
+ - spec/dummy/spec/isolated/errors/failing_iframe_spec.js.coffee
295
308
  - spec/dummy/spec/javascripts/array_sum_cs_spec.js.coffee
296
309
  - spec/dummy/spec/javascripts/array_sum_js_spec.js
297
310
  - spec/dummy/spec/javascripts/assert_spec.js.coffee
311
+ - spec/dummy/spec/javascripts/body_spec.js.coffee
298
312
  - spec/dummy/spec/javascripts/do_not_include_spec.js.bak
299
313
  - spec/dummy/spec/javascripts/do_not_include_spec.png
300
314
  - spec/dummy/spec/javascripts/failing_spec.js
301
315
  - spec/dummy/spec/javascripts/file_ending_in_test.js
302
- - spec/dummy/spec/javascripts/konacha_config.js
303
- - spec/dummy/spec/javascripts/konacha_config_spec.js
316
+ - spec/dummy/spec/javascripts/isolation/a_spec.js
317
+ - spec/dummy/spec/javascripts/isolation/b_spec.js
304
318
  - spec/dummy/spec/javascripts/pending_spec.js
305
319
  - spec/dummy/spec/javascripts/spec_helper.js
306
320
  - spec/dummy/spec/javascripts/spec_helper_spec.js
307
321
  - spec/dummy/spec/javascripts/subdirectory/subdirectory_spec.js
308
322
  - spec/dummy/spec/javascripts/templates/hello.jst.ejs
309
323
  - spec/dummy/spec/javascripts/templating_spec.js
310
- - spec/dummy/spec/javascripts/test_element_spec.js.coffee
324
+ - spec/dummy/spec/javascripts/ui_spec.js
325
+ - spec/error_handling_spec.rb
311
326
  - spec/konacha_spec.rb
312
327
  - spec/models/spec_spec.rb
313
328
  - spec/runner_spec.rb
314
329
  - spec/server_spec.rb
315
330
  - spec/spec_helper.rb
316
- - spec/views/specs/specs.html.erb_spec.rb
331
+ - spec/views/specs/iframe.html.erb_spec.rb