guard-coffeescript 0.5.4 → 0.5.5
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +1 -1
- data/README.md +8 -1
- data/lib/guard/coffeescript/runner.rb +2 -2
- data/lib/guard/coffeescript/version.rb +1 -1
- data/lib/guard/coffeescript/version.rbc +203 -0
- metadata +121 -72
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -283,6 +283,13 @@ guard 'coffeescript', :output => 'public/javascripts/compiled' do
|
|
283
283
|
end
|
284
284
|
```
|
285
285
|
|
286
|
+
## Shameless self promotion
|
287
|
+
|
288
|
+
Developed by Michael Kessler, sponsored by [mksoft.ch](https://mksoft.ch).
|
289
|
+
|
290
|
+
If you like Guard::CoffeeScript, you can watch the repository at [GitHub](https://github.com/netzpirat/guard-coffeescript) and
|
291
|
+
follow [@netzpirat](https://twitter.com/#!/netzpirat) on Twitter for project updates.
|
292
|
+
|
286
293
|
## Issues
|
287
294
|
|
288
295
|
You can report issues and feature requests to [GitHub Issues](https://github.com/netzpirat/guard-coffeescript/issues). Try to figure out
|
@@ -336,7 +343,7 @@ so much growing and comprehensive.
|
|
336
343
|
|
337
344
|
(The MIT License)
|
338
345
|
|
339
|
-
Copyright (c) 2010
|
346
|
+
Copyright (c) 2010-2012 Michael Kessler
|
340
347
|
|
341
348
|
Permission is hereby granted, free of charge, to any person obtaining
|
342
349
|
a copy of this software and associated documentation files (the
|
@@ -61,7 +61,7 @@ module Guard
|
|
61
61
|
begin
|
62
62
|
content = compile(file, options)
|
63
63
|
changed_files << write_javascript_file(content, file, directory, options)
|
64
|
-
rescue
|
64
|
+
rescue ExecJS::ProgramError => e
|
65
65
|
error_message = file + ': ' + e.message.to_s
|
66
66
|
errors << error_message
|
67
67
|
Formatter.error(error_message)
|
@@ -133,7 +133,7 @@ module Guard
|
|
133
133
|
|
134
134
|
watchers.product(files).each do |watcher, file|
|
135
135
|
if matches = file.match(watcher.pattern)
|
136
|
-
target = matches[1] ? File.join(options[:output], File.dirname(matches[1])).gsub(/\/\.$/, '') : options[:output]
|
136
|
+
target = matches[1] ? File.join(options[:output], File.dirname(matches[1])).gsub(/\/\.$/, '') : options[:output] || '.'
|
137
137
|
if directories[target]
|
138
138
|
directories[target] << file
|
139
139
|
else
|
@@ -0,0 +1,203 @@
|
|
1
|
+
!RBIX
|
2
|
+
9595534255132031488
|
3
|
+
x
|
4
|
+
M
|
5
|
+
1
|
6
|
+
n
|
7
|
+
n
|
8
|
+
x
|
9
|
+
10
|
10
|
+
__script__
|
11
|
+
i
|
12
|
+
28
|
13
|
+
99
|
14
|
+
7
|
15
|
+
0
|
16
|
+
65
|
17
|
+
49
|
18
|
+
1
|
19
|
+
2
|
20
|
+
13
|
21
|
+
99
|
22
|
+
12
|
23
|
+
7
|
24
|
+
2
|
25
|
+
12
|
26
|
+
7
|
27
|
+
3
|
28
|
+
12
|
29
|
+
65
|
30
|
+
12
|
31
|
+
49
|
32
|
+
4
|
33
|
+
4
|
34
|
+
15
|
35
|
+
49
|
36
|
+
2
|
37
|
+
0
|
38
|
+
15
|
39
|
+
2
|
40
|
+
11
|
41
|
+
I
|
42
|
+
6
|
43
|
+
I
|
44
|
+
0
|
45
|
+
I
|
46
|
+
0
|
47
|
+
I
|
48
|
+
0
|
49
|
+
n
|
50
|
+
p
|
51
|
+
5
|
52
|
+
x
|
53
|
+
5
|
54
|
+
Guard
|
55
|
+
x
|
56
|
+
11
|
57
|
+
open_module
|
58
|
+
x
|
59
|
+
15
|
60
|
+
__module_init__
|
61
|
+
M
|
62
|
+
1
|
63
|
+
n
|
64
|
+
n
|
65
|
+
x
|
66
|
+
5
|
67
|
+
Guard
|
68
|
+
i
|
69
|
+
28
|
70
|
+
5
|
71
|
+
66
|
72
|
+
99
|
73
|
+
7
|
74
|
+
0
|
75
|
+
65
|
76
|
+
49
|
77
|
+
1
|
78
|
+
2
|
79
|
+
13
|
80
|
+
99
|
81
|
+
12
|
82
|
+
7
|
83
|
+
2
|
84
|
+
12
|
85
|
+
7
|
86
|
+
3
|
87
|
+
12
|
88
|
+
65
|
89
|
+
12
|
90
|
+
49
|
91
|
+
4
|
92
|
+
4
|
93
|
+
15
|
94
|
+
49
|
95
|
+
2
|
96
|
+
0
|
97
|
+
11
|
98
|
+
I
|
99
|
+
6
|
100
|
+
I
|
101
|
+
0
|
102
|
+
I
|
103
|
+
0
|
104
|
+
I
|
105
|
+
0
|
106
|
+
n
|
107
|
+
p
|
108
|
+
5
|
109
|
+
x
|
110
|
+
19
|
111
|
+
CoffeeScriptVersion
|
112
|
+
x
|
113
|
+
11
|
114
|
+
open_module
|
115
|
+
x
|
116
|
+
15
|
117
|
+
__module_init__
|
118
|
+
M
|
119
|
+
1
|
120
|
+
n
|
121
|
+
n
|
122
|
+
x
|
123
|
+
19
|
124
|
+
CoffeeScriptVersion
|
125
|
+
i
|
126
|
+
12
|
127
|
+
5
|
128
|
+
66
|
129
|
+
65
|
130
|
+
7
|
131
|
+
0
|
132
|
+
7
|
133
|
+
1
|
134
|
+
64
|
135
|
+
49
|
136
|
+
2
|
137
|
+
2
|
138
|
+
11
|
139
|
+
I
|
140
|
+
3
|
141
|
+
I
|
142
|
+
0
|
143
|
+
I
|
144
|
+
0
|
145
|
+
I
|
146
|
+
0
|
147
|
+
n
|
148
|
+
p
|
149
|
+
3
|
150
|
+
x
|
151
|
+
7
|
152
|
+
VERSION
|
153
|
+
s
|
154
|
+
5
|
155
|
+
0.5.4
|
156
|
+
x
|
157
|
+
9
|
158
|
+
const_set
|
159
|
+
p
|
160
|
+
3
|
161
|
+
I
|
162
|
+
2
|
163
|
+
I
|
164
|
+
4
|
165
|
+
I
|
166
|
+
c
|
167
|
+
x
|
168
|
+
78
|
169
|
+
/Users/michi/Repositories/guard-coffeescript/lib/guard/coffeescript/version.rb
|
170
|
+
p
|
171
|
+
0
|
172
|
+
x
|
173
|
+
13
|
174
|
+
attach_method
|
175
|
+
p
|
176
|
+
3
|
177
|
+
I
|
178
|
+
2
|
179
|
+
I
|
180
|
+
2
|
181
|
+
I
|
182
|
+
1c
|
183
|
+
x
|
184
|
+
78
|
185
|
+
/Users/michi/Repositories/guard-coffeescript/lib/guard/coffeescript/version.rb
|
186
|
+
p
|
187
|
+
0
|
188
|
+
x
|
189
|
+
13
|
190
|
+
attach_method
|
191
|
+
p
|
192
|
+
3
|
193
|
+
I
|
194
|
+
0
|
195
|
+
I
|
196
|
+
1
|
197
|
+
I
|
198
|
+
1c
|
199
|
+
x
|
200
|
+
78
|
201
|
+
/Users/michi/Repositories/guard-coffeescript/lib/guard/coffeescript/version.rb
|
202
|
+
p
|
203
|
+
0
|
metadata
CHANGED
@@ -1,132 +1,181 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-coffeescript
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 1
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 5
|
9
|
+
- 5
|
10
|
+
version: 0.5.5
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Michael Kessler
|
9
14
|
autorequire:
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
17
|
+
|
18
|
+
date: 2012-03-13 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
15
21
|
name: guard
|
16
|
-
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
17
24
|
none: false
|
18
|
-
requirements:
|
19
|
-
- -
|
20
|
-
- !ruby/object:Gem::Version
|
25
|
+
requirements:
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
hash: 57
|
29
|
+
segments:
|
30
|
+
- 0
|
31
|
+
- 8
|
32
|
+
- 3
|
21
33
|
version: 0.8.3
|
22
34
|
type: :runtime
|
23
|
-
|
24
|
-
|
25
|
-
- !ruby/object:Gem::Dependency
|
35
|
+
version_requirements: *id001
|
36
|
+
- !ruby/object:Gem::Dependency
|
26
37
|
name: coffee-script
|
27
|
-
|
38
|
+
prerelease: false
|
39
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
28
40
|
none: false
|
29
|
-
requirements:
|
30
|
-
- -
|
31
|
-
- !ruby/object:Gem::Version
|
41
|
+
requirements:
|
42
|
+
- - ">="
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
hash: 7
|
45
|
+
segments:
|
46
|
+
- 2
|
47
|
+
- 2
|
48
|
+
- 0
|
32
49
|
version: 2.2.0
|
33
50
|
type: :runtime
|
34
|
-
|
35
|
-
|
36
|
-
- !ruby/object:Gem::Dependency
|
51
|
+
version_requirements: *id002
|
52
|
+
- !ruby/object:Gem::Dependency
|
37
53
|
name: bundler
|
38
|
-
|
54
|
+
prerelease: false
|
55
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
39
56
|
none: false
|
40
|
-
requirements:
|
57
|
+
requirements:
|
41
58
|
- - ~>
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
hash: 15
|
61
|
+
segments:
|
62
|
+
- 1
|
63
|
+
- 0
|
64
|
+
version: "1.0"
|
44
65
|
type: :development
|
45
|
-
|
46
|
-
|
47
|
-
- !ruby/object:Gem::Dependency
|
66
|
+
version_requirements: *id003
|
67
|
+
- !ruby/object:Gem::Dependency
|
48
68
|
name: guard-rspec
|
49
|
-
|
69
|
+
prerelease: false
|
70
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
50
71
|
none: false
|
51
|
-
requirements:
|
72
|
+
requirements:
|
52
73
|
- - ~>
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
hash: 7
|
76
|
+
segments:
|
77
|
+
- 0
|
78
|
+
- 6
|
79
|
+
version: "0.6"
|
55
80
|
type: :development
|
56
|
-
|
57
|
-
|
58
|
-
- !ruby/object:Gem::Dependency
|
81
|
+
version_requirements: *id004
|
82
|
+
- !ruby/object:Gem::Dependency
|
59
83
|
name: rspec
|
60
|
-
|
84
|
+
prerelease: false
|
85
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
61
86
|
none: false
|
62
|
-
requirements:
|
87
|
+
requirements:
|
63
88
|
- - ~>
|
64
|
-
- !ruby/object:Gem::Version
|
65
|
-
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
hash: 19
|
91
|
+
segments:
|
92
|
+
- 2
|
93
|
+
- 8
|
94
|
+
version: "2.8"
|
66
95
|
type: :development
|
67
|
-
|
68
|
-
|
69
|
-
- !ruby/object:Gem::Dependency
|
96
|
+
version_requirements: *id005
|
97
|
+
- !ruby/object:Gem::Dependency
|
70
98
|
name: yard
|
71
|
-
|
99
|
+
prerelease: false
|
100
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
72
101
|
none: false
|
73
|
-
requirements:
|
74
|
-
- -
|
75
|
-
- !ruby/object:Gem::Version
|
76
|
-
|
102
|
+
requirements:
|
103
|
+
- - ">="
|
104
|
+
- !ruby/object:Gem::Version
|
105
|
+
hash: 3
|
106
|
+
segments:
|
107
|
+
- 0
|
108
|
+
version: "0"
|
77
109
|
type: :development
|
78
|
-
|
79
|
-
|
80
|
-
- !ruby/object:Gem::Dependency
|
110
|
+
version_requirements: *id006
|
111
|
+
- !ruby/object:Gem::Dependency
|
81
112
|
name: redcarpet
|
82
|
-
|
113
|
+
prerelease: false
|
114
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
83
115
|
none: false
|
84
|
-
requirements:
|
85
|
-
- -
|
86
|
-
- !ruby/object:Gem::Version
|
87
|
-
|
116
|
+
requirements:
|
117
|
+
- - ">="
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
hash: 3
|
120
|
+
segments:
|
121
|
+
- 0
|
122
|
+
version: "0"
|
88
123
|
type: :development
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
CoffeeScripts
|
93
|
-
email:
|
124
|
+
version_requirements: *id007
|
125
|
+
description: Guard::CoffeeScript automatically generates your JavaScripts from your CoffeeScripts
|
126
|
+
email:
|
94
127
|
- michi@netzpiraten.ch
|
95
128
|
executables: []
|
129
|
+
|
96
130
|
extensions: []
|
131
|
+
|
97
132
|
extra_rdoc_files: []
|
98
|
-
|
133
|
+
|
134
|
+
files:
|
99
135
|
- lib/guard/coffeescript/formatter.rb
|
100
136
|
- lib/guard/coffeescript/inspector.rb
|
101
137
|
- lib/guard/coffeescript/runner.rb
|
102
138
|
- lib/guard/coffeescript/templates/Guardfile
|
103
139
|
- lib/guard/coffeescript/version.rb
|
140
|
+
- lib/guard/coffeescript/version.rbc
|
104
141
|
- lib/guard/coffeescript.rb
|
105
142
|
- LICENSE
|
106
143
|
- README.md
|
107
144
|
homepage: http://github.com/netzpirat/guard-coffeescript
|
108
145
|
licenses: []
|
146
|
+
|
109
147
|
post_install_message:
|
110
148
|
rdoc_options: []
|
111
|
-
|
149
|
+
|
150
|
+
require_paths:
|
112
151
|
- lib
|
113
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
152
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
114
153
|
none: false
|
115
|
-
requirements:
|
116
|
-
- -
|
117
|
-
- !ruby/object:Gem::Version
|
118
|
-
|
119
|
-
|
154
|
+
requirements:
|
155
|
+
- - ">="
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
hash: 3
|
158
|
+
segments:
|
159
|
+
- 0
|
160
|
+
version: "0"
|
161
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
120
162
|
none: false
|
121
|
-
requirements:
|
122
|
-
- -
|
123
|
-
- !ruby/object:Gem::Version
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
hash: 23
|
167
|
+
segments:
|
168
|
+
- 1
|
169
|
+
- 3
|
170
|
+
- 6
|
124
171
|
version: 1.3.6
|
125
172
|
requirements: []
|
173
|
+
|
126
174
|
rubyforge_project: guard-coffeescript
|
127
|
-
rubygems_version: 1.8.
|
175
|
+
rubygems_version: 1.8.17
|
128
176
|
signing_key:
|
129
177
|
specification_version: 3
|
130
178
|
summary: Guard gem for CoffeeScript
|
131
179
|
test_files: []
|
180
|
+
|
132
181
|
has_rdoc:
|