konacha 3.0.0 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,7 +9,8 @@ body {
9
9
  margin: 60px 50px;
10
10
  }
11
11
 
12
- #mocha ul, #mocha li {
12
+ #mocha ul,
13
+ #mocha li {
13
14
  margin: 0;
14
15
  padding: 0;
15
16
  }
@@ -18,7 +19,8 @@ body {
18
19
  list-style: none;
19
20
  }
20
21
 
21
- #mocha h1, #mocha h2 {
22
+ #mocha h1,
23
+ #mocha h2 {
22
24
  margin: 0;
23
25
  }
24
26
 
@@ -67,11 +69,11 @@ body {
67
69
  }
68
70
 
69
71
  #mocha .test.pass.medium .duration {
70
- background: #C09853;
72
+ background: #c09853;
71
73
  }
72
74
 
73
75
  #mocha .test.pass.slow .duration {
74
- background: #B94A48;
76
+ background: #b94a48;
75
77
  }
76
78
 
77
79
  #mocha .test.pass::before {
@@ -87,7 +89,7 @@ body {
87
89
  font-size: 9px;
88
90
  margin-left: 5px;
89
91
  padding: 2px 5px;
90
- color: white;
92
+ color: #fff;
91
93
  -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.2);
92
94
  -moz-box-shadow: inset 0 1px 1px rgba(0,0,0,.2);
93
95
  box-shadow: inset 0 1px 1px rgba(0,0,0,.2);
@@ -134,6 +136,11 @@ body {
134
136
  overflow: auto;
135
137
  }
136
138
 
139
+ /**
140
+ * (1): approximate for browsers not supporting calc
141
+ * (2): 42 = 2*15 + 2*10 + 2*1 (padding + margin + border)
142
+ * ^^ seriously
143
+ */
137
144
  #mocha .test pre {
138
145
  display: block;
139
146
  float: left;
@@ -142,11 +149,15 @@ body {
142
149
  margin: 5px;
143
150
  padding: 15px;
144
151
  border: 1px solid #eee;
152
+ max-width: 85%; /*(1)*/
153
+ max-width: calc(100% - 42px); /*(2)*/
154
+ word-wrap: break-word;
145
155
  border-bottom-color: #ddd;
146
156
  -webkit-border-radius: 3px;
147
157
  -webkit-box-shadow: 0 1px 3px #eee;
148
158
  -moz-border-radius: 3px;
149
159
  -moz-box-shadow: 0 1px 3px #eee;
160
+ border-radius: 3px;
150
161
  }
151
162
 
152
163
  #mocha .test h2 {
@@ -187,6 +198,14 @@ body {
187
198
  display: none;
188
199
  }
189
200
 
201
+ #mocha-report.pending .test.pass,
202
+ #mocha-report.pending .test.fail {
203
+ display: none;
204
+ }
205
+ #mocha-report.pending .test.pass.pending {
206
+ display: block;
207
+ }
208
+
190
209
  #mocha-error {
191
210
  color: #c00;
192
211
  font-size: 1.5em;
@@ -201,6 +220,7 @@ body {
201
220
  font-size: 12px;
202
221
  margin: 0;
203
222
  color: #888;
223
+ z-index: 1;
204
224
  }
205
225
 
206
226
  #mocha-stats .progress {
@@ -233,14 +253,14 @@ body {
233
253
  height: 40px;
234
254
  }
235
255
 
236
- #mocha code .comment { color: #ddd }
237
- #mocha code .init { color: #2F6FAD }
238
- #mocha code .string { color: #5890AD }
239
- #mocha code .keyword { color: #8A6343 }
240
- #mocha code .number { color: #2F6FAD }
256
+ #mocha code .comment { color: #ddd; }
257
+ #mocha code .init { color: #2f6fad; }
258
+ #mocha code .string { color: #5890ad; }
259
+ #mocha code .keyword { color: #8a6343; }
260
+ #mocha code .number { color: #2f6fad; }
241
261
 
