guard-coffeescript 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +85 -40
- data/lib/guard/coffeescript.rb +4 -2
- data/lib/guard/coffeescript.rbc +79 -41
- data/lib/guard/coffeescript/formatter.rb +9 -3
- data/lib/guard/coffeescript/formatter.rbc +182 -55
- data/lib/guard/coffeescript/inspector.rbc +15 -10
- data/lib/guard/coffeescript/runner.rb +2 -1
- data/lib/guard/coffeescript/runner.rbc +153 -94
- data/lib/guard/coffeescript/version.rb +1 -1
- data/lib/guard/coffeescript/version.rbc +1 -1
- metadata +36 -2
@@ -3,7 +3,7 @@ module Guard
|
|
3
3
|
module Formatter
|
4
4
|
class << self
|
5
5
|
|
6
|
-
def info(message, options={})
|
6
|
+
def info(message, options={ })
|
7
7
|
::Guard::UI.info(message, options)
|
8
8
|
end
|
9
9
|
|
@@ -12,17 +12,23 @@ module Guard
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def error(message, options={})
|
15
|
-
::Guard::UI.error(
|
15
|
+
::Guard::UI.error(color(message, ';31'), options)
|
16
16
|
end
|
17
17
|
|
18
18
|
def success(message, options={})
|
19
|
-
::Guard::UI.info(
|
19
|
+
::Guard::UI.info(color(message, ';32'), options)
|
20
20
|
end
|
21
21
|
|
22
22
|
def notify(message, options={})
|
23
23
|
::Guard::Notifier.notify(message, options)
|
24
24
|
end
|
25
25
|
|
26
|
+
private
|
27
|
+
|
28
|
+
def color(text, color_code)
|
29
|
+
::Guard::UI.send(:color_enabled?) ? "\e[0#{color_code}m#{text}\e[0m" : text
|
30
|
+
end
|
31
|
+
|
26
32
|
end
|
27
33
|
end
|
28
34
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
!RBIX
|
2
|
-
|
2
|
+
6235178746665710376
|
3
3
|
x
|
4
4
|
M
|
5
5
|
1
|
@@ -181,33 +181,35 @@ x
|
|
181
181
|
9
|
182
182
|
Formatter
|
183
183
|
i
|
184
|
-
|
184
|
+
30
|
185
185
|
5
|
186
186
|
66
|
187
187
|
5
|
188
188
|
99
|
189
|
+
43
|
190
|
+
0
|
189
191
|
12
|
190
192
|
49
|
191
|
-
|
193
|
+
1
|
192
194
|
1
|
193
195
|
13
|
194
196
|
99
|
195
197
|
12
|
196
198
|
7
|
197
|
-
|
199
|
+
2
|
198
200
|
12
|
199
201
|
7
|
200
|
-
|
202
|
+
3
|
201
203
|
12
|
202
204
|
65
|
203
205
|
12
|
204
206
|
49
|
205
|
-
|
207
|
+
4
|
206
208
|
4
|
207
209
|
15
|
208
210
|
54
|
209
211
|
50
|
210
|
-
|
212
|
+
2
|
211
213
|
0
|
212
214
|
11
|
213
215
|
I
|
@@ -220,10 +222,13 @@ I
|
|
220
222
|
0
|
221
223
|
n
|
222
224
|
p
|
225
|
+
5
|
226
|
+
x
|
223
227
|
4
|
228
|
+
Type
|
224
229
|
x
|
225
|
-
|
226
|
-
|
230
|
+
22
|
231
|
+
object_singleton_class
|
227
232
|
x
|
228
233
|
18
|
229
234
|
__metaclass_init__
|
@@ -235,7 +240,7 @@ x
|
|
235
240
|
18
|
236
241
|
__metaclass_init__
|
237
242
|
i
|
238
|
-
|
243
|
+
90
|
239
244
|
5
|
240
245
|
66
|
241
246
|
99
|
@@ -307,6 +312,24 @@ i
|
|
307
312
|
49
|
308
313
|
3
|
309
314
|
4
|
315
|
+
15
|
316
|
+
5
|
317
|
+
48
|
318
|
+
12
|
319
|
+
15
|
320
|
+
99
|
321
|
+
7
|
322
|
+
13
|
323
|
+
7
|
324
|
+
14
|
325
|
+
65
|
326
|
+
67
|
327
|
+
49
|
328
|
+
2
|
329
|
+
0
|
330
|
+
49
|
331
|
+
3
|
332
|
+
4
|
310
333
|
11
|
311
334
|
I
|
312
335
|
5
|
@@ -318,7 +341,7 @@ I
|
|
318
341
|
0
|
319
342
|
n
|
320
343
|
p
|
321
|
-
|
344
|
+
15
|
322
345
|
x
|
323
346
|
4
|
324
347
|
info
|
@@ -512,7 +535,7 @@ x
|
|
512
535
|
5
|
513
536
|
error
|
514
537
|
i
|
515
|
-
|
538
|
+
35
|
516
539
|
23
|
517
540
|
1
|
518
541
|
10
|
@@ -532,29 +555,24 @@ i
|
|
532
555
|
2
|
533
556
|
43
|
534
557
|
3
|
535
|
-
|
536
|
-
43
|
537
|
-
2
|
538
|
-
43
|
539
|
-
3
|
540
|
-
7
|
541
|
-
4
|
558
|
+
5
|
542
559
|
20
|
543
560
|
0
|
544
561
|
7
|
545
|
-
|
562
|
+
4
|
546
563
|
64
|
564
|
+
47
|
547
565
|
49
|
548
|
-
|
549
|
-
|
566
|
+
5
|
567
|
+
2
|
550
568
|
20
|
551
569
|
1
|
552
570
|
49
|
553
|
-
|
571
|
+
6
|
554
572
|
2
|
555
573
|
11
|
556
574
|
I
|
557
|
-
|
575
|
+
6
|
558
576
|
I
|
559
577
|
2
|
560
578
|
I
|
@@ -563,7 +581,7 @@ I
|
|
563
581
|
2
|
564
582
|
n
|
565
583
|
p
|
566
|
-
|
584
|
+
7
|
567
585
|
x
|
568
586
|
4
|
569
587
|
Hash
|
@@ -576,15 +594,12 @@ Guard
|
|
576
594
|
x
|
577
595
|
2
|
578
596
|
UI
|
597
|
+
s
|
598
|
+
3
|
599
|
+
;31
|
579
600
|
x
|
580
601
|
5
|
581
602
|
color
|
582
|
-
s
|
583
|
-
5
|
584
|
-
[31m
|
585
|
-
x
|
586
|
-
4
|
587
|
-
send
|
588
603
|
x
|
589
604
|
5
|
590
605
|
error
|
@@ -599,7 +614,7 @@ e
|
|
599
614
|
I
|
600
615
|
f
|
601
616
|
I
|
602
|
-
|
617
|
+
23
|
603
618
|
x
|
604
619
|
80
|
605
620
|
/Users/michi/Repositories/guard-coffeescript/lib/guard/coffeescript/formatter.rb
|
@@ -622,7 +637,7 @@ x
|
|
622
637
|
7
|
623
638
|
success
|
624
639
|
i
|
625
|
-
|
640
|
+
35
|
626
641
|
23
|
627
642
|
1
|
628
643
|
10
|
@@ -642,29 +657,24 @@ i
|
|
642
657
|
2
|
643
658
|
43
|
644
659
|
3
|
645
|
-
|
646
|
-
43
|
647
|
-
2
|
648
|
-
43
|
649
|
-
3
|
650
|
-
7
|
651
|
-
4
|
660
|
+
5
|
652
661
|
20
|
653
662
|
0
|
654
663
|
7
|
655
|
-
|
664
|
+
4
|
656
665
|
64
|
666
|
+
47
|
657
667
|
49
|
658
|
-
|
659
|
-
|
668
|
+
5
|
669
|
+
2
|
660
670
|
20
|
661
671
|
1
|
662
672
|
49
|
663
|
-
|
673
|
+
6
|
664
674
|
2
|
665
675
|
11
|
666
676
|
I
|
667
|
-
|
677
|
+
6
|
668
678
|
I
|
669
679
|
2
|
670
680
|
I
|
@@ -673,7 +683,7 @@ I
|
|
673
683
|
2
|
674
684
|
n
|
675
685
|
p
|
676
|
-
|
686
|
+
7
|
677
687
|
x
|
678
688
|
4
|
679
689
|
Hash
|
@@ -686,15 +696,12 @@ Guard
|
|
686
696
|
x
|
687
697
|
2
|
688
698
|
UI
|
699
|
+
s
|
700
|
+
3
|
701
|
+
;32
|
689
702
|
x
|
690
703
|
5
|
691
704
|
color
|
692
|
-
s
|
693
|
-
5
|
694
|
-
[32m
|
695
|
-
x
|
696
|
-
4
|
697
|
-
send
|
698
705
|
x
|
699
706
|
4
|
700
707
|
info
|
@@ -709,7 +716,7 @@ e
|
|
709
716
|
I
|
710
717
|
13
|
711
718
|
I
|
712
|
-
|
719
|
+
23
|
713
720
|
x
|
714
721
|
80
|
715
722
|
/Users/michi/Repositories/guard-coffeescript/lib/guard/coffeescript/formatter.rb
|
@@ -809,9 +816,121 @@ message
|
|
809
816
|
x
|
810
817
|
7
|
811
818
|
options
|
812
|
-
|
819
|
+
x
|
820
|
+
7
|
821
|
+
private
|
822
|
+
x
|
823
|
+
5
|
824
|
+
color
|
825
|
+
M
|
826
|
+
1
|
827
|
+
n
|
828
|
+
n
|
829
|
+
x
|
830
|
+
5
|
831
|
+
color
|
832
|
+
i
|
833
|
+
35
|
834
|
+
44
|
835
|
+
43
|
836
|
+
0
|
837
|
+
43
|
838
|
+
1
|
839
|
+
7
|
840
|
+
2
|
841
|
+
49
|
842
|
+
3
|
843
|
+
1
|
844
|
+
9
|
845
|
+
32
|
846
|
+
7
|
847
|
+
4
|
848
|
+
20
|
849
|
+
1
|
850
|
+
47
|
851
|
+
101
|
852
|
+
5
|
853
|
+
7
|
854
|
+
6
|
855
|
+
20
|
856
|
+
0
|
857
|
+
47
|
858
|
+
101
|
859
|
+
5
|
860
|
+
7
|
861
|
+
7
|
862
|
+
63
|
863
|
+
5
|
864
|
+
8
|
865
|
+
34
|
866
|
+
20
|
867
|
+
0
|
813
868
|
11
|
814
869
|
I
|
870
|
+
7
|
871
|
+
I
|
872
|
+
2
|
873
|
+
I
|
874
|
+
2
|
875
|
+
I
|
876
|
+
2
|
877
|
+
n
|
878
|
+
p
|
879
|
+
8
|
880
|
+
x
|
881
|
+
5
|
882
|
+
Guard
|
883
|
+
x
|
884
|
+
2
|
885
|
+
UI
|
886
|
+
x
|
887
|
+
14
|
888
|
+
color_enabled?
|
889
|
+
x
|
890
|
+
4
|
891
|
+
send
|
892
|
+
s
|
893
|
+
3
|
894
|
+
[0
|
895
|
+
x
|
896
|
+
4
|
897
|
+
to_s
|
898
|
+
s
|
899
|
+
1
|
900
|
+
m
|
901
|
+
s
|
902
|
+
4
|
903
|
+
[0m
|
904
|
+
p
|
905
|
+
7
|
906
|
+
I
|
907
|
+
-1
|
908
|
+
I
|
909
|
+
1c
|
910
|
+
I
|
911
|
+
0
|
912
|
+
I
|
913
|
+
1d
|
914
|
+
I
|
915
|
+
22
|
916
|
+
I
|
917
|
+
0
|
918
|
+
I
|
919
|
+
23
|
920
|
+
x
|
921
|
+
80
|
922
|
+
/Users/michi/Repositories/guard-coffeescript/lib/guard/coffeescript/formatter.rb
|
923
|
+
p
|
924
|
+
2
|
925
|
+
x
|
926
|
+
4
|
927
|
+
text
|
928
|
+
x
|
929
|
+
10
|
930
|
+
color_code
|
931
|
+
p
|
932
|
+
15
|
933
|
+
I
|
815
934
|
2
|
816
935
|
I
|
817
936
|
6
|
@@ -833,6 +952,14 @@ I
|
|
833
952
|
16
|
834
953
|
I
|
835
954
|
48
|
955
|
+
I
|
956
|
+
1a
|
957
|
+
I
|
958
|
+
4c
|
959
|
+
I
|
960
|
+
1c
|
961
|
+
I
|
962
|
+
5a
|
836
963
|
x
|
837
964
|
80
|
838
965
|
/Users/michi/Repositories/guard-coffeescript/lib/guard/coffeescript/formatter.rb
|
@@ -848,7 +975,7 @@ I
|
|
848
975
|
I
|
849
976
|
4
|
850
977
|
I
|
851
|
-
|
978
|
+
1e
|
852
979
|
x
|
853
980
|
80
|
854
981
|
/Users/michi/Repositories/guard-coffeescript/lib/guard/coffeescript/formatter.rb
|
@@ -1,5 +1,5 @@
|
|
1
1
|
!RBIX
|
2
|
-
|
2
|
+
6235178746665710376
|
3
3
|
x
|
4
4
|
M
|
5
5
|
1
|
@@ -181,33 +181,35 @@ x
|
|
181
181
|
9
|
182
182
|
Inspector
|
183
183
|
i
|
184
|
-
|
184
|
+
30
|
185
185
|
5
|
186
186
|
66
|
187
187
|
5
|
188
188
|
99
|
189
|
+
43
|
190
|
+
0
|
189
191
|
12
|
190
192
|
49
|
191
|
-
|
193
|
+
1
|
192
194
|
1
|
193
195
|
13
|
194
196
|
99
|
195
197
|
12
|
196
198
|
7
|
197
|
-
|
199
|
+
2
|
198
200
|
12
|
199
201
|
7
|
200
|
-
|
202
|
+
3
|
201
203
|
12
|
202
204
|
65
|
203
205
|
12
|
204
206
|
49
|
205
|
-
|
207
|
+
4
|
206
208
|
4
|
207
209
|
15
|
208
210
|
54
|
209
211
|
50
|
210
|
-
|
212
|
+
2
|
211
213
|
0
|
212
214
|
11
|
213
215
|
I
|
@@ -220,10 +222,13 @@ I
|
|
220
222
|
0
|
221
223
|
n
|
222
224
|
p
|
225
|
+
5
|
226
|
+
x
|
223
227
|
4
|
228
|
+
Type
|
224
229
|
x
|
225
|
-
|
226
|
-
|
230
|
+
22
|
231
|
+
object_singleton_class
|
227
232
|
x
|
228
233
|
18
|
229
234
|
__metaclass_init__
|
@@ -689,7 +694,7 @@ I
|
|
689
694
|
I
|
690
695
|
4
|
691
696
|
I
|
692
|
-
|
697
|
+
1e
|
693
698
|
x
|
694
699
|
80
|
695
700
|
/Users/michi/Repositories/guard-coffeescript/lib/guard/coffeescript/inspector.rb
|