soca 0.1.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,15 @@
1
+ /**
2
+ * this file contains the json representation for rewrite rules
3
+ **/
4
+ [
5
+ { // rewriting / to index.html
6
+ "from":"/",
7
+ "to":"index.html",
8
+ "method":"GET",
9
+ "query":{}
10
+ },
11
+ { // keeping relative urls sane
12
+ "from":"/*",
13
+ "to":"/*"
14
+ }
15
+ ]
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soca
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
5
4
  prerelease: false
6
5
  segments:
7
6
  - 0
8
- - 1
9
7
  - 2
10
- version: 0.1.2
8
+ - 0
9
+ version: 0.2.0
11
10
  platform: ruby
12
11
  authors:
13
12
  - Aaron Quint
@@ -15,148 +14,323 @@ autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2010-10-26 00:00:00 -07:00
17
+ date: 2011-03-21 00:00:00 -07:00
19
18
  default_executable: soca
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: json
23
- prerelease: false
24
22
  requirement: &id001 !ruby/object:Gem::Requirement
25
23
  none: false
26
24
  requirements:
27
25
  - - ~>
28
26
  - !ruby/object:Gem::Version
29
- hash: 11
30
27
  segments:
31
28
  - 1
32
29
  - 4
33
30
  - 6
34
31
  version: 1.4.6
35
32
  type: :runtime
33
+ prerelease: false
36
34
  version_requirements: *id001
37
35
  - !ruby/object:Gem::Dependency
38
36
  name: mime-types
39
- prerelease: false
40
37
  requirement: &id002 !ruby/object:Gem::Requirement
41
38
  none: false
42
39
  requirements:
43
40
  - - ~>
44
41
  - !ruby/object:Gem::Version
45
- hash: 47
46
42
  segments:
47
43
  - 1
48
44
  - 16
49
45
  version: "1.16"
50
46
  type: :runtime
47
+ prerelease: false
51
48
  version_requirements: *id002
52
49
  - !ruby/object:Gem::Dependency
53
50
  name: typhoeus
54
- prerelease: false
55
51
  requirement: &id003 !ruby/object:Gem::Requirement
56
52
  none: false
57
53
  requirements:
58
54
  - - ~>
59
55
  - !ruby/object:Gem::Version
60
- hash: 37
61
56
  segments:
62
57
  - 0
63
- - 1
64
- - 31
65
- version: 0.1.31
58
+ - 2
59
+ version: "0.2"
66
60
  type: :runtime
61
+ prerelease: false
67
62
  version_requirements: *id003
68
63
  - !ruby/object:Gem::Dependency
69
64
  name: thor
70
- prerelease: false
71
65
  requirement: &id004 !ruby/object:Gem::Requirement
72
66
  none: false
73
67
  requirements:
74
68
  - - ~>
75
69
  - !ruby/object:Gem::Version
76
- hash: 39
77
70
  segments:
78
71
  - 0
79
72
  - 14
80
73
  - 0
81
74
  version: 0.14.0
82
75
  type: :runtime
76
+ prerelease: false
83
77
  version_requirements: *id004
84
78
  - !ruby/object:Gem::Dependency
85
79
  name: jim
86
- prerelease: false
87
80
  requirement: &id005 !ruby/object:Gem::Requirement
88
81
  none: false
89
82
  requirements:
90
83
  - - ~>
91
84
  - !ruby/object:Gem::Version
92
- hash: 17
93
85
  segments:
94
86
  - 0
95
- - 2
96
87
  - 3
97
- version: 0.2.3
88
+ - 1
89
+ version: 0.3.1
98
90
  type: :runtime
91
+ prerelease: false
99
92
  version_requirements: *id005
100
93
  - !ruby/object:Gem::Dependency
101
94
  name: compass
102
- prerelease: false
103
95
  requirement: &id006 !ruby/object:Gem::Requirement
104
96
  none: false
105
97
  requirements:
106
98
  - - ~>
107
99
  - !ruby/object:Gem::Version