242
262
  @media screen and (max-device-width: 480px) {
243
- #mocha {
263
+ #mocha {
244
264
  margin: 60px 0px;
245
265
  }
246
266
 
metadata CHANGED
@@ -1,260 +1,228 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: konacha
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
5
- prerelease:
4
+ version: 3.1.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - John Firebaugh
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-05-28 00:00:00.000000000 Z
11
+ date: 2014-02-06 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: railties
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: '3.1'
22
- - - <
20
+ - - "<"
23
21
  - !ruby/object:Gem::Version
24
22
  version: '5'
25
23
  type: :runtime
26
24
  prerelease: false
27
25
  version_requirements: !ruby/object:Gem::Requirement
28
- none: false
29
26
  requirements:
30
- - - ! '>='
27
+ - - ">="
31
28
  - !ruby/object:Gem::Version
32
29
  version: '3.1'
33
- - - <
30
+ - - "<"
34
31
  - !ruby/object:Gem::Version
35
32
  version: '5'
36
33
  - !ruby/object:Gem::Dependency
37
34
  name: actionpack
38
35
  requirement: !ruby/object:Gem::Requirement
39
- none: false
40
36
  requirements:
41
- - - ! '>='
37
+ - - ">="
42
38
  - !ruby/object:Gem::Version
43
39
  version: '3.1'
44
- - - <
40
+ - - "<"
45
41
  - !ruby/object:Gem::Version
46
42
  version: '5'
47
43
  type: :runtime
48
44
  prerelease: false
49
45
  version_requirements: !ruby/object:Gem::Requirement
50
- none: false
51
46
  requirements:
52
- - - ! '>='
47
+ - - ">="
53
48
  - !ruby/object:Gem::Version
54
49
  version: '3.1'
55
- - - <
50
+ - - "<"
56
51
  - !ruby/object:Gem::Version
57
52
  version: '5'
58
53
  - !ruby/object:Gem::Dependency
59
54
  name: sprockets
60
55
  requirement: !ruby/object:Gem::Requirement
61
- none: false
62
56
  requirements:
63
- - - ! '>='
57
+ - - ">="
64
58
  - !ruby/object:Gem::Version
65
59
  version: '0'
66
60
  type: :runtime
67
61
  prerelease: false
68
62
  version_requirements: !ruby/object:Gem::Requirement
69
- none: false
70
63
  requirements:
71
- - - ! '>='
64
+ - - ">="
72
65
  - !ruby/object:Gem::Version
73
66
  version: '0'
74
67
  - !ruby/object:Gem::Dependency
75
68
  name: capybara
76
69
  requirement: !ruby/object:Gem::Requirement
77
- none: false
78
70
  requirements:
79
- - - ! '>='
71
+ - - ">="
80
72
  - !ruby/object:Gem::Version
81
73
  version: '0'
82
74
  type: :runtime
83
75
  prerelease: false
84
76
  version_requirements: !ruby/object:Gem::Requirement
85
- none: false
86
77
  requirements:
87
- - - ! '>='
78
+ - - ">="
88
79
  - !ruby/object:Gem::Version
89
80
  version: '0'
90
81
  - !ruby/object:Gem::Dependency
91
82
  name: colorize
92
83
  requirement: !ruby/object:Gem::Requirement
93
- none: false
94
84
  requirements:
95
- - - ! '>='
85
+ - - ">="
96
86
  - !ruby/object:Gem::Version
97
87
  version: '0'
98
88
  type: :runtime
99
89
  prerelease: false
100
90
  version_requirements: !ruby/object:Gem::Requirement
101
- none: false
102
91
  requirements:
103
- - - ! '>='
92
+ - - ">="
104
93
  - !ruby/object:Gem::Version
105
94
  version: '0'
106
95
  - !ruby/object:Gem::Dependency
107
96
  name: jquery-rails
