guard-coffeescript 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +90 -119
- data/lib/guard/coffeescript.rb +33 -4
- data/lib/guard/coffeescript/formatter.rb +47 -6
- data/lib/guard/coffeescript/inspector.rb +24 -1
- data/lib/guard/coffeescript/runner.rb +77 -10
- data/lib/guard/coffeescript/version.rb +2 -1
- metadata +36 -9
- data/lib/guard/coffeescript.rbc +0 -1150
- data/lib/guard/coffeescript/formatter.rbc +0 -1031
- data/lib/guard/coffeescript/inspector.rbc +0 -750
- data/lib/guard/coffeescript/runner.rbc +0 -2609
- data/lib/guard/coffeescript/version.rbc +0 -203
@@ -1,8 +1,18 @@
|
|
1
1
|
module Guard
|
2
2
|
class CoffeeScript
|
3
|
+
|
4
|
+
# The inspector verifies of the changed paths are valid
|
5
|
+
# for Guard::CoffeeScript.
|
6
|
+
#
|
3
7
|
module Inspector
|
4
8
|
class << self
|
5
9
|
|
10
|
+
# Clean the changed paths and return only valid
|
11
|
+
# CoffeeScript files.
|
12
|
+
#
|
13
|
+
# @param [Array<String>] paths the changed paths
|
14
|
+
# @return [Array<String>] the valid spec files
|
15
|
+
#
|
6
16
|
def clean(paths)
|
7
17
|
paths.uniq!
|
8
18
|
paths.compact!
|
@@ -11,16 +21,29 @@ module Guard
|
|
11
21
|
paths
|
12
22
|
end
|
13
23
|
|
14
|
-
|
24
|
+
private
|
15
25
|
|
26
|
+
# Tests if the file is valid.
|
27
|
+
#
|
28
|
+
# @param [String] file the file
|
29
|
+
# @return [Boolean] when the file valid
|
30
|
+
#
|
16
31
|
def coffee_file?(path)
|
17
32
|
coffee_files.include?(path)
|
18
33
|
end
|
19
34
|
|
35
|
+
# Scans the project and keeps a list of all
|
36
|
+
# CoffeeScript files.
|
37
|
+
#
|
38
|
+
# @see #clear_coffee_files_list
|
39
|
+
# @return [Array<String>] the valid files
|
40
|
+
#
|
20
41
|
def coffee_files
|
21
42
|
@coffee_files ||= Dir.glob('**/*.coffee')
|
22
43
|
end
|
23
44
|
|
45
|
+
# Clears the list of CoffeeScript files in this project.
|
46
|
+
#
|
24
47
|
def clear_coffee_files_list
|
25
48
|
@coffee_files = nil
|
26
49
|
end
|
@@ -5,9 +5,24 @@ module Guard
|
|
5
5
|
module Runner
|
6
6
|
class << self
|
7
7
|
|
8
|
-
|
8
|
+
# The CoffeeScript runner handles the CoffeeScript compilation,
|
9
|
+
# creates nested directories and the output file, writes the result
|
10
|
+
# to the console and triggers optional system notifications.
|
11
|
+
#
|
12
|
+
# @param [Array<String>] paths the spec files or directories
|
13
|
+
# @param [Array<Guard::Watcher>] watchers the Guard watchers in the block
|
14
|
+
# @param [Hash] options the options for the execution
|
15
|
+
# @option options [String] :input the input directory
|
16
|
+
# @option options [String] :output the output directory
|
17
|
+
# @option options [Boolean] :bare do not wrap the output in a top level function
|
18
|
+
# @option options [Boolean] :shallow do not create nested directories
|
19
|
+
# @option options [Boolean] :hide_success hide success message notification
|
20
|
+
# @option options [Boolean] :noop do not generate an output file
|
21
|
+
# @return [Array<Array<String>, Boolean>] the result for the compilation run
|
22
|
+
#
|
23
|
+
def run(files, watchers, options = { })
|
9
24
|
notify_start(files, options)
|
10
|
-
changed_files, errors = compile_files(files,
|
25
|
+
changed_files, errors = compile_files(files, watchers, options)
|
11
26
|
notify_result(changed_files, errors, options)
|
12
27
|
|
13
28
|
[changed_files, errors.empty?]
|
@@ -16,14 +31,27 @@ module Guard
|
|
16
31
|
Formatter.error("ExecJS engine error: " + e.message)
|
17
32
|
end
|
18
33
|
|
19
|
-
|
34
|
+
private
|
20
35
|
|
36
|
+
# Generates a start compilation notification.
|
37
|
+
#
|
38
|
+
# @param [Array<String>] files the generated files
|
39
|
+
# @param [Hash] options the options for the execution
|
40
|
+
# @option options [Boolean] :noop do not generate an output file
|
41
|
+
#
|
21
42
|
def notify_start(files, options)
|
22
43
|
message = options[:message] || (options[:noop] ? 'Verify ' : 'Compile ') + files.join(', ')
|
23
44
|
Formatter.info(message, :reset => true)
|
24
45
|
end
|
25
46
|
|
26
|
-
|
47
|
+
# Compiles all CoffeeScript files and writes the JavaScript files.
|
48
|
+
#
|
49
|
+
# @param [Array<String>] files the files to compile
|
50
|
+
# @param [Array<Guard::Watcher>] watchers the Guard watchers in the block
|
51
|
+
# @param [Hash] options the options for the execution
|
52
|
+
# @return [Array<Array<String>, Array<String>] the result for the compilation run
|
53
|
+
#
|
54
|
+
def compile_files(files, watchers, options)
|
27
55
|
errors = []
|
28
56
|
changed_files = []
|
29
57
|
directories = detect_nested_directories(watchers, files, options)
|
@@ -32,7 +60,7 @@ module Guard
|
|
32
60
|
scripts.each do |file|
|
33
61
|
begin
|
34
62
|
content = compile(file, options)
|
35
|
-
changed_files <<
|
63
|
+
changed_files << write_javascript_file(content, file, directory, options)
|
36
64
|
rescue ExecJS::ProgramError => e
|
37
65
|
error_message = file + ': ' + e.message.to_s
|
38
66
|
errors << error_message
|
@@ -44,21 +72,42 @@ module Guard
|
|
44
72
|
[changed_files.compact, errors]
|
45
73
|
end
|
46
74
|
|
75
|
+
# Compile the CoffeeScripts
|
76
|
+
#
|
77
|
+
# @param [String] file the CoffeeScript file
|
78
|
+
# @param [Hash] options the options for the execution
|
79
|
+
#
|
47
80
|
def compile(file, options)
|
48
81
|
file_options = options_for_file(file, options)
|
49
82
|
::CoffeeScript.compile(File.read(file), file_options)
|
50
83
|
end
|
51
84
|
|
85
|
+
# Gets the CoffeeScript compilation options.
|
86
|
+
#
|
87
|
+
# @param [String] file the CoffeeScript file
|
88
|
+
# @param [Hash] options the options for the execution
|
89
|
+
# @option options [Boolean] :bare do not wrap the output in a top level function
|
90
|
+
#
|
52
91
|
def options_for_file(file, options)
|
53
92
|
return options unless options[:bare].respond_to? :include?
|
54
|
-
|
55
|
-
|
93
|
+
|
94
|
+
file_options = options.clone
|
95
|
+
filename = file[/([^\/]*)\.coffee/]
|
56
96
|
file_options[:bare] = file_options[:bare].include?(filename)
|
57
97
|
|
58
98
|
file_options
|
59
99
|
end
|
60
100
|
|
61
|
-
|
101
|
+
# Analyzes the CoffeeScript compilation output and creates the
|
102
|
+
# nested directories and writes the output file.
|
103
|
+
#
|
104
|
+
# @param [String] content the JavaScript content
|
105
|
+
# @param [String] file the CoffeeScript file name
|
106
|
+
# @param [String] directory the output directory
|
107
|
+
# @param [Hash] options the options for the execution
|
108
|
+
# @option options [Boolean] :noop do not generate an output file
|
109
|
+
#
|
110
|
+
def write_javascript_file(content, file, directory, options)
|
62
111
|
FileUtils.mkdir_p(File.expand_path(directory)) if !File.directory?(directory) && !options[:noop]
|
63
112
|
filename = File.join(directory, File.basename(file.gsub(/(js\.coffee|coffee)$/, 'js')))
|
64
113
|
File.open(File.expand_path(filename), 'w') { |f| f.write(content) } if !options[:noop]
|
@@ -66,10 +115,20 @@ module Guard
|
|
66
115
|
filename
|
67
116
|
end
|
68
117
|
|
118
|
+
# Detects the output directory for each CoffeeScript file. Builds
|
119
|
+
# the product of all watchers and assigns to each directory
|
120
|
+
# the files to which it belongs to.
|
121
|
+
#
|
122
|
+
# @param [Array<Guard::Watcher>] watchers the Guard watchers in the block
|
123
|
+
# @param [Array<String>] files the CoffeeScript files
|
124
|
+
# @param [Hash] options the options for the execution
|
125
|
+
# @option options [String] :output the output directory
|
126
|
+
# @option options [Boolean] :shallow do not create nested directories
|
127
|
+
#
|
69
128
|
def detect_nested_directories(watchers, files, options)
|
70
129
|
return { options[:output] => files } if options[:shallow]
|
71
130
|
|
72
|
-
directories = {}
|
131
|
+
directories = { }
|
73
132
|
|
74
133
|
watchers.product(files).each do |watcher, file|
|
75
134
|
if matches = file.match(watcher.pattern)
|
@@ -85,7 +144,15 @@ module Guard
|
|
85
144
|
directories
|
86
145
|
end
|
87
146
|
|
88
|
-
|
147
|
+
# Writes console and system notifications about the result of the compilation.
|
148
|
+
#
|
149
|
+
# @param [Array<String>] changed_files the changed JavaScript files
|
150
|
+
# @param [Array<String>] errors the error messages
|
151
|
+
# @param [Hash] options the options for the execution
|
152
|
+
# @option options [Boolean] :hide_success hide success message notification
|
153
|
+
# @option options [Boolean] :noop do not generate an output file
|
154
|
+
#
|
155
|
+
def notify_result(changed_files, errors, options = { })
|
89
156
|
if !errors.empty?
|
90
157
|
Formatter.notify(errors.join("\n"), :title => 'CoffeeScript results', :image => :failed, :priority => 2)
|
91
158
|
elsif !options[:hide_success]
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-coffeescript
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 13
|
5
5
|
prerelease:
|
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
|
- Michael Kessler
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-09-
|
18
|
+
date: 2011-09-08 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: guard
|
@@ -93,6 +93,38 @@ dependencies:
|
|
93
93
|
version: "2.6"
|
94
94
|
type: :development
|
95
95
|
version_requirements: *id005
|
96
|
+
- !ruby/object:Gem::Dependency
|
97
|
+
name: yard
|
98
|
+
prerelease: false
|
99
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
100
|
+
none: false
|
101
|
+
requirements:
|
102
|
+
- - ~>
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
hash: 7
|
105
|
+
segments:
|
106
|
+
- 0
|
107
|
+
- 7
|
108
|
+
- 2
|
109
|
+
version: 0.7.2
|
110
|
+
type: :development
|
111
|
+
version_requirements: *id006
|
112
|
+
- !ruby/object:Gem::Dependency
|
113
|
+
name: kramdown
|
114
|
+
prerelease: false
|
115
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
116
|
+
none: false
|
117
|
+
requirements:
|
118
|
+
- - ~>
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
hash: 45
|
121
|
+
segments:
|
122
|
+
- 0
|
123
|
+
- 13
|
124
|
+
- 3
|
125
|
+
version: 0.13.3
|
126
|
+
type: :development
|
127
|
+
version_requirements: *id007
|
96
128
|
description: Guard::CoffeeScript automatically generates your JavaScripts from your CoffeeScripts
|
97
129
|
email:
|
98
130
|
- michi@netzpiraten.ch
|
@@ -104,16 +136,11 @@ extra_rdoc_files: []
|
|
104
136
|
|
105
137
|
files:
|
106
138
|
- lib/guard/coffeescript/formatter.rb
|
107
|
-
- lib/guard/coffeescript/formatter.rbc
|
108
139
|
- lib/guard/coffeescript/inspector.rb
|
109
|
-
- lib/guard/coffeescript/inspector.rbc
|
110
140
|
- lib/guard/coffeescript/runner.rb
|
111
|
-
- lib/guard/coffeescript/runner.rbc
|
112
141
|
- lib/guard/coffeescript/templates/Guardfile
|
113
142
|
- lib/guard/coffeescript/version.rb
|
114
|
-
- lib/guard/coffeescript/version.rbc
|
115
143
|
- lib/guard/coffeescript.rb
|
116
|
-
- lib/guard/coffeescript.rbc
|
117
144
|
- LICENSE
|
118
145
|
- README.md
|
119
146
|
homepage: http://github.com/netzpirat/guard-coffeescript
|
data/lib/guard/coffeescript.rbc
DELETED
@@ -1,1150 +0,0 @@
|
|
1
|
-
!RBIX
|
2
|
-
6235178746665710376
|
3
|
-
x
|
4
|
-
M
|
5
|
-
1
|
6
|
-
n
|
7
|
-
n
|
8
|
-
x
|
9
|
-
10
|
10
|
-
__script__
|
11
|
-
i
|
12
|
-
55
|
13
|
-
5
|
14
|
-
7
|
15
|
-
0
|
16
|
-
64
|
17
|
-
47
|
18
|
-
49
|
19
|
-
1
|
20
|
-
1
|
21
|
-
15
|
22
|
-
5
|
23
|
-
7
|
24
|
-
2
|
25
|
-
64
|
26
|
-
47
|
27
|
-
49
|
28
|
-
1
|
29
|
-
1
|
30
|
-
15
|
31
|
-
5
|
32
|
-
7
|
33
|
-
3
|
34
|
-
64
|
35
|
-
47
|
36
|
-
49
|
37
|
-
1
|
38
|
-
1
|
39
|
-
15
|
40
|
-
99
|
41
|
-
7
|
42
|
-
4
|
43
|
-
65
|
44
|
-
49
|
45
|
-
5
|
46
|
-
2
|
47
|
-
13
|
48
|
-
99
|
49
|
-
12
|
50
|
-
7
|
51
|
-
6
|
52
|
-
12
|
53
|
-
7
|
54
|
-
7
|
55
|
-
12
|
56
|
-
65
|
57
|
-
12
|
58
|
-
49
|
59
|
-
8
|
60
|
-
4
|
61
|
-
15
|
62
|
-
49
|
63
|
-
6
|
64
|
-
0
|
65
|
-
15
|
66
|
-
2
|
67
|
-
11
|
68
|
-
I
|
69
|
-
6
|
70
|
-
I
|
71
|
-
0
|
72
|
-
I
|
73
|
-
0
|
74
|
-
I
|
75
|
-
0
|
76
|
-
n
|
77
|
-
p
|
78
|
-
9
|
79
|
-
s
|
80
|
-
5
|
81
|
-
guard
|
82
|
-
x
|
83
|
-
7
|
84
|
-
require
|
85
|
-
s
|
86
|
-
11
|
87
|
-
guard/guard
|
88
|
-
s
|
89
|
-
13
|
90
|
-
guard/watcher
|
91
|
-
x
|
92
|
-
5
|
93
|
-
Guard
|
94
|
-
x
|
95
|
-
11
|
96
|
-
open_module
|
97
|
-
x
|
98
|
-
15
|
99
|
-
__module_init__
|
100
|
-
M
|
101
|
-
1
|
102
|
-
n
|
103
|
-
n
|
104
|
-
x
|
105
|
-
5
|
106
|
-
Guard
|
107
|
-
i
|
108
|
-
31
|
109
|
-
5
|
110
|
-
66
|
111
|
-
99
|
112
|
-
7
|
113
|
-
0
|
114
|
-
45
|
115
|
-
1
|
116
|
-
2
|
117
|
-
65
|
118
|
-
49
|
119
|
-
3
|
120
|
-
3
|
121
|
-
13
|
122
|
-
99
|
123
|
-
12
|
124
|
-
7
|
125
|
-
4
|
126
|
-
12
|
127
|
-
7
|
128
|
-
5
|
129
|
-
12
|
130
|
-
65
|
131
|
-
12
|
132
|
-
49
|
133
|
-
6
|
134
|
-
4
|
135
|
-
15
|
136
|
-
49
|
137
|
-
4
|
138
|
-
0
|
139
|
-
11
|
140
|
-
I
|
141
|
-
6
|
142
|
-
I
|
143
|
-
0
|
144
|
-
I
|
145
|
-
0
|
146
|
-
I
|
147
|
-
0
|
148
|
-
n
|
149
|
-
p
|
150
|
-
7
|
151
|
-
x
|
152
|
-
12
|
153
|
-
CoffeeScript
|
154
|
-
x
|
155
|
-
5
|
156
|
-
Guard
|
157
|
-
n
|
158
|
-
x
|
159
|
-
10
|
160
|
-
open_class
|
161
|
-
x
|
162
|
-
14
|
163
|
-
__class_init__
|
164
|
-
M
|
165
|
-
1
|
166
|
-
n
|
167
|
-
n
|
168
|
-
x
|
169
|
-
12
|
170
|
-
CoffeeScript
|
171
|
-
i
|
172
|
-
95
|
173
|
-
5
|
174
|
-
66
|
175
|
-
5
|
176
|
-
7
|
177
|
-
0
|
178
|
-
7
|
179
|
-
1
|
180
|
-
64
|
181
|
-
47
|
182
|
-
49
|
183
|
-
2
|
184
|
-
2
|
185
|
-
15
|
186
|
-
5
|
187
|
-
7
|
188
|
-
3
|
189
|
-
7
|
190
|
-
4
|
191
|
-
64
|
192
|
-
47
|
193
|
-
49
|
194
|
-
2
|
195
|
-
2
|
196
|
-
15
|
197
|
-
5
|
198
|
-
7
|
199
|
-
5
|
200
|
-
7
|
201
|
-
6
|
202
|
-
64
|
203
|
-
47
|
204
|
-
49
|
205
|
-
2
|
206
|
-
2
|
207
|
-
15
|
208
|
-
99
|
209
|
-
7
|
210
|
-
7
|
211
|
-
7
|
212
|
-
8
|
213
|
-
65
|
214
|
-
67
|
215
|
-
49
|
216
|
-
9
|
217
|
-
0
|
218
|
-
49
|
219
|
-
10
|
220
|
-
4
|
221
|
-
15
|
222
|
-
99
|
223
|
-
7
|
224
|
-
11
|
225
|
-
7
|
226
|
-
12
|
227
|
-
65
|
228
|
-
67
|
229
|
-
49
|
230
|
-
9
|
231
|
-
0
|
232
|
-
49
|
233
|
-
10
|
234
|
-
4
|
235
|
-
15
|
236
|
-
99
|
237
|
-
7
|
238
|
-
13
|
239
|
-
7
|
240
|
-
14
|
241
|
-
65
|
242
|
-
67
|
243
|
-
49
|
244
|
-
9
|
245
|
-
0
|
246
|
-
49
|
247
|
-
10
|
248
|
-
4
|
249
|
-
15
|
250
|
-
5
|
251
|
-
48
|
252
|
-
15
|
253
|
-
15
|
254
|
-
99
|
255
|
-
7
|
256
|
-
16
|
257
|
-
7
|
258
|
-
17
|
259
|
-
65
|
260
|
-
67
|
261
|
-
49
|
262
|
-
9
|
263
|
-
0
|
264
|
-
49
|
265
|
-
10
|
266
|
-
4
|
267
|
-
11
|
268
|
-
I
|
269
|
-
5
|
270
|
-
I
|
271
|
-
0
|
272
|
-
I
|
273
|
-
0
|
274
|
-
I
|
275
|
-
0
|
276
|
-
n
|
277
|
-
p
|
278
|
-
18
|
279
|
-
x
|
280
|
-
9
|
281
|
-
Formatter
|
282
|
-
s
|
283
|
-
28
|
284
|
-
guard/coffeescript/formatter
|
285
|
-
x
|
286
|
-
8
|
287
|
-
autoload
|
288
|
-
x
|
289
|
-
9
|
290
|
-
Inspector
|
291
|
-
s
|
292
|
-
28
|
293
|
-
guard/coffeescript/inspector
|
294
|
-
x
|
295
|
-
6
|
296
|
-
Runner
|
297
|
-
s
|
298
|
-
25
|
299
|
-
guard/coffeescript/runner
|
300
|
-
x
|
301
|
-
10
|
302
|
-
initialize
|
303
|
-
M
|
304
|
-
1
|
305
|
-
n
|
306
|
-
n
|
307
|
-
x
|
308
|
-
10
|
309
|
-
initialize
|
310
|
-
i
|
311
|
-
201
|
312
|
-
23
|
313
|
-
0
|
314
|
-
10
|
315
|
-
9
|
316
|
-
35
|
317
|
-
0
|
318
|
-
19
|
319
|
-
0
|
320
|
-
15
|
321
|
-
23
|
322
|
-
1
|
323
|
-
10
|
324
|
-
23
|
325
|
-
44
|
326
|
-
43
|
327
|
-
0
|
328
|
-
78
|
329
|
-
49
|
330
|
-
1
|
331
|
-
1
|
332
|
-
19
|
333
|
-
1
|
334
|
-
15
|
335
|
-
20
|
336
|
-
0
|
337
|
-
9
|
338
|
-
30
|
339
|
-
1
|
340
|
-
8
|
341
|
-
34
|
342
|
-
35
|
343
|
-
0
|
344
|
-
19
|
345
|
-
0
|
346
|
-
15
|
347
|
-
44
|
348
|
-
43
|
349
|
-
0
|
350
|
-
4
|
351
|
-
3
|
352
|
-
49
|
353
|
-
1
|
354
|
-
1
|
355
|
-
13
|
356
|
-
7
|
357
|
-
2
|
358
|
-
3
|
359
|
-
49
|
360
|
-
3
|
361
|
-
2
|
362
|
-
15
|
363
|
-
13
|
364
|
-
7
|
365
|
-
4
|
366
|
-
3
|
367
|
-
49
|
368
|
-
3
|
369
|
-
2
|
370
|
-
15
|
371
|
-
13
|
372
|
-
7
|
373
|
-
5
|
374
|
-
3
|
375
|
-
49
|
376
|
-
3
|
377
|
-
2
|
378
|
-
15
|
379
|
-
19
|
380
|
-
2
|
381
|
-
15
|
382
|
-
20
|
383
|
-
1
|
384
|
-
7
|
385
|
-
6
|
386
|
-
49
|
387
|
-
7
|
388
|
-
1
|
389
|
-
9
|
390
|
-
185
|
391
|
-
20
|
392
|
-
2
|
393
|
-
44
|
394
|
-
43
|
395
|
-
0
|
396
|
-
79
|
397
|
-
49
|
398
|
-
1
|
399
|
-
1
|
400
|
-
13
|
401
|
-
7
|
402
|
-
8
|
403
|
-
20
|
404
|
-
1
|
405
|
-
7
|
406
|
-
6
|
407
|
-
49
|
408
|
-
7
|
409
|
-
1
|
410
|
-
49
|
411
|
-
3
|
412
|
-
2
|
413
|
-
15
|
414
|
-
49
|
415
|
-
9
|
416
|
-
1
|
417
|
-
15
|
418
|
-
20
|
419
|
-
0
|
420
|
-
44
|
421
|
-
43
|
422
|
-
10
|
423
|
-
43
|
424
|
-
11
|
425
|
-
13
|
426
|
-
71
|
427
|
-
12
|
428
|
-
47
|
429
|
-
9
|
430
|
-
154
|
431
|
-
47
|
432
|
-
49
|
433
|
-
13
|
434
|
-
0
|
435
|
-
13
|
436
|
-
44
|
437
|
-
43
|
438
|
-
14
|
439
|
-
7
|
440
|
-
15
|
441
|
-
20
|
442
|
-
1
|
443
|
-
7
|
444
|
-
6
|
445
|
-
49
|
446
|
-
16
|
447
|
-
1
|
448
|
-
47
|
449
|
-
101
|
450
|
-
17
|
451
|
-
7
|
452
|
-
18
|
453
|
-
63
|
454
|
-
3
|
455
|
-
78
|
456
|
-
49
|
457
|
-
12
|
458
|
-
2
|
459
|
-
47
|
460
|
-
49
|
461
|
-
19
|
462
|
-
1
|
463
|
-
15
|
464
|
-
8
|
465
|
-
180
|
466
|
-
44
|
467
|
-
43
|
468
|
-
14
|
469
|
-
7
|
470
|
-
15
|
471
|
-
20
|
472
|
-
1
|
473
|
-
7
|
474
|
-
6
|
475
|
-
49
|
476
|
-
16
|
477
|
-
1
|
478
|
-
47
|
479
|
-
101
|
480
|
-
17
|
481
|
-
7
|
482
|
-
18
|
483
|
-
63
|
484
|
-
3
|
485
|
-
78
|
486
|
-
49
|
487
|
-
12
|
488
|
-
2
|
489
|
-
49
|
490
|
-
12
|
491
|
-
1
|
492
|
-
49
|
493
|
-
20
|
494
|
-
1
|
495
|
-
8
|
496
|
-
186
|
497
|
-
1
|
498
|
-
15
|
499
|
-
20
|
500
|
-
0
|
501
|
-
20
|
502
|
-
2
|
503
|
-
20
|
504
|
-
1
|
505
|
-
49
|
506
|
-
21
|
507
|
-
1
|
508
|
-
54
|
509
|
-
52
|
510
|
-
19
|
511
|
-
2
|
512
|
-
11
|
513
|
-
I
|
514
|
-
a
|
515
|
-
I
|
516
|
-
3
|
517
|
-
I
|
518
|
-
0
|
519
|
-
I
|
520
|
-
2
|
521
|
-
n
|
522
|
-
p
|
523
|
-
22
|
524
|
-
x
|
525
|
-
4
|
526
|
-
Hash
|
527
|
-
x
|
528
|
-
16
|
529
|
-
new_from_literal
|
530
|
-
x
|
531
|
-
4
|
532
|
-
bare
|
533
|
-
x
|
534
|
-
3
|
535
|
-
[]=
|
536
|
-
x
|
537
|
-
7
|
538
|
-
shallow
|
539
|
-
x
|
540
|
-
12
|
541
|
-
hide_success
|
542
|
-
x
|
543
|
-
5
|
544
|
-
input
|
545
|
-
x
|
546
|
-
2
|
547
|
-
[]
|
548
|
-
x
|
549
|
-
6
|
550
|
-
output
|
551
|
-
x
|
552
|
-
6
|
553
|
-
merge!
|
554
|
-
x
|
555
|
-
5
|
556
|
-
Guard
|
557
|
-
x
|
558
|
-
7
|
559
|
-
Watcher
|
560
|
-
x
|
561
|
-
3
|
562
|
-
new
|
563
|
-
x
|
564
|
-
8
|
565
|
-
allocate
|
566
|
-
x
|
567
|
-
6
|
568
|
-
Regexp
|
569
|
-
s
|
570
|
-
1
|
571
|
-
^
|
572
|
-
x
|
573
|
-
6
|
574
|
-
delete
|
575
|
-
x
|
576
|
-
4
|
577
|
-
to_s
|
578
|
-
s
|
579
|
-
14
|
580
|
-
/(.+\.coffee)$
|
581
|
-
x
|
582
|
-
10
|
583
|
-
initialize
|
584
|
-
x
|
585
|
-
2
|
586
|
-
<<
|
587
|
-
x
|
588
|
-
5
|
589
|
-
merge
|
590
|
-
p
|
591
|
-
29
|
592
|
-
I
|
593
|
-
-1
|
594
|
-
I
|
595
|
-
c
|
596
|
-
I
|
597
|
-
17
|
598
|
-
I
|
599
|
-
d
|
600
|
-
I
|
601
|
-
22
|
602
|
-
I
|
603
|
-
0
|
604
|
-
I
|
605
|
-
23
|
606
|
-
I
|
607
|
-
12
|
608
|
-
I
|
609
|
-
2c
|
610
|
-
I
|
611
|
-
f
|
612
|
-
I
|
613
|
-
34
|
614
|
-
I
|
615
|
-
10
|
616
|
-
I
|
617
|
-
3c
|
618
|
-
I
|
619
|
-
11
|
620
|
-
I
|
621
|
-
43
|
622
|
-
I
|
623
|
-
e
|
624
|
-
I
|
625
|
-
46
|
626
|
-
I
|
627
|
-
14
|
628
|
-
I
|
629
|
-
4f
|
630
|
-
I
|
631
|
-
15
|
632
|
-
I
|
633
|
-
6a
|
634
|
-
I
|
635
|
-
16
|
636
|
-
I
|
637
|
-
b9
|
638
|
-
I
|
639
|
-
14
|
640
|
-
I
|
641
|
-
ba
|
642
|
-
I
|
643
|
-
0
|
644
|
-
I
|
645
|
-
bb
|
646
|
-
I
|
647
|
-
19
|
648
|
-
I
|
649
|
-
c9
|
650
|
-
x
|
651
|
-
70
|
652
|
-
/Users/michi/Repositories/guard-coffeescript/lib/guard/coffeescript.rb
|
653
|
-
p
|
654
|
-
3
|
655
|
-
x
|
656
|
-
8
|
657
|
-
watchers
|
658
|
-
x
|
659
|
-
7
|
660
|
-
options
|
661
|
-
x
|
662
|
-
8
|
663
|
-
defaults
|
664
|
-
x
|
665
|
-
17
|
666
|
-
method_visibility
|
667
|
-
x
|
668
|
-
15
|
669
|
-
add_defn_method
|
670
|
-
x
|
671
|
-
7
|
672
|
-
run_all
|
673
|
-
M
|
674
|
-
1
|
675
|
-
n
|
676
|
-
n
|
677
|
-
x
|
678
|
-
7
|
679
|
-
run_all
|
680
|
-
i
|
681
|
-
31
|
682
|
-
5
|
683
|
-
45
|
684
|
-
0
|
685
|
-
1
|
686
|
-
5
|
687
|
-
45
|
688
|
-
2
|
689
|
-
3
|
690
|
-
45
|
691
|
-
4
|
692
|
-
5
|
693
|
-
7
|
694
|
-
6
|
695
|
-
64
|
696
|
-
7
|
697
|
-
7
|
698
|
-
64
|
699
|
-
49
|
700
|
-
8
|
701
|
-
2
|
702
|
-
49
|
703
|
-
9
|
704
|
-
1
|
705
|
-
49
|
706
|
-
10
|
707
|
-
2
|
708
|
-
47
|
709
|
-
49
|
710
|
-
11
|
711
|
-
1
|
712
|
-
11
|
713
|
-
I
|
714
|
-
7
|
715
|
-
I
|
716
|
-
0
|
717
|
-
I
|
718
|
-
0
|
719
|
-
I
|
720
|
-
0
|
721
|
-
n
|
722
|
-
p
|
723
|
-
12
|
724
|
-
x
|
725
|
-
7
|
726
|
-
Watcher
|
727
|
-
n
|
728
|
-
x
|
729
|
-
3
|
730
|
-
Dir
|
731
|
-
n
|
732
|
-
x
|
733
|
-
4
|
734
|
-
File
|
735
|
-
n
|
736
|
-
s
|
737
|
-
2
|
738
|
-
**
|
739
|
-
s
|
740
|
-
8
|
741
|
-
*.coffee
|
742
|
-
x
|
743
|
-
4
|
744
|
-
join
|
745
|
-
x
|
746
|
-
4
|
747
|
-
glob
|
748
|
-
x
|
749
|
-
11
|
750
|
-
match_files
|
751
|
-
x
|
752
|
-
13
|
753
|
-
run_on_change
|
754
|
-
p
|
755
|
-
5
|
756
|
-
I
|
757
|
-
-1
|
758
|
-
I
|
759
|
-
1c
|
760
|
-
I
|
761
|
-
0
|
762
|
-
I
|
763
|
-
1d
|
764
|
-
I
|
765
|
-
1f
|
766
|
-
x
|
767
|
-
70
|
768
|
-
/Users/michi/Repositories/guard-coffeescript/lib/guard/coffeescript.rb
|
769
|
-
p
|
770
|
-
0
|
771
|
-
x
|
772
|
-
13
|
773
|
-
run_on_change
|
774
|
-
M
|
775
|
-
1
|
776
|
-
n
|
777
|
-
n
|
778
|
-
x
|
779
|
-
13
|
780
|
-
run_on_change
|
781
|
-
i
|
782
|
-
43
|
783
|
-
45
|
784
|
-
0
|
785
|
-
1
|
786
|
-
45
|
787
|
-
2
|
788
|
-
3
|
789
|
-
20
|
790
|
-
0
|
791
|
-
49
|
792
|
-
4
|
793
|
-
1
|
794
|
-
5
|
795
|
-
48
|
796
|
-
5
|
797
|
-
5
|
798
|
-
48
|
799
|
-
6
|
800
|
-
49
|
801
|
-
7
|
802
|
-
3
|
803
|
-
97
|
804
|
-
37
|
805
|
-
19
|
806
|
-
1
|
807
|
-
15
|
808
|
-
37
|
809
|
-
19
|
810
|
-
2
|
811
|
-
15
|
812
|
-
15
|
813
|
-
2
|
814
|
-
15
|
815
|
-
5
|
816
|
-
20
|
817
|
-
1
|
818
|
-
47
|
819
|
-
49
|
820
|
-
8
|
821
|
-
1
|
822
|
-
15
|
823
|
-
20
|
824
|
-
2
|
825
|
-
11
|
826
|
-
I
|
827
|
-
7
|
828
|
-
I
|
829
|
-
3
|
830
|
-
I
|
831
|
-
1
|
832
|
-
I
|
833
|
-
1
|
834
|
-
n
|
835
|
-
p
|
836
|
-
9
|
837
|
-
x
|
838
|
-
6
|
839
|
-
Runner
|
840
|
-
n
|
841
|
-
x
|
842
|
-
9
|
843
|
-
Inspector
|
844
|
-
n
|
845
|
-
x
|
846
|
-
5
|
847
|
-
clean
|
848
|
-
x
|
849
|
-
8
|
850
|
-
watchers
|
851
|
-
x
|
852
|
-
7
|
853
|
-
options
|
854
|
-
x
|
855
|
-
3
|
856
|
-
run
|
857
|
-
x
|
858
|
-
6
|
859
|
-
notify
|
860
|
-
p
|
861
|
-
9
|
862
|
-
I
|
863
|
-
-1
|
864
|
-
I
|
865
|
-
20
|
866
|
-
I
|
867
|
-
0
|
868
|
-
I
|
869
|
-
21
|
870
|
-
I
|
871
|
-
20
|
872
|
-
I
|
873
|
-
22
|
874
|
-
I
|
875
|
-
28
|
876
|
-
I
|
877
|
-
24
|
878
|
-
I
|
879
|
-
2b
|
880
|
-
x
|
881
|
-
70
|
882
|
-
/Users/michi/Repositories/guard-coffeescript/lib/guard/coffeescript.rb
|
883
|
-
p
|
884
|
-
3
|
885
|
-
x
|
886
|
-
5
|
887
|
-
paths
|
888
|
-
x
|
889
|
-
13
|
890
|
-
changed_files
|
891
|
-
x
|
892
|
-
7
|
893
|
-
success
|
894
|
-
x
|
895
|
-
7
|
896
|
-
private
|
897
|
-
x
|
898
|
-
6
|
899
|
-
notify
|
900
|
-
M
|
901
|
-
1
|
902
|
-
n
|
903
|
-
n
|
904
|
-
x
|
905
|
-
6
|
906
|
-
notify
|
907
|
-
i
|
908
|
-
12
|
909
|
-
44
|
910
|
-
43
|
911
|
-
0
|
912
|
-
49
|
913
|
-
1
|
914
|
-
0
|
915
|
-
56
|
916
|
-
2
|
917
|
-
50
|
918
|
-
3
|
919
|
-
0
|
920
|
-
11
|
921
|
-
I
|
922
|
-
3
|
923
|
-
I
|
924
|
-
1
|
925
|
-
I
|
926
|
-
1
|
927
|
-
I
|
928
|
-
1
|
929
|
-
n
|
930
|
-
p
|
931
|
-
4
|
932
|
-
x
|
933
|
-
5
|
934
|
-
Guard
|
935
|
-
x
|
936
|
-
6
|
937
|
-
guards
|
938
|
-
M
|
939
|
-
1
|
940
|
-
p
|
941
|
-
2
|
942
|
-
x
|
943
|
-
9
|
944
|
-
for_block
|
945
|
-
t
|
946
|
-
n
|
947
|
-
x
|
948
|
-
6
|
949
|
-
notify
|
950
|
-
i
|
951
|
-
36
|
952
|
-
57
|
953
|
-
19
|
954
|
-
0
|
955
|
-
15
|
956
|
-
45
|
957
|
-
0
|
958
|
-
1
|
959
|
-
20
|
960
|
-
0
|
961
|
-
21
|
962
|
-
1
|
963
|
-
0
|
964
|
-
49
|
965
|
-
2
|
966
|
-
2
|
967
|
-
19
|
968
|
-
1
|
969
|
-
15
|
970
|
-
20
|
971
|
-
1
|
972
|
-
49
|
973
|
-
3
|
974
|
-
0
|
975
|
-
9
|
976
|
-
28
|
977
|
-
1
|
978
|
-
8
|
979
|
-
35
|
980
|
-
20
|
981
|
-
0
|
982
|
-
20
|
983
|
-
1
|
984
|
-
49
|
985
|
-
4
|
986
|
-
1
|
987
|
-
11
|
988
|
-
I
|
989
|
-
6
|
990
|
-
I
|
991
|
-
2
|
992
|
-
I
|
993
|
-
1
|
994
|
-
I
|
995
|
-
1
|
996
|
-
n
|
997
|
-
p
|
998
|
-
5
|
999
|
-
x
|
1000
|
-
7
|
1001
|
-
Watcher
|
1002
|
-
n
|
1003
|
-
x
|
1004
|
-
11
|
1005
|
-
match_files
|
1006
|
-
x
|
1007
|
-
6
|
1008
|
-
empty?
|
1009
|
-
x
|
1010
|
-
13
|
1011
|
-
run_on_change
|
1012
|
-
p
|
1013
|
-
9
|
1014
|
-
I
|
1015
|
-
0
|
1016
|
-
I
|
1017
|
-
2a
|
1018
|
-
I
|
1019
|
-
4
|
1020
|
-
I
|
1021
|
-
2b
|
1022
|
-
I
|
1023
|
-
12
|
1024
|
-
I
|
1025
|
-
2c
|
1026
|
-
I
|
1027
|
-
23
|
1028
|
-
I
|
1029
|
-
0
|
1030
|
-
I
|
1031
|
-
24
|
1032
|
-
x
|
1033
|
-
70
|
1034
|
-
/Users/michi/Repositories/guard-coffeescript/lib/guard/coffeescript.rb
|
1035
|
-
p
|
1036
|
-
2
|
1037
|
-
x
|
1038
|
-
5
|
1039
|
-
guard
|
1040
|
-
x
|
1041
|
-
5
|
1042
|
-
paths
|
1043
|
-
x
|
1044
|
-
4
|
1045
|
-
each
|
1046
|
-
p
|
1047
|
-
5
|
1048
|
-
I
|
1049
|
-
-1
|
1050
|
-
I
|
1051
|
-
29
|
1052
|
-
I
|
1053
|
-
0
|
1054
|
-
I
|
1055
|
-
2a
|
1056
|
-
I
|
1057
|
-
c
|
1058
|
-
x
|
1059
|
-
70
|
1060
|
-
/Users/michi/Repositories/guard-coffeescript/lib/guard/coffeescript.rb
|
1061
|
-
p
|
1062
|
-
1
|
1063
|
-
x
|
1064
|
-
13
|
1065
|
-
changed_files
|
1066
|
-
p
|
1067
|
-
17
|
1068
|
-
I
|
1069
|
-
2
|
1070
|
-
I
|
1071
|
-
8
|
1072
|
-
I
|
1073
|
-
d
|
1074
|
-
I
|
1075
|
-
9
|
1076
|
-
I
|
1077
|
-
18
|
1078
|
-
I
|
1079
|
-
a
|
1080
|
-
I
|
1081
|
-
23
|
1082
|
-
I
|
1083
|
-
c
|
1084
|
-
I
|
1085
|
-
31
|
1086
|
-
I
|
1087
|
-
1c
|
1088
|
-
I
|
1089
|
-
3f
|
1090
|
-
I
|
1091
|
-
20
|
1092
|
-
I
|
1093
|
-
4d
|
1094
|
-
I
|
1095
|
-
27
|
1096
|
-
I
|
1097
|
-
51
|
1098
|
-
I
|
1099
|
-
29
|
1100
|
-
I
|
1101
|
-
5f
|
1102
|
-
x
|
1103
|
-
70
|
1104
|
-
/Users/michi/Repositories/guard-coffeescript/lib/guard/coffeescript.rb
|
1105
|
-
p
|
1106
|
-
0
|
1107
|
-
x
|
1108
|
-
13
|
1109
|
-
attach_method
|
1110
|
-
p
|
1111
|
-
3
|
1112
|
-
I
|
1113
|
-
2
|
1114
|
-
I
|
1115
|
-
6
|
1116
|
-
I
|
1117
|
-
1f
|
1118
|
-
x
|
1119
|
-
70
|
1120
|
-
/Users/michi/Repositories/guard-coffeescript/lib/guard/coffeescript.rb
|
1121
|
-
p
|
1122
|
-
0
|
1123
|
-
x
|
1124
|
-
13
|
1125
|
-
attach_method
|
1126
|
-
p
|
1127
|
-
9
|
1128
|
-
I
|
1129
|
-
0
|
1130
|
-
I
|
1131
|
-
1
|
1132
|
-
I
|
1133
|
-
9
|
1134
|
-
I
|
1135
|
-
2
|
1136
|
-
I
|
1137
|
-
12
|
1138
|
-
I
|
1139
|
-
3
|
1140
|
-
I
|
1141
|
-
1b
|
1142
|
-
I
|
1143
|
-
5
|
1144
|
-
I
|
1145
|
-
37
|
1146
|
-
x
|
1147
|
-
70
|
1148
|
-
/Users/michi/Repositories/guard-coffeescript/lib/guard/coffeescript.rb
|
1149
|
-
p
|
1150
|
-
0
|