spontaneous 0.2.0.beta4 → 0.2.0.beta5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (205) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +39 -0
  3. data/Gemfile +11 -6
  4. data/Readme.markdown +136 -69
  5. data/application/css/core.css.scss +27 -7
  6. data/application/css/editing.css.scss +4 -26
  7. data/application/css/schema_error.css.scss +22 -0
  8. data/application/js/content.js +11 -3
  9. data/application/js/edit_panel.js +1 -4
  10. data/application/js/field/file.js +17 -0
  11. data/application/js/field/image.js +30 -21
  12. data/application/js/field/string.js +4 -1
  13. data/application/js/field_preview.js +21 -16
  14. data/application/js/publish.js +6 -6
  15. data/application/js/types.js +5 -13
  16. data/application/js/views.js +2 -2
  17. data/application/js/views/box_view.js +3 -2
  18. data/application/js/views/page_piece_view.js +1 -1
  19. data/application/js/views/piece_view.js +1 -1
  20. data/application/views/schema_modification_error.html.erb +13 -3
  21. data/db/migrations/20131104101935_site_must_publish_all.rb +14 -0
  22. data/lib/spontaneous.rb +0 -1
  23. data/lib/spontaneous/box_style.rb +15 -9
  24. data/lib/spontaneous/capistrano/deploy.rb +13 -1
  25. data/lib/spontaneous/change.rb +11 -13
  26. data/lib/spontaneous/cli.rb +5 -2
  27. data/lib/spontaneous/cli/assets.rb +7 -1
  28. data/lib/spontaneous/cli/console.rb +7 -1
  29. data/lib/spontaneous/cli/content.rb +35 -0
  30. data/lib/spontaneous/cli/fields.rb +3 -2
  31. data/lib/spontaneous/cli/generate.rb +5 -2
  32. data/lib/spontaneous/cli/server.rb +12 -8
  33. data/lib/spontaneous/cli/site.rb +12 -12
  34. data/lib/spontaneous/cli/user.rb +28 -14
  35. data/lib/spontaneous/collections/box_set.rb +4 -4
  36. data/lib/spontaneous/collections/field_set.rb +4 -4
  37. data/lib/spontaneous/collections/prototype_set.rb +12 -4
  38. data/lib/spontaneous/data_mapper.rb +11 -7
  39. data/lib/spontaneous/data_mapper/content_model.rb +8 -0
  40. data/lib/spontaneous/data_mapper/content_model/associations.rb +1 -1
  41. data/lib/spontaneous/data_mapper/dataset.rb +14 -2
  42. data/lib/spontaneous/data_mapper/scope.rb +33 -13
  43. data/lib/spontaneous/facet.rb +4 -0
  44. data/lib/spontaneous/field.rb +12 -12
  45. data/lib/spontaneous/field/base.rb +27 -22
  46. data/lib/spontaneous/field/boolean.rb +4 -4
  47. data/lib/spontaneous/field/date.rb +2 -2
  48. data/lib/spontaneous/field/file.rb +24 -18
  49. data/lib/spontaneous/field/html.rb +1 -1
  50. data/lib/spontaneous/field/image.rb +6 -19
  51. data/lib/spontaneous/field/location.rb +1 -1
  52. data/lib/spontaneous/field/long_string.rb +3 -3
  53. data/lib/spontaneous/field/markdown.rb +3 -3
  54. data/lib/spontaneous/field/select.rb +2 -2
  55. data/lib/spontaneous/field/string.rb +2 -2
  56. data/lib/spontaneous/field/tags.rb +2 -2
  57. data/lib/spontaneous/field/update.rb +21 -20
  58. data/lib/spontaneous/field/webvideo.rb +6 -6
  59. data/lib/spontaneous/field/webvideo/fallback.rb +2 -2
  60. data/lib/spontaneous/field/webvideo/vimeo.rb +7 -7
  61. data/lib/spontaneous/generators/site.rb +2 -2
  62. data/lib/spontaneous/generators/site/Gemfile.tt +5 -1
  63. data/lib/spontaneous/layout.rb +2 -2
  64. data/lib/spontaneous/media.rb +1 -0
  65. data/lib/spontaneous/media/file.rb +6 -5
  66. data/lib/spontaneous/media/image/attributes.rb +4 -0
  67. data/lib/spontaneous/media/image/renderable.rb +4 -4
  68. data/lib/spontaneous/media/store.rb +22 -0
  69. data/lib/spontaneous/{storage → media/store}/backend.rb +1 -1
  70. data/lib/spontaneous/{storage → media/store}/cloud.rb +1 -1
  71. data/lib/spontaneous/{storage → media/store}/local.rb +1 -1
  72. data/lib/spontaneous/media/temp_file.rb +1 -1
  73. data/lib/spontaneous/model.rb +10 -7
  74. data/lib/spontaneous/model/action.rb +7 -0
  75. data/lib/spontaneous/model/action/clean.rb +87 -0
  76. data/lib/spontaneous/model/box/allowed_types.rb +15 -1
  77. data/lib/spontaneous/model/core.rb +10 -0
  78. data/lib/spontaneous/model/core/aliases.rb +1 -1
  79. data/lib/spontaneous/model/core/content_groups.rb +1 -1
  80. data/lib/spontaneous/model/core/fields.rb +1 -1
  81. data/lib/spontaneous/model/core/modifications.rb +2 -2
  82. data/lib/spontaneous/model/core/page_search.rb +4 -0
  83. data/lib/spontaneous/model/core/publishing.rb +4 -17
  84. data/lib/spontaneous/model/core/render.rb +4 -4
  85. data/lib/spontaneous/model/core/styles.rb +2 -2
  86. data/lib/spontaneous/model/core/visibility.rb +6 -2
  87. data/lib/spontaneous/model/page.rb +6 -2
  88. data/lib/spontaneous/model/page/controllers.rb +55 -17
  89. data/lib/spontaneous/model/page/formats.rb +12 -7
  90. data/lib/spontaneous/model/page/layouts.rb +2 -2
  91. data/lib/spontaneous/model/page/locks.rb +4 -1
  92. data/lib/spontaneous/model/page/page_tree.rb +40 -6
  93. data/lib/spontaneous/output.rb +14 -52
  94. data/lib/spontaneous/output/context.rb +11 -39
  95. data/lib/spontaneous/output/context/navigation.rb +31 -0
  96. data/lib/spontaneous/output/format.rb +15 -19
  97. data/lib/spontaneous/output/renderable.rb +99 -0
  98. data/lib/spontaneous/output/store.rb +24 -0
  99. data/lib/spontaneous/output/store/backend.rb +52 -0
  100. data/lib/spontaneous/output/store/file.rb +77 -0
  101. data/lib/spontaneous/output/store/moneta.rb +117 -0
  102. data/lib/spontaneous/output/store/revision.rb +34 -0
  103. data/lib/spontaneous/output/store/store.rb +15 -0
  104. data/lib/spontaneous/output/store/transaction.rb +44 -0
  105. data/lib/spontaneous/output/template/engine.rb +17 -7
  106. data/lib/spontaneous/output/template/renderer.rb +66 -40
  107. data/lib/spontaneous/page_lock.rb +5 -7
  108. data/lib/spontaneous/page_piece.rb +2 -2
  109. data/lib/spontaneous/permissions/user.rb +14 -7
  110. data/lib/spontaneous/plugins/application/features.rb +8 -4
  111. data/lib/spontaneous/plugins/application/state.rb +12 -6
  112. data/lib/spontaneous/prototypes/box_prototype.rb +9 -10
  113. data/lib/spontaneous/prototypes/field_prototype.rb +66 -15
  114. data/lib/spontaneous/publishing/immediate.rb +30 -26
  115. data/lib/spontaneous/rack.rb +12 -7
  116. data/lib/spontaneous/rack/back.rb +43 -37
  117. data/lib/spontaneous/rack/back/base.rb +4 -4
  118. data/lib/spontaneous/rack/back/changes.rb +2 -2
  119. data/lib/spontaneous/rack/back/file.rb +16 -24
  120. data/lib/spontaneous/rack/back/map.rb +5 -5
  121. data/lib/spontaneous/rack/back/preview.rb +3 -4
  122. data/lib/spontaneous/rack/back/schema.rb +1 -1
  123. data/lib/spontaneous/rack/back/site.rb +6 -7
  124. data/lib/spontaneous/rack/front.rb +19 -16
  125. data/lib/spontaneous/rack/middleware/authenticate.rb +3 -3
  126. data/lib/spontaneous/rack/middleware/reloader.rb +3 -2
  127. data/lib/spontaneous/rack/middleware/scope.rb +25 -19
  128. data/lib/spontaneous/rack/page_controller.rb +164 -13
  129. data/lib/spontaneous/rack/public.rb +23 -62
  130. data/lib/spontaneous/rack/static.rb +2 -3
  131. data/lib/spontaneous/schema.rb +27 -8
  132. data/lib/spontaneous/schema/schema_modification.rb +9 -1
  133. data/lib/spontaneous/schema/uid.rb +2 -2
  134. data/lib/spontaneous/schema/uid_map.rb +3 -2
  135. data/lib/spontaneous/search/database.rb +2 -2
  136. data/lib/spontaneous/search/field.rb +5 -3
  137. data/lib/spontaneous/search/index.rb +12 -7
  138. data/lib/spontaneous/search/results.rb +5 -3
  139. data/lib/spontaneous/server.rb +2 -2
  140. data/lib/spontaneous/site.rb +10 -3
  141. data/lib/spontaneous/site/features.rb +26 -6
  142. data/lib/spontaneous/site/helpers.rb +9 -12
  143. data/lib/spontaneous/site/level.rb +7 -9
  144. data/lib/spontaneous/site/map.rb +9 -11
  145. data/lib/spontaneous/site/paths.rb +5 -5
  146. data/lib/spontaneous/site/publishing.rb +83 -80
  147. data/lib/spontaneous/site/schema.rb +1 -7
  148. data/lib/spontaneous/site/search.rb +8 -18
  149. data/lib/spontaneous/site/selectors.rb +60 -54
  150. data/lib/spontaneous/site/state.rb +36 -30
  151. data/lib/spontaneous/site/storage.rb +10 -16
  152. data/lib/spontaneous/state.rb +8 -0
  153. data/lib/spontaneous/style.rb +32 -33
  154. data/lib/spontaneous/version.rb +1 -1
  155. data/spontaneous.gemspec +22 -21
  156. data/test/fixtures/public/templates/layouts/default.html.cut +1 -1
  157. data/test/fixtures/public/templates/layouts/default.pdf.cut +1 -1
  158. data/test/fixtures/public/templates/layouts/default.rss.cut +1 -1
  159. data/test/fixtures/search/config/indexes.rb +1 -1
  160. data/test/fixtures/serialisation/class_hash.yaml.erb +13 -1
  161. data/test/fixtures/serialisation/root_hash.yaml.erb +10 -0
  162. data/test/functional/test_application.rb +20 -24
  163. data/test/functional/test_back.rb +26 -27
  164. data/test/functional/test_cli.rb +146 -0
  165. data/test/functional/test_front.rb +287 -216
  166. data/test/functional/test_user_manager.rb +1 -1
  167. data/test/test_helper.rb +15 -11
  168. data/test/unit/test_alias.rb +32 -25
  169. data/test/unit/test_asset_bundler.rb +1 -1
  170. data/test/unit/test_assets.rb +34 -33
  171. data/test/unit/test_authentication.rb +1 -1
  172. data/test/unit/test_boxes.rb +16 -2
  173. data/test/unit/test_changesets.rb +23 -11
  174. data/test/unit/test_content.rb +15 -0
  175. data/test/unit/test_context.rb +139 -0
  176. data/test/unit/test_controllers.rb +374 -0
  177. data/test/{experimental → unit}/test_crypt.rb +0 -0
  178. data/test/unit/test_datamapper.rb +260 -237
  179. data/test/unit/test_datamapper_content.rb +42 -12
  180. data/test/{experimental → unit}/test_features.rb +85 -3
  181. data/test/unit/test_fields.rb +117 -42
  182. data/test/unit/test_formats.rb +11 -1
  183. data/test/unit/test_generators.rb +2 -2
  184. data/test/unit/test_helpers.rb +7 -8
  185. data/test/unit/test_images.rb +39 -2
  186. data/test/unit/test_layouts.rb +14 -12
  187. data/test/unit/test_media.rb +32 -23
  188. data/test/unit/test_output_store.rb +342 -0
  189. data/test/unit/test_page.rb +8 -1
  190. data/test/unit/test_permissions.rb +11 -7
  191. data/test/unit/test_plugins.rb +3 -3
  192. data/test/unit/test_prototype_set.rb +8 -1
  193. data/test/unit/test_publishing.rb +67 -54
  194. data/test/unit/test_render.rb +91 -38
  195. data/test/unit/test_revisions.rb +4 -4
  196. data/test/unit/test_schema.rb +109 -84
  197. data/test/unit/test_search.rb +42 -42
  198. data/test/unit/test_serialisation.rb +3 -2
  199. data/test/unit/test_site.rb +39 -27
  200. data/test/unit/test_storage.rb +9 -6
  201. data/test/unit/test_styles.rb +25 -32
  202. data/test/unit/test_templates.rb +8 -4
  203. metadata +89 -54
  204. data/lib/spontaneous/model/page/request.rb +0 -105
  205. data/lib/spontaneous/storage.rb +0 -22