108
97
  requirement: !ruby/object:Gem::Requirement
109
- none: false
110
98
  requirements:
111
- - - ! '>='
99
+ - - ">="
112
100
  - !ruby/object:Gem::Version
113
101
  version: '0'
114
102
  type: :development
115
103
  prerelease: false
116
104
  version_requirements: !ruby/object:Gem::Requirement
117
- none: false
118
105
  requirements:
119
- - - ! '>='
106
+ - - ">="
120
107
  - !ruby/object:Gem::Version
121
108
  version: '0'
122
109
  - !ruby/object:Gem::Dependency
123
110
  name: rspec-rails
124
111
  requirement: !ruby/object:Gem::Requirement
125
- none: false
126
112
  requirements:
127
- - - ~>
113
+ - - "~>"
128
114
  - !ruby/object:Gem::Version
129
- version: '2.12'
115
+ version: '2.14'
130
116
  type: :development
131
117
  prerelease: false
132
118
  version_requirements: !ruby/object:Gem::Requirement
133
- none: false
134
119
  requirements:
135
- - - ~>
120
+ - - "~>"
136
121
  - !ruby/object:Gem::Version
137
- version: '2.12'
122
+ version: '2.14'
138
123
  - !ruby/object:Gem::Dependency
139
124
  name: capybara-firebug
140
125
  requirement: !ruby/object:Gem::Requirement
141
- none: false
142
126
  requirements:
143
- - - ~>
127
+ - - "~>"
144
128
  - !ruby/object:Gem::Version
145
129
  version: '1.1'
146
130
  type: :development
147
131
  prerelease: false
148
132
  version_requirements: !ruby/object:Gem::Requirement
149
- none: false
150
133
  requirements:
151
- - - ~>
134
+ - - "~>"
152
135
  - !ruby/object:Gem::Version
153
136
  version: '1.1'
154
137
  - !ruby/object:Gem::Dependency
155
138
  name: coffee-script
156
139
  requirement: !ruby/object:Gem::Requirement
157
- none: false
158
140
  requirements:
159
- - - ! '>='
141
+ - - ">="
160
142
  - !ruby/object:Gem::Version
161
143
  version: '0'
162
144
  type: :development
163
145
  prerelease: false
164
146
  version_requirements: !ruby/object:Gem::Requirement
165
- none: false
166
147
  requirements:
167
- - - ! '>='
148
+ - - ">="
168
149
  - !ruby/object:Gem::Version
169
150
  version: '0'
170
151
  - !ruby/object:Gem::Dependency
171
152
  name: ejs
172
153
  requirement: !ruby/object:Gem::Requirement
173
- none: false
174
154
  requirements:
175
- - - ! '>='
155
+ - - ">="
176
156
  - !ruby/object:Gem::Version
177
157
  version: '0'
178
158
  type: :development
179
159
  prerelease: false
180
160
  version_requirements: !ruby/object:Gem::Requirement
181
- none: false
182
161
  requirements:
183
- - - ! '>='
162
+ - - ">="
184
163
  - !ruby/object:Gem::Version
185
164
  version: '0'
186
165
  - !ruby/object:Gem::Dependency
187
166
  name: tzinfo
188
167
  requirement: !ruby/object:Gem::Requirement
189
- none: false
190
168
  requirements:
191
- - - ! '>='
169
+ - - ">="
192
170
  - !ruby/object:Gem::Version
193
171
  version: '0'
194
172
  type: :development
195
173
  prerelease: false
196
174
  version_requirements: !ruby/object:Gem::Requirement
197
- none: false
198
175
  requirements:
199
- - - ! '>='
176
+ - - ">="
200
177
  - !ruby/object:Gem::Version
201
178
  version: '0'
202
179
  - !ruby/object:Gem::Dependency
203
180
  name: selenium-webdriver
204
181
  requirement: !ruby/object:Gem::Requirement
