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,1796 @@
1
+ !RBIX
2
+ 10310238139619683799
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
+ 6
54
+ Primer
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
+ 6
67
+ Primer
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
+ 7
111
+ Watcher
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
+ 7
124
+ Watcher
125
+ i
126
+ 28
127
+ 5
128
+ 66
129
+ 99
130
+ 7
131
+ 0
132
+ 65
133
+ 49
134
+ 1
135
+ 2
136
+ 13
137
+ 99
138
+ 12
139
+ 7
140
+ 2
141
+ 12
142
+ 7
143
+ 3
144
+ 12
145
+ 65
146
+ 12
147
+ 49
148
+ 4
149
+ 4
150
+ 15
151
+ 49
152
+ 2
153
+ 0
154
+ 11
155
+ I
156
+ 6
157
+ I
158
+ 0
159
+ I
160
+ 0
161
+ I
162
+ 0
163
+ n
164
+ p
165
+ 5
166
+ x
167
+ 18
168
+ ActiveRecordMacros
169
+ x
170
+ 11
171
+ open_module
172
+ x
173
+ 15
174
+ __module_init__
175
+ M
176
+ 1
177
+ n
178
+ n
179
+ x
180
+ 18
181
+ ActiveRecordMacros
182
+ i
183
+ 95
184
+ 5
185
+ 66
186
+ 99
187
+ 7
188
+ 0
189
+ 7
190
+ 1
191
+ 65
192
+ 5
193
+ 49
194
+ 2
195
+ 4
196
+ 15
197
+ 99
198
+ 7
199
+ 3
200
+ 7
201
+ 4
202
+ 65
203
+ 67
204
+ 49
205
+ 5
206
+ 0
207
+ 49
208
+ 6
209
+ 4
210
+ 15
211
+ 99
212
+ 7
213
+ 7
214
+ 7
215
+ 8
216
+ 65
217
+ 67
218
+ 49
219
+ 5
220
+ 0
221
+ 49
222
+ 6
223
+ 4
224
+ 15
225
+ 99
226
+ 7
227
+ 9
228
+ 7
229
+ 10
230
+ 65
231
+ 67
232
+ 49
233
+ 5
234
+ 0
235
+ 49
236
+ 6
237
+ 4
238
+ 15
239
+ 99
240
+ 7
241
+ 11
242
+ 7
243
+ 12
244
+ 65
245
+ 67
246
+ 49
247
+ 5
248
+ 0
249
+ 49
250
+ 6
251
+ 4
252
+ 15
253
+ 99
254
+ 7
255
+ 13
256
+ 65
257
+ 49
258
+ 14
259
+ 2
260
+ 13
261
+ 99
262
+ 12
263
+ 7
264
+ 15
265
+ 12
266
+ 7
267
+ 16
268
+ 12
269
+ 65
270
+ 12
271
+ 49
272
+ 2
273
+ 4
274
+ 15
275
+ 49
276
+ 15
277
+ 0
278
+ 11
279
+ I
280
+ 6
281
+ I
282
+ 0
283
+ I
284
+ 0
285
+ I
286
+ 0
287
+ n
288
+ p
289
+ 17
290
+ x
291
+ 8
292
+ extended
293
+ M
294
+ 1
295
+ n
296
+ n
297
+ x
298
+ 8
299
+ extended
300
+ i
301
+ 48
302
+ 20
303
+ 0
304
+ 20
305
+ 0
306
+ 49
307
+ 0
308
+ 0
309
+ 36
310
+ 1
311
+ 51
312
+ 1
313
+ 0
314
+ 15
315
+ 20
316
+ 0
317
+ 7
318
+ 2
319
+ 45
320
+ 3
321
+ 4
322
+ 49
323
+ 5
324
+ 2
325
+ 15
326
+ 20
327
+ 0
328
+ 7
329
+ 6
330
+ 49
331
+ 7
332
+ 1
333
+ 15
334
+ 20
335
+ 0
336
+ 7
337
+ 8
338
+ 49
339
+ 9
340
+ 1
341
+ 15
342
+ 20
343
+ 0
344
+ 7
345
+ 10
346
+ 49
347
+ 11
348
+ 1
349
+ 11
350
+ I
351
+ 4
352
+ I
353
+ 1
354
+ I
355
+ 1
356
+ I
357
+ 1
358
+ n
359
+ p
360
+ 12
361
+ x
362
+ 30
363
+ attributes_watchable_by_primer
364
+ x
365
+ 14
366
+ watch_calls_to
367
+ x
368
+ 7
369
+ include
370
+ x
371
+ 15
372
+ InstanceMethods
373
+ n
374
+ x
375
+ 8
376
+ __send__
377
+ x
378
+ 26
379
+ notify_primer_after_create
380
+ x
381
+ 12
382
+ after_create
383
+ x
384
+ 26
385
+ notify_primer_after_update
386
+ x
387
+ 12
388
+ after_update
389
+ x
390
+ 27
391
+ notify_primer_after_destroy
392
+ x
393
+ 13
394
+ after_destroy
395
+ p
396
+ 13
397
+ I
398
+ -1
399
+ I
400
+ 5
401
+ I
402
+ 0
403
+ I
404
+ 6
405
+ I
406
+ d
407
+ I
408
+ 7
409
+ I
410
+ 18
411
+ I
412
+ 8
413
+ I
414
+ 20
415
+ I
416
+ 9
417
+ I
418
+ 28
419
+ I
420
+ a
421
+ I
422
+ 30
423
+ x
424
+ 73
425
+ /Users/jcoglan/projects/primer/lib/primer/watcher/active_record_macros.rb
426
+ p
427
+ 1
428
+ x
429
+ 5
430
+ klass
431
+ x
432
+ 13
433
+ attach_method
434
+ x
435
+ 30
436
+ attributes_watchable_by_primer
437
+ M
438
+ 1
439
+ n
440
+ n
441
+ x
442
+ 30
443
+ attributes_watchable_by_primer
444
+ i
445
+ 19
446
+ 5
447
+ 48
448
+ 0
449
+ 5
450
+ 48
451
+ 1
452
+ 81
453
+ 2
454
+ 19
455
+ 0
456
+ 15
457
+ 20
458
+ 0
459
+ 56
460
+ 3
461
+ 50
462
+ 4
463
+ 0
464
+ 11
465
+ I
466
+ 3
467
+ I
468
+ 1
469
+ I
470
+ 0
471
+ I
472
+ 0
473
+ n
474
+ p
475
+ 5
476
+ x
477
+ 7
478
+ columns
479
+ x
480
+ 27
481
+ reflect_on_all_associations
482
+ x
483
+ 1
484
+ +
485
+ M
486
+ 1
487
+ p
488
+ 2
489
+ x
490
+ 9
491
+ for_block
492
+ t
493
+ n
494
+ x
495
+ 30
496
+ attributes_watchable_by_primer
497
+ i
498
+ 13
499
+ 57
500
+ 19
501
+ 0
502
+ 15
503
+ 20
504
+ 0
505
+ 49
506
+ 0
507
+ 0
508
+ 49
509
+ 1
510
+ 0
511
+ 11
512
+ I
513
+ 3
514
+ I
515
+ 1
516
+ I
517
+ 1
518
+ I
519
+ 1
520
+ n
521
+ p
522
+ 2
523
+ x
524
+ 4
525
+ name
526
+ x
527
+ 4
528
+ to_s
529
+ p
530
+ 3
531
+ I
532
+ 0
533
+ I
534
+ f
535
+ I
536
+ d
537
+ x
538
+ 73
539
+ /Users/jcoglan/projects/primer/lib/primer/watcher/active_record_macros.rb
540
+ p
541
+ 1
542
+ x
543
+ 1
544
+ c
545
+ x
546
+ 3
547
+ map
548
+ p
549
+ 7
550
+ I
551
+ -1
552
+ I
553
+ d
554
+ I
555
+ 0
556
+ I
557
+ e
558
+ I
559
+ b
560
+ I
561
+ f
562
+ I
563
+ 13
564
+ x
565
+ 73
566
+ /Users/jcoglan/projects/primer/lib/primer/watcher/active_record_macros.rb
567
+ p
568
+ 1
569
+ x
570
+ 10
571
+ attributes
572
+ x
573
+ 17
574
+ method_visibility
575
+ x
576
+ 15
577
+ add_defn_method
578
+ x
579
+ 27
580
+ primer_foreign_key_mappings
581
+ M
582
+ 1
583
+ n
584
+ n
585
+ x
586
+ 27
587
+ primer_foreign_key_mappings
588
+ i
589
+ 49
590
+ 5
591
+ 7
592
+ 0
593
+ 49
594
+ 1
595
+ 1
596
+ 9
597
+ 12
598
+ 7
599
+ 2
600
+ 8
601
+ 13
602
+ 1
603
+ 9
604
+ 20
605
+ 39
606
+ 0
607
+ 11
608
+ 8
609
+ 21
610
+ 1
611
+ 15
612
+ 5
613
+ 48
614
+ 3
615
+ 56
616
+ 4
617
+ 50
618
+ 5
619
+ 0
620
+ 56
621
+ 6
622
+ 50
623
+ 7
624
+ 0
625
+ 19
626
+ 0
627
+ 15
628
+ 45
629
+ 8
630
+ 9
631
+ 20
632
+ 0
633
+ 49
634
+ 10
635
+ 1
636
+ 38
637
+ 0
638
+ 11
639
+ I
640
+ 3
641
+ I
642
+ 1
643
+ I
644
+ 0
645
+ I
646
+ 0
647
+ n
648
+ p
649
+ 11
650
+ x
651
+ 28
652
+ @primer_foreign_key_mappings
653
+ x
654
+ 31
655
+ __instance_variable_defined_p__
656
+ s
657
+ 17
658
+ instance-variable
659
+ x
660
+ 27
661
+ reflect_on_all_associations
662
+ M
663
+ 1
664
+ p
665
+ 2
666
+ x
667
+ 9
668
+ for_block
669
+ t
670
+ n
671
+ x
672
+ 27
673
+ primer_foreign_key_mappings
674
+ i
675
+ 14
676
+ 57
677
+ 19
678
+ 0
679
+ 15
680
+ 20
681
+ 0
682
+ 49
683
+ 0
684
+ 0
685
+ 7
686
+ 1
687
+ 83
688
+ 2
689
+ 11
690
+ I
691
+ 4
692
+ I
693
+ 1
694
+ I
695
+ 1
696
+ I
697
+ 1
698
+ n
699
+ p
700
+ 3
701
+ x
702
+ 5
703
+ macro
704
+ x
705
+ 10
706
+ belongs_to
707
+ x
708
+ 2
709
+ ==
710
+ p
711
+ 5
712
+ I
713
+ 0
714
+ I
715
+ 15
716
+ I
717
+ 1
718
+ I
719
+ 16
720
+ I
721
+ e
722
+ x
723
+ 73
724
+ /Users/jcoglan/projects/primer/lib/primer/watcher/active_record_macros.rb
725
+ p
726
+ 1
727
+ x
728
+ 1
729
+ a
730
+ x
731
+ 6
732
+ select
733
+ M
734
+ 1
735
+ p
736
+ 2
737
+ x
738
+ 9
739
+ for_block
740
+ t
741
+ n
742
+ x
743
+ 27
744
+ primer_foreign_key_mappings
745
+ i
746
+ 20
747
+ 57
748
+ 19
749
+ 0
750
+ 15
751
+ 20
752
+ 0
753
+ 49
754
+ 0
755
+ 0
756
+ 49
757
+ 1
758
+ 0
759
+ 20
760
+ 0
761
+ 49
762
+ 2
763
+ 0
764
+ 35
765
+ 2
766
+ 11
767
+ I
768
+ 4
769
+ I
770
+ 1
771
+ I
772
+ 1
773
+ I
774
+ 1
775
+ n
776
+ p
777
+ 3
778
+ x
779
+ 16
780
+ primary_key_name
781
+ x
782
+ 4
783
+ to_s
784
+ x
785
+ 4
786
+ name
787
+ p
788
+ 5
789
+ I
790
+ 0
791
+ I
792
+ 15
793
+ I
794
+ 1
795
+ I
796
+ 17
797
+ I
798
+ 14
799
+ x
800
+ 73
801
+ /Users/jcoglan/projects/primer/lib/primer/watcher/active_record_macros.rb
802
+ p
803
+ 1
804
+ x
805
+ 1
806
+ a
807
+ x
808
+ 3
809
+ map
810
+ x
811
+ 4
812
+ Hash
813
+ n
814
+ x
815
+ 2
816
+ []
817
+ p
818
+ 9
819
+ I
820
+ -1
821
+ I
822
+ 12
823
+ I
824
+ 0
825
+ I
826
+ 13
827
+ I
828
+ 16
829
+ I
830
+ 15
831
+ I
832
+ 26
833
+ I
834
+ 19
835
+ I
836
+ 31
837
+ x
838
+ 73
839
+ /Users/jcoglan/projects/primer/lib/primer/watcher/active_record_macros.rb
840
+ p
841
+ 1
842
+ x
843
+ 12
844
+ foreign_keys
845
+ x
846
+ 23
847
+ patch_method_for_primer
848
+ M
849
+ 1
850
+ n
851
+ n
852
+ x
853
+ 23
854
+ patch_method_for_primer
855
+ i
856
+ 93
857
+ 26
858
+ 93
859
+ 0
860
+ 15
861
+ 29
862
+ 17
863
+ 0
864
+ 5
865
+ 20
866
+ 0
867
+ 47
868
+ 49
869
+ 0
870
+ 1
871
+ 30
872
+ 8
873
+ 44
874
+ 26
875
+ 93
876
+ 1
877
+ 15
878
+ 24
879
+ 13
880
+ 45
881
+ 1
882
+ 2
883
+ 12
884
+ 49
885
+ 3
886
+ 1
887
+ 10
888
+ 34
889
+ 8
890
+ 39
891
+ 15
892
+ 1
893
+ 25
894
+ 8
895
+ 44
896
+ 15
897
+ 92
898
+ 1
899
+ 27
900
+ 34
901
+ 92
902
+ 0
903
+ 27
904
+ 19
905
+ 1
906
+ 15
907
+ 20
908
+ 1
909
+ 9
910
+ 60
911
+ 54
912
+ 89
913
+ 4
914
+ 11
915
+ 8
916
+ 61
917
+ 1
918
+ 15
919
+ 5
920
+ 7
921
+ 5
922
+ 20
923
+ 0
924
+ 47
925
+ 101
926
+ 6
927
+ 7
928
+ 7
929
+ 20
930
+ 0
931
+ 47
932
+ 101
933
+ 6
934
+ 7
935
+ 8
936
+ 20
937
+ 0
938
+ 47
939
+ 101
940
+ 6
941
+ 7
942
+ 9
943
+ 63
944
+ 7
945
+ 47
946
+ 49
947
+ 10
948
+ 1
949
+ 11
950
+ I
951
+ c
952
+ I
953
+ 2
954
+ I
955
+ 1
956
+ I
957
+ 1
958
+ n
959
+ p
960
+ 11
961
+ x
962
+ 15
963
+ instance_method
964
+ x
965
+ 13
966
+ StandardError
967
+ n
968
+ x
969
+ 3
970
+ ===
971
+ x
972
+ 23
973
+ patch_method_for_primer
974
+ s
975
+ 14
976
+ def
977
+ x
978
+ 4
979
+ to_s
980
+ s
981
+ 38
982
+
983
+ result = read_attribute(:
984
+ s
985
+ 41
986
+ )
987
+ Primer::Watcher.log(self, :
988
+ s
989
+ 52
990
+ , [], nil, result)
991
+ result
992
+ end
993
+
994
+ x
995
+ 10
996
+ class_eval
997
+ p
998
+ 17
999
+ I
1000
+ -1
1001
+ I
1002
+ 1c
1003
+ I
1004
+ 0
1005
+ I
1006
+ 1d
1007
+ I
1008
+ 32
1009
+ I
1010
+ 1e
1011
+ I
1012
+ 3e
1013
+ I
1014
+ 1f
1015
+ I
1016
+ 3f
1017
+ I
1018
+ 20
1019
+ I
1020
+ 48
1021
+ I
1022
+ 21
1023
+ I
1024
+ 4f
1025
+ I
1026
+ 22
1027
+ I
1028
+ 58
1029
+ I
1030
+ 1f
1031
+ I
1032
+ 5d
1033
+ x
1034
+ 73
1035
+ /Users/jcoglan/projects/primer/lib/primer/watcher/active_record_macros.rb
1036
+ p
1037
+ 2
1038
+ x
1039
+ 11
1040
+ method_name
1041
+ x
1042
+ 6
1043
+ method
1044
+ x
1045
+ 25
1046
+ unpatch_method_for_primer
1047
+ M
1048
+ 1
1049
+ n
1050
+ n
1051
+ x
1052
+ 25
1053
+ unpatch_method_for_primer
1054
+ i
1055
+ 90
1056
+ 45
1057
+ 0
1058
+ 1
1059
+ 20
1060
+ 0
1061
+ 49
1062
+ 2
1063
+ 1
1064
+ 19
1065
+ 1
1066
+ 15
1067
+ 26
1068
+ 93
1069
+ 0
1070
+ 15
1071
+ 29
1072
+ 28
1073
+ 0
1074
+ 5
1075
+ 20
1076
+ 1
1077
+ 47
1078
+ 49
1079
+ 3
1080
+ 1
1081
+ 30
1082
+ 8
1083
+ 55
1084
+ 26
1085
+ 93
1086
+ 1
1087
+ 15
1088
+ 24
1089
+ 13
1090
+ 45
1091
+ 4
1092
+ 5
1093
+ 12
1094
+ 49
1095
+ 6
1096
+ 1
1097
+ 10
1098
+ 45
1099
+ 8
1100
+ 50
1101
+ 15
1102
+ 1
1103
+ 25
1104
+ 8
1105
+ 55
1106
+ 15
1107
+ 92
1108
+ 1
1109
+ 27
1110
+ 34
1111
+ 92
1112
+ 0
1113
+ 27
1114
+ 19
1115
+ 2
1116
+ 15
1117
+ 20
1118
+ 2
1119
+ 9
1120
+ 71
1121
+ 54
1122
+ 89
1123
+ 7
1124
+ 11
1125
+ 8
1126
+ 72
1127
+ 1
1128
+ 15
1129
+ 5
1130
+ 7
1131
+ 8
1132
+ 20
1133
+ 0
1134
+ 47
1135
+ 101
1136
+ 9
1137
+ 7
1138
+ 10
1139
+ 63
1140
+ 3
1141
+ 47
1142
+ 49
1143
+ 11
1144
+ 1
1145
+ 11
1146
+ I
1147
+ 9
1148
+ I
1149
+ 3
1150
+ I
1151
+ 1
1152
+ I
1153
+ 1
1154
+ n
1155
+ p
1156
+ 12
1157
+ x
1158
+ 6
1159
+ Macros
1160
+ n
1161
+ x
1162
+ 10
1163
+ alias_name
1164
+ x
1165
+ 15
1166
+ instance_method
1167
+ x
1168
+ 13
1169
+ StandardError
1170
+ n
1171
+ x
1172
+ 3
1173
+ ===
1174
+ x
1175
+ 25
1176
+ unpatch_method_for_primer
1177
+ s
1178
+ 24
1179
+ undef_method :
1180
+ x
1181
+ 4
1182
+ to_s
1183
+ s
1184
+ 1
1185
+
1186
+
1187
+ x
1188
+ 10
1189
+ class_eval
1190
+ p
1191
+ 15
1192
+ I
1193
+ -1
1194
+ I
1195
+ 28
1196
+ I
1197
+ 0
1198
+ I
1199
+ 29
1200
+ I
1201
+ b
1202
+ I
1203
+ 2a
1204
+ I
1205
+ 3d
1206
+ I
1207
+ 2b
1208
+ I
1209
+ 49
1210
+ I
1211
+ 2c
1212
+ I
1213
+ 4a
1214
+ I
1215
+ 2d
1216
+ I
1217
+ 55
1218
+ I
1219
+ 2c
1220
+ I
1221
+ 5a
1222
+ x
1223
+ 73
1224
+ /Users/jcoglan/projects/primer/lib/primer/watcher/active_record_macros.rb
1225
+ p
1226
+ 3
1227
+ x
1228
+ 11
1229
+ method_name
1230
+ x
1231
+ 10
1232
+ alias_name
1233
+ x
1234
+ 6
1235
+ method
1236
+ x
1237
+ 15
1238
+ InstanceMethods
1239
+ x
1240
+ 11
1241
+ open_module
1242
+ x
1243
+ 15
1244
+ __module_init__
1245
+ M
1246
+ 1
1247
+ n
1248
+ n
1249
+ x
1250
+ 15
1251
+ InstanceMethods
1252
+ i
1253
+ 58
1254
+ 5
1255
+ 66
1256
+ 99
1257
+ 7
1258
+ 0
1259
+ 7
1260
+ 1
1261
+ 65
1262
+ 67
1263
+ 49
1264
+ 2
1265
+ 0
1266
+ 49
1267
+ 3
1268
+ 4
1269
+ 15
1270
+ 99
1271
+ 7
1272
+ 4
1273
+ 7
1274
+ 5
1275
+ 65
1276
+ 67
1277
+ 49
1278
+ 2
1279
+ 0
1280
+ 49
1281
+ 3
1282
+ 4
1283
+ 15
1284
+ 99
1285
+ 7
1286
+ 6
1287
+ 7
1288
+ 7
1289
+ 65
1290
+ 67
1291
+ 49
1292
+ 2
1293
+ 0
1294
+ 49
1295
+ 3
1296
+ 4
1297
+ 15
1298
+ 99
1299
+ 7
1300
+ 8
1301
+ 7
1302
+ 9
1303
+ 65
1304
+ 67
1305
+ 49
1306
+ 2
1307
+ 0
1308
+ 49
1309
+ 3
1310
+ 4
1311
+ 11
1312
+ I
1313
+ 5
1314
+ I
1315
+ 0
1316
+ I
1317
+ 0
1318
+ I
1319
+ 0
1320
+ n
1321
+ p
1322
+ 10
1323
+ x
1324
+ 17
1325
+ primer_identifier
1326
+ M
1327
+ 1
1328
+ n
1329
+ n
1330
+ x
1331
+ 17
1332
+ primer_identifier
1333
+ i
1334
+ 25
1335
+ 7
1336
+ 0
1337
+ 64
1338
+ 5
1339
+ 49
1340
+ 1
1341
+ 0
1342
+ 49
1343
+ 2
1344
+ 0
1345
+ 5
1346
+ 5
1347
+ 49
1348
+ 1
1349
+ 0
1350
+ 49
1351
+ 3
1352
+ 0
1353
+ 47
1354
+ 49
1355
+ 4
1356
+ 1
1357
+ 35
1358
+ 3
1359
+ 11
1360
+ I
1361
+ 4
1362
+ I
1363
+ 0
1364
+ I
1365
+ 0
1366
+ I
1367
+ 0
1368
+ n
1369
+ p
1370
+ 5
1371
+ s
1372
+ 12
1373
+ ActiveRecord
1374
+ x
1375
+ 5
1376
+ class
1377
+ x
1378
+ 4
1379
+ name
1380
+ x
1381
+ 11
1382
+ primary_key
1383
+ x
1384
+ 14
1385
+ read_attribute
1386
+ p
1387
+ 5
1388
+ I
1389
+ -1
1390
+ I
1391
+ 32
1392
+ I
1393
+ 0
1394
+ I
1395
+ 33
1396
+ I
1397
+ 19
1398
+ x
1399
+ 73
1400
+ /Users/jcoglan/projects/primer/lib/primer/watcher/active_record_macros.rb
1401
+ p
1402
+ 0
1403
+ x
1404
+ 17
1405
+ method_visibility
1406
+ x
1407
+ 15
1408
+ add_defn_method
1409
+ x
1410
+ 26
1411
+ notify_primer_after_create
1412
+ M
1413
+ 1
1414
+ n
1415
+ n
1416
+ x
1417
+ 26
1418
+ notify_primer_after_create
1419
+ i
1420
+ 27
1421
+ 45
1422
+ 0
1423
+ 1
1424
+ 49
1425
+ 2
1426
+ 0
1427
+ 7
1428
+ 3
1429
+ 7
1430
+ 4
1431
+ 64
1432
+ 5
1433
+ 49
1434
+ 5
1435
+ 0
1436
+ 49
1437
+ 6
1438
+ 0
1439
+ 5
1440
+ 48
1441
+ 7
1442
+ 35
1443
+ 3
1444
+ 49
1445
+ 8
1446
+ 2
1447
+ 11
1448
+ I
1449
+ 5
1450
+ I
1451
+ 0
1452
+ I
1453
+ 0
1454
+ I
1455
+ 0
1456
+ n
1457
+ p
1458
+ 9
1459
+ x
1460
+ 6
1461
+ Primer
1462
+ n
1463
+ x
1464
+ 3
1465
+ bus
1466
+ x
1467
+ 13
1468
+ active_record
1469
+ s
1470
+ 6
1471
+ create
1472
+ x
1473
+ 5
1474
+ class
1475
+ x
1476
+ 4
1477
+ name
1478
+ x
1479
+ 10
1480
+ attributes
1481
+ x
1482
+ 7
1483
+ publish
1484
+ p
1485
+ 5
1486
+ I
1487
+ -1
1488
+ I
1489
+ 36
1490
+ I
1491
+ 0
1492
+ I
1493
+ 37
1494
+ I
1495
+ 1b
1496
+ x
1497
+ 73
1498
+ /Users/jcoglan/projects/primer/lib/primer/watcher/active_record_macros.rb
1499
+ p
1500
+ 0
1501
+ x
1502
+ 26
1503
+ notify_primer_after_update
1504
+ M
1505
+ 1
1506
+ n
1507
+ n
1508
+ x
1509
+ 26
1510
+ notify_primer_after_update
1511
+ i
1512
+ 30
1513
+ 45
1514
+ 0
1515
+ 1
1516
+ 49
1517
+ 2
1518
+ 0
1519
+ 7
1520
+ 3
1521
+ 7
1522
+ 4
1523
+ 64
1524
+ 5
1525
+ 49
1526
+ 5
1527
+ 0
1528
+ 49
1529
+ 6
1530
+ 0
1531
+ 5
1532
+ 48
1533
+ 7
1534
+ 5
1535
+ 48
1536
+ 8
1537
+ 35
1538
+ 4
1539
+ 49
1540
+ 9
1541
+ 2
1542
+ 11
1543
+ I
1544
+ 6
1545
+ I
1546
+ 0
1547
+ I
1548
+ 0
1549
+ I
1550
+ 0
1551
+ n
1552
+ p
1553
+ 10
1554
+ x
1555
+ 6
1556
+ Primer
1557
+ n
1558
+ x
1559
+ 3
1560
+ bus
1561
+ x
1562
+ 13
1563
+ active_record
1564
+ s
1565
+ 6
1566
+ update
1567
+ x
1568
+ 5
1569
+ class
1570
+ x
1571
+ 4
1572
+ name
1573
+ x
1574
+ 10
1575
+ attributes
1576
+ x
1577
+ 7
1578
+ changes
1579
+ x
1580
+ 7
1581
+ publish
1582
+ p
1583
+ 5
1584
+ I
1585
+ -1
1586
+ I
1587
+ 3a
1588
+ I
1589
+ 0
1590
+ I
1591
+ 3b
1592
+ I
1593
+ 1e
1594
+ x
1595
+ 73
1596
+ /Users/jcoglan/projects/primer/lib/primer/watcher/active_record_macros.rb
1597
+ p
1598
+ 0
1599
+ x
1600
+ 27
1601
+ notify_primer_after_destroy
1602
+ M
1603
+ 1
1604
+ n
1605
+ n
1606
+ x
1607
+ 27
1608
+ notify_primer_after_destroy
1609
+ i
1610
+ 27
1611
+ 45
1612
+ 0
1613
+ 1
1614
+ 49
1615
+ 2
1616
+ 0
1617
+ 7
1618
+ 3
1619
+ 7
1620
+ 4
1621
+ 64
1622
+ 5
1623
+ 49
1624
+ 5
1625
+ 0
1626
+ 49
1627
+ 6
1628
+ 0
1629
+ 5
1630
+ 48
1631
+ 7
1632
+ 35
1633
+ 3
1634
+ 49
1635
+ 8
1636
+ 2
1637
+ 11
1638
+ I
1639
+ 5
1640
+ I
1641
+ 0
1642
+ I
1643
+ 0
1644
+ I
1645
+ 0
1646
+ n
1647
+ p
1648
+ 9
1649
+ x
1650
+ 6
1651
+ Primer
1652
+ n
1653
+ x
1654
+ 3
1655
+ bus
1656
+ x
1657
+ 13
1658
+ active_record
1659
+ s
1660
+ 7
1661
+ destroy
1662
+ x
1663
+ 5
1664
+ class
1665
+ x
1666
+ 4
1667
+ name
1668
+ x
1669
+ 10
1670
+ attributes
1671
+ x
1672
+ 7
1673
+ publish
1674
+ p
1675
+ 5
1676
+ I
1677
+ -1
1678
+ I
1679
+ 3e
1680
+ I
1681
+ 0
1682
+ I
1683
+ 3f
1684
+ I
1685
+ 1b
1686
+ x
1687
+ 73
1688
+ /Users/jcoglan/projects/primer/lib/primer/watcher/active_record_macros.rb
1689
+ p
1690
+ 0
1691
+ p
1692
+ 9
1693
+ I
1694
+ 2
1695
+ I
1696
+ 32
1697
+ I
1698
+ 10
1699
+ I
1700
+ 36
1701
+ I
1702
+ 1e
1703
+ I
1704
+ 3a
1705
+ I
1706
+ 2c
1707
+ I
1708
+ 3e
1709
+ I
1710
+ 3a
1711
+ x
1712
+ 73
1713
+ /Users/jcoglan/projects/primer/lib/primer/watcher/active_record_macros.rb
1714
+ p
1715
+ 0
1716
+ p
1717
+ 13
1718
+ I
1719
+ 2
1720
+ I
1721
+ 5
1722
+ I
1723
+ d
1724
+ I
1725
+ d
1726
+ I
1727
+ 1b
1728
+ I
1729
+ 12
1730
+ I
1731
+ 29
1732
+ I
1733
+ 1c
1734
+ I
1735
+ 37
1736
+ I
1737
+ 28
1738
+ I
1739
+ 45
1740
+ I
1741
+ 31
1742
+ I
1743
+ 5f
1744
+ x
1745
+ 73
1746
+ /Users/jcoglan/projects/primer/lib/primer/watcher/active_record_macros.rb
1747
+ p
1748
+ 0
1749
+ x
1750
+ 13
1751
+ attach_method
1752
+ p
1753
+ 3
1754
+ I
1755
+ 2
1756
+ I
1757
+ 4
1758
+ I
1759
+ 1c
1760
+ x
1761
+ 73
1762
+ /Users/jcoglan/projects/primer/lib/primer/watcher/active_record_macros.rb
1763
+ p
1764
+ 0
1765
+ x
1766
+ 13
1767
+ attach_method
1768
+ p
1769
+ 3
1770
+ I
1771
+ 2
1772
+ I
1773
+ 2
1774
+ I
1775
+ 1c
1776
+ x
1777
+ 73
1778
+ /Users/jcoglan/projects/primer/lib/primer/watcher/active_record_macros.rb
1779
+ p
1780
+ 0
1781
+ x
1782
+ 13
1783
+ attach_method
1784
+ p
1785
+ 3
1786
+ I
1787
+ 0
1788
+ I
1789
+ 1
1790
+ I
1791
+ 1c
1792
+ x
1793
+ 73
1794
+ /Users/jcoglan/projects/primer/lib/primer/watcher/active_record_macros.rb
1795
+ p
1796
+ 0