@@ -52,7 +52,7 @@ describe "Templates" do
52
52
  true
53
53
  end
54
54
  end
55
- @context = @klass.new(Object.new, :html)
55
+ @context = @klass.new(Object.new)
56
56
  end
57
57
 
58
58
  after do
@@ -240,10 +240,14 @@ Parent Footer
240
240
  def field
241
241
  @klass ||= Class.new(Object) do
242
242
  attr_accessor :_format
243
- def to_html
244
- "(#{_format})"
243
+ def render(format, locals = {}, parent_context = nil)
244
+ case format
245
+ when :html
246
+ "(#{_format})"
247
+ else
248
+ to_s
249
+ end
245
250
  end
246
-
247
251
  def to_s
248
252
  "'#{_format}'"
249
253
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spontaneous
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0.beta4
4
+ version: 0.2.0.beta5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garry Hill
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-08 00:00:00.000000000 Z
11
+ date: 2014-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -16,70 +16,70 @@ dependencies:
16
16
  requirements:
17
17
  - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: 4.0.0
19
+ version: '4.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ~>
25
25
  - !ruby/object:Gem::Version
26
- version: 4.0.0
26
+ version: '4.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: coffee-script
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ~>
32
32
  - !ruby/object:Gem::Version
33
- version: 2.2.0
33
+ version: '2.2'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ~>
39
39
  - !ruby/object:Gem::Version
