loris 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/jasmine-node/specs.js +17 -11
- data/loris.gemspec +2 -2
- data/loris.tmproj +66 -38
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.1
|
data/lib/jasmine-node/specs.js
CHANGED
@@ -19,15 +19,15 @@ process.argv.forEach(function(arg){
|
|
19
19
|
case '--color': showColors = true; break;
|
20
20
|
case '--noColor': showColors = false; break;
|
21
21
|
case '--verbose': isVerbose = true; break;
|
22
|
-
default:
|
22
|
+
default:
|
23
23
|
if (prev === '--source-directory') {
|
24
24
|
sourceDirectory = arg;
|
25
25
|
} else {
|
26
|
-
config_path = arg;
|
26
|
+
config_path = arg;
|
27
27
|
}
|
28
28
|
break;
|
29
29
|
}
|
30
|
-
prev = arg;
|
30
|
+
prev = arg;
|
31
31
|
});
|
32
32
|
|
33
33
|
var dir = config_path.substring(0, config_path.lastIndexOf('/'));
|
@@ -44,18 +44,24 @@ require.paths.unshift(sourceDirectory || config.sourceDirectory);
|
|
44
44
|
|
45
45
|
// require all the requires files
|
46
46
|
for (var i = 0, len = config.requires.length; i < len; ++i){
|
47
|
-
require(config.requires[i]);
|
47
|
+
var exported = require(config.requires[i]);
|
48
|
+
|
49
|
+
for (var key in exported) {
|
50
|
+
var value = exported[key];
|
51
|
+
eval(key + ' = value');
|
52
|
+
}
|
53
|
+
|
48
54
|
}
|
49
55
|
|
50
56
|
|
51
57
|
jasmine.executeSpecsInFolder.call(this, config.specDirectory || dir + '/spec', function(runner, log) {
|
52
|
-
|
58
|
+
|
53
59
|
if (typeof _$jscoverage === 'object') {
|
54
60
|
reportCoverage(_$jscoverage);
|
55
61
|
}
|
56
|
-
|
57
|
-
|
58
|
-
|
62
|
+
|
63
|
+
// Cannot call process.exit, standard out and standard error do not get flushed
|
64
|
+
// process.exit(runner.results().failedCount);
|
59
65
|
}, isVerbose, showColors);
|
60
66
|
|
61
67
|
function reportCoverage(cov) {
|
@@ -105,11 +111,11 @@ function reportCoverage(cov) {
|
|
105
111
|
*/
|
106
112
|
|
107
113
|
function populateCoverage(cov) {
|
108
|
-
cov.LOC =
|
114
|
+
cov.LOC =
|
109
115
|
cov.SLOC =
|
110
116
|
cov.totalFiles =
|
111
117
|
cov.totalHits =
|
112
|
-
cov.totalMisses =
|
118
|
+
cov.totalMisses =
|
113
119
|
cov.coverage = 0;
|
114
120
|
for (var name in cov) {
|
115
121
|
var file = cov[name];
|
@@ -147,7 +153,7 @@ function coverage(data, val) {
|
|
147
153
|
for (var i = 0, len = data.length; i < len; ++i) {
|
148
154
|
if (data[i] !== undefined && data[i] == val) ++n;
|
149
155
|
}
|
150
|
-
return n;
|
156
|
+
return n;
|
151
157
|
}
|
152
158
|
|
153
159
|
/**
|
data/loris.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{loris}
|
8
|
-
s.version = "0.4.
|
8
|
+
s.version = "0.4.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Karl O'Keeffe"]
|
12
|
-
s.date = %q{
|
12
|
+
s.date = %q{2011-01-21}
|
13
13
|
s.default_executable = %q{loris}
|
14
14
|
s.description = %q{Automatically run javascript unit tests}
|
15
15
|
s.email = %q{loris@monket.net}
|
data/loris.tmproj
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
<plist version="1.0">
|
4
4
|
<dict>
|
5
5
|
<key>currentDocument</key>
|
6
|
-
<string>lib/
|
6
|
+
<string>lib/tasks/google_lint/google_lint_runner.rb</string>
|
7
7
|
<key>documents</key>
|
8
8
|
<array>
|
9
9
|
<dict>
|
@@ -35,35 +35,33 @@
|
|
35
35
|
<key>firstVisibleLine</key>
|
36
36
|
<integer>0</integer>
|
37
37
|
</dict>
|
38
|
-
<key>lib/
|
38
|
+
<key>lib/jasmine-node/specs.js</key>
|
39
39
|
<dict>
|
40
40
|
<key>caret</key>
|
41
41
|
<dict>
|
42
42
|
<key>column</key>
|
43
|
-
<integer>
|
43
|
+
<integer>29</integer>
|
44
44
|
<key>line</key>
|
45
|
-
<integer>
|
45
|
+
<integer>36</integer>
|
46
46
|
</dict>
|
47
|
-
<key>columnSelection</key>
|
48
|
-
<false/>
|
49
47
|
<key>firstVisibleColumn</key>
|
50
48
|
<integer>0</integer>
|
51
49
|
<key>firstVisibleLine</key>
|
52
|
-
<integer>
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
<key>line</key>
|
58
|
-
<integer>213</integer>
|
59
|
-
</dict>
|
60
|
-
<key>selectTo</key>
|
50
|
+
<integer>5</integer>
|
51
|
+
</dict>
|
52
|
+
<key>lib/loris.rb</key>
|
53
|
+
<dict>
|
54
|
+
<key>caret</key>
|
61
55
|
<dict>
|
62
56
|
<key>column</key>
|
63
|
-
<integer>
|
57
|
+
<integer>0</integer>
|
64
58
|
<key>line</key>
|
65
|
-
<integer>
|
59
|
+
<integer>121</integer>
|
66
60
|
</dict>
|
61
|
+
<key>firstVisibleColumn</key>
|
62
|
+
<integer>0</integer>
|
63
|
+
<key>firstVisibleLine</key>
|
64
|
+
<integer>89</integer>
|
67
65
|
</dict>
|
68
66
|
<key>lib/outputs/growl_output.rb</key>
|
69
67
|
<dict>
|
@@ -158,30 +156,14 @@
|
|
158
156
|
<key>caret</key>
|
159
157
|
<dict>
|
160
158
|
<key>column</key>
|
161
|
-
<integer>
|
159
|
+
<integer>35</integer>
|
162
160
|
<key>line</key>
|
163
|
-
<integer>
|
161
|
+
<integer>26</integer>
|
164
162
|
</dict>
|
165
|
-
<key>columnSelection</key>
|
166
|
-
<false/>
|
167
163
|
<key>firstVisibleColumn</key>
|
168
164
|
<integer>0</integer>
|
169
165
|
<key>firstVisibleLine</key>
|
170
166
|
<integer>0</integer>
|
171
|
-
<key>selectFrom</key>
|
172
|
-
<dict>
|
173
|
-
<key>column</key>
|
174
|
-
<integer>0</integer>
|
175
|
-
<key>line</key>
|
176
|
-
<integer>18</integer>
|
177
|
-
</dict>
|
178
|
-
<key>selectTo</key>
|
179
|
-
<dict>
|
180
|
-
<key>column</key>
|
181
|
-
<integer>0</integer>
|
182
|
-
<key>line</key>
|
183
|
-
<integer>22</integer>
|
184
|
-
</dict>
|
185
167
|
</dict>
|
186
168
|
<key>lib/tasks/google_lint/google_lint_config.rb</key>
|
187
169
|
<dict>
|
@@ -225,12 +207,54 @@
|
|
225
207
|
<key>firstVisibleLine</key>
|
226
208
|
<integer>0</integer>
|
227
209
|
</dict>
|
210
|
+
<key>lib/tasks/jasmine_node/jasmine_node_config.rb</key>
|
211
|
+
<dict>
|
212
|
+
<key>caret</key>
|
213
|
+
<dict>
|
214
|
+
<key>column</key>
|
215
|
+
<integer>0</integer>
|
216
|
+
<key>line</key>
|
217
|
+
<integer>0</integer>
|
218
|
+
</dict>
|
219
|
+
<key>firstVisibleColumn</key>
|
220
|
+
<integer>0</integer>
|
221
|
+
<key>firstVisibleLine</key>
|
222
|
+
<integer>0</integer>
|
223
|
+
</dict>
|
224
|
+
<key>lib/tasks/jasmine_node/jasmine_node_parser.rb</key>
|
225
|
+
<dict>
|
226
|
+
<key>caret</key>
|
227
|
+
<dict>
|
228
|
+
<key>column</key>
|
229
|
+
<integer>0</integer>
|
230
|
+
<key>line</key>
|
231
|
+
<integer>0</integer>
|
232
|
+
</dict>
|
233
|
+
<key>firstVisibleColumn</key>
|
234
|
+
<integer>0</integer>
|
235
|
+
<key>firstVisibleLine</key>
|
236
|
+
<integer>0</integer>
|
237
|
+
</dict>
|
238
|
+
<key>lib/tasks/jasmine_node/jasmine_node_runner.rb</key>
|
239
|
+
<dict>
|
240
|
+
<key>caret</key>
|
241
|
+
<dict>
|
242
|
+
<key>column</key>
|
243
|
+
<integer>0</integer>
|
244
|
+
<key>line</key>
|
245
|
+
<integer>14</integer>
|
246
|
+
</dict>
|
247
|
+
<key>firstVisibleColumn</key>
|
248
|
+
<integer>0</integer>
|
249
|
+
<key>firstVisibleLine</key>
|
250
|
+
<integer>0</integer>
|
251
|
+
</dict>
|
228
252
|
<key>lib/tasks/javascript_lint/javascript_lint_runner.rb</key>
|
229
253
|
<dict>
|
230
254
|
<key>caret</key>
|
231
255
|
<dict>
|
232
256
|
<key>column</key>
|
233
|
-
<integer>
|
257
|
+
<integer>64</integer>
|
234
258
|
<key>line</key>
|
235
259
|
<integer>14</integer>
|
236
260
|
</dict>
|
@@ -243,14 +267,14 @@
|
|
243
267
|
<key>selectFrom</key>
|
244
268
|
<dict>
|
245
269
|
<key>column</key>
|
246
|
-
<integer>
|
270
|
+
<integer>23</integer>
|
247
271
|
<key>line</key>
|
248
272
|
<integer>14</integer>
|
249
273
|
</dict>
|
250
274
|
<key>selectTo</key>
|
251
275
|
<dict>
|
252
276
|
<key>column</key>
|
253
|
-
<integer>
|
277
|
+
<integer>64</integer>
|
254
278
|
<key>line</key>
|
255
279
|
<integer>14</integer>
|
256
280
|
</dict>
|
@@ -301,6 +325,10 @@
|
|
301
325
|
<key>openDocuments</key>
|
302
326
|
<array>
|
303
327
|
<string>lib/loris.rb</string>
|
328
|
+
<string>lib/tasks/jasmine_node/jasmine_node_config.rb</string>
|
329
|
+
<string>lib/jasmine-node/specs.js</string>
|
330
|
+
<string>lib/tasks/jasmine_node/jasmine_node_parser.rb</string>
|
331
|
+
<string>lib/tasks/jasmine_node/jasmine_node_runner.rb</string>
|
304
332
|
<string>loris.gemspec</string>
|
305
333
|
<string>lib/tasks/google_lint/google_lint_runner.rb</string>
|
306
334
|
<string>Rakefile</string>
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: loris
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 13
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
9
|
+
- 1
|
10
|
+
version: 0.4.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Karl O'Keeffe
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2011-01-21 00:00:00 +00:00
|
19
19
|
default_executable: loris
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|