108
- hash: 61
109
100
  segments:
110
101
  - 0
111
102
  - 10
112
103
  - 5
113
104
  version: 0.10.5
114
105
  type: :runtime
106
+ prerelease: false
115
107
  version_requirements: *id006
116
108
  - !ruby/object:Gem::Dependency
117
109
  name: mustache
118
- prerelease: false
119
110
  requirement: &id007 !ruby/object:Gem::Requirement
120
111
  none: false
121
112
  requirements:
122
113
  - - ~>
123
114
  - !ruby/object:Gem::Version
124
- hash: 55
125
115
  segments:
126
116
  - 0
127
117
  - 11
128
118
  - 2
129
119
  version: 0.11.2
130
120
  type: :runtime
121
+ prerelease: false
131
122
  version_requirements: *id007
132
123
  - !ruby/object:Gem::Dependency
133
- name: shoulda
134
- prerelease: false
124
+ name: coffee-script
135
125
  requirement: &id008 !ruby/object:Gem::Requirement
126
+ none: false
127
+ requirements:
128
+ - - ~>
129
+ - !ruby/object:Gem::Version
130
+ segments:
131
+ - 2
132
+ - 1
133
+ - 2
134
+ version: 2.1.2
135
+ type: :runtime
136
+ prerelease: false
137
+ version_requirements: *id008
138
+ - !ruby/object:Gem::Dependency
139
+ name: rake
140
+ requirement: &id009 !ruby/object:Gem::Requirement
136
141
  none: false
137
142
  requirements:
138
143
  - - ">="
139
144
  - !ruby/object:Gem::Version
140
- hash: 3
141
145
  segments:
142
146
  - 0
143
147
  version: "0"
144
148
  type: :development
145
- version_requirements: *id008
149
+ prerelease: false
150
+ version_requirements: *id009
151
+ - !ruby/object:Gem::Dependency
152
+ name: jeweler
153
+ requirement: &id010 !ruby/object:Gem::Requirement
154
+ none: false
155
+ requirements:
156
+ - - ">="
157
+ - !ruby/object:Gem::Version
158
+ segments:
159
+ - 0
160
+ version: "0"
161
+ type: :development
162
+ prerelease: false
163
+ version_requirements: *id010
164
+ - !ruby/object:Gem::Dependency
165
+ name: shoulda
166
+ requirement: &id011 !ruby/object:Gem::Requirement
167
+ none: false
168
+ requirements:
169
+ - - ">="
170
+ - !ruby/object:Gem::Version
171
+ segments:
172
+ - 0
173
+ version: "0"
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: *id011
146
177
  - !ruby/object:Gem::Dependency
147
178
  name: yard
179
+ requirement: &id012 !ruby/object:Gem::Requirement
180
+ none: false
181
+ requirements:
182
+ - - ">="
183
+ - !ruby/object:Gem::Version
184
+ segments:
185
+ - 0
186
+ version: "0"
187
+ type: :development
148
188
  prerelease: false