40
- version: 2.2.0
40
+ version: '2.2'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bcrypt-ruby
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ~>
46
46
  - !ruby/object:Gem::Version
47
- version: 3.0.1
47
+ version: '3.0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ~>
53
53
  - !ruby/object:Gem::Version
54
- version: 3.0.1
54
+ version: '3.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: bundler
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - '>'
60
60
  - !ruby/object:Gem::Version
61
- version: 1.0.15
61
+ version: '1.0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - '>'
67
67
  - !ruby/object:Gem::Version
68
- version: 1.0.15
68
+ version: '1.0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: cutaneous
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - ~>
74
74
  - !ruby/object:Gem::Version
75
- version: 0.1.6
75
+ version: '0.2'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - ~>
81
81
  - !ruby/object:Gem::Version
82
- version: 0.1.6
82
+ version: '0.2'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: erubis
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -100,70 +100,84 @@ dependencies:
100
100
  requirements:
101
101
  - - ~>
102
102
  - !ruby/object:Gem::Version
103
- version: 1.6.0
103
+ version: '1.17'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - ~>
109
109
  - !ruby/object:Gem::Version
110
- version: 1.6.0
110
+ version: '1.17'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: foreman
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - ~>
116
116
  - !ruby/object:Gem::Version
117
- version: 0.60.2
117
+ version: '0.60'
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - ~>
123
123
  - !ruby/object:Gem::Version
