lumberjack 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. data/MIT_LICENSE +20 -0
  2. data/README.rdoc +86 -0
  3. data/Rakefile +56 -0
  4. data/VERSION +1 -0
  5. data/lib/lumberjack.rb +39 -0
  6. data/lib/lumberjack/device.rb +26 -0
  7. data/lib/lumberjack/device/date_rolling_log_file.rb +58 -0
  8. data/lib/lumberjack/device/log_file.rb +18 -0
  9. data/lib/lumberjack/device/null.rb +15 -0
  10. data/lib/lumberjack/device/rolling_log_file.rb +109 -0
  11. data/lib/lumberjack/device/size_rolling_log_file.rb +58 -0
  12. data/lib/lumberjack/device/writer.rb +119 -0
  13. data/lib/lumberjack/formatter.rb +76 -0
  14. data/lib/lumberjack/formatter/exception_formatter.rb +12 -0
  15. data/lib/lumberjack/formatter/inspect_formatter.rb +10 -0
  16. data/lib/lumberjack/formatter/pretty_print_formatter.rb +23 -0
  17. data/lib/lumberjack/formatter/string_formatter.rb +10 -0
  18. data/lib/lumberjack/log_entry.rb +36 -0
  19. data/lib/lumberjack/logger.rb +302 -0
  20. data/lib/lumberjack/rack.rb +5 -0
  21. data/lib/lumberjack/rack/unit_of_work.rb +15 -0
  22. data/lib/lumberjack/severity.rb +23 -0
  23. data/lib/lumberjack/template.rb +71 -0
  24. data/spec/device/date_rolling_log_file_spec.rb +66 -0
  25. data/spec/device/date_rolling_log_file_spec.rbc +2118 -0
  26. data/spec/device/log_file_spec.rb +26 -0
  27. data/spec/device/log_file_spec.rbc +727 -0
  28. data/spec/device/null_spec.rb +12 -0
  29. data/spec/device/null_spec.rbc +362 -0
  30. data/spec/device/rolling_log_file_spec.rb +117 -0
  31. data/spec/device/rolling_log_file_spec.rbc +2894 -0
  32. data/spec/device/size_rolling_log_file_spec.rb +54 -0
  33. data/spec/device/size_rolling_log_file_spec.rbc +1961 -0
  34. data/spec/device/stream_spec.rbc +3310 -0
  35. data/spec/device/writer_spec.rb +118 -0
  36. data/spec/entry_spec.rbc +2333 -0
  37. data/spec/formatter/exception_formatter_spec.rb +20 -0
  38. data/spec/formatter/exception_formatter_spec.rbc +620 -0
  39. data/spec/formatter/inspect_formatter_spec.rb +13 -0
  40. data/spec/formatter/inspect_formatter_spec.rbc +360 -0
  41. data/spec/formatter/pretty_print_formatter_spec.rb +14 -0
  42. data/spec/formatter/pretty_print_formatter_spec.rbc +380 -0
  43. data/spec/formatter/string_formatter_spec.rb +12 -0
  44. data/spec/formatter/string_formatter_spec.rbc +314 -0
  45. data/spec/formatter_spec.rb +45 -0
  46. data/spec/formatter_spec.rbc +1431 -0
  47. data/spec/log_entry_spec.rb +69 -0
  48. data/spec/logger_spec.rb +390 -0
  49. data/spec/logger_spec.rbc +10043 -0
  50. data/spec/lumberjack_spec.rb +22 -0
  51. data/spec/lumberjack_spec.rbc +523 -0
  52. data/spec/rack/unit_of_work_spec.rb +26 -0
  53. data/spec/rack/unit_of_work_spec.rbc +697 -0
  54. data/spec/severity_spec.rb +23 -0
  55. data/spec/spec_helper.rb +16 -0
  56. data/spec/spec_helper.rbc +391 -0
  57. data/spec/template_spec.rb +34 -0
  58. data/spec/template_spec.rbc +1563 -0
  59. data/spec/unique_identifier_spec.rbc +329 -0
  60. metadata +128 -0
