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,414 @@
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
+ Enabler
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
+ Enabler
125
+ i
126
+ 44
127
+ 5
128
+ 66
129
+ 99
130
+ 7
131
+ 0
132
+ 7
133
+ 1
134
+ 65
135
+ 67
136
+ 49
137
+ 2
138
+ 0
139
+ 49
140
+ 3
141
+ 4
142
+ 15
143
+ 99
144
+ 7
145
+ 4
146
+ 7
147
+ 5
148
+ 65
149
+ 67
150
+ 49
151
+ 2
152
+ 0
153
+ 49
154
+ 3
155
+ 4
156
+ 15
157
+ 99
158
+ 7
159
+ 6
160
+ 7
161
+ 7
162
+ 65
163
+ 67
164
+ 49
165
+ 2
166
+ 0
167
+ 49
168
+ 3
169
+ 4
170
+ 11
171
+ I
172
+ 5
173
+ I
174
+ 0
175
+ I
176
+ 0
177
+ I
178
+ 0
179
+ n
180
+ p
181
+ 8
182
+ x
183
+ 7
184
+ enable!
185
+ M
186
+ 1
187
+ n
188
+ n
189
+ x
190
+ 7
191
+ enable!
192
+ i
193
+ 8
194
+ 2
195
+ 38
196
+ 0
197
+ 15
198
+ 5
199
+ 48
200
+ 1
201
+ 11
202
+ I
203
+ 1
204
+ I
205
+ 0
206
+ I
207
+ 0
208
+ I
209
+ 0
210
+ n
211
+ p
212
+ 2
213
+ x
214
+ 8
215
+ @enabled
216
+ x
217
+ 9
218
+ on_enable
219
+ p
220
+ 7
221
+ I
222
+ -1
223
+ I
224
+ 3
225
+ I
226
+ 0
227
+ I
228
+ 4
229
+ I
230
+ 4
231
+ I
232
+ 5
233
+ I
234
+ 8
235
+ x
236
+ 52
237
+ /Users/jcoglan/projects/primer/lib/primer/enabler.rb
238
+ p
239
+ 0
240
+ x
241
+ 17
242
+ method_visibility
243
+ x
244
+ 15
245
+ add_defn_method
246
+ x
247
+ 8
248
+ disable!
249
+ M
250
+ 1
251
+ n
252
+ n
253
+ x
254
+ 8
255
+ disable!
256
+ i
257
+ 8
258
+ 3
259
+ 38
260
+ 0
261
+ 15
262
+ 5
263
+ 48
264
+ 1
265
+ 11
266
+ I
267
+ 1
268
+ I
269
+ 0
270
+ I
271
+ 0
272
+ I
273
+ 0
274
+ n
275
+ p
276
+ 2
277
+ x
278
+ 8
279
+ @enabled
280
+ x
281
+ 10
282
+ on_disable
283
+ p
284
+ 7
285
+ I
286
+ -1
287
+ I
288
+ 8
289
+ I
290
+ 0
291
+ I
292
+ 9
293
+ I
294
+ 4
295
+ I
296
+ a
297
+ I
298
+ 8
299
+ x
300
+ 52
301
+ /Users/jcoglan/projects/primer/lib/primer/enabler.rb
302
+ p
303
+ 0
304
+ x
305
+ 8
306
+ enabled?
307
+ M
308
+ 1
309
+ n
310
+ n
311
+ x
312
+ 8
313
+ enabled?
314
+ i
315
+ 15
316
+ 39
317
+ 0
318
+ 10
319
+ 7
320
+ 2
321
+ 8
322
+ 8
323
+ 3
324
+ 10
325
+ 13
326
+ 2
327
+ 8
328
+ 14
329
+ 3
330
+ 11
331
+ I
332
+ 1
333
+ I
334
+ 0
335
+ I
336
+ 0
337
+ I
338
+ 0
339
+ n
340
+ p
341
+ 1
342
+ x
343
+ 8
344
+ @enabled
345
+ p
346
+ 5
347
+ I
348
+ -1
349
+ I
350
+ d
351
+ I
352
+ 0
353
+ I
354
+ e
355
+ I
356
+ f
357
+ x
358
+ 52
359
+ /Users/jcoglan/projects/primer/lib/primer/enabler.rb
360
+ p
361
+ 0
362
+ p
363
+ 7
364
+ I
365
+ 2
366
+ I
367
+ 3
368
+ I
369
+ 10
370
+ I
371
+ 8
372
+ I
373
+ 1e
374
+ I
375
+ d
376
+ I
377
+ 2c
378
+ x
379
+ 52
380
+ /Users/jcoglan/projects/primer/lib/primer/enabler.rb
381
+ p
382
+ 0
383
+ x
384
+ 13
385
+ attach_method
386
+ p
387
+ 3
388
+ I
389
+ 2
390
+ I
391
+ 2
392
+ I
393
+ 1c
394
+ x
395
+ 52
396
+ /Users/jcoglan/projects/primer/lib/primer/enabler.rb
397
+ p
398
+ 0
399
+ x
400
+ 13
401
+ attach_method
402
+ p
403
+ 3
404
+ I
405
+ 0
406
+ I
407
+ 1
408
+ I
409
+ 1c
410
+ x
411
+ 52
412
+ /Users/jcoglan/projects/primer/lib/primer/enabler.rb
413
+ p
414
+ 0