124
- version: 0.60.2
124
+ version: '0.60'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: kramdown
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - ~>
130
130
  - !ruby/object:Gem::Version
131
- version: 0.14.0
131
+ version: '0.14'
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - ~>
137
137
  - !ruby/object:Gem::Version
138
- version: 0.14.0
138
+ version: '0.14'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: launchy
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - ~>
144
144
  - !ruby/object:Gem::Version
145
- version: 2.1.2
145
+ version: '2.1'
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - ~>
151
151
  - !ruby/object:Gem::Version
152
- version: 2.1.2
152
+ version: '2.1'
153
+ - !ruby/object:Gem::Dependency
154
+ name: moneta
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ~>
158
+ - !ruby/object:Gem::Version
159
+ version: '0.7'
160
+ type: :runtime
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ~>
165
+ - !ruby/object:Gem::Version
166
+ version: '0.7'
153
167
  - !ruby/object:Gem::Dependency
154
168
  name: nokogiri
155
169
  requirement: !ruby/object:Gem::Requirement
156
170
  requirements:
157
171
  - - ~>
158
172
  - !ruby/object:Gem::Version
159
- version: 1.5.0
173
+ version: '1.5'
160
174
  type: :runtime
161
175
  prerelease: false
162
176
  version_requirements: !ruby/object:Gem::Requirement
