loris 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.1
@@ -220,7 +220,7 @@ module Loris
220
220
  end
221
221
 
222
222
  def closure_compiler_task(dir)
223
- jar = File.join(LIBDIR, 'closure-compiler' , 'compiler.jar')
223
+ jar = File.join(LIBDIR, 'closure-compiler' , 'closure-compiler.jar')
224
224
 
225
225
  return CommandLineTask.new(
226
226
  ClosureCompilerRunner.new(
@@ -6,6 +6,7 @@ class ClosureCompilerRunner
6
6
  @dir = dir
7
7
  @filter = filter
8
8
  @config = config
9
+ @output_file = ''
9
10
  end
10
11
 
11
12
  def name
@@ -16,6 +17,8 @@ class ClosureCompilerRunner
16
17
  @config.reload
17
18
  conf = @config.conf
18
19
 
20
+ @output_file = conf['js_output_file']
21
+
19
22
  input_params = ''
20
23
 
21
24
  conf.each do |param, value|
@@ -41,7 +44,7 @@ class ClosureCompilerRunner
41
44
  end
42
45
 
43
46
  def should_run?(modified_files)
44
- return !(modified_files.detect { |file| @filter.filter(file) && file != @output }).nil? || modified_files.include?(@config_file)
47
+ return !(modified_files.detect { |file| @filter.filter(file) && file != @dir + '/' + @output_file }).nil? || modified_files.include?(@config_file)
45
48
  end
46
49
 
47
50
  end
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{loris}
8
- s.version = "0.3.0"
8
+ s.version = "0.3.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"]
@@ -34,7 +34,7 @@ Gem::Specification.new do |s|
34
34
  "features/support/env.rb",
35
35
  "lib/always_continuer.rb",
36
36
  "lib/browser_finder.rb",
37
- "lib/closure-compiler/compiler.jar",
37
+ "lib/closure-compiler/closure-compiler.jar",
38
38
  "lib/directory_finder.rb",
39
39
  "lib/file_actioner.rb",
40
40
  "lib/file_finder.rb",
@@ -3,7 +3,7 @@
3
3
  <plist version="1.0">
4
4
  <dict>
5
5
  <key>currentDocument</key>
6
- <string>lib/filters/modified_filter.rb</string>
6
+ <string>lib/tasks/google_lint/google_lint_runner.rb</string>
7
7
  <key>documents</key>
8
8
  <array>
9
9
  <dict>
@@ -21,147 +21,19 @@
21
21
  <integer>200</integer>
22
22
  <key>metaData</key>
23
23
  <dict>
24
- <key>TODO</key>
25
- <dict>
26
- <key>caret</key>
27
- <dict>
28
- <key>column</key>
29
- <integer>4</integer>
30
- <key>line</key>
31
- <integer>0</integer>
32
- </dict>
33
- <key>firstVisibleColumn</key>
34
- <integer>0</integer>
35
- <key>firstVisibleLine</key>
36
- <integer>0</integer>
37
- </dict>
38
- <key>lib/directory_finder.rb</key>
39
- <dict>
40
- <key>caret</key>
41
- <dict>
42
- <key>column</key>
43
- <integer>16</integer>
44
- <key>line</key>
45
- <integer>3</integer>
46
- </dict>
47
- <key>firstVisibleColumn</key>
48
- <integer>0</integer>
49
- <key>firstVisibleLine</key>
50
- <integer>0</integer>
51
- </dict>
52
- <key>lib/file_actioner.rb</key>
53
- <dict>
54
- <key>caret</key>
55
- <dict>
56
- <key>column</key>
57
- <integer>0</integer>
58
- <key>line</key>
59
- <integer>27</integer>
60
- </dict>
61
- <key>firstVisibleColumn</key>
62
- <integer>0</integer>
63
- <key>firstVisibleLine</key>
64
- <integer>0</integer>
65
- </dict>
66
- <key>lib/file_finder.rb</key>
67
- <dict>
68
- <key>caret</key>
69
- <dict>
70
- <key>column</key>
71
- <integer>3</integer>
72
- <key>line</key>
73
- <integer>35</integer>
74
- </dict>
75
- <key>firstVisibleColumn</key>
76
- <integer>0</integer>
77
- <key>firstVisibleLine</key>
78
- <integer>0</integer>
79
- </dict>
80
- <key>lib/filters/ends_with_filter.rb</key>
81
- <dict>
82
- <key>caret</key>
83
- <dict>
84
- <key>column</key>
85
- <integer>2</integer>
86
- <key>line</key>
87
- <integer>8</integer>
88
- </dict>
89
- <key>columnSelection</key>
90
- <false/>
91
- <key>firstVisibleColumn</key>
92
- <integer>0</integer>
93
- <key>firstVisibleLine</key>
94
- <integer>0</integer>
95
- <key>selectFrom</key>
96
- <dict>
97
- <key>column</key>
98
- <integer>0</integer>
99
- <key>line</key>
100
- <integer>0</integer>
101
- </dict>
102
- <key>selectTo</key>
103
- <dict>
104
- <key>column</key>
105
- <integer>3</integer>
106
- <key>line</key>
107
- <integer>16</integer>
108
- </dict>
109
- </dict>
110
- <key>lib/filters/file_filter.rb</key>
111
- <dict>
112
- <key>caret</key>
113
- <dict>
114
- <key>column</key>
115
- <integer>0</integer>
116
- <key>line</key>
117
- <integer>0</integer>
118
- </dict>
119
- <key>firstVisibleColumn</key>
120
- <integer>0</integer>
121
- <key>firstVisibleLine</key>
122
- <integer>0</integer>
123
- </dict>
124
- <key>lib/filters/modified_filter.rb</key>
125
- <dict>
126
- <key>caret</key>
127
- <dict>
128
- <key>column</key>
129
- <integer>20</integer>
130
- <key>line</key>
131
- <integer>17</integer>
132
- </dict>
133
- <key>firstVisibleColumn</key>
134
- <integer>0</integer>
135
- <key>firstVisibleLine</key>
136
- <integer>0</integer>
137
- </dict>
138
- <key>lib/jasmine-node/specs.js</key>
139
- <dict>
140
- <key>caret</key>
141
- <dict>
142
- <key>column</key>
143
- <integer>0</integer>
144
- <key>line</key>
145
- <integer>3</integer>
146
- </dict>
147
- <key>firstVisibleColumn</key>
148
- <integer>0</integer>
149
- <key>firstVisibleLine</key>
150
- <integer>0</integer>
151
- </dict>
152
24
  <key>lib/loris.rb</key>
153
25
  <dict>
154
26
  <key>caret</key>
155
27
  <dict>
156
28
  <key>column</key>
157
- <integer>28</integer>
29
+ <integer>31</integer>
158
30
  <key>line</key>
159
- <integer>97</integer>
31
+ <integer>208</integer>
160
32
  </dict>
161
33
  <key>firstVisibleColumn</key>
162
34
  <integer>0</integer>
163
35
  <key>firstVisibleLine</key>
164
- <integer>82</integer>
36
+ <integer>177</integer>
165
37
  </dict>
166
38
  <key>lib/outputs/growl_output.rb</key>
167
39
  <dict>
@@ -191,86 +63,14 @@
191
63
  <key>firstVisibleLine</key>
192
64
  <integer>0</integer>
193
65
  </dict>
194
- <key>lib/poller.rb</key>
195
- <dict>
196
- <key>caret</key>
197
- <dict>
198
- <key>column</key>
199
- <integer>0</integer>
200
- <key>line</key>
201
- <integer>13</integer>
202
- </dict>
203
- <key>firstVisibleColumn</key>
204
- <integer>0</integer>
205
- <key>firstVisibleLine</key>
206
- <integer>0</integer>
207
- </dict>
208
- <key>lib/sleep_waiter.rb</key>
209
- <dict>
210
- <key>caret</key>
211
- <dict>
212
- <key>column</key>
213
- <integer>30</integer>
214
- <key>line</key>
215
- <integer>2</integer>
216
- </dict>
217
- <key>columnSelection</key>
218
- <false/>
219
- <key>firstVisibleColumn</key>
220
- <integer>0</integer>
221
- <key>firstVisibleLine</key>
222
- <integer>0</integer>
223
- <key>selectFrom</key>
224
- <dict>
225
- <key>column</key>
226
- <integer>31</integer>
227
- <key>line</key>
228
- <integer>2</integer>
229
- </dict>
230
- <key>selectTo</key>
231
- <dict>
232
- <key>column</key>
233
- <integer>30</integer>
234
- <key>line</key>
235
- <integer>2</integer>
236
- </dict>
237
- </dict>
238
- <key>lib/task_manager.rb</key>
239
- <dict>
240
- <key>caret</key>
241
- <dict>
242
- <key>column</key>
243
- <integer>18</integer>
244
- <key>line</key>
245
- <integer>50</integer>
246
- </dict>
247
- <key>firstVisibleColumn</key>
248
- <integer>0</integer>
249
- <key>firstVisibleLine</key>
250
- <integer>3</integer>
251
- </dict>
252
66
  <key>lib/tasks/closure_compiler/closure_compiler_config.rb</key>
253
67
  <dict>
254
68
  <key>caret</key>
255
69
  <dict>
256
70
  <key>column</key>
257
- <integer>13</integer>
258
- <key>line</key>
259
- <integer>0</integer>
260
- </dict>
261
- <key>firstVisibleColumn</key>
262
- <integer>0</integer>
263
- <key>firstVisibleLine</key>
264
- <integer>0</integer>
265
- </dict>
266
- <key>lib/tasks/closure_compiler/closure_compiler_parser.rb</key>
267
- <dict>
268
- <key>caret</key>
269
- <dict>
270
- <key>column</key>
271
- <integer>0</integer>
71
+ <integer>3</integer>
272
72
  <key>line</key>
273
- <integer>29</integer>
73
+ <integer>16</integer>
274
74
  </dict>
275
75
  <key>firstVisibleColumn</key>
276
76
  <integer>0</integer>
@@ -284,21 +84,21 @@
284
84
  <key>column</key>
285
85
  <integer>0</integer>
286
86
  <key>line</key>
287
- <integer>44</integer>
87
+ <integer>6</integer>
288
88
  </dict>
289
89
  <key>firstVisibleColumn</key>
290
90
  <integer>0</integer>
291
91
  <key>firstVisibleLine</key>
292
92
  <integer>0</integer>
293
93
  </dict>
294
- <key>lib/tasks/coffeescript/coffeescript_runner.rb</key>
94
+ <key>lib/tasks/google_lint/google_lint_config.rb</key>
295
95
  <dict>
296
96
  <key>caret</key>
297
97
  <dict>
298
98
  <key>column</key>
299
- <integer>36</integer>
99
+ <integer>3</integer>
300
100
  <key>line</key>
301
- <integer>18</integer>
101
+ <integer>16</integer>
302
102
  </dict>
303
103
  <key>firstVisibleColumn</key>
304
104
  <integer>0</integer>
@@ -310,21 +110,7 @@
310
110
  <key>caret</key>
311
111
  <dict>
312
112
  <key>column</key>
313
- <integer>12</integer>
314
- <key>line</key>
315
- <integer>0</integer>
316
- </dict>
317
- <key>firstVisibleColumn</key>
318
- <integer>0</integer>
319
- <key>firstVisibleLine</key>
320
- <integer>0</integer>
321
- </dict>
322
- <key>lib/tasks/google_lint/google_lint_runner.rb</key>
323
- <dict>
324
- <key>caret</key>
325
- <dict>
326
- <key>column</key>
327
- <integer>31</integer>
113
+ <integer>41</integer>
328
114
  <key>line</key>
329
115
  <integer>14</integer>
330
116
  </dict>
@@ -333,28 +119,14 @@
333
119
  <key>firstVisibleLine</key>
334
120
  <integer>0</integer>
335
121
  </dict>
336
- <key>lib/tasks/jasmine_node/jasmine_node_runner.rb</key>
337
- <dict>
338
- <key>caret</key>
339
- <dict>
340
- <key>column</key>
341
- <integer>0</integer>
342
- <key>line</key>
343
- <integer>14</integer>
344
- </dict>
345
- <key>firstVisibleColumn</key>
346
- <integer>0</integer>
347
- <key>firstVisibleLine</key>
348
- <integer>0</integer>
349
- </dict>
350
- <key>lib/tasks/js_test_driver/js_test_driver_config.rb</key>
122
+ <key>lib/tasks/google_lint/google_lint_runner.rb</key>
351
123
  <dict>
352
124
  <key>caret</key>
353
125
  <dict>
354
126
  <key>column</key>
355
- <integer>2</integer>
127
+ <integer>26</integer>
356
128
  <key>line</key>
357
- <integer>12</integer>
129
+ <integer>24</integer>
358
130
  </dict>
359
131
  <key>firstVisibleColumn</key>
360
132
  <integer>0</integer>
@@ -392,26 +164,12 @@
392
164
  </dict>
393
165
  <key>openDocuments</key>
394
166
  <array>
395
- <string>TODO</string>
396
167
  <string>lib/loris.rb</string>
397
- <string>lib/filters/file_filter.rb</string>
398
- <string>lib/tasks/closure_compiler/closure_compiler_parser.rb</string>
399
- <string>lib/tasks/closure_compiler/closure_compiler_runner.rb</string>
400
- <string>lib/task_manager.rb</string>
401
- <string>lib/file_actioner.rb</string>
402
- <string>lib/poller.rb</string>
403
- <string>lib/sleep_waiter.rb</string>
404
- <string>lib/tasks/js_test_driver/js_test_driver_config.rb</string>
405
- <string>lib/tasks/closure_compiler/closure_compiler_config.rb</string>
406
- <string>lib/tasks/google_lint/google_lint_parser.rb</string>
407
168
  <string>lib/tasks/google_lint/google_lint_runner.rb</string>
408
- <string>lib/filters/ends_with_filter.rb</string>
409
- <string>lib/directory_finder.rb</string>
410
- <string>lib/file_finder.rb</string>
411
- <string>lib/filters/modified_filter.rb</string>
412
- <string>lib/tasks/coffeescript/coffeescript_runner.rb</string>
413
- <string>lib/tasks/jasmine_node/jasmine_node_runner.rb</string>
414
- <string>lib/jasmine-node/specs.js</string>
169
+ <string>lib/tasks/google_lint/google_lint_parser.rb</string>
170
+ <string>lib/tasks/closure_compiler/closure_compiler_config.rb</string>
171
+ <string>lib/tasks/google_lint/google_lint_config.rb</string>
172
+ <string>lib/tasks/closure_compiler/closure_compiler_runner.rb</string>
415
173
  </array>
416
174
  <key>showFileHierarchyDrawer</key>
417
175
  <false/>
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: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 0
10
- version: 0.3.0
9
+ - 1
10
+ version: 0.3.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Karl O'Keeffe
@@ -107,7 +107,7 @@ files:
107
107
  - features/support/env.rb
108
108
  - lib/always_continuer.rb
109
109
  - lib/browser_finder.rb
110
- - lib/closure-compiler/compiler.jar
110
+ - lib/closure-compiler/closure-compiler.jar
111
111
  - lib/directory_finder.rb
112
112
  - lib/file_actioner.rb
113
113
  - lib/file_finder.rb