205
- none: false
206
182
  requirements:
207
- - - ! '>='
183
+ - - ">="
208
184
  - !ruby/object:Gem::Version
209
185
  version: '0'
210
186
  type: :development
211
187
  prerelease: false
212
188
  version_requirements: !ruby/object:Gem::Requirement
213
- none: false
214
189
  requirements:
215
- - - ! '>='
190
+ - - ">="
216
191
  - !ruby/object:Gem::Version
217
192
  version: '0'
218
193
  - !ruby/object:Gem::Dependency
219
194
  name: poltergeist
220
195
  requirement: !ruby/object:Gem::Requirement
221
- none: false
222
196
  requirements:
223
- - - ~>
197
+ - - "~>"
224
198
  - !ruby/object:Gem::Version
225
199
  version: 1.3.0
226
200
  type: :development
227
201
  prerelease: false
228
202
  version_requirements: !ruby/object:Gem::Requirement
229
- none: false
230
203
  requirements:
231
- - - ~>
204
+ - - "~>"
232
205
  - !ruby/object:Gem::Version
233
206
  version: 1.3.0
234
- description: ! 'Konacha is a Rails engine that allows you to test your JavaScript
235
- with the
236
-
207
+ description: |-
208
+ Konacha is a Rails engine that allows you to test your JavaScript with the
237
209
  mocha test framework and chai assertion library.
238
210
 
239
-
240
211
  It is similar to Jasmine and Evergreen, but does not attempt to be framework
241
-
242
- agnostic. By sticking with Rails, Konacha can take full advantage of features such
243
- as
244
-
245
- the asset pipeline and engines.'
212
+ agnostic. By sticking with Rails, Konacha can take full advantage of features such as
213
+ the asset pipeline and engines.
246
214
  email:
247
215
  - john.firebaugh@gmail.com
248
216
  executables: []
249
217
  extensions: []
250
218
  extra_rdoc_files: []
251
219
  files:
252
- - .gitignore
253
- - .gitmodules
254
- - .rspec
255
- - .travis.yml
220
+ - ".gitignore"
221
+ - ".gitmodules"
222
+ - ".rspec"
223
+ - ".travis.yml"
256
224
  - Gemfile
257
- - Gemfile-rails4
225
+ - Gemfile-rails3
258
226
  - History.md
259
227
  - LICENSE
260
228
  - README.md
@@ -333,27 +301,26 @@ files:
333
301
  homepage: http://github.com/jfirebaugh/konacha
334
302
  licenses:
335
303
  - MIT
304
+ metadata: {}
336
305
  post_install_message:
337
306
  rdoc_options: []
338
307
  require_paths:
339
308
  - lib
340
309
  required_ruby_version: !ruby/object:Gem::Requirement
341
- none: false
342
310
  requirements:
343
- - - ! '>='
311
+ - - ">="
344
312
  - !ruby/object:Gem::Version
345
313
  version: '0'
346
314
  required_rubygems_version: !ruby/object:Gem::Requirement
347
- none: false
348
315
  requirements:
349
- - - ! '>='
316
+ - - ">="
350
317
  - !ruby/object:Gem::Version
351
318
  version: '0'
352
319
  requirements: []
353
320
  rubyforge_project:
354
- rubygems_version: 1.8.23
321
+ rubygems_version: 2.2.0
355
322
  signing_key:
356
- specification_version: 3
323
+ specification_version: 4
357
324
  summary: Unit-test your Rails JavaScript with the mocha test framework and chai assertion
358
325
  library
359
326
  test_files:
data/Gemfile-rails4 DELETED
@@ -1,7 +0,0 @@
1
- source 'https://rubygems.org'
2
- gemspec
3
-
4
- gem "railties", github: "rails/rails"
5
- gem "activemodel", github: "rails/rails"
6
- gem "journey", github: "rails/journey"
7
- gem "sprockets-rails", github: "rails/sprockets-rails"