163
177
  requirements:
164
178
  - - ~>
165
179
  - !ruby/object:Gem::Version
166
- version: 1.5.0
180
+ version: '1.5'
167
181
  - !ruby/object:Gem::Dependency
168
182
  name: posix-spawn
169
183
  requirement: !ruby/object:Gem::Requirement
@@ -198,56 +212,56 @@ dependencies:
198
212
  requirements:
199
213
  - - ~>
200
214
  - !ruby/object:Gem::Version
201
- version: 1.5.0
215
+ version: '1.5'
202
216
  type: :runtime
203
217
  prerelease: false
204
218
  version_requirements: !ruby/object:Gem::Requirement
205
219
  requirements:
206
220
  - - ~>
207
221
  - !ruby/object:Gem::Version
208
- version: 1.5.0
222
+ version: '1.5'
209
223
  - !ruby/object:Gem::Dependency
210
224
  name: rake
211
225
  requirement: !ruby/object:Gem::Requirement
212
226
  requirements:
213
227
  - - ~>
214
228
  - !ruby/object:Gem::Version
215
- version: 0.9.2
229
+ version: '0.9'
216
230
  type: :runtime
217
231
  prerelease: false
218
232
  version_requirements: !ruby/object:Gem::Requirement
219
233
  requirements:
220
234
  - - ~>
221
235
  - !ruby/object:Gem::Version
222
- version: 0.9.2
236
+ version: '0.9'
223
237
  - !ruby/object:Gem::Dependency
224
238
  name: sass
225
239
  requirement: !ruby/object:Gem::Requirement
226
240
  requirements:
227
241
  - - ~>
228
242
  - !ruby/object:Gem::Version
229
- version: 3.2.10
243
+ version: '3.2'
230
244
  type: :runtime
231
245
  prerelease: false
232
246
  version_requirements: !ruby/object:Gem::Requirement
233
247
  requirements:
234
248
  - - ~>
235
249
  - !ruby/object:Gem::Version
236
- version: 3.2.10
250
+ version: '3.2'
237
251
  - !ruby/object:Gem::Dependency
238
252
  name: sequel
239
253
  requirement: !ruby/object:Gem::Requirement
240
254
  requirements:
241
255
  - - ~>
242
256
  - !ruby/object:Gem::Version
243
- version: 3.43.0
257
+ version: '4.8'
244
258
  type: :runtime
245
259
  prerelease: false
246
260
  version_requirements: !ruby/object:Gem::Requirement
247
261
  requirements:
248
262
  - - ~>
249
263
  - !ruby/object:Gem::Version
250
- version: 3.43.0
264
+ version: '4.8'
251
265
  - !ruby/object:Gem::Dependency
252
266
  name: simultaneous
253
267
  requirement: !ruby/object:Gem::Requirement
@@ -268,42 +282,42 @@ dependencies:
268
282
  requirements:
269
283
  - - ~>
270
284
  - !ruby/object:Gem::Version
271
- version: 1.3.4
285
+ version: '1.3'
272
286
  type: :runtime
273
287
  prerelease: false
274
288
  version_requirements: !ruby/object:Gem::Requirement
275
289
  requirements:
276
290
  - - ~>
277
291
  - !ruby/object:Gem::Version
278
- version: 1.3.4
292
+ version: '1.3'
279
293
  - !ruby/object:Gem::Dependency
280
294
  name: skeptick