149
- requirement: &id009 !ruby/object:Gem::Requirement
189
+ version_requirements: *id012
190
+ - !ruby/object:Gem::Dependency
191
+ name: json
192
+ requirement: &id013 !ruby/object:Gem::Requirement
193
+ none: false
194
+ requirements:
195
+ - - ~>
196
+ - !ruby/object:Gem::Version
197
+ segments:
198
+ - 1
199
+ - 4
200
+ - 6
201
+ version: 1.4.6
202
+ type: :runtime
203
+ prerelease: false
204
+ version_requirements: *id013
205
+ - !ruby/object:Gem::Dependency
206
+ name: mime-types
207
+ requirement: &id014 !ruby/object:Gem::Requirement
208
+ none: false
209
+ requirements:
210
+ - - ~>
211
+ - !ruby/object:Gem::Version
212
+ segments:
213
+ - 1
214
+ - 16
215
+ version: "1.16"
216
+ type: :runtime
217
+ prerelease: false
218
+ version_requirements: *id014
219
+ - !ruby/object:Gem::Dependency
220
+ name: typhoeus
221
+ requirement: &id015 !ruby/object:Gem::Requirement
222
+ none: false
223
+ requirements:
224
+ - - ~>
225
+ - !ruby/object:Gem::Version
226
+ segments:
227
+ - 0
228
+ - 2
229
+ version: "0.2"
230
+ type: :runtime
231
+ prerelease: false
232
+ version_requirements: *id015
233
+ - !ruby/object:Gem::Dependency
234
+ name: thor
235
+ requirement: &id016 !ruby/object:Gem::Requirement
236
+ none: false
237
+ requirements:
238
+ - - ~>
239
+ - !ruby/object:Gem::Version
240
+ segments:
241
+ - 0
242
+ - 14
243
+ - 0
244
+ version: 0.14.0
245
+ type: :runtime
246
+ prerelease: false
247
+ version_requirements: *id016
248
+ - !ruby/object:Gem::Dependency
249
+ name: jim
250
+ requirement: &id017 !ruby/object:Gem::Requirement
251
+ none: false
252
+ requirements:
253
+ - - ~>
254
+ - !ruby/object:Gem::Version
255
+ segments:
256
+ - 0
257
+ - 3
258
+ - 1
259
+ version: 0.3.1
260
+ type: :runtime
261
+ prerelease: false
262
+ version_requirements: *id017
263
+ - !ruby/object:Gem::Dependency
264
+ name: compass
265
+ requirement: &id018 !ruby/object:Gem::Requirement
266
+ none: false
267
+ requirements:
268
+ - - ~>
269
+ - !ruby/object:Gem::Version
270
+ segments:
271
+ - 0
272
+ - 10
273
+ - 5
274
+ version: 0.10.5
275
+ type: :runtime
276
+ prerelease: false
277
+ version_requirements: *id018
278
+ - !ruby/object:Gem::Dependency
279
+ name: mustache
280
+ requirement: &id019 !ruby/object:Gem::Requirement
281
+ none: false
282
+ requirements:
283
+ - - ~>
284
+ - !ruby/object:Gem::Version
285
+ segments:
286
+ - 0
287
+ - 11
288
+ - 2
289
+ version: 0.11.2
290
+ type: :runtime
291
+ prerelease: false
292
+ version_requirements: *id019
293
+ - !ruby/object:Gem::Dependency
294
+ name: coffee-script
295
+ requirement: &id020 !ruby/object:Gem::Requirement
296
+ none: false
297
+ requirements:
298
+ - - ~>
299
+ - !ruby/object:Gem::Version
300
+ segments:
301
+ - 2
302
+ - 1
303
+ - 2
304
+ version: 2.1.2
305
+ type: :runtime
306
+ prerelease: false
307
+ version_requirements: *id020
308
+ - !ruby/object:Gem::Dependency
309
+ name: shoulda
310
+ requirement: &id021 !ruby/object:Gem::Requirement
150
311
  none: false
151
312
  requirements:
152
313
  - - ">="
153
314
  - !ruby/object:Gem::Version
154
- hash: 3
155
315
  segments:
156
316
  - 0
157
317
  version: "0"
158
318
  type: :development
159
- version_requirements: *id009
319
+ prerelease: false
320
+ version_requirements: *id021
321
+ - !ruby/object:Gem::Dependency
322
+ name: yard
323
+ requirement: &id022 !ruby/object:Gem::Requirement
324
+ none: false
325
+ requirements:
326
+ - - ">="
327
+ - !ruby/object:Gem::Version
328
+ segments:
329
+ - 0
330
+ version: "0"
331
+ type: :development
332
+ prerelease: false
333
+ version_requirements: *id022
160
334
  description: soca is a different way of writing apps for CouchDB. The structure is up to you.
161
335
  email: aaron@quirkey.com
162
336
  executables:
@@ -168,7 +342,8 @@ extra_rdoc_files:
168
342
  - README.md
