primer 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +17 -0
- data/README.rdoc +74 -35
- data/example/README.rdoc +33 -23
- data/example/application.rb +2 -2
- data/example/console.rb +133 -0
- data/example/db/blog.sqlite3 +0 -0
- data/example/{models → db}/connection.rb +0 -0
- data/example/environment.rb +17 -4
- data/example/models/comment.rb +5 -0
- data/example/models/post.rb +5 -0
- data/example/script/setup_database.rb +8 -2
- data/example/views/comments.erb +6 -0
- data/example/views/layout.erb +1 -1
- data/example/views/show.erb +5 -1
- data/lib/primer/bus/amqp.rb +7 -5
- data/lib/primer/bus/amqp.rbc +1045 -0
- data/lib/primer/bus/memory.rbc +344 -0
- data/lib/primer/bus.rb +3 -2
- data/lib/primer/bus.rbc +872 -0
- data/lib/primer/cache/memory.rbc +1443 -0
- data/lib/primer/cache/redis.rb +2 -2
- data/lib/primer/cache/redis.rbc +1643 -0
- data/lib/primer/cache.rb +2 -16
- data/lib/primer/cache.rbc +1502 -0
- data/lib/primer/enabler.rbc +414 -0
- data/lib/primer/helpers.rbc +1438 -0
- data/lib/primer/lazyness.rb +63 -0
- data/lib/primer/lazyness.rbc +1442 -0
- data/lib/primer/real_time.rbc +1999 -0
- data/lib/primer/route_set.rb +1 -0
- data/lib/primer/route_set.rbc +1475 -0
- data/lib/primer/watcher/active_record_macros.rb +13 -3
- data/lib/primer/watcher/active_record_macros.rbc +1796 -0
- data/lib/primer/watcher/macros.rb +11 -14
- data/lib/primer/watcher/macros.rbc +1628 -0
- data/lib/primer/watcher.rb +2 -7
- data/lib/primer/watcher.rbc +1416 -0
- data/lib/primer/worker/active_record_agent.rb +30 -33
- data/lib/primer/worker/active_record_agent.rbc +2840 -0
- data/lib/primer/worker/changes_agent.rb +20 -0
- data/lib/primer/worker/changes_agent.rbc +578 -0
- data/lib/primer/worker.rb +20 -3
- data/lib/primer/worker.rbc +1254 -0
- data/lib/primer.rb +10 -2
- data/lib/primer.rbc +944 -0
- data/spec/db/test.sqlite3 +0 -0
- data/spec/models/artist.rb +3 -2
- data/spec/models/artist.rbc +288 -0
- data/spec/models/blog_post.rb +3 -1
- data/spec/models/blog_post.rbc +181 -0
- data/spec/models/calendar.rbc +209 -0
- data/spec/models/concert.rbc +211 -0
- data/spec/models/performance.rbc +177 -0
- data/spec/models/person.rb +1 -0
- data/spec/models/person.rbc +306 -0
- data/spec/models/watchable.rbc +363 -0
- data/spec/primer/bus_spec.rbc +940 -0
- data/spec/primer/cache_spec.rb +3 -3
- data/spec/primer/cache_spec.rbc +8535 -0
- data/spec/primer/helpers/erb_spec.rb +14 -14
- data/spec/primer/helpers/erb_spec.rbc +2485 -0
- data/spec/primer/lazyness_spec.rb +61 -0
- data/spec/primer/lazyness_spec.rbc +1408 -0
- data/spec/primer/watcher/active_record_spec.rb +15 -15
- data/spec/primer/watcher/active_record_spec.rbc +5202 -0
- data/spec/primer/watcher_spec.rbc +2645 -0
- data/spec/schema.rbc +775 -0
- data/spec/spec_helper.rb +3 -0
- data/spec/spec_helper.rbc +1193 -0
- data/spec/templates/page.erb +0 -1
- metadata +77 -70
- data/example/models/blog_post.rb +0 -4
data/spec/templates/page.erb
CHANGED
metadata
CHANGED
@@ -1,12 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: primer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 1
|
8
|
-
- 0
|
9
|
-
version: 0.1.0
|
4
|
+
prerelease:
|
5
|
+
version: 0.2.0
|
10
6
|
platform: ruby
|
11
7
|
authors:
|
12
8
|
- James Coglan
|
@@ -14,8 +10,7 @@ autorequire:
|
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
12
|
|
17
|
-
date:
|
18
|
-
default_executable:
|
13
|
+
date: 2011-07-16 00:00:00 Z
|
19
14
|
dependencies:
|
20
15
|
- !ruby/object:Gem::Dependency
|
21
16
|
name: redis
|
@@ -23,12 +18,8 @@ dependencies:
|
|
23
18
|
requirement: &id001 !ruby/object:Gem::Requirement
|
24
19
|
none: false
|
25
20
|
requirements:
|
26
|
-
- -
|
21
|
+
- - ">="
|
27
22
|
- !ruby/object:Gem::Version
|
28
|
-
segments:
|
29
|
-
- 2
|
30
|
-
- 1
|
31
|
-
- 1
|
32
23
|
version: 2.1.1
|
33
24
|
type: :runtime
|
34
25
|
version_requirements: *id001
|
@@ -38,12 +29,8 @@ dependencies:
|
|
38
29
|
requirement: &id002 !ruby/object:Gem::Requirement
|
39
30
|
none: false
|
40
31
|
requirements:
|
41
|
-
- -
|
32
|
+
- - ">="
|
42
33
|
- !ruby/object:Gem::Version
|
43
|
-
segments:
|
44
|
-
- 1
|
45
|
-
- 1
|
46
|
-
- 0
|
47
34
|
version: 1.1.0
|
48
35
|
type: :runtime
|
49
36
|
version_requirements: *id002
|
@@ -53,12 +40,8 @@ dependencies:
|
|
53
40
|
requirement: &id003 !ruby/object:Gem::Requirement
|
54
41
|
none: false
|
55
42
|
requirements:
|
56
|
-
- -
|
43
|
+
- - ">="
|
57
44
|
- !ruby/object:Gem::Version
|
58
|
-
segments:
|
59
|
-
- 0
|
60
|
-
- 6
|
61
|
-
- 7
|
62
45
|
version: 0.6.7
|
63
46
|
type: :runtime
|
64
47
|
version_requirements: *id003
|
@@ -70,9 +53,6 @@ dependencies:
|
|
70
53
|
requirements:
|
71
54
|
- - ">="
|
72
55
|
- !ruby/object:Gem::Version
|
73
|
-
segments:
|
74
|
-
- 0
|
75
|
-
- 5
|
76
56
|
version: "0.5"
|
77
57
|
type: :runtime
|
78
58
|
version_requirements: *id004
|
@@ -84,8 +64,6 @@ dependencies:
|
|
84
64
|
requirements:
|
85
65
|
- - ">="
|
86
66
|
- !ruby/object:Gem::Version
|
87
|
-
segments:
|
88
|
-
- 0
|
89
67
|
version: "0"
|
90
68
|
type: :development
|
91
69
|
version_requirements: *id005
|
@@ -97,8 +75,6 @@ dependencies:
|
|
97
75
|
requirements:
|
98
76
|
- - ">="
|
99
77
|
- !ruby/object:Gem::Version
|
100
|
-
segments:
|
101
|
-
- 0
|
102
78
|
version: "0"
|
103
79
|
type: :development
|
104
80
|
version_requirements: *id006
|
@@ -110,8 +86,6 @@ dependencies:
|
|
110
86
|
requirements:
|
111
87
|
- - ">="
|
112
88
|
- !ruby/object:Gem::Version
|
113
|
-
segments:
|
114
|
-
- 0
|
115
89
|
version: "0"
|
116
90
|
type: :development
|
117
91
|
version_requirements: *id007
|
@@ -123,9 +97,7 @@ dependencies:
|
|
123
97
|
requirements:
|
124
98
|
- - ">="
|
125
99
|
- !ruby/object:Gem::Version
|
126
|
-
|
127
|
-
- 0
|
128
|
-
version: "0"
|
100
|
+
version: 3.0.0
|
129
101
|
type: :development
|
130
102
|
version_requirements: *id008
|
131
103
|
- !ruby/object:Gem::Dependency
|
@@ -136,8 +108,6 @@ dependencies:
|
|
136
108
|
requirements:
|
137
109
|
- - ">="
|
138
110
|
- !ruby/object:Gem::Version
|
139
|
-
segments:
|
140
|
-
- 0
|
141
111
|
version: "0"
|
142
112
|
type: :development
|
143
113
|
version_requirements: *id009
|
@@ -151,52 +121,93 @@ extra_rdoc_files:
|
|
151
121
|
- README.rdoc
|
152
122
|
- example/README.rdoc
|
153
123
|
files:
|
124
|
+
- History.txt
|
154
125
|
- README.rdoc
|
155
|
-
- spec/
|
126
|
+
- spec/db/test.sqlite3
|
127
|
+
- spec/models/artist.rb
|
128
|
+
- spec/models/artist.rbc
|
129
|
+
- spec/models/blog_post.rb
|
130
|
+
- spec/models/blog_post.rbc
|
131
|
+
- spec/models/calendar.rb
|
132
|
+
- spec/models/calendar.rbc
|
133
|
+
- spec/models/concert.rb
|
134
|
+
- spec/models/concert.rbc
|
135
|
+
- spec/models/performance.rb
|
136
|
+
- spec/models/performance.rbc
|
137
|
+
- spec/models/person.rb
|
138
|
+
- spec/models/person.rbc
|
139
|
+
- spec/models/watchable.rb
|
140
|
+
- spec/models/watchable.rbc
|
156
141
|
- spec/primer/bus_spec.rb
|
157
|
-
- spec/primer/
|
142
|
+
- spec/primer/bus_spec.rbc
|
143
|
+
- spec/primer/cache_spec.rb
|
144
|
+
- spec/primer/cache_spec.rbc
|
158
145
|
- spec/primer/helpers/erb_spec.rb
|
146
|
+
- spec/primer/helpers/erb_spec.rbc
|
147
|
+
- spec/primer/lazyness_spec.rb
|
148
|
+
- spec/primer/lazyness_spec.rbc
|
159
149
|
- spec/primer/watcher/active_record_spec.rb
|
160
|
-
- spec/primer/
|
161
|
-
- spec/
|
150
|
+
- spec/primer/watcher/active_record_spec.rbc
|
151
|
+
- spec/primer/watcher_spec.rb
|
152
|
+
- spec/primer/watcher_spec.rbc
|
162
153
|
- spec/schema.rb
|
163
|
-
- spec/
|
164
|
-
- spec/
|
165
|
-
- spec/
|
166
|
-
- spec/
|
167
|
-
- spec/models/artist.rb
|
168
|
-
- spec/models/person.rb
|
169
|
-
- spec/models/concert.rb
|
154
|
+
- spec/schema.rbc
|
155
|
+
- spec/spec_helper.rb
|
156
|
+
- spec/spec_helper.rbc
|
157
|
+
- spec/templates/page.erb
|
170
158
|
- lib/javascript/primer.js
|
171
|
-
- lib/primer/
|
159
|
+
- lib/primer/bus/amqp.rb
|
160
|
+
- lib/primer/bus/amqp.rbc
|
161
|
+
- lib/primer/bus/memory.rb
|
162
|
+
- lib/primer/bus/memory.rbc
|
163
|
+
- lib/primer/bus.rb
|
164
|
+
- lib/primer/bus.rbc
|
172
165
|
- lib/primer/cache/memory.rb
|
166
|
+
- lib/primer/cache/memory.rbc
|
173
167
|
- lib/primer/cache/redis.rb
|
168
|
+
- lib/primer/cache/redis.rbc
|
169
|
+
- lib/primer/cache.rb
|
170
|
+
- lib/primer/cache.rbc
|
171
|
+
- lib/primer/enabler.rb
|
172
|
+
- lib/primer/enabler.rbc
|
173
|
+
- lib/primer/helpers.rb
|
174
|
+
- lib/primer/helpers.rbc
|
175
|
+
- lib/primer/lazyness.rb
|
176
|
+
- lib/primer/lazyness.rbc
|
174
177
|
- lib/primer/real_time.rb
|
175
|
-
- lib/primer/
|
178
|
+
- lib/primer/real_time.rbc
|
176
179
|
- lib/primer/route_set.rb
|
177
|
-
- lib/primer/
|
178
|
-
- lib/primer/bus/memory.rb
|
179
|
-
- lib/primer/bus/amqp.rb
|
180
|
-
- lib/primer/worker.rb
|
181
|
-
- lib/primer/bus.rb
|
180
|
+
- lib/primer/route_set.rbc
|
182
181
|
- lib/primer/watcher/active_record_macros.rb
|
182
|
+
- lib/primer/watcher/active_record_macros.rbc
|
183
183
|
- lib/primer/watcher/macros.rb
|
184
|
-
- lib/primer/
|
185
|
-
- lib/primer/
|
184
|
+
- lib/primer/watcher/macros.rbc
|
185
|
+
- lib/primer/watcher.rb
|
186
|
+
- lib/primer/watcher.rbc
|
187
|
+
- lib/primer/worker/active_record_agent.rb
|
188
|
+
- lib/primer/worker/active_record_agent.rbc
|
189
|
+
- lib/primer/worker/changes_agent.rb
|
190
|
+
- lib/primer/worker/changes_agent.rbc
|
191
|
+
- lib/primer/worker.rb
|
192
|
+
- lib/primer/worker.rbc
|
186
193
|
- lib/primer.rb
|
194
|
+
- lib/primer.rbc
|
187
195
|
- example/application.rb
|
188
196
|
- example/config.ru
|
197
|
+
- example/console.rb
|
198
|
+
- example/db/blog.sqlite3
|
199
|
+
- example/db/connection.rb
|
200
|
+
- example/environment.rb
|
201
|
+
- example/models/comment.rb
|
202
|
+
- example/models/post.rb
|
203
|
+
- example/public/style.css
|
189
204
|
- example/README.rdoc
|
190
205
|
- example/script/setup_database.rb
|
191
|
-
- example/
|
192
|
-
- example/worker.rb
|
193
|
-
- example/environment.rb
|
194
|
-
- example/views/show.erb
|
195
|
-
- example/views/layout.erb
|
206
|
+
- example/views/comments.erb
|
196
207
|
- example/views/index.erb
|
197
|
-
- example/
|
198
|
-
- example/
|
199
|
-
|
208
|
+
- example/views/layout.erb
|
209
|
+
- example/views/show.erb
|
210
|
+
- example/worker.rb
|
200
211
|
homepage: http://github.com/jcoglan/primer
|
201
212
|
licenses: []
|
202
213
|
|
@@ -213,21 +224,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
213
224
|
requirements:
|
214
225
|
- - ">="
|
215
226
|
- !ruby/object:Gem::Version
|
216
|
-
segments:
|
217
|
-
- 0
|
218
227
|
version: "0"
|
219
228
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
220
229
|
none: false
|
221
230
|
requirements:
|
222
231
|
- - ">="
|
223
232
|
- !ruby/object:Gem::Version
|
224
|
-
segments:
|
225
|
-
- 0
|
226
233
|
version: "0"
|
227
234
|
requirements: []
|
228
235
|
|
229
236
|
rubyforge_project:
|
230
|
-
rubygems_version: 1.
|
237
|
+
rubygems_version: 1.8.5
|
231
238
|
signing_key:
|
232
239
|
specification_version: 3
|
233
240
|
summary: Intelligent caching, no observers necessary
|
data/example/models/blog_post.rb
DELETED