281
295
  requirement: !ruby/object:Gem::Requirement
282
296
  requirements:
283
297
  - - ~>
284
298
  - !ruby/object:Gem::Version
285
- version: 0.1.0
299
+ version: '0.1'
286
300
  type: :runtime
287
301
  prerelease: false
288
302
  version_requirements: !ruby/object:Gem::Requirement
289
303
  requirements:
290
304
  - - ~>
291
305
  - !ruby/object:Gem::Version
292
- version: 0.1.0
306
+ version: '0.1'
293
307
  - !ruby/object:Gem::Dependency
294
308
  name: sprockets
295
309
  requirement: !ruby/object:Gem::Requirement
296
310
  requirements:
297
311
  - - ~>
298
312
  - !ruby/object:Gem::Version
299
- version: 2.9.0
313
+ version: '2.9'
300
314
  type: :runtime
301
315
  prerelease: false
302
316
  version_requirements: !ruby/object:Gem::Requirement
303
317
  requirements:
304
318
  - - ~>
305
319
  - !ruby/object:Gem::Version
306
- version: 2.9.0
320
+ version: '2.9'
307
321
  - !ruby/object:Gem::Dependency
308
322
  name: stringex
309
323
  requirement: !ruby/object:Gem::Requirement
@@ -338,28 +352,28 @@ dependencies:
338
352
  requirements:
339
353
  - - ~>
340
354
  - !ruby/object:Gem::Version
341
- version: 0.16.0
355
+ version: '0.16'
342
356
  type: :runtime
343
357
  prerelease: false
344
358
  version_requirements: !ruby/object:Gem::Requirement
345
359
  requirements:
346
360
  - - ~>
347
361
  - !ruby/object:Gem::Version
348
- version: 0.16.0
362
+ version: '0.16'
349
363
  - !ruby/object:Gem::Dependency
350
364
  name: uglifier
351
365
  requirement: !ruby/object:Gem::Requirement
352
366
  requirements:
353
367
  - - ~>
354
368
  - !ruby/object:Gem::Version
355
- version: 1.3.0
369
+ version: '1.3'
356
370
  type: :runtime
357
371
  prerelease: false
358
372
  version_requirements: !ruby/object:Gem::Requirement
359
373
  requirements:
360
374
  - - ~>
361
375
  - !ruby/object:Gem::Version
362
- version: 1.3.0
376
+ version: '1.3'
363
377
  - !ruby/object:Gem::Dependency
364
378
  name: xapian-fu
365
379
  requirement: !ruby/object:Gem::Requirement
@@ -380,28 +394,28 @@ dependencies:
380
394
  requirements:
381
395
  - - ~>
382
396
  - !ruby/object:Gem::Version
383
- version: 1.1.0
397
+ version: '1.1'
384
398
  type: :runtime
385
399
  prerelease: false
386
400
  version_requirements: !ruby/object:Gem::Requirement
387
401
  requirements:
388
402
  - - ~>
389
403
  - !ruby/object:Gem::Version
390
- version: 1.1.0
404
+ version: '1.1'
391
405
  - !ruby/object:Gem::Dependency
392
406
  name: minitest
393
407
  requirement: !ruby/object:Gem::Requirement
394
408
  requirements:
395
409
  - - ~>
396
410
  - !ruby/object:Gem::Version
397
- version: 4.6.0
411
+ version: 4.7.0
398
412
  type: :development
399
413
  prerelease: false
400
414
  version_requirements: !ruby/object:Gem::Requirement
401
415
  requirements:
402
416
  - - ~>
403
417
  - !ruby/object:Gem::Version
404
- version: 4.6.0
418
+ version: 4.7.0
405
419
  - !ruby/object:Gem::Dependency
406
420
  name: minitest-colorize
407
421
  requirement: !ruby/object:Gem::Requirement
@@ -456,6 +470,7 @@ files:
456
470
  - .locat
457
471
  - .travis.yml
458
472
  - .travis/gemfiles/Gemfile.empty
473
+ - CHANGELOG.md
459
474
  - Gemfile
460
475
  - LICENSE
461
476
  - Rakefile
@@ -608,6 +623,7 @@ files:
608
623
  - db/migrations/20130114120000_create_revision_tables.rb