169
343
  files:
170
344
  - .document
171
- - .gitignore
345
+ - Gemfile
346
+ - Gemfile.lock
172
347
  - HISTORY
173
348
  - LICENSE
174
349
  - README.md
@@ -177,8 +352,10 @@ files:
177
352
  - lib/soca.rb
178
353
  - lib/soca/cli.rb
179
354
  - lib/soca/plugin.rb
355
+ - lib/soca/plugins/coffeescript.rb
180
356
  - lib/soca/plugins/compass.rb
181
357
  - lib/soca/plugins/jim.rb
358
+ - lib/soca/plugins/macro.rb
182
359
  - lib/soca/plugins/mustache.rb
183
360
  - lib/soca/pusher.rb
184
361
  - lib/soca/templates/Jimfile
@@ -191,34 +368,40 @@ files:
191
368
  - lib/soca/templates/js/app.js
192
369
  - lib/soca/templates/js/vendor/jquery-1.4.2.js
193
370
  - lib/soca/templates/js/vendor/jquery.couch-0.11.js
194
- - lib/soca/templates/js/vendor/sammy-0.6.2.js
371
+ - lib/soca/templates/js/vendor/sammy-0.6.3.js
195
372
  - lib/soca/templates/js/vendor/sammy.couch-0.1.0.js
196
373
  - lib/soca/templates/js/vendor/sha1.js
374
+ - lib/soca/templates/rewrites.js.erb
197
375
  - soca.gemspec
198
376
  - test/helper.rb
377
+ - test/test_plugins.rb
199
378
  - test/test_soca_cli.rb
200
379
  - test/test_soca_pusher.rb
201
380
  - test/testapp/.couchapprc
202
381
  - test/testapp/Jimfile
203
382
  - test/testapp/config.js
204
383
  - test/testapp/css/app.css
384
+ - test/testapp/db/views/only_map/map.js
205
385
  - test/testapp/db/views/recent/map.js
386
+ - test/testapp/db/views/recent/reduce.js
206
387
  - test/testapp/hooks/before_build.rb
388
+ - test/testapp/hooks/before_push.rb
207
389
  - test/testapp/index.html
208
390
  - test/testapp/js/app.js
209
- - test/testapp/js/bundled.js
391
+ - test/testapp/js/default.js
210
392
  - test/testapp/js/vendor/jquery-1.4.2.js
211
393
  - test/testapp/js/vendor/json2.js
212
394
  - test/testapp/js/vendor/sammy-0.5.4.js
213
395
  - test/testapp/js/vendor/sammy.mustache-0.5.4.js
396
+ - test/testapp/rewrites.js
214
397
  - test/testapp/templates/index.mustache
215
398
  has_rdoc: true
216
399
  homepage: http://github.com/quirkey/soca
217
400
  licenses: []
218
401
 
219
402
  post_install_message:
220
- rdoc_options:
221
- - --charset=UTF-8
403
+ rdoc_options: []
404
+
222
405
  require_paths:
223
406
  - lib
224
407
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -226,7 +409,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
226
409
  requirements:
227
410
  - - ">="
228
411
  - !ruby/object:Gem::Version
229
- hash: 3
412
+ hash: 3066963087799799412
230
413
  segments:
231
414
  - 0
232
415
  version: "0"
@@ -235,7 +418,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
235
418
  requirements:
236
419
  - - ">="
237
420
  - !ruby/object:Gem::Version
238
- hash: 3
239
421
  segments:
240
422
  - 0
241
423
  version: "0"
@@ -248,6 +430,8 @@ specification_version: 3
248
430
  summary: Sammy on CouchApp
249
431
  test_files:
250
432
  - test/helper.rb
433
+ - test/test_plugins.rb
251
434
  - test/test_soca_cli.rb
252
435
  - test/test_soca_pusher.rb
253
436
  - test/testapp/hooks/before_build.rb
437
+ - test/testapp/hooks/before_push.rb