primer 0.1.0 → 0.2.0

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