guard-coffeescript 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  Guard::CoffeeScript compiles you CoffeeScripts automatically when files are modified.
6
6
 
7
- Tested on MRI Ruby 1.8.6, 1.8.7, 1.9.2 and the latest versions of JRuby & Rubinius.
7
+ Tested on MRI Ruby 1.8.7, 1.9.2 and the latest versions of JRuby & Rubinius.
8
8
 
9
9
  ## Install
10
10
 
@@ -159,8 +159,9 @@ Pull requests are very welcome! Make sure your patches are well tested.
159
159
 
160
160
  * [Aaron Jensen](https://github.com/aaronjensen)
161
161
  * [Patrick Ewing](https://github.com/hoverbird)
162
+ * [Andrew Assarattanakul](https://github.com/vizjerai)
162
163
 
163
- ## Acknowledgment
164
+ ## Acknowledgment
164
165
 
165
166
  The [Guard Team](https://github.com/guard/guard/contributors) for giving us such a nice pice of software
166
167
  that is so easy to extend, one *has* to make a plugin for it!
@@ -5,6 +5,7 @@ require 'guard/watcher'
5
5
  module Guard
6
6
  class CoffeeScript < Guard
7
7
 
8
+ autoload :Formatter, 'guard/coffeescript/formatter'
8
9
  autoload :Inspector, 'guard/coffeescript/inspector'
9
10
  autoload :Runner, 'guard/coffeescript/runner'
10
11
 
@@ -30,7 +31,7 @@ module Guard
30
31
 
31
32
  private
32
33
 
33
- def notify changed_files
34
+ def notify(changed_files)
34
35
  ::Guard.guards.each do |guard|
35
36
  paths = Watcher.match_files(guard, changed_files)
36
37
  guard.run_on_change paths unless paths.empty?
@@ -169,7 +169,7 @@ x
169
169
  12
170
170
  CoffeeScript
171
171
  i
172
- 84
172
+ 95
173
173
  5
174
174
  66
175
175
  5
@@ -194,64 +194,75 @@ i
194
194
  2
195
195
  2
196
196
  15
197
- 99
197
+ 5
198
198
  7
199
199
  5
200
200
  7
201
201
  6
202
+ 64
203
+ 47
204
+ 49
205
+ 2
206
+ 2
207
+ 15
208
+ 99
209
+ 7
210
+ 7
211
+ 7
212
+ 8
202
213
  65
203
214
  67
204
215
  49
205
- 7
216
+ 9
206
217
  0
207
218
  49
208
- 8
219
+ 10
209
220
  4
210
221
  15
211
222
  99
212
223
  7
213
- 9
224
+ 11
214
225
  7
215
- 10
226
+ 12
216
227
  65
217
228
  67
218
229
  49
219
- 7
230
+ 9
220
231
  0
221
232
  49
222
- 8
233
+ 10
223
234
  4
224
235
  15
225
236
  99
226
237
  7
227
- 11
238
+ 13
228
239
  7
229
- 12
240
+ 14
230
241
  65
231
242
  67
232
243
  49
233
- 7
244
+ 9
234
245
  0
235
246
  49
236
- 8
247
+ 10
237
248
  4
238
249
  15
239
250
  5
240
251
  48
241
- 13
252
+ 15
242
253
  15
243
254
  99
244
255
  7
245
- 14
256
+ 16
246
257
  7
247
- 15
258
+ 17
248
259
  65
249
260
  67
250
261
  49
251
- 7
262
+ 9
252
263
  0
253
264
  49
254
- 8
265
+ 10
255
266
  4
256
267
  11
257
268
  I
@@ -264,17 +275,23 @@ I
264
275
  0
265
276
  n
266
277
  p
267
- 16
278
+ 18
268
279
  x
269
280
  9
270
- Inspector
281
+ Formatter
271
282
  s
272
283
  28
273
- guard/coffeescript/inspector
284
+ guard/coffeescript/formatter
274
285
  x
275
286
  8
276
287
  autoload
277
288
  x
289
+ 9
290
+ Inspector
291
+ s
292
+ 28
293
+ guard/coffeescript/inspector
294
+ x
278
295
  6
279
296
  Runner
280
297
  s
@@ -530,39 +547,39 @@ p
530
547
  I
531
548
  -1
532
549
  I
533
- b
550
+ c
534
551
  I
535
552
  17
536
553
  I
537
- c
554
+ d
538
555
  I
539
556
  23
540
557
  I
541
- d
558
+ e
542
559
  I
543
560
  79
544
561
  I
545
- f
562
+ 10
546
563
  I
547
564
  7b
548
565
  I
549
- 13
566
+ 14
550
567
  I
551
568
  84
552
569
  I
553
- 10
570
+ 11
554
571
  I
555
572
  8c
556
573
  I
557
- 11
574
+ 12
558
575
  I
559
576
  94
560
577
  I
561
- 12
578
+ 13
562
579
  I
563
580
  9b
564
581
  I
565
- 13
582
+ 14
566
583
  I
567
584
  a5
568
585
  x
@@ -671,11 +688,11 @@ p
671
688
  I
672
689
  -1
673
690
  I
674
- 16
691
+ 17
675
692
  I
676
693
  0
677
694
  I
678
- 17
695
+ 18
679
696
  I
680
697
  1f
681
698
  x
@@ -765,15 +782,15 @@ p
765
782
  I
766
783
  -1
767
784
  I
768
- 1a
785
+ 1b
769
786
  I
770
787
  0
771
788
  I
772
- 1b
789
+ 1c
773
790
  I
774
791
  17
775
792
  I
776
- 1c
793
+ 1d
777
794
  I
778
795
  1f
779
796
  x
@@ -910,15 +927,15 @@ p
910
927
  I
911
928
  0
912
929
  I
913
- 22
930
+ 23
914
931
  I
915
932
  4
916
933
  I
917
- 23
934
+ 24
918
935
  I
919
936
  12
920
937
  I
921
- 24
938
+ 25
922
939
  I
923
940
  24
924
941
  x
@@ -940,11 +957,11 @@ p
940
957
  I
941
958
  -1
942
959
  I
943
- 21
960
+ 22
944
961
  I
945
962
  0
946
963
  I
947
- 22
964
+ 23
948
965
  I
949
966
  c
950
967
  x
@@ -956,7 +973,7 @@ x
956
973
  13
957
974
  changed_files
958
975
  p
959
- 15
976
+ 17
960
977
  I
961
978
  2
962
979
  I
@@ -968,25 +985,29 @@ I
968
985
  I
969
986
  18
970
987
  I
971
- b
988
+ a
972
989
  I
973
- 26
990
+ 23
974
991
  I
975
- 16
992
+ c
976
993
  I
977
- 34
994
+ 31
978
995
  I
979
- 1a
996
+ 17
980
997
  I
981
- 42
998
+ 3f
982
999
  I
983
- 1f
1000
+ 1b
984
1001
  I
985
- 46
1002
+ 4d
986
1003
  I
987
- 21
1004
+ 20
988
1005
  I
989
- 54
1006
+ 51
1007
+ I
1008
+ 22
1009
+ I
1010
+ 5f
990
1011
  x
991
1012
  70
992
1013
  /Users/michi/Repositories/guard-coffeescript/lib/guard/coffeescript.rb
@@ -0,0 +1,29 @@
1
+ module Guard
2
+ class CoffeeScript
3
+ module Formatter
4
+ class << self
5
+
6
+ def info(message, options={})
7
+ ::Guard::UI.info(message, options)
8
+ end
9
+
10
+ def debug(message, options={})
11
+ ::Guard::UI.debug(message, options)
12
+ end
13
+
14
+ def error(message, options={})
15
+ ::Guard::UI.error(::Guard::UI.send(:color, message, "\e[31m"), options)
16
+ end
17
+
18
+ def success(message, options={})
19
+ ::Guard::UI.info(::Guard::UI.send(:color, message, "\e[32m"), options)
20
+ end
21
+
22
+ def notify(message, options={})
23
+ ::Guard::Notifier.notify(message, options)
24
+ end
25
+
26
+ end
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,904 @@
1
+ !RBIX
2
+ 333337424968067900
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
+ 29
70
+ 5
71
+ 66
72
+ 99
73
+ 7
74
+ 0
75
+ 1
76
+ 65
77
+ 49
78
+ 1
79
+ 3
80
+ 13
81
+ 99
82
+ 12
83
+ 7
84
+ 2
85
+ 12
86
+ 7
87
+ 3
88
+ 12
89
+ 65
90
+ 12
91
+ 49
92
+ 4
93
+ 4
94
+ 15
95
+ 49
96
+ 2
97
+ 0
98
+ 11
99
+ I
100
+ 6
101
+ I
102
+ 0
103
+ I
104
+ 0
105
+ I
106
+ 0
107
+ n
108
+ p
109
+ 5
110
+ x
111
+ 12
112
+ CoffeeScript
113
+ x
114
+ 10
115
+ open_class
116
+ x
117
+ 14
118
+ __class_init__
119
+ M
120
+ 1
121
+ n
122
+ n
123
+ x
124
+ 12
125
+ CoffeeScript
126
+ i
127
+ 28
128
+ 5
129
+ 66
130
+ 99
131
+ 7
132
+ 0
133
+ 65
134
+ 49
135
+ 1
136
+ 2
137
+ 13
138
+ 99
139
+ 12
140
+ 7
141
+ 2
142
+ 12
143
+ 7
144
+ 3
145
+ 12
146
+ 65
147
+ 12
148
+ 49
149
+ 4
150
+ 4
151
+ 15
152
+ 49
153
+ 2
154
+ 0
155
+ 11
156
+ I
157
+ 6
158
+ I
159
+ 0
160
+ I
161
+ 0
162
+ I
163
+ 0
164
+ n
165
+ p
166
+ 5
167
+ x
168
+ 9
169
+ Formatter
170
+ x
171
+ 11
172
+ open_module
173
+ x
174
+ 15
175
+ __module_init__
176
+ M
177
+ 1
178
+ n
179
+ n
180
+ x
181
+ 9
182
+ Formatter
183
+ i
184
+ 28
185
+ 5
186
+ 66
187
+ 5
188
+ 99
189
+ 12
190
+ 49
191
+ 0
192
+ 1
193
+ 13
194
+ 99
195
+ 12
196
+ 7
197
+ 1
198
+ 12
199
+ 7
200
+ 2
201
+ 12
202
+ 65
203
+ 12
204
+ 49
205
+ 3
206
+ 4
207
+ 15
208
+ 54
209
+ 50
210
+ 1
211
+ 0
212
+ 11
213
+ I
214
+ 6
215
+ I
216
+ 0
217
+ I
218
+ 0
219
+ I
220
+ 0
221
+ n
222
+ p
223
+ 4
224
+ x
225
+ 16
226
+ object_metaclass
227
+ x
228
+ 18
229
+ __metaclass_init__
230
+ M
231
+ 1
232
+ n
233
+ n
234
+ x
235
+ 18
236
+ __metaclass_init__
237
+ i
238
+ 72
239
+ 5
240
+ 66
241
+ 99
242
+ 7
243
+ 0
244
+ 7
245
+ 1
246
+ 65
247
+ 67
248
+ 49
249
+ 2
250
+ 0
251
+ 49
252
+ 3
253
+ 4
254
+ 15
255
+ 99
256
+ 7
257
+ 4
258
+ 7
259
+ 5
260
+ 65
261
+ 67
262
+ 49
263
+ 2
264
+ 0
265
+ 49
266
+ 3
267
+ 4
268
+ 15
269
+ 99
270
+ 7
271
+ 6
272
+ 7
273
+ 7
274
+ 65
275
+ 67
276
+ 49
277
+ 2
278
+ 0
279
+ 49
280
+ 3
281
+ 4
282
+ 15
283
+ 99
284
+ 7
285
+ 8
286
+ 7
287
+ 9
288
+ 65
289
+ 67
290
+ 49
291
+ 2
292
+ 0
293
+ 49
294
+ 3
295
+ 4
296
+ 15
297
+ 99
298
+ 7
299
+ 10
300
+ 7
301
+ 11
302
+ 65
303
+ 67
304
+ 49
305
+ 2
306
+ 0
307
+ 49
308
+ 3
309
+ 4
310
+ 11
311
+ I
312
+ 5
313
+ I
314
+ 0
315
+ I
316
+ 0
317
+ I
318
+ 0
319
+ n
320
+ p
321
+ 12
322
+ x
323
+ 4
324
+ info
325
+ M
326
+ 1
327
+ n
328
+ n
329
+ x
330
+ 4
331
+ info
332
+ i
333
+ 27
334
+ 23
335
+ 1
336
+ 10
337
+ 14
338
+ 44
339
+ 43
340
+ 0
341
+ 78
342
+ 49
343
+ 1
344
+ 1
345
+ 19
346
+ 1
347
+ 15
348
+ 44
349
+ 43
350
+ 2
351
+ 43
352
+ 3
353
+ 20
354
+ 0
355
+ 20
356
+ 1
357
+ 49
358
+ 4
359
+ 2
360
+ 11
361
+ I
362
+ 5
363
+ I
364
+ 2
365
+ I
366
+ 1
367
+ I
368
+ 2
369
+ n
370
+ p
371
+ 5
372
+ x
373
+ 4
374
+ Hash
375
+ x
376
+ 16
377
+ new_from_literal
378
+ x
379
+ 5
380
+ Guard
381
+ x
382
+ 2
383
+ UI
384
+ x
385
+ 4
386
+ info
387
+ p
388
+ 5
389
+ I
390
+ -1
391
+ I
392
+ 6
393
+ I
394
+ e
395
+ I
396
+ 7
397
+ I
398
+ 1b
399
+ x
400
+ 80
401
+ /Users/michi/Repositories/guard-coffeescript/lib/guard/coffeescript/formatter.rb
402
+ p
403
+ 2
404
+ x
405
+ 7
406
+ message
407
+ x
408
+ 7
409
+ options
410
+ x
411
+ 17
412
+ method_visibility
413
+ x
414
+ 15
415
+ add_defn_method
416
+ x
417
+ 5
418
+ debug
419
+ M
420
+ 1
421
+ n
422
+ n
423
+ x
424
+ 5
425
+ debug
426
+ i
427
+ 27
428
+ 23
429
+ 1
430
+ 10
431
+ 14
432
+ 44
433
+ 43
434
+ 0
435
+ 78
436
+ 49
437
+ 1
438
+ 1
439
+ 19
440
+ 1
441
+ 15
442
+ 44
443
+ 43
444
+ 2
445
+ 43
446
+ 3
447
+ 20
448
+ 0
449
+ 20
450
+ 1
451
+ 49
452
+ 4
453
+ 2
454
+ 11
455
+ I
456
+ 5
457
+ I
458
+ 2
459
+ I
460
+ 1
461
+ I
462
+ 2
463
+ n
464
+ p
465
+ 5
466
+ x
467
+ 4
468
+ Hash
469
+ x
470
+ 16
471
+ new_from_literal
472
+ x
473
+ 5
474
+ Guard
475
+ x
476
+ 2
477
+ UI
478
+ x
479
+ 5
480
+ debug
481
+ p
482
+ 5
483
+ I
484
+ -1
485
+ I
486
+ a
487
+ I
488
+ e
489
+ I
490
+ b
491
+ I
492
+ 1b
493
+ x
494
+ 80
495
+ /Users/michi/Repositories/guard-coffeescript/lib/guard/coffeescript/formatter.rb
496
+ p
497
+ 2
498
+ x
499
+ 7
500
+ message
501
+ x
502
+ 7
503
+ options
504
+ x
505
+ 5
506
+ error
507
+ M
508
+ 1
509
+ n
510
+ n
511
+ x
512
+ 5
513
+ error
514
+ i
515
+ 40
516
+ 23
517
+ 1
518
+ 10
519
+ 14
520
+ 44
521
+ 43
522
+ 0
523
+ 78
524
+ 49
525
+ 1
526
+ 1
527
+ 19
528
+ 1
529
+ 15
530
+ 44
531
+ 43
532
+ 2
533
+ 43
534
+ 3
535
+ 44
536
+ 43
537
+ 2
538
+ 43
539
+ 3
540
+ 7
541
+ 4
542
+ 20
543
+ 0
544
+ 7
545
+ 5
546
+ 64
547
+ 49
548
+ 6
549
+ 3
550
+ 20
551
+ 1
552
+ 49
553
+ 7
554
+ 2
555
+ 11
556
+ I
557
+ 7
558
+ I
559
+ 2
560
+ I
561
+ 1
562
+ I
563
+ 2
564
+ n
565
+ p
566
+ 8
567
+ x
568
+ 4
569
+ Hash
570
+ x
571
+ 16
572
+ new_from_literal
573
+ x
574
+ 5
575
+ Guard
576
+ x
577
+ 2
578
+ UI
579
+ x
580
+ 5
581
+ color
582
+ s
583
+ 5
584
+ 
585
+ x
586
+ 4
587
+ send
588
+ x
589
+ 5
590
+ error
591
+ p
592
+ 5
593
+ I
594
+ -1
595
+ I
596
+ e
597
+ I
598
+ e
599
+ I
600
+ f
601
+ I
602
+ 28
603
+ x
604
+ 80
605
+ /Users/michi/Repositories/guard-coffeescript/lib/guard/coffeescript/formatter.rb
606
+ p
607
+ 2
608
+ x
609
+ 7
610
+ message
611
+ x
612
+ 7
613
+ options
614
+ x
615
+ 7
616
+ success
617
+ M
618
+ 1
619
+ n
620
+ n
621
+ x
622
+ 7
623
+ success
624
+ i
625
+ 40
626
+ 23
627
+ 1
628
+ 10
629
+ 14
630
+ 44
631
+ 43
632
+ 0
633
+ 78
634
+ 49
635
+ 1
636
+ 1
637
+ 19
638
+ 1
639
+ 15
640
+ 44
641
+ 43
642
+ 2
643
+ 43
644
+ 3
645
+ 44
646
+ 43
647
+ 2
648
+ 43
649
+ 3
650
+ 7
651
+ 4
652
+ 20
653
+ 0
654
+ 7
655
+ 5
656
+ 64
657
+ 49
658
+ 6
659
+ 3
660
+ 20
661
+ 1
662
+ 49
663
+ 7
664
+ 2
665
+ 11
666
+ I
667
+ 7
668
+ I
669
+ 2
670
+ I
671
+ 1
672
+ I
673
+ 2
674
+ n
675
+ p
676
+ 8
677
+ x
678
+ 4
679
+ Hash
680
+ x
681
+ 16
682
+ new_from_literal
683
+ x
684
+ 5
685
+ Guard
686
+ x
687
+ 2
688
+ UI
689
+ x
690
+ 5
691
+ color
692
+ s
693
+ 5
694
+ 
695
+ x
696
+ 4
697
+ send
698
+ x
699
+ 4
700
+ info
701
+ p
702
+ 5
703
+ I
704
+ -1
705
+ I
706
+ 12
707
+ I
708
+ e
709
+ I
710
+ 13
711
+ I
712
+ 28
713
+ x
714
+ 80
715
+ /Users/michi/Repositories/guard-coffeescript/lib/guard/coffeescript/formatter.rb
716
+ p
717
+ 2
718
+ x
719
+ 7
720
+ message
721
+ x
722
+ 7
723
+ options
724
+ x
725
+ 6
726
+ notify
727
+ M
728
+ 1
729
+ n
730
+ n
731
+ x
732
+ 6
733
+ notify
734
+ i
735
+ 27
736
+ 23
737
+ 1
738
+ 10
739
+ 14
740
+ 44
741
+ 43
742
+ 0
743
+ 78
744
+ 49
745
+ 1
746
+ 1
747
+ 19
748
+ 1
749
+ 15
750
+ 44
751
+ 43
752
+ 2
753
+ 43
754
+ 3
755
+ 20
756
+ 0
757
+ 20
758
+ 1
759
+ 49
760
+ 4
761
+ 2
762
+ 11
763
+ I
764
+ 5
765
+ I
766
+ 2
767
+ I
768
+ 1
769
+ I
770
+ 2
771
+ n
772
+ p
773
+ 5
774
+ x
775
+ 4
776
+ Hash
777
+ x
778
+ 16
779
+ new_from_literal
780
+ x
781
+ 5
782
+ Guard
783
+ x
784
+ 8
785
+ Notifier
786
+ x
787
+ 6
788
+ notify
789
+ p
790
+ 5
791
+ I
792
+ -1
793
+ I
794
+ 16
795
+ I
796
+ e
797
+ I
798
+ 17
799
+ I
800
+ 1b
801
+ x
802
+ 80
803
+ /Users/michi/Repositories/guard-coffeescript/lib/guard/coffeescript/formatter.rb
804
+ p
805
+ 2
806
+ x
807
+ 7
808
+ message
809
+ x
810
+ 7
811
+ options
812
+ p
813
+ 11
814
+ I
815
+ 2
816
+ I
817
+ 6
818
+ I
819
+ 10
820
+ I
821
+ a
822
+ I
823
+ 1e
824
+ I
825
+ e
826
+ I
827
+ 2c
828
+ I
829
+ 12
830
+ I
831
+ 3a
832
+ I
833
+ 16
834
+ I
835
+ 48
836
+ x
837
+ 80
838
+ /Users/michi/Repositories/guard-coffeescript/lib/guard/coffeescript/formatter.rb
839
+ p
840
+ 0
841
+ x
842
+ 13
843
+ attach_method
844
+ p
845
+ 3
846
+ I
847
+ 2
848
+ I
849
+ 4
850
+ I
851
+ 1c
852
+ x
853
+ 80
854
+ /Users/michi/Repositories/guard-coffeescript/lib/guard/coffeescript/formatter.rb
855
+ p
856
+ 0
857
+ x
858
+ 13
859
+ attach_method
860
+ p
861
+ 3
862
+ I
863
+ 2
864
+ I
865
+ 3
866
+ I
867
+ 1c
868
+ x
869
+ 80
870
+ /Users/michi/Repositories/guard-coffeescript/lib/guard/coffeescript/formatter.rb
871
+ p
872
+ 0
873
+ x
874
+ 13
875
+ attach_method
876
+ p
877
+ 3
878
+ I
879
+ 2
880
+ I
881
+ 2
882
+ I
883
+ 1d
884
+ x
885
+ 80
886
+ /Users/michi/Repositories/guard-coffeescript/lib/guard/coffeescript/formatter.rb
887
+ p
888
+ 0
889
+ x
890
+ 13
891
+ attach_method
892
+ p
893
+ 3
894
+ I
895
+ 0
896
+ I
897
+ 1
898
+ I
899
+ 1c
900
+ x
901
+ 80
902
+ /Users/michi/Repositories/guard-coffeescript/lib/guard/coffeescript/formatter.rb
903
+ p
904
+ 0