609
624
  - db/migrations/20130116220423_add_index_to_archive.rb
610
625
  - db/migrations/20130813111009_increase_path_length.rb
626
+ - db/migrations/20131104101935_site_must_publish_all.rb
611
627
  - docs/recipe-interface-screenshot.png
612
628
  - gem-public_cert.pem
613
629
  - lib/spontaneous.rb
@@ -626,6 +642,7 @@ files:
626
642
  - lib/spontaneous/cli.rb
627
643
  - lib/spontaneous/cli/assets.rb
628
644
  - lib/spontaneous/cli/console.rb
645
+ - lib/spontaneous/cli/content.rb
629
646
  - lib/spontaneous/cli/fields.rb
630
647
  - lib/spontaneous/cli/generate.rb
631
648
  - lib/spontaneous/cli/init.rb
@@ -741,8 +758,14 @@ files:
741
758
  - lib/spontaneous/media/image/processor.rb
742
759
  - lib/spontaneous/media/image/renderable.rb
743
760
  - lib/spontaneous/media/image/skeptick.rb
761
+ - lib/spontaneous/media/store.rb
762
+ - lib/spontaneous/media/store/backend.rb
763
+ - lib/spontaneous/media/store/cloud.rb
764
+ - lib/spontaneous/media/store/local.rb
744
765
  - lib/spontaneous/media/temp_file.rb
745
766
  - lib/spontaneous/model.rb
767
+ - lib/spontaneous/model/action.rb
768
+ - lib/spontaneous/model/action/clean.rb
746
769
  - lib/spontaneous/model/box.rb
747
770
  - lib/spontaneous/model/box/allowed_types.rb
748
771
  - lib/spontaneous/model/core.rb
@@ -776,12 +799,12 @@ files:
776
799
  - lib/spontaneous/model/page/locks.rb
777
800
  - lib/spontaneous/model/page/page_tree.rb
778
801
  - lib/spontaneous/model/page/paths.rb
779
- - lib/spontaneous/model/page/request.rb
780
802
  - lib/spontaneous/model/page/site_map.rb
781
803
  - lib/spontaneous/model/page/site_timestamps.rb
782
804
  - lib/spontaneous/model/piece.rb
783
805
  - lib/spontaneous/output.rb
784
806
  - lib/spontaneous/output/context.rb
807
+ - lib/spontaneous/output/context/navigation.rb
785
808
  - lib/spontaneous/output/context/render_cache.rb
786
809
  - lib/spontaneous/output/format.rb
787
810
  - lib/spontaneous/output/format/html.rb
@@ -791,6 +814,14 @@ files:
791
814
  - lib/spontaneous/output/helpers/conditional_comment_helper.rb
792
815
  - lib/spontaneous/output/helpers/script_helper.rb
793
816
  - lib/spontaneous/output/helpers/stylesheet_helper.rb
817
+ - lib/spontaneous/output/renderable.rb
818
+ - lib/spontaneous/output/store.rb
819
+ - lib/spontaneous/output/store/backend.rb
820
+ - lib/spontaneous/output/store/file.rb
821
+ - lib/spontaneous/output/store/moneta.rb
822
+ - lib/spontaneous/output/store/revision.rb
823
+ - lib/spontaneous/output/store/store.rb
824
+ - lib/spontaneous/output/store/transaction.rb
794
825
  - lib/spontaneous/output/template.rb
795
826
  - lib/spontaneous/output/template/engine.rb
796
827
  - lib/spontaneous/output/template/renderer.rb
@@ -886,10 +917,6 @@ files:
886
917
  - lib/spontaneous/site/storage.rb
887
918
  - lib/spontaneous/site/url.rb
888
919
  - lib/spontaneous/state.rb
889
- - lib/spontaneous/storage.rb
890
- - lib/spontaneous/storage/backend.rb
891
- - lib/spontaneous/storage/cloud.rb
892
- - lib/spontaneous/storage/local.rb
893
920
  - lib/spontaneous/style.rb
894
921
  - lib/spontaneous/tasks.rb
895
922
  - lib/spontaneous/tasks/database.rake
@@ -902,8 +929,6 @@ files:
902
929
  - lib/spontaneous/version.rb
903
930
  - spontaneous.gemspec
904
931
  - test/disabled/test_slots.rb