@@ -0,0 +1,12 @@
1
+ require 'spec_helper'
2
+
3
+ describe Lumberjack::Formatter::StringFormatter do
4
+
5
+ it "should format objects as string by calling their to_s method" do
6
+ formatter = Lumberjack::Formatter::StringFormatter.new
7
+ formatter.call("abc").should == "abc"
8
+ formatter.call(:test).should == "test"
9
+ formatter.call(1).should == "1"
10
+ end
11
+
12
+ end
@@ -0,0 +1,314 @@
1
+ !RBIX
2
+ 0
3
+ x
4
+ M
5
+ 1
6
+ n
7
+ n
8
+ x
9
+ 10
10
+ __script__
11
+ i
12
+ 26
13
+ 5
14
+ 7
15
+ 0
16
+ 64
17
+ 47
18
+ 49
19
+ 1
20
+ 1
21
+ 15
22
+ 5
23
+ 45
24
+ 2
25
+ 3
26
+ 43
27
+ 4
28
+ 43
29
+ 5
30
+ 56
31
+ 6
32
+ 47
33
+ 50
34
+ 7
35
+ 1
36
+ 15
37
+ 2
38
+ 11
39
+ I
40
+ 3
41
+ I
42
+ 0
43
+ I
44
+ 0
45
+ I
46
+ 0
47
+ n
48
+ p
49
+ 8
50
+ s
51
+ 11
52
+ spec_helper
53
+ x
54
+ 7
55
+ require
56
+ x
57
+ 10
58
+ Lumberjack
59
+ n
60
+ x
61
+ 9
62
+ Formatter
63
+ x
64
+ 15
65
+ StringFormatter
66
+ M
67
+ 1
68
+ p
69
+ 2
70
+ x
71
+ 9
72
+ for_block
73
+ t
74
+ n
75
+ x
76
+ 9
77
+ __block__
78
+ i
79
+ 11
80
+ 5
81
+ 7
82
+ 0
83
+ 64
84
+ 56
85
+ 1
86
+ 47
87
+ 50
88
+ 2
89
+ 1
90
+ 11
91
+ I
92
+ 4
93
+ I
94
+ 0
95
+ I
96
+ 0
97
+ I
98
+ 0
99
+ I
100
+ -2
101
+ p
102
+ 3
103
+ s
104
+ 60
105
+ should format objects as string by calling their to_s method
106
+ M
107
+ 1
108
+ p
109
+ 2
110
+ x
111
+ 9
112
+ for_block
113
+ t
114
+ n
115
+ x
116
+ 9
117
+ __block__
118
+ i
119
+ 79
120
+ 45
121
+ 0
122
+ 1
123
+ 43
124
+ 2
125
+ 43
126
+ 3
127
+ 13
128
+ 71
129
+ 4
130
+ 47
131
+ 9
132
+ 25
133
+ 47
134
+ 49
135
+ 5
136
+ 0
137
+ 13
138
+ 47
139
+ 49
140
+ 6
141
+ 0
142
+ 15
143
+ 8
144
+ 28
145
+ 49
146
+ 4
147
+ 0
148
+ 19
149
+ 0
150
+ 15
151
+ 20
152
+ 0
153
+ 7
154
+ 7
155
+ 64
156
+ 49
157
+ 8
158
+ 1
159
+ 49
160
+ 9
161
+ 0
162
+ 7
163
+ 7
164
+ 64
165
+ 83
166
+ 10
167
+ 15
168
+ 20
169
+ 0
170
+ 7
171
+ 11
172
+ 49
173
+ 8
174
+ 1
175
+ 49
176
+ 9
177
+ 0
178
+ 7
179
+ 12
180
+ 64
181
+ 83
182
+ 10
183
+ 15
184
+ 20
185
+ 0
186
+ 79
187
+ 49
188
+ 8
189
+ 1
190
+ 49
191
+ 9
192
+ 0
193
+ 7
194
+ 13
195
+ 64
196
+ 83
197
+ 10
198
+ 11
199
+ I
200
+ 4
201
+ I
202
+ 1
203
+ I
204
+ 0
205
+ I
206
+ 0
207
+ I
208
+ -2
209
+ p
210
+ 14
211
+ x
212
+ 10
213
+ Lumberjack
214
+ n
215
+ x
216
+ 9
217
+ Formatter
218
+ x
219
+ 15
220
+ StringFormatter
221
+ x
222
+ 3
223
+ new
224
+ x
225
+ 8
226
+ allocate
227
+ x
228
+ 10
229
+ initialize
230
+ s
231
+ 3
232
+ abc
233
+ x
234
+ 4
235
+ call
236
+ x
237
+ 6
238
+ should
239
+ x
240
+ 2
241
+ ==
242
+ x
243
+ 4
244
+ test
245
+ s
246
+ 4
247
+ test
248
+ s
249
+ 1
250
+ 1
251
+ p
252
+ 9
253
+ I
254
+ 0
255
+ I
256
+ 6
257
+ I
258
+ 1f
259
+ I
260
+ 7
261
+ I
262
+ 30
263
+ I
264
+ 8
265
+ I
266
+ 40
267
+ I
268
+ 9
269
+ I
270
+ 4f
271
+ x
272
+ 78
273
+ /Users/bdurand/dev/projects/lumberjack/spec/formatter/string_formatter_spec.rb
274
+ p
275
+ 1
276
+ x
277
+ 9
278
+ formatter
279
+ x
280
+ 2
281
+ it
282
+ p
283
+ 3
284
+ I
285
+ 0
286
+ I
287
+ 5
288
+ I
289
+ b
290
+ x
291
+ 78
292
+ /Users/bdurand/dev/projects/lumberjack/spec/formatter/string_formatter_spec.rb
293
+ p
294
+ 0
295
+ x
296
+ 8
297
+ describe
298
+ p
299
+ 5
300
+ I
301
+ 0
302
+ I
303
+ 1
304
+ I
305
+ 9
306
+ I
307
+ 3
308
+ I
309
+ 1a
310
+ x
311
+ 78
312
+ /Users/bdurand/dev/projects/lumberjack/spec/formatter/string_formatter_spec.rb
313
+ p
314
+ 0
@@ -0,0 +1,45 @@
1
+ require 'spec_helper'
2
+
3
+ describe Lumberjack::Formatter do
4
+
5
+ let(:formatter){ Lumberjack::Formatter.new }
6
+
7
+ it "should have a default set of formatters" do
8
+ formatter.format("abc").should == "abc"
9
+ formatter.format([1, 2, 3]).should == "[1, 2, 3]"
10
+ formatter.format(ArgumentError.new("boom")).should == "ArgumentError: boom"
11
+ end
12
+
13
+ it "should be able to add a formatter object for a class" do
14
+ formatter.add(Numeric, lambda{|obj| "number: #{obj}"})
15
+ formatter.format(10).should == "number: 10"
16
+ end
17
+
18
+ it "should be able to add a formatter block for a class" do
19
+ formatter.add(Numeric){|obj| "number: #{obj}"}
20
+ formatter.format(10).should == "number: 10"
21
+ end
22
+
23
+ it "should be able to remove a formatter for a class" do
24
+ formatter.remove(String)
25
+ formatter.format("abc").should == "\"abc\""
26
+ end
27
+
28
+ it "should be able to chain add and remove calls" do
29
+ formatter.remove(String).should == formatter
30
+ formatter.add(String, Lumberjack::Formatter::StringFormatter.new).should == formatter
31
+ end
32
+
33
+ it "should format an object based on the class hierarchy" do
34
+ formatter.add(Numeric){|obj| "number: #{obj}"}
35
+ formatter.add(Fixnum){|obj| "fixed number: #{obj}"}
36
+ formatter.format(10).should == "fixed number: 10"
37
+ formatter.format(10.1).should == "number: 10.1"
38
+ end
39
+
40
+ it "should have a default formatter" do
41
+ formatter.remove(Object)
42
+ formatter.format(:test).should == ":test"
43
+ end
44
+
45
+ end
@@ -0,0 +1,1431 @@
1
+ !RBIX
2
+ 0
3
+ x
4
+ M
5
+ 1
6
+ n
7
+ n
8
+ x
9
+ 10
10
+ __script__
11
+ i
12
+ 24
13
+ 5
14
+ 7
15
+ 0
16
+ 64
17
+ 47
18
+ 49
19
+ 1
20
+ 1
21
+ 15
22
+ 5
23
+ 45
24
+ 2
25
+ 3
26
+ 43
27
+ 4
28
+ 56
29
+ 5
30
+ 47
31
+ 50
32
+ 6
33
+ 1
34
+ 15
35
+ 2
36
+ 11
37
+ I
38
+ 3
39
+ I
40
+ 0
41
+ I
42
+ 0
43
+ I
44
+ 0
45
+ n
46
+ p
47
+ 7
48
+ s
49
+ 11
50
+ spec_helper
51
+ x
52
+ 7
53
+ require
54
+ x
55
+ 10
56
+ Lumberjack
57
+ n
58
+ x
59
+ 9
60
+ Formatter
61
+ M
62
+ 1
63
+ p
64
+ 2
65
+ x
66
+ 9
67
+ for_block
68
+ t
69
+ n
70
+ x
71
+ 9
72
+ __block__
73
+ i
74
+ 87
75
+ 5
76
+ 7
77
+ 0
78
+ 56
79
+ 1
80
+ 47
81
+ 50
82
+ 2
83
+ 1
84
+ 15
85
+ 5
86
+ 7
87
+ 3
88
+ 64
89
+ 56
90
+ 4
91
+ 47
92
+ 50
93
+ 5
94
+ 1
95
+ 15
96
+ 5
97
+ 7
98
+ 6
99
+ 64
100
+ 56
101
+ 7
102
+ 47
103
+ 50
104
+ 5
105
+ 1
106
+ 15
107
+ 5
108
+ 7
109
+ 8
110
+ 64
111
+ 56
112
+ 9
113
+ 47
114
+ 50
115
+ 5
116
+ 1
117
+ 15
118
+ 5
119
+ 7
120
+ 10
121
+ 64
122
+ 56
123
+ 11
124
+ 47
125
+ 50
126
+ 5
127
+ 1
128
+ 15
129
+ 5
130
+ 7
131
+ 12
132
+ 64
133
+ 56
134
+ 13
135
+ 47
136
+ 50
137
+ 5
138
+ 1
139
+ 15
140
+ 5
141
+ 7
142
+ 14
143
+ 64
144
+ 56
145
+ 15
146
+ 47
147
+ 50
148
+ 5
149
+ 1
150
+ 15
151
+ 5
152
+ 7
153
+ 16
154
+ 64
155
+ 56
156
+ 17
157
+ 47
158
+ 50
159
+ 5
160
+ 1
161
+ 11
162
+ I
163
+ 4
164
+ I
165
+ 0
166
+ I
167
+ 0
168
+ I
169
+ 0
170
+ I
171
+ -2
172
+ p
173
+ 18
174
+ x
175
+ 9
176
+ formatter
177
+ M
178
+ 1
179
+ p
180
+ 2
181
+ x
182
+ 9
183
+ for_block
184
+ t
185
+ n
186
+ x
187
+ 9
188
+ __block__
189
+ i
190
+ 27
191
+ 45
192
+ 0
193
+ 1
194
+ 43
195
+ 2
196
+ 13
197
+ 71
198
+ 3
199
+ 47
200
+ 9
201
+ 23
202
+ 47
203
+ 49
204
+ 4
205
+ 0
206
+ 13
207
+ 47
208
+ 49
209
+ 5
210
+ 0
211
+ 15
212
+ 8
213
+ 26
214
+ 49
215
+ 3
216
+ 0
217
+ 11
218
+ I
219
+ 3
220
+ I
221
+ 0
222
+ I
223
+ 0
224
+ I
225
+ 0
226
+ I
227
+ -2
228
+ p
229
+ 6
230
+ x
231
+ 10
232
+ Lumberjack
233
+ n
234
+ x
235
+ 9
236
+ Formatter
237
+ x
238
+ 3
239
+ new
240
+ x
241
+ 8
242
+ allocate
243
+ x
244
+ 10
245
+ initialize
246
+ p
247
+ 3
248
+ I
249
+ 0
250
+ I
251
+ 5
252
+ I
253
+ 1b
254
+ x
255
+ 61
256
+ /Users/bdurand/dev/projects/lumberjack/spec/formatter_spec.rb
257
+ p
258
+ 0
259
+ x
260
+ 3
261
+ let
262
+ s
263
+ 39
264
+ should have a default set of formatters
265
+ M
266
+ 1
267
+ p
268
+ 2
269
+ x
270
+ 9
271
+ for_block
272
+ t
273
+ n
274
+ x
275
+ 9
276
+ __block__
277
+ i
278
+ 84
279
+ 5
280
+ 48
281
+ 0
282
+ 7
283
+ 1
284
+ 64
285
+ 49
286
+ 2
287
+ 1
288
+ 49
289
+ 3
290
+ 0
291
+ 7
292
+ 1
293
+ 64
294
+ 83
295
+ 4
296
+ 15
297
+ 5
298
+ 48
299
+ 0
300
+ 79
301
+ 80
302
+ 4
303
+ 3
304
+ 35
305
+ 3
306
+ 49
307
+ 2
308
+ 1
309
+ 49
310
+ 3
311
+ 0
312
+ 7
313
+ 5
314
+ 64
315
+ 83
316
+ 4
317
+ 15
318
+ 5
319
+ 48
320
+ 0
321
+ 45
322
+ 6
323
+ 7
324
+ 13
325
+ 71
326
+ 8
327
+ 47
328
+ 9
329
+ 66
330
+ 47
331
+ 49
332
+ 9
333
+ 0
334
+ 13
335
+ 7
336
+ 10
337
+ 64
338
+ 47
339
+ 49
340
+ 11
341
+ 1
342
+ 15
343
+ 8
344
+ 72
345
+ 7
346
+ 10
347
+ 64
348
+ 49
349
+ 8
350
+ 1
351
+ 49
352
+ 2
353
+ 1
354
+ 49
355
+ 3
356
+ 0
357
+ 7
358
+ 12
359
+ 64
360
+ 83
361
+ 4
362
+ 11
363
+ I
364
+ 5
365
+ I
366
+ 0
367
+ I
368
+ 0
369
+ I
370
+ 0
371
+ I
372
+ -2
373
+ p
374
+ 13
375
+ x
376
+ 9
377
+ formatter
378
+ s
379
+ 3
380
+ abc
381
+ x
382
+ 6
383
+ format
384
+ x
385
+ 6
386
+ should
387
+ x
388
+ 2
389
+ ==
390
+ s
391
+ 9
392
+ [1, 2, 3]
393
+ x
394
+ 13
395
+ ArgumentError
396
+ n
397
+ x
398
+ 3
399
+ new
400
+ x
401
+ 8
402
+ allocate
403
+ s
404
+ 4
405
+ boom
406
+ x
407
+ 10
408
+ initialize
409
+ s
410
+ 19
411
+ ArgumentError: boom
412
+ p
413
+ 7
414
+ I
415
+ 0
416
+ I
417
+ 8
418
+ I
419
+ 12
420
+ I
421
+ 9
422
+ I
423
+ 27
424
+ I
425
+ a
426
+ I
427
+ 54
428
+ x
429
+ 61
430
+ /Users/bdurand/dev/projects/lumberjack/spec/formatter_spec.rb
431
+ p
432
+ 0
433
+ x
434
+ 2
435
+ it
436
+ s
437
+ 52
438
+ should be able to add a formatter object for a class
439
+ M
440
+ 1
441
+ p
442
+ 2
443
+ x
444
+ 9
445
+ for_block
446
+ t
447
+ n
448
+ x
449
+ 9
450
+ __block__
451
+ i
452
+ 34
453
+ 5
454
+ 48
455
+ 0
456
+ 45
457
+ 1
458
+ 2
459
+ 5
460
+ 56
461
+ 3
462
+ 47
463
+ 50
464
+ 4
465
+ 0
466
+ 49
467
+ 5
468
+ 2
469
+ 15
470
+ 5
471
+ 48
472
+ 0
473
+ 4
474
+ 10
475
+ 49
476
+ 6
477
+ 1
478
+ 49
479
+ 7
480
+ 0
481
+ 7
482
+ 8
483
+ 64
484
+ 83
485
+ 9
486
+ 11
487
+ I
488
+ 5
489
+ I
490
+ 0
491
+ I
492
+ 0
493
+ I
494
+ 0
495
+ I
496
+ -2
497
+ p
498
+ 10
499
+ x
500
+ 9
501
+ formatter
502
+ x
503
+ 7
504
+ Numeric
505
+ n
506
+ M
507
+ 1
508
+ p
509
+ 2
510
+ x
511
+ 9
512
+ for_block
513
+ t
514
+ n
515
+ x
516
+ 9
517
+ __block__
518
+ i
519
+ 14
520
+ 57
521
+ 19
522
+ 0
523
+ 15
524
+ 7
525
+ 0
526
+ 20
527
+ 0
528
+ 47
529
+ 101
530
+ 1
531
+ 63
532
+ 2
533
+ 11
534
+ I
535
+ 4
536
+ I
537
+ 1
538
+ I
539
+ 1
540
+ I
541
+ 1
542
+ n
543
+ p
544
+ 2
545
+ s
546
+ 8
547
+ number:
548
+ x
549
+ 4
550
+ to_s
551
+ p
552
+ 3
553
+ I
554
+ 0
555
+ I
556
+ e
557
+ I
558
+ e
559
+ x
560
+ 61
561
+ /Users/bdurand/dev/projects/lumberjack/spec/formatter_spec.rb
562
+ p
563
+ 1
564
+ x
565
+ 3
566
+ obj
567
+ x
568
+ 6
569
+ lambda
570
+ x
571
+ 3
572
+ add
573
+ x
574
+ 6
575
+ format
576
+ x
577
+ 6
578
+ should
579
+ s
580
+ 10
581
+ number: 10
582
+ x
583
+ 2
584
+ ==
585
+ p
586
+ 5
587
+ I
588
+ 0
589
+ I
590
+ e
591
+ I
592
+ 11
593
+ I
594
+ f
595
+ I
596
+ 22
597
+ x
598
+ 61
599
+ /Users/bdurand/dev/projects/lumberjack/spec/formatter_spec.rb
600
+ p
601
+ 0
602
+ s
603
+ 51
604
+ should be able to add a formatter block for a class
605
+ M
606
+ 1
607
+ p
608
+ 2
609
+ x
610
+ 9
611
+ for_block
612
+ t
613
+ n
614
+ x
615
+ 9
616
+ __block__
617
+ i
618
+ 29
619
+ 5
620
+ 48
621
+ 0
622
+ 45
623
+ 1
624
+ 2
625
+ 56
626
+ 3
627
+ 50
628
+ 4
629
+ 1
630
+ 15
631
+ 5
632
+ 48
633
+ 0
634
+ 4
635
+ 10
636
+ 49
637
+ 5
638
+ 1
639
+ 49
640
+ 6
641
+ 0
642
+ 7
643
+ 7
644
+ 64
645
+ 83
646
+ 8
647
+ 11
648
+ I
649
+ 4
650
+ I
651
+ 0
652
+ I
653
+ 0
654
+ I
655
+ 0
656
+ I
657
+ -2
658
+ p
659
+ 9
660
+ x
661
+ 9
662
+ formatter
663
+ x
664
+ 7
665
+ Numeric
666
+ n
667
+ M
668
+ 1
669
+ p
670
+ 2
671
+ x
672
+ 9
673
+ for_block
674
+ t
675
+ n
676
+ x
677
+ 9
678
+ __block__
679
+ i
680
+ 14
681
+ 57
682
+ 19
683
+ 0
684
+ 15
685
+ 7
686
+ 0
687
+ 20
688
+ 0
689
+ 47
690
+ 101
691
+ 1
692
+ 63
693
+ 2
694
+ 11
695
+ I
696
+ 4
697
+ I
698
+ 1
699
+ I
700
+ 1
701
+ I
702
+ 1
703
+ n
704
+ p
705
+ 2
706
+ s
707
+ 8
708
+ number:
709
+ x
710
+ 4
711
+ to_s
712
+ p
713
+ 3
714
+ I
715
+ 0
716
+ I
717
+ 13
718
+ I
719
+ e
720
+ x
721
+ 61
722
+ /Users/bdurand/dev/projects/lumberjack/spec/formatter_spec.rb
723
+ p
724
+ 1
725
+ x
726
+ 3
727
+ obj
728
+ x
729
+ 3
730
+ add
731
+ x
732
+ 6
733
+ format
734
+ x
735
+ 6
736
+ should
737
+ s
738
+ 10
739
+ number: 10
740
+ x
741
+ 2
742
+ ==
743
+ p
744
+ 5
745
+ I
746
+ 0
747
+ I
748
+ 13
749
+ I
750
+ c
751
+ I
752
+ 14
753
+ I
754
+ 1d
755
+ x
756
+ 61
757
+ /Users/bdurand/dev/projects/lumberjack/spec/formatter_spec.rb
758
+ p
759
+ 0
760
+ s
761
+ 48
762
+ should be able to remove a formatter for a class
763
+ M
764
+ 1
765
+ p
766
+ 2
767
+ x
768
+ 9
769
+ for_block
770
+ t
771
+ n
772
+ x
773
+ 9
774
+ __block__
775
+ i
776
+ 28
777
+ 5
778
+ 48
779
+ 0
780
+ 45
781
+ 1
782
+ 2
783
+ 49
784
+ 3
785
+ 1
786
+ 15
787
+ 5
788
+ 48
789
+ 0
790
+ 7
791
+ 4
792
+ 64
793
+ 49
794
+ 5
795
+ 1
796
+ 49
797
+ 6
798
+ 0
799
+ 7
800
+ 7
801
+ 64
802
+ 83
803
+ 8
804
+ 11
805
+ I
806
+ 3
807
+ I
808
+ 0
809
+ I
810
+ 0
811
+ I
812
+ 0
813
+ I
814
+ -2
815
+ p
816
+ 9
817
+ x
818
+ 9
819
+ formatter
820
+ x
821
+ 6
822
+ String
823
+ n
824
+ x
825
+ 6
826
+ remove
827
+ s
828
+ 3
829
+ abc
830
+ x
831
+ 6
832
+ format
833
+ x
834
+ 6
835
+ should
836
+ s
837
+ 5
838
+ "abc"
839
+ x
840
+ 2
841
+ ==
842
+ p
843
+ 5
844
+ I
845
+ 0
846
+ I
847
+ 18
848
+ I
849
+ a
850
+ I
851
+ 19
852
+ I
853
+ 1c
854
+ x
855
+ 61
856
+ /Users/bdurand/dev/projects/lumberjack/spec/formatter_spec.rb
857
+ p
858
+ 0
859
+ s
860
+ 44
861
+ should be able to chain add and remove calls
862
+ M
863
+ 1
864
+ p
865
+ 2
866
+ x
867
+ 9
868
+ for_block
869
+ t
870
+ n
871
+ x
872
+ 9
873
+ __block__
874
+ i
875
+ 64
876
+ 5
877
+ 48
878
+ 0
879
+ 45
880
+ 1
881
+ 2
882
+ 49
883
+ 3
884
+ 1
885
+ 49
886
+ 4
887
+ 0
888
+ 5
889
+ 48
890
+ 0
891
+ 83
892
+ 5
893
+ 15
894
+ 5
895
+ 48
896
+ 0
897
+ 45
898
+ 1
899
+ 6
900
+ 45
901
+ 7
902
+ 8
903
+ 43
904
+ 9
905
+ 43
906
+ 10
907
+ 13
908
+ 71
909
+ 11
910
+ 47
911
+ 9
912
+ 49
913
+ 47
914
+ 49
915
+ 12
916
+ 0
917
+ 13
918
+ 47
919
+ 49
920
+ 13
921
+ 0
922
+ 15
923
+ 8
924
+ 52
925
+ 49
926
+ 11
927
+ 0
928
+ 49
929
+ 14
930
+ 2
931
+ 49
932
+ 4
933
+ 0
934
+ 5
935
+ 48
936
+ 0
937
+ 83
938
+ 5
939
+ 11
940
+ I
941
+ 5
942
+ I
943
+ 0
944
+ I
945
+ 0
946
+ I
947
+ 0
948
+ I
949
+ -2
950
+ p
951
+ 15
952
+ x
953
+ 9
954
+ formatter
955
+ x
956
+ 6
957
+ String
958
+ n
959
+ x
960
+ 6
961
+ remove
962
+ x
963
+ 6
964
+ should
965
+ x
966
+ 2
967
+ ==
968
+ n
969
+ x
970
+ 10
971
+ Lumberjack
972
+ n
973
+ x
974
+ 9
975
+ Formatter
976
+ x
977
+ 15
978
+ StringFormatter
979
+ x
980
+ 3
981
+ new
982
+ x
983
+ 8
984
+ allocate
985
+ x
986
+ 10
987
+ initialize
988
+ x
989
+ 3
990
+ add
991
+ p
992
+ 5
993
+ I
994
+ 0
995
+ I
996
+ 1d
997
+ I
998
+ 12
999
+ I
1000
+ 1e
1001
+ I
1002
+ 40
1003
+ x
1004
+ 61
1005
+ /Users/bdurand/dev/projects/lumberjack/spec/formatter_spec.rb
1006
+ p
1007
+ 0
1008
+ s
1009
+ 52
1010
+ should format an object based on the class hierarchy
1011
+ M
1012
+ 1
1013
+ p
1014
+ 2
1015
+ x
1016
+ 9
1017
+ for_block
1018
+ t
1019
+ n
1020
+ x
1021
+ 9
1022
+ __block__
1023
+ i
1024
+ 58
1025
+ 5
1026
+ 48
1027
+ 0
1028
+ 45
1029
+ 1
1030
+ 2
1031
+ 56
1032
+ 3
1033
+ 50
1034
+ 4
1035
+ 1
1036
+ 15
1037
+ 5
1038
+ 48
1039
+ 0
1040
+ 45
1041
+ 5
1042
+ 6
1043
+ 56
1044
+ 7
1045
+ 50
1046
+ 4
1047
+ 1
1048
+ 15
1049
+ 5
1050
+ 48
1051
+ 0
1052
+ 4
1053
+ 10
1054
+ 49
1055
+ 8
1056
+ 1
1057
+ 49
1058
+ 9
1059
+ 0
1060
+ 7
1061
+ 10
1062
+ 64
1063
+ 83
1064
+ 11
1065
+ 15
1066
+ 5
1067
+ 48
1068
+ 0
1069
+ 7
1070
+ 12
1071
+ 49
1072
+ 8
1073
+ 1
1074
+ 49
1075
+ 9
1076
+ 0
1077
+ 7
1078
+ 13
1079
+ 64
1080
+ 83
1081
+ 11
1082
+ 11
1083
+ I
1084
+ 4
1085
+ I
1086
+ 0
1087
+ I
1088
+ 0
1089
+ I
1090
+ 0
1091
+ I
1092
+ -2
1093
+ p
1094
+ 14
1095
+ x
1096
+ 9
1097
+ formatter
1098
+ x
1099
+ 7
1100
+ Numeric
1101
+ n
1102
+ M
1103
+ 1
1104
+ p
1105
+ 2
1106
+ x
1107
+ 9
1108
+ for_block
1109
+ t
1110
+ n
1111
+ x
1112
+ 9
1113
+ __block__
1114
+ i
1115
+ 14
1116
+ 57
1117
+ 19
1118
+ 0
1119
+ 15
1120
+ 7
1121
+ 0
1122
+ 20
1123
+ 0
1124
+ 47
1125
+ 101
1126
+ 1
1127
+ 63
1128
+ 2
1129
+ 11
1130
+ I
1131
+ 4
1132
+ I
1133
+ 1
1134
+ I
1135
+ 1
1136
+ I
1137
+ 1
1138
+ n
1139
+ p
1140
+ 2
1141
+ s
1142
+ 8
1143
+ number:
1144
+ x
1145
+ 4
1146
+ to_s
1147
+ p
1148
+ 3
1149
+ I
1150
+ 0
1151
+ I
1152
+ 22
1153
+ I
1154
+ e
1155
+ x
1156
+ 61
1157
+ /Users/bdurand/dev/projects/lumberjack/spec/formatter_spec.rb
1158
+ p
1159
+ 1
1160
+ x
1161
+ 3
1162
+ obj
1163
+ x
1164
+ 3
1165
+ add
1166
+ x
1167
+ 6
1168
+ Fixnum
1169
+ n
1170
+ M
1171
+ 1
1172
+ p
1173
+ 2
1174
+ x
1175
+ 9
1176
+ for_block
1177
+ t
1178
+ n
1179
+ x
1180
+ 9
1181
+ __block__
1182
+ i
1183
+ 14
1184
+ 57
1185
+ 19
1186
+ 0
1187
+ 15
1188
+ 7
1189
+ 0
1190
+ 20
1191
+ 0
1192
+ 47
1193
+ 101
1194
+ 1
1195
+ 63
1196
+ 2
1197
+ 11
1198
+ I
1199
+ 4
1200
+ I
1201
+ 1
1202
+ I
1203
+ 1
1204
+ I
1205
+ 1
1206
+ n
1207
+ p
1208
+ 2
1209
+ s
1210
+ 14
1211
+ fixed number:
1212
+ x
1213
+ 4
1214
+ to_s
1215
+ p
1216
+ 3
1217
+ I
1218
+ 0
1219
+ I
1220
+ 23
1221
+ I
1222
+ e
1223
+ x
1224
+ 61
1225
+ /Users/bdurand/dev/projects/lumberjack/spec/formatter_spec.rb
1226
+ p
1227
+ 1
1228
+ x
1229
+ 3
1230
+ obj
1231
+ x
1232
+ 6
1233
+ format
1234
+ x
1235
+ 6
1236
+ should
1237
+ s
1238
+ 16
1239
+ fixed number: 10
1240
+ x
1241
+ 2
1242
+ ==
1243
+ d
1244
+ +0.631249999999999977795539507496869191527366638183593750 4
1245
+ s
1246
+ 12
1247
+ number: 10.1
1248
+ p
1249
+ 9
1250
+ I
1251
+ 0
1252
+ I
1253
+ 22
1254
+ I
1255
+ c
1256
+ I
1257
+ 23
1258
+ I
1259
+ 18
1260
+ I
1261
+ 24
1262
+ I
1263
+ 29
1264
+ I
1265
+ 25
1266
+ I
1267
+ 3a
1268
+ x
1269
+ 61
1270
+ /Users/bdurand/dev/projects/lumberjack/spec/formatter_spec.rb
1271
+ p
1272
+ 0
1273
+ s
1274
+ 31
1275
+ should have a default formatter
1276
+ M
1277
+ 1
1278
+ p
1279
+ 2
1280
+ x
1281
+ 9
1282
+ for_block
1283
+ t
1284
+ n
1285
+ x
1286
+ 9
1287
+ __block__
1288
+ i
1289
+ 27
1290
+ 5
1291
+ 48
1292
+ 0
1293
+ 45
1294
+ 1
1295
+ 2
1296
+ 49
1297
+ 3
1298
+ 1
1299
+ 15
1300
+ 5
1301
+ 48
1302
+ 0
1303
+ 7
1304
+ 4
1305
+ 49
1306
+ 5
1307
+ 1
1308
+ 49
1309
+ 6
1310
+ 0
1311
+ 7
1312
+ 7
1313
+ 64
1314
+ 83
1315
+ 8
1316
+ 11
1317
+ I
1318
+ 3
1319
+ I
1320
+ 0
1321
+ I
1322
+ 0
1323
+ I
1324
+ 0
1325
+ I
1326
+ -2
1327
+ p
1328
+ 9
1329
+ x
1330
+ 9
1331
+ formatter
1332
+ x
1333
+ 6
1334
+ Object
1335
+ n
1336
+ x
1337
+ 6
1338
+ remove
1339
+ x
1340
+ 4
1341
+ test
1342
+ x
1343
+ 6
1344
+ format
1345
+ x
1346
+ 6
1347
+ should
1348
+ s
1349
+ 5
1350
+ :test
1351
+ x
1352
+ 2
1353
+ ==
1354
+ p
1355
+ 5
1356
+ I
1357
+ 0
1358
+ I
1359
+ 29
1360
+ I
1361
+ a
1362
+ I
1363
+ 2a
1364
+ I
1365
+ 1b
1366
+ x
1367
+ 61
1368
+ /Users/bdurand/dev/projects/lumberjack/spec/formatter_spec.rb
1369
+ p
1370
+ 0
1371
+ p
1372
+ 17
1373
+ I
1374
+ 0
1375
+ I
1376
+ 5
1377
+ I
1378
+ a
1379
+ I
1380
+ 7
1381
+ I
1382
+ 15
1383
+ I
1384
+ d
1385
+ I
1386
+ 20
1387
+ I
1388
+ 12
1389
+ I
1390
+ 2b
1391
+ I
1392
+ 17
1393
+ I
1394
+ 36
1395
+ I
1396
+ 1c
1397
+ I
1398
+ 41
1399
+ I
1400
+ 21
1401
+ I
1402
+ 4c
1403
+ I
1404
+ 28
1405
+ I
1406
+ 57
1407
+ x
1408
+ 61
1409
+ /Users/bdurand/dev/projects/lumberjack/spec/formatter_spec.rb
1410
+ p
1411
+ 0
1412
+ x
1413
+ 8
1414
+ describe
1415
+ p
1416
+ 5
1417
+ I
1418
+ 0
1419
+ I
1420
+ 1
1421
+ I
1422
+ 9
1423
+ I
1424
+ 3
1425
+ I
1426
+ 18
1427
+ x
1428
+ 61
1429
+ /Users/bdurand/dev/projects/lumberjack/spec/formatter_spec.rb
1430
+ p
1431
+ 0