905
- - test/experimental/test_crypt.rb
906
- - test/experimental/test_features.rb
907
932
  - test/fixtures/application/js/test.js
908
933
  - test/fixtures/application/static/favicon.ico
909
934
  - test/fixtures/application/static/test.html
@@ -1146,6 +1171,7 @@ files:
1146
1171
  - test/fixtures/user_manager/config/user_levels.yml
1147
1172
  - test/functional/test_application.rb
1148
1173
  - test/functional/test_back.rb
1174
+ - test/functional/test_cli.rb
1149
1175
  - test/functional/test_front.rb
1150
1176
  - test/functional/test_user_manager.rb
1151
1177
  - test/integration/test_installation.rb
@@ -1173,9 +1199,13 @@ files:
1173
1199
  - test/unit/test_config.rb
1174
1200
  - test/unit/test_content.rb
1175
1201
  - test/unit/test_content_inheritance.rb
1202
+ - test/unit/test_context.rb
1203
+ - test/unit/test_controllers.rb
1204
+ - test/unit/test_crypt.rb
1176
1205
  - test/unit/test_datamapper.rb
1177
1206
  - test/unit/test_datamapper_content.rb
1178
1207
  - test/unit/test_extensions.rb
1208
+ - test/unit/test_features.rb
1179
1209
  - test/unit/test_fields.rb
1180
1210
  - test/unit/test_formats.rb
1181
1211
  - test/unit/test_generators.rb
@@ -1186,6 +1216,7 @@ files:
1186
1216
  - test/unit/test_logger.rb
1187
1217
  - test/unit/test_media.rb
1188
1218
  - test/unit/test_modifications.rb
1219
+ - test/unit/test_output_store.rb
1189
1220
  - test/unit/test_page.rb
1190
1221
  - test/unit/test_permissions.rb
1191
1222
  - test/unit/test_piece.rb
@@ -1226,14 +1257,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1226
1257
  version: 1.3.1
1227
1258
  requirements: []
1228
1259
  rubyforge_project:
1229
- rubygems_version: 2.0.3
1260
+ rubygems_version: 2.2.2
1230
1261
  signing_key:
1231
1262
  specification_version: 4
1232
1263
  summary: Spontaneous is a next-generation Ruby CMS
1233
1264
  test_files:
1234
1265
  - test/disabled/test_slots.rb
1235
- - test/experimental/test_crypt.rb
1236
- - test/experimental/test_features.rb
1237
1266
  - test/fixtures/application/js/test.js
1238
1267
  - test/fixtures/application/static/favicon.ico
1239
1268
  - test/fixtures/application/static/test.html
@@ -1476,6 +1505,7 @@ test_files:
1476
1505
  - test/fixtures/user_manager/config/user_levels.yml
1477
1506
  - test/functional/test_application.rb
1478
1507
  - test/functional/test_back.rb
1508
+ - test/functional/test_cli.rb
1479
1509
  - test/functional/test_front.rb
1480
1510
  - test/functional/test_user_manager.rb
1481
1511
  - test/integration/test_installation.rb
@@ -1503,9 +1533,13 @@ test_files:
1503
1533
  - test/unit/test_config.rb
1504
1534
  - test/unit/test_content.rb
1505
1535
  - test/unit/test_content_inheritance.rb
1536
+ - test/unit/test_context.rb
1537
+ - test/unit/test_controllers.rb
1538
+ - test/unit/test_crypt.rb
1506
1539
  - test/unit/test_datamapper.rb
1507
1540
  - test/unit/test_datamapper_content.rb
1508
1541
  - test/unit/test_extensions.rb
1542
+ - test/unit/test_features.rb
1509
1543
  - test/unit/test_fields.rb
1510
1544
  - test/unit/test_formats.rb
1511
1545
  - test/unit/test_generators.rb
@@ -1516,6 +1550,7 @@ test_files:
1516
1550
  - test/unit/test_logger.rb
1517
1551
  - test/unit/test_media.rb
1518
1552
  - test/unit/test_modifications.rb
1553
+ - test/unit/test_output_store.rb
1519
1554
  - test/unit/test_page.rb
1520
1555
  - test/unit/test_permissions.rb
1521
1556
  - test/unit/test_piece.rb