spontaneous 0.2.0.alpha2 → 0.2.0.alpha3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (404) hide show
  1. data/Gemfile +3 -40
  2. data/Rakefile +29 -41
  3. data/Readme.markdown +21 -8
  4. data/application/css/add_alias_dialogue.css.scss +79 -0
  5. data/application/css/{v2.scss → core.css.scss} +537 -550
  6. data/application/css/{definitions.scss → definitions.css.scss} +121 -33
  7. data/application/css/dialogue.css.scss +409 -0
  8. data/application/css/{editing.scss → editing.css.scss} +25 -262
  9. data/application/css/font.css.scss +8 -0
  10. data/application/css/jquery-ui-1.8.21.custom/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
  11. data/application/css/jquery-ui-1.8.21.custom/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
  12. data/application/css/jquery-ui-1.8.21.custom/images/ui-bg_flat_10_000000_40x100.png +0 -0
  13. data/application/css/jquery-ui-1.8.21.custom/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
  14. data/application/css/jquery-ui-1.8.21.custom/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
  15. data/application/css/jquery-ui-1.8.21.custom/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  16. data/application/css/jquery-ui-1.8.21.custom/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
  17. data/application/css/jquery-ui-1.8.21.custom/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
  18. data/application/css/jquery-ui-1.8.21.custom/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
  19. data/application/css/jquery-ui-1.8.21.custom/images/ui-icons_222222_256x240.png +0 -0
  20. data/application/css/jquery-ui-1.8.21.custom/images/ui-icons_228ef1_256x240.png +0 -0
  21. data/application/css/jquery-ui-1.8.21.custom/images/ui-icons_ef8c08_256x240.png +0 -0
  22. data/application/css/jquery-ui-1.8.21.custom/images/ui-icons_ffd27a_256x240.png +0 -0
  23. data/application/css/jquery-ui-1.8.21.custom/images/ui-icons_ffffff_256x240.png +0 -0
  24. data/application/css/jquery-ui-1.8.21.custom/ui-lightness.css.scss +565 -0
  25. data/application/css/{login.scss → login.css.scss} +4 -4
  26. data/application/css/meta.css.scss +331 -0
  27. data/application/css/{popover.scss → popover.css.scss} +9 -8
  28. data/application/css/{schema_error.scss → schema_error.css.scss} +4 -4
  29. data/application/css/spontaneous.css +5 -0
  30. data/application/css/unsupported.css.scss +42 -0
  31. data/application/js/add_alias_dialogue.js +72 -10
  32. data/application/js/ajax.js +50 -16
  33. data/application/js/compatibility.js +19 -15
  34. data/application/js/content.js +39 -36
  35. data/application/js/content_area.js +53 -5
  36. data/application/js/dialogue.js +17 -0
  37. data/application/js/dom.js +1 -1
  38. data/application/js/edit_panel.js +23 -8
  39. data/application/js/extensions.js +7 -2
  40. data/application/js/field_preview.js +2 -1
  41. data/application/js/field_types/date_field.js +11 -8
  42. data/application/js/field_types/file_field.js +188 -9
  43. data/application/js/field_types/image_field.js +46 -29
  44. data/application/js/field_types/markdown_field.js +57 -14
  45. data/application/js/field_types/select_field.js +72 -0
  46. data/application/js/field_types/string_field.js +8 -0
  47. data/application/js/field_types/webvideo_field.js +8 -0
  48. data/application/js/init.js +1 -7
  49. data/application/js/location.js +41 -13
  50. data/application/js/login.js +3 -0
  51. data/application/js/meta_view/user_admin.js +543 -0
  52. data/application/js/meta_view.js +1 -0
  53. data/application/js/metadata.js +20 -0
  54. data/application/js/page.js +17 -3
  55. data/application/js/page_browser.js +40 -30
  56. data/application/js/page_entry.js +4 -0
  57. data/application/js/panel/root_menu.js +66 -0
  58. data/application/js/popover.js +2 -2
  59. data/application/js/preview.js +1 -1
  60. data/application/js/publish.js +138 -30
  61. data/application/js/services.js +43 -0
  62. data/application/js/sharded_upload.js +2 -2
  63. data/application/js/spontaneous.js +64 -5
  64. data/application/js/state.js +20 -9
  65. data/application/js/top_bar.js +273 -150
  66. data/application/js/types.js +20 -15
  67. data/application/js/upload.js +1 -2
  68. data/application/js/user.js +18 -4
  69. data/application/js/vendor/date.js +104 -0
  70. data/application/js/vendor/jquery-ui-1.8.18.custom.min.js +356 -0
  71. data/application/js/views/box_view.js +15 -8
  72. data/application/js/views/page_piece_view.js +11 -8
  73. data/application/js/views/page_view.js +21 -3
  74. data/application/js/views/piece_view.js +19 -10
  75. data/application/js/views.js +3 -0
  76. data/application/static/chromelogo-200x52-45c7cbc93be080bea342df5fcda2ef8b.png +0 -0
  77. data/application/static/dot-texture-9eea29e4ac7ad9a772285252078ec127.png +0 -0
  78. data/application/static/editing-textarea-resize-s-b5af62365eb7e19ea4beccf7242d508e.png +0 -0
  79. data/application/static/editing-texture-1-42b06a3439752490988f30f2a06d5e7c.png +0 -0
  80. data/application/static/font/fontawesome-webfont-5c5c21100a346972a82c34c5e96ffcfe.ttf +0 -0
  81. data/application/static/loop_alt1-white-7894b458528e92216196cae26b4c2c96.svg +12 -0
  82. data/application/static/spontaneous-states-e91ec89db525c62da0105b97cdd781ce.png +0 -0
  83. data/application/views/index.erb +2 -2
  84. data/application/views/login.erb +4 -8
  85. data/application/views/schema_modification_error.html.erb +1 -4
  86. data/application/views/unsupported.erb +9 -7
  87. data/bin/spot +1 -1
  88. data/db/migrations/20110209152710_users_and_groups.rb +10 -10
  89. data/db/migrations/20120305112647_site_modification_time.rb +11 -0
  90. data/db/migrations/20120418153903_add_ownership_of_content.rb +14 -0
  91. data/db/migrations/20120423175416_add_pending_modifications.rb +21 -0
  92. data/db/migrations/20120525164947_add_field_versions.rb +27 -0
  93. data/lib/sequel/plugins/scoped_table_name.rb +10 -1
  94. data/lib/spontaneous/asset/file.rb +25 -0
  95. data/lib/spontaneous/asset/source.rb +28 -0
  96. data/lib/spontaneous/asset.rb +75 -0
  97. data/lib/spontaneous/box.rb +6 -4
  98. data/lib/spontaneous/capistrano/deploy.rb +47 -0
  99. data/lib/spontaneous/capistrano/sync.rb +81 -0
  100. data/lib/spontaneous/capistrano.rb +13 -0
  101. data/lib/spontaneous/change.rb +60 -68
  102. data/lib/spontaneous/cli/assets.rb +29 -0
  103. data/lib/spontaneous/cli/base.rb +0 -48
  104. data/lib/spontaneous/cli/console.rb +1 -1
  105. data/lib/spontaneous/cli/server.rb +6 -4
  106. data/lib/spontaneous/cli/site.rb +28 -17
  107. data/lib/spontaneous/cli/user.rb +107 -0
  108. data/lib/spontaneous/cli.rb +100 -4
  109. data/lib/spontaneous/collections/entry_set.rb +2 -2
  110. data/lib/spontaneous/collections/field_set.rb +48 -22
  111. data/lib/spontaneous/collections/prototype_set.rb +20 -13
  112. data/lib/spontaneous/constants.rb +3 -0
  113. data/lib/spontaneous/content.rb +22 -5
  114. data/lib/spontaneous/errors.rb +3 -3
  115. data/lib/spontaneous/extensions/array.rb +12 -0
  116. data/lib/spontaneous/extensions/enumerable.rb +30 -0
  117. data/lib/spontaneous/extensions/nil.rb +3 -1
  118. data/lib/spontaneous/extensions/string.rb +16 -0
  119. data/lib/spontaneous/field_types/date_field.rb +45 -2
  120. data/lib/spontaneous/field_types/field.rb +42 -9
  121. data/lib/spontaneous/field_types/file_field.rb +68 -0
  122. data/lib/spontaneous/field_types/image_field.rb +63 -0
  123. data/lib/spontaneous/field_types/select_field.rb +109 -0
  124. data/lib/spontaneous/field_types/string_field.rb +6 -1
  125. data/lib/spontaneous/field_types/webvideo_field.rb +85 -27
  126. data/lib/spontaneous/field_types.rb +1 -1
  127. data/lib/spontaneous/field_version.rb +8 -0
  128. data/lib/spontaneous/generators/page.rb +1 -1
  129. data/lib/spontaneous/generators/site/Capfile.tt +1 -4
  130. data/lib/spontaneous/generators/site/Gemfile.tt +13 -6
  131. data/lib/spontaneous/generators/site/config/deploy.rb.tt +28 -0
  132. data/lib/spontaneous/generators/site/config/environments/production.rb.tt +7 -2
  133. data/lib/spontaneous/generators/site.rb +1 -0
  134. data/lib/spontaneous/json.rb +34 -11
  135. data/lib/spontaneous/layout.rb +22 -0
  136. data/lib/spontaneous/media/file.rb +4 -0
  137. data/lib/spontaneous/output/assets/compression.rb +58 -0
  138. data/lib/spontaneous/output/assets.rb +32 -0
  139. data/lib/spontaneous/output/context.rb +179 -0
  140. data/lib/spontaneous/output/format/html.rb +5 -0
  141. data/lib/spontaneous/output/format/plain.rb +5 -0
  142. data/lib/spontaneous/output/format.rb +180 -0
  143. data/lib/spontaneous/output/helpers/classes_helper.rb +18 -0
  144. data/lib/spontaneous/{render/helpers/html_helper.rb → output/helpers/conditional_comment_helper.rb} +3 -12
  145. data/lib/spontaneous/output/helpers/script_helper.rb +73 -0
  146. data/lib/spontaneous/output/helpers/stylesheet_helper.rb +61 -0
  147. data/lib/spontaneous/output/helpers.rb +28 -0
  148. data/lib/spontaneous/output/template/engine.rb +59 -0
  149. data/lib/spontaneous/output/template/renderer.rb +153 -0
  150. data/lib/spontaneous/output/template.rb +21 -0
  151. data/lib/spontaneous/output.rb +163 -0
  152. data/lib/spontaneous/page.rb +2 -1
  153. data/lib/spontaneous/paths.rb +6 -1
  154. data/lib/spontaneous/permissions/access_key.rb +5 -5
  155. data/lib/spontaneous/permissions/user.rb +81 -35
  156. data/lib/spontaneous/permissions/user_level.rb +26 -22
  157. data/lib/spontaneous/plugins/aliases.rb +76 -12
  158. data/lib/spontaneous/plugins/allowed_types.rb +60 -18
  159. data/lib/spontaneous/plugins/application/paths.rb +0 -28
  160. data/lib/spontaneous/plugins/application/system.rb +35 -0
  161. data/lib/spontaneous/plugins/boxes.rb +4 -0
  162. data/lib/spontaneous/plugins/content_groups.rb +16 -0
  163. data/lib/spontaneous/plugins/entries.rb +50 -30
  164. data/lib/spontaneous/plugins/fields.rb +15 -0
  165. data/lib/spontaneous/plugins/layouts.rb +8 -2
  166. data/lib/spontaneous/plugins/modifications.rb +228 -0
  167. data/lib/spontaneous/plugins/page/formats.rb +67 -42
  168. data/lib/spontaneous/plugins/page/request.rb +10 -0
  169. data/lib/spontaneous/plugins/page/site_timestamps.rb +28 -0
  170. data/lib/spontaneous/plugins/paths.rb +15 -3
  171. data/lib/spontaneous/plugins/publishing.rb +124 -45
  172. data/lib/spontaneous/plugins/render.rb +13 -8
  173. data/lib/spontaneous/plugins/schema_hierarchy.rb +18 -6
  174. data/lib/spontaneous/plugins/site/helpers.rb +53 -0
  175. data/lib/spontaneous/plugins/site/hooks.rb +50 -0
  176. data/lib/spontaneous/plugins/site/map.rb +1 -1
  177. data/lib/spontaneous/plugins/site/paths.rb +13 -0
  178. data/lib/spontaneous/plugins/site/publishing.rb +6 -2
  179. data/lib/spontaneous/plugins/site/{revisions.rb → state.rb} +5 -1
  180. data/lib/spontaneous/plugins/site/storage.rb +4 -0
  181. data/lib/spontaneous/plugins/site/url.rb +15 -0
  182. data/lib/spontaneous/plugins/site_map.rb +13 -3
  183. data/lib/spontaneous/plugins/styles.rb +5 -1
  184. data/lib/spontaneous/plugins/visibility.rb +39 -12
  185. data/lib/spontaneous/prototypes/box_prototype.rb +4 -0
  186. data/lib/spontaneous/prototypes/field_prototype.rb +15 -10
  187. data/lib/spontaneous/publishing/event_client.rb +46 -0
  188. data/lib/spontaneous/publishing/immediate.rb +81 -44
  189. data/lib/spontaneous/publishing/simultaneous.rb +23 -6
  190. data/lib/spontaneous/publishing.rb +4 -3
  191. data/lib/spontaneous/rack/around_back.rb +1 -5
  192. data/lib/spontaneous/rack/around_front.rb +4 -4
  193. data/lib/spontaneous/rack/around_preview.rb +4 -3
  194. data/lib/spontaneous/rack/assets.rb +81 -54
  195. data/lib/spontaneous/rack/authentication.rb +0 -1
  196. data/lib/spontaneous/rack/back.rb +160 -72
  197. data/lib/spontaneous/rack/cookie_authentication.rb +2 -2
  198. data/lib/spontaneous/rack/css.rb +18 -15
  199. data/lib/spontaneous/rack/event_source.rb +9 -21
  200. data/lib/spontaneous/rack/fiber_pool.rb +26 -0
  201. data/lib/spontaneous/rack/front.rb +12 -4
  202. data/lib/spontaneous/rack/helpers.rb +35 -13
  203. data/lib/spontaneous/rack/js.rb +41 -0
  204. data/lib/spontaneous/rack/public.rb +34 -44
  205. data/lib/spontaneous/rack/sse.rb +18 -0
  206. data/lib/spontaneous/rack/static.rb +3 -0
  207. data/lib/spontaneous/rack/user_admin.rb +100 -0
  208. data/lib/spontaneous/rack/user_helpers.rb +1 -1
  209. data/lib/spontaneous/rack.rb +6 -2
  210. data/lib/spontaneous/schema.rb +31 -4
  211. data/lib/spontaneous/search/index.rb +19 -3
  212. data/lib/spontaneous/search/results.rb +1 -1
  213. data/lib/spontaneous/sequel.rb +17 -0
  214. data/lib/spontaneous/site.rb +11 -4
  215. data/lib/spontaneous/state.rb +11 -0
  216. data/lib/spontaneous/storage/cloud.rb +4 -0
  217. data/lib/spontaneous/storage/local.rb +11 -0
  218. data/lib/spontaneous/style.rb +2 -2
  219. data/lib/spontaneous/tasks/database.rake +21 -22
  220. data/lib/spontaneous/utils/database/mysql_dumper.rb +4 -0
  221. data/lib/spontaneous/utils/database/postgres_dumper.rb +78 -0
  222. data/lib/spontaneous/utils/database.rb +6 -3
  223. data/lib/spontaneous/utils/smart_quotes.rb +499 -0
  224. data/lib/spontaneous/utils/smush_it.rb +66 -0
  225. data/lib/spontaneous/utils.rb +3 -1
  226. data/lib/spontaneous/version.rb +2 -2
  227. data/lib/spontaneous.rb +25 -29
  228. data/spontaneous.gemspec +186 -106
  229. data/test/experimental/test_features.rb +1 -1
  230. data/test/fixtures/asset_pipeline/application/css/basic.css.scss +4 -0
  231. data/test/fixtures/asset_pipeline/application/css/complex.css.scss.erb +6 -0
  232. data/test/fixtures/asset_pipeline/application/css/simple.css +3 -0
  233. data/test/fixtures/asset_pipeline/application/css/spontaneous.css +7 -0
  234. data/test/fixtures/asset_pipeline/application/css/subdir/complex.css.scss.erb +6 -0
  235. data/test/fixtures/asset_pipeline/application/css/subdir/library.css.scss +1 -0
  236. data/test/fixtures/asset_pipeline/application/css/subdir/simple.css +3 -0
  237. data/test/fixtures/asset_pipeline/application/js/basic.js.coffee +1 -0
  238. data/test/fixtures/asset_pipeline/application/js/complex.js.coffee.erb +1 -0
  239. data/test/fixtures/asset_pipeline/application/js/login.js +1 -0
  240. data/test/fixtures/asset_pipeline/application/js/require.js +1 -0
  241. data/test/fixtures/asset_pipeline/application/js/simple.js +1 -0
  242. data/test/fixtures/asset_pipeline/application/js/spontaneous.js +5 -0
  243. data/test/fixtures/asset_pipeline/application/js/subdir/complex.js.coffee.erb +1 -0
  244. data/test/fixtures/asset_pipeline/application/js/subdir/library.js.coffee +1 -0
  245. data/test/fixtures/asset_pipeline/application/js/subdir/simple.js +1 -0
  246. data/test/fixtures/asset_pipeline/application/js/vendor/jquery.js +1 -0
  247. data/test/fixtures/asset_pipeline/application/static/dot-texture.png +0 -0
  248. data/test/fixtures/asset_pipeline/application/static/subdir/px.gif +0 -0
  249. data/test/fixtures/assets/public1/css/a.scss +1 -0
  250. data/test/fixtures/assets/public1/js/a.js +1 -0
  251. data/test/fixtures/assets/public1/js/m.coffee +1 -0
  252. data/test/fixtures/assets/public2/css/b.scss +1 -0
  253. data/test/fixtures/assets/public2/css/c.css +1 -0
  254. data/test/fixtures/assets/public2/js/b.js +1 -0
  255. data/test/fixtures/assets/public2/js/c.js +1 -0
  256. data/test/fixtures/assets/public2/js/n.coffee +1 -0
  257. data/test/fixtures/back/config/user_levels.yml +3 -0
  258. data/test/fixtures/back/public/js/coffeescript.coffee +1 -0
  259. data/test/fixtures/back/templates/layouts/standard.css.cut +1 -0
  260. data/test/fixtures/back/templates/layouts/standard.js.cut +1 -0
  261. data/test/fixtures/example_application/config/database.yml +4 -4
  262. data/test/fixtures/helpers/templates/layouts/standard.html.cut +1 -0
  263. data/test/fixtures/helpers/templates/layouts/standard.mobile.cut +1 -0
  264. data/test/fixtures/images/vimlogo.pdf +0 -0
  265. data/test/fixtures/outputs/templates/layouts/standard.atom.cut +1 -0
  266. data/test/fixtures/permissions/config/user_levels.yml +6 -3
  267. data/test/fixtures/serialisation/class_hash.yaml.erb +1 -0
  268. data/test/fixtures/serialisation/root_hash.yaml.erb +2 -2
  269. data/test/fixtures/templates/extended/grandparent.html.cut +7 -7
  270. data/test/fixtures/templates/extended/main.html.cut +5 -5
  271. data/test/fixtures/templates/extended/parent.html.cut +8 -8
  272. data/test/fixtures/templates/extended/partial_with_locals.html.cut +1 -1
  273. data/test/fixtures/templates/extended/with_includes.html.cut +6 -6
  274. data/test/fixtures/templates/extended/with_includes_and_locals.html.cut +6 -7
  275. data/test/fixtures/templates/layouts/entries.html.cut +4 -4
  276. data/test/fixtures/templates/layouts/standard.html.cut +1 -0
  277. data/test/fixtures/templates/layouts/variables.html.cut +1 -1
  278. data/test/fixtures/templates/publishing/templates/layouts/static.html.cut +1 -1
  279. data/test/fixtures/templates/publishing/templates/layouts/static.rtf.cut +1 -0
  280. data/test/fixtures/templates/template_class/complex_template.html.cut +2 -2
  281. data/test/fixtures/templates/template_class/complex_template.pdf.cut +2 -2
  282. data/test/fixtures/templates/template_class/default_template_style.html.cut +1 -1
  283. data/test/fixtures/templates/template_class/images_with_template.html.cut +2 -2
  284. data/test/fixtures/templates/template_class/slots_template.html.cut +2 -2
  285. data/test/fixtures/templates/template_class/slots_template.pdf.cut +2 -2
  286. data/test/fixtures/user_manager/config/user_levels.yml +9 -0
  287. data/test/functional/test_application.rb +7 -7
  288. data/test/functional/test_back.rb +352 -97
  289. data/test/functional/test_front.rb +71 -20
  290. data/test/functional/test_user_manager.rb +284 -0
  291. data/test/javascript/env.js +13505 -0
  292. data/test/javascript/test_markdown.rb +43 -3
  293. data/test/support/custom_matchers.rb +3 -2
  294. data/test/test_helper.rb +50 -9
  295. data/test/test_javascript.rb +13 -13
  296. data/test/ui_helper.rb +1 -1
  297. data/test/unit/test_alias.rb +79 -8
  298. data/test/unit/test_asset_bundler.rb +220 -0
  299. data/test/unit/test_assets.rb +213 -0
  300. data/test/unit/test_async.rb +55 -0
  301. data/test/unit/test_authentication.rb +52 -39
  302. data/test/unit/test_boxes.rb +20 -15
  303. data/test/unit/test_changesets.rb +261 -0
  304. data/test/unit/test_content.rb +73 -33
  305. data/test/unit/test_content_inheritance.rb +18 -18
  306. data/test/unit/test_extensions.rb +26 -0
  307. data/test/unit/test_fields.rb +303 -16
  308. data/test/unit/test_formats.rb +267 -34
  309. data/test/unit/test_helpers.rb +79 -2
  310. data/test/unit/test_images.rb +10 -0
  311. data/test/unit/test_layouts.rb +21 -13
  312. data/test/unit/test_modifications.rb +648 -0
  313. data/test/unit/test_page.rb +6 -2
  314. data/test/unit/test_permissions.rb +101 -27
  315. data/test/unit/test_piece.rb +4 -4
  316. data/test/unit/test_plugins.rb +3 -2
  317. data/test/unit/test_publishing.rb +332 -0
  318. data/test/unit/test_render.rb +118 -67
  319. data/test/unit/test_revisions.rb +546 -0
  320. data/test/unit/test_schema.rb +83 -1
  321. data/test/unit/test_search.rb +59 -0
  322. data/test/unit/test_serialisation.rb +2 -47
  323. data/test/unit/test_site.rb +217 -108
  324. data/test/unit/test_storage.rb +26 -0
  325. data/test/unit/test_structure.rb +2 -2
  326. data/test/unit/test_styles.rb +90 -75
  327. data/test/unit/test_table_scoping.rb +21 -17
  328. data/test/unit/test_templates.rb +75 -69
  329. data/test/{slow → unit}/test_visibility.rb +78 -22
  330. metadata +528 -221
  331. data/application/css/add_alias_dialogue.scss +0 -27
  332. data/application/css/min/14c2a35812c443001b15d8b12a4780f88c678035.css +0 -1
  333. data/application/css/min/565d4c25e82148acb01c45c8d675b37a08676d77.css +0 -1
  334. data/application/css/min/84dbe894ea96eafd321c30823d630817bfc4b03b.css +0 -1
  335. data/application/css/spontaneous.scss +0 -111
  336. data/application/css/unsupported.scss +0 -16
  337. data/application/css/variables.scss +0 -80
  338. data/application/js/min/2a0c2962537a3181fedfff5c92596ba6d3122dc9.js +0 -3
  339. data/application/js/min/4cf1c493d3379ecba5287758c61238034c0893f9.js +0 -2
  340. data/application/js/min/78ac6b99d96750bb6b9f9aad4cb9cd91cd03f391.js +0 -3
  341. data/application/js/min/b8abf302a824c35385ff517b34111e1710ff3b37.js +0 -2
  342. data/application/js/min/c8efb9b9f7c3f6613fcebc6be60f605b6570a382.js +0 -90
  343. data/application/static/diagonal-texture.png +0 -0
  344. data/application/static/editing-0-noise.png +0 -0
  345. data/application/static/editing-1-noise.png +0 -0
  346. data/application/static/editing-texture-1.png +0 -0
  347. data/application/static/editing-texture.png +0 -0
  348. data/application/static/editing-toolbar-shadow-bottom.png +0 -0
  349. data/application/static/editing-toolbar-shadow-top.png +0 -0
  350. data/application/static/inner-glow.png +0 -0
  351. data/application/static/item-buttons-highlight.png +0 -0
  352. data/application/static/item-buttons.png +0 -0
  353. data/application/static/paper-texture-dark.png +0 -0
  354. data/application/static/plus_alt.svg +0 -8
  355. data/application/static/select-arrow-root.png +0 -0
  356. data/application/static/slot-up-arrow.png +0 -0
  357. data/application/static/spontaneous.png +0 -0
  358. data/lib/cutaneous/context_helper.rb +0 -187
  359. data/lib/cutaneous/preview_context.rb +0 -32
  360. data/lib/cutaneous/preview_renderer.rb +0 -10
  361. data/lib/cutaneous/publish_context.rb +0 -10
  362. data/lib/cutaneous/publish_renderer.rb +0 -14
  363. data/lib/cutaneous/publish_template.rb +0 -62
  364. data/lib/cutaneous/publish_token_parser.rb +0 -8
  365. data/lib/cutaneous/renderer.rb +0 -124
  366. data/lib/cutaneous/request_context.rb +0 -9
  367. data/lib/cutaneous/request_renderer.rb +0 -15
  368. data/lib/cutaneous/request_template.rb +0 -11
  369. data/lib/cutaneous/request_token_parser.rb +0 -9
  370. data/lib/cutaneous/token_parser.rb +0 -125
  371. data/lib/cutaneous.rb +0 -48
  372. data/lib/spontaneous/render/context_base.rb +0 -143
  373. data/lib/spontaneous/render/development_renderer.rb +0 -14
  374. data/lib/spontaneous/render/engine.rb +0 -19
  375. data/lib/spontaneous/render/format/html.rb +0 -5
  376. data/lib/spontaneous/render/format.rb +0 -75
  377. data/lib/spontaneous/render/helpers/script_helper.rb +0 -17
  378. data/lib/spontaneous/render/helpers/stylesheet_helper.rb +0 -16
  379. data/lib/spontaneous/render/helpers.rb +0 -14
  380. data/lib/spontaneous/render/preview_context.rb +0 -8
  381. data/lib/spontaneous/render/preview_renderer.rb +0 -24
  382. data/lib/spontaneous/render/publish_context.rb +0 -22
  383. data/lib/spontaneous/render/published_renderer.rb +0 -53
  384. data/lib/spontaneous/render/publishing_renderer.rb +0 -16
  385. data/lib/spontaneous/render/render_cache.rb +0 -26
  386. data/lib/spontaneous/render/renderer.rb +0 -50
  387. data/lib/spontaneous/render/request_context.rb +0 -8
  388. data/lib/spontaneous/render.rb +0 -214
  389. data/test/experimental/test_cutaneous.rb +0 -309
  390. data/test/fixtures/application/css/test.less +0 -5
  391. data/test/slow/test_publishing.rb +0 -1006
  392. /data/application/css/{developer.scss → developer.css.scss} +0 -0
  393. /data/application/js/vendor/{jquery-1.7.1.min.js → jquery.js} +0 -0
  394. /data/application/static/{location-arrow.png → location-arrow-c1c1d3ca472481c61a0a5f8cb289d743.png} +0 -0
  395. /data/application/static/{missing.png → missing-911ce6dbd9f4602e0f3fbcd7e78846a2.png} +0 -0
  396. /data/application/static/{orange-down-arrow.png → orange-down-arrow-395ae1929e8662b2ff0977daf12c35bb.png} +0 -0
  397. /data/application/static/{page-browser-next.png → page-browser-next-ce781a242c23b980b99b9db7abc20b05.png} +0 -0
  398. /data/application/static/{plus-box.png → plus-box-dcde74a1e496f68298c9b443caa1c5d5.png} +0 -0
  399. /data/application/static/{select-arrow.png → select-arrow-6e7dd3745b00e934b0d7a3250c46558b.png} +0 -0
  400. /data/application/static/{slot-down-arrow.png → slot-down-arrow-59ad5f5ee5b52a7ebd00bca4b3104194.png} +0 -0
  401. /data/application/static/{splash.png → splash-65b493a714df9b8b3ab170103401b53d.png} +0 -0
  402. /data/application/static/{spot.png → spot-71fab1d2f065034f5fc15e7bea2ad36c.png} +0 -0
  403. /data/application/static/{spot.svg → spot-8505041082d8d3bbe8d34c29dddb3b7d.svg} +0 -0
  404. /data/application/static/{texture.png → texture-03f7627e8264b1d607113ab32c593a58.png} +0 -0
data/spontaneous.gemspec CHANGED
@@ -14,8 +14,8 @@ Gem::Specification.new do |s|
14
14
  ## If your rubyforge_project name is different, then edit it and comment out
15
15
  ## the sub! line in the Rakefile
16
16
  s.name = 'spontaneous'
17
- s.version = '0.2.0.alpha2'
18
- s.date = '2012-02-17'
17
+ s.version = '0.2.0.alpha3'
18
+ s.date = '2012-10-15'
19
19
  s.rubyforge_project = 'spontaneous'
20
20
 
21
21
  ## Make sure your summary is short. The description may be as long
@@ -48,39 +48,42 @@ Gem::Specification.new do |s|
48
48
 
49
49
  ## List your runtime dependencies here. Runtime dependencies are those
50
50
  ## that are needed for an end user to actually USE your code.
51
- s.add_dependency('bundler', ["> 1.0.15"])
52
- s.add_dependency('rake', ["~> 0.9.2"])
53
- s.add_dependency('rdoc', ["~> 3.9.4"])
54
- s.add_dependency('activesupport', ["~> 3.2.0.rc1"])
55
- s.add_dependency('home_run', ["~> 1.0.0"])
56
- s.add_dependency('sequel', ["~> 3.31"])
57
- s.add_dependency('yajl-ruby', ["~> 1.1"])
58
- s.add_dependency('erubis', ["~> 2.6"])
59
- s.add_dependency('fog', ["~> 1.1.1"])
60
- s.add_dependency('sinatra', ["~> 1.3.0"])
61
- s.add_dependency('rack', ["~> 1.4.1"])
62
- s.add_dependency('thin', ["~> 1.2"])
63
- s.add_dependency('less', ["~> 1.2"])
64
- s.add_dependency('sass', ["~> 3.1.4"])
65
- s.add_dependency('stringex', ["= 1.3"])
66
- s.add_dependency('mini_magick', ["~> 3.3"])
67
- s.add_dependency('thor', ["~> 0.14.6"])
68
- s.add_dependency('base58', ["~> 0.1.0"])
69
- s.add_dependency('kramdown', ["~> 0.13.3"])
70
- s.add_dependency('launchy', ["~> 0.4.0"])
71
- s.add_dependency('shine', ["~> 0.6"])
72
- s.add_dependency('foreman', ["~> 0.22.0"])
73
- s.add_dependency('simultaneous', ["~> 0.2"])
74
- s.add_dependency('rack-async', ["~> 0.1.0"])
75
- s.add_dependency('xapian-full', ["~> 1.2.3"])
76
- s.add_dependency('xapian-fu', ["~> 1.3"])
77
- s.add_dependency('nokogiri', ["~> 1.5.0"])
78
- s.add_dependency('watchr', ["~> 0.7"])
51
+ s.add_dependency('activesupport', ["~> 3.2.0"])
52
+ s.add_dependency('base58', ["~> 0.1.0"])
53
+ s.add_dependency('bundler', ["> 1.0.15"])
54
+ s.add_dependency('coffee-script', ["~> 2.2.0"])
55
+ s.add_dependency('cutaneous', ["~> 0.1.3"])
56
+ s.add_dependency('erubis', ["~> 2.6"])
57
+ s.add_dependency('fog', ["~> 1.1.1"])
58
+ s.add_dependency('foreman', ["~> 0.22.0"])
59
+ s.add_dependency('kramdown', ["~> 0.13.3"])
60
+ s.add_dependency('launchy', ["~> 0.4.0"])
61
+ s.add_dependency('mini_magick', ["~> 3.3"])
62
+ s.add_dependency('nokogiri', ["~> 1.5.0"])
63
+ s.add_dependency('public_suffix', ["~> 1.0"])
64
+ s.add_dependency('rack', ["~> 1.4.1"])
65
+ s.add_dependency('rack-fiber_pool', ["~> 0.9.2"])
66
+ s.add_dependency('rake', ["~> 0.9.2"])
67
+ s.add_dependency('rdoc', ["~> 3.9.4"])
68
+ s.add_dependency('sass', ["~> 3.1.4"])
69
+ s.add_dependency('sequel', ["= 3.36.1"])
70
+ s.add_dependency('shine', ["~> 0.6"])
71
+ s.add_dependency('simultaneous', ["~> 0.4.1"])
72
+ s.add_dependency('sinatra', ["= 1.3.2"])
73
+ s.add_dependency('sinatra-contrib', ["~> 1.3.1"])
74
+ s.add_dependency('sprockets', ["~> 2.4.3"])
75
+ s.add_dependency('stringex', ["= 1.3"])
76
+ s.add_dependency('therubyracer', ['~> 0.9.10'])
77
+ s.add_dependency('thin', ["~> 1.2"])
78
+ s.add_dependency('thor', ["~> 0.14.6"])
79
+ s.add_dependency('uglifier', ["~> 1.2.4"])
80
+ s.add_dependency('oj', ["~> 1.4"])
79
81
 
80
82
  ## List your development dependencies here. Development dependencies are
81
83
  ## those that are only needed during development
82
84
  s.add_development_dependency('minitest', ["~> 2.1.0"])
83
- s.add_development_dependency('mysql2', ["~> 0.3"])
85
+ s.add_development_dependency('mysql2', ["~> 0.3.11"])
86
+ s.add_development_dependency('pg', ["~> 0.13.2"])
84
87
  s.add_development_dependency('jeweler', ["~> 1.5"])
85
88
  s.add_development_dependency('jnunemaker-matchy', ["~> 0.4"])
86
89
  s.add_development_dependency('shoulda', ["~> 2.11.3"])
@@ -100,17 +103,34 @@ Gem::Specification.new do |s|
100
103
  README
101
104
  Rakefile
102
105
  Readme.markdown
103
- application/css/add_alias_dialogue.scss
104
- application/css/definitions.scss
105
- application/css/developer.scss
106
- application/css/editing.scss
107
- application/css/login.scss
108
- application/css/popover.scss
109
- application/css/schema_error.scss
110
- application/css/spontaneous.scss
111
- application/css/unsupported.scss
112
- application/css/v2.scss
113
- application/css/variables.scss
106
+ application/css/add_alias_dialogue.css.scss
107
+ application/css/core.css.scss
108
+ application/css/definitions.css.scss
109
+ application/css/developer.css.scss
110
+ application/css/dialogue.css.scss
111
+ application/css/editing.css.scss
112
+ application/css/font.css.scss
113
+ application/css/jquery-ui-1.8.21.custom/images/ui-bg_diagonals-thick_18_b81900_40x40.png
114
+ application/css/jquery-ui-1.8.21.custom/images/ui-bg_diagonals-thick_20_666666_40x40.png
115
+ application/css/jquery-ui-1.8.21.custom/images/ui-bg_flat_10_000000_40x100.png
116
+ application/css/jquery-ui-1.8.21.custom/images/ui-bg_glass_100_f6f6f6_1x400.png
117
+ application/css/jquery-ui-1.8.21.custom/images/ui-bg_glass_100_fdf5ce_1x400.png
118
+ application/css/jquery-ui-1.8.21.custom/images/ui-bg_glass_65_ffffff_1x400.png
119
+ application/css/jquery-ui-1.8.21.custom/images/ui-bg_gloss-wave_35_f6a828_500x100.png
120
+ application/css/jquery-ui-1.8.21.custom/images/ui-bg_highlight-soft_100_eeeeee_1x100.png
121
+ application/css/jquery-ui-1.8.21.custom/images/ui-bg_highlight-soft_75_ffe45c_1x100.png
122
+ application/css/jquery-ui-1.8.21.custom/images/ui-icons_222222_256x240.png
123
+ application/css/jquery-ui-1.8.21.custom/images/ui-icons_228ef1_256x240.png
124
+ application/css/jquery-ui-1.8.21.custom/images/ui-icons_ef8c08_256x240.png
125
+ application/css/jquery-ui-1.8.21.custom/images/ui-icons_ffd27a_256x240.png
126
+ application/css/jquery-ui-1.8.21.custom/images/ui-icons_ffffff_256x240.png
127
+ application/css/jquery-ui-1.8.21.custom/ui-lightness.css.scss
128
+ application/css/login.css.scss
129
+ application/css/meta.css.scss
130
+ application/css/popover.css.scss
131
+ application/css/schema_error.css.scss
132
+ application/css/spontaneous.css
133
+ application/css/unsupported.css.scss
114
134
  application/js/add_alias_dialogue.js
115
135
  application/js/add_home_dialogue.js
116
136
  application/js/ajax.js
@@ -135,6 +155,7 @@ Gem::Specification.new do |s|
135
155
  application/js/field_types/image_field.js
136
156
  application/js/field_types/long_string_field.js
137
157
  application/js/field_types/markdown_field.js
158
+ application/js/field_types/select_field.js
138
159
  application/js/field_types/string_field.js
139
160
  application/js/field_types/webvideo_field.js
140
161
  application/js/image.js
@@ -142,9 +163,13 @@ Gem::Specification.new do |s|
142
163
  application/js/load.js
143
164
  application/js/location.js
144
165
  application/js/login.js
166
+ application/js/meta_view.js
167
+ application/js/meta_view/user_admin.js
168
+ application/js/metadata.js
145
169
  application/js/page.js
146
170
  application/js/page_browser.js
147
171
  application/js/page_entry.js
172
+ application/js/panel/root_menu.js
148
173
  application/js/popover.js
149
174
  application/js/popover_view.js
150
175
  application/js/preview.js
@@ -152,6 +177,7 @@ Gem::Specification.new do |s|
152
177
  application/js/properties.js
153
178
  application/js/publish.js
154
179
  application/js/require.js
180
+ application/js/services.js
155
181
  application/js/sharded_upload.js
156
182
  application/js/side_bar.js
157
183
  application/js/spontaneous.js
@@ -186,45 +212,39 @@ Gem::Specification.new do |s|
186
212
  application/js/vendor/JS.Class-2.1.5/min/stdlib.js
187
213
  application/js/vendor/crypto-2.3.0-crypto.js
188
214
  application/js/vendor/crypto-2.3.0-sha1.js
215
+ application/js/vendor/date.js
189
216
  application/js/vendor/diff_match_patch.js
190
217
  application/js/vendor/jquery-1.6.2.min.js
191
- application/js/vendor/jquery-1.7.1.min.js
192
218
  application/js/vendor/jquery-ui-1.8.16.custom.min.js
219
+ application/js/vendor/jquery-ui-1.8.18.custom.min.js
193
220
  application/js/vendor/jquery-ui-1.8.9.custom.min.js
221
+ application/js/vendor/jquery.js
194
222
  application/js/views.js
195
223
  application/js/views/box_view.js
196
224
  application/js/views/page_piece_view.js
197
225
  application/js/views/page_view.js
198
226
  application/js/views/piece_view.js
199
- application/static/diagonal-texture.png
200
- application/static/editing-0-noise.png
201
- application/static/editing-1-noise.png
202
- application/static/editing-texture-1.png
203
- application/static/editing-texture.png
204
- application/static/editing-toolbar-shadow-bottom.png
205
- application/static/editing-toolbar-shadow-top.png
227
+ application/static/chromelogo-200x52-45c7cbc93be080bea342df5fcda2ef8b.png
228
+ application/static/dot-texture-9eea29e4ac7ad9a772285252078ec127.png
229
+ application/static/editing-textarea-resize-s-b5af62365eb7e19ea4beccf7242d508e.png
230
+ application/static/editing-texture-1-42b06a3439752490988f30f2a06d5e7c.png
206
231
  application/static/favicon.ico
207
- application/static/inner-glow.png
208
- application/static/item-buttons-highlight.png
209
- application/static/item-buttons.png
210
- application/static/location-arrow.png
232
+ application/static/font/fontawesome-webfont-5c5c21100a346972a82c34c5e96ffcfe.ttf
233
+ application/static/location-arrow-c1c1d3ca472481c61a0a5f8cb289d743.png
211
234
  application/static/logo-400px-transparent.png
212
- application/static/missing.png
213
- application/static/orange-down-arrow.png
214
- application/static/page-browser-next.png
215
- application/static/paper-texture-dark.png
216
- application/static/plus-box.png
217
- application/static/plus_alt.svg
235
+ application/static/loop_alt1-white-7894b458528e92216196cae26b4c2c96.svg
236
+ application/static/missing-911ce6dbd9f4602e0f3fbcd7e78846a2.png
237
+ application/static/orange-down-arrow-395ae1929e8662b2ff0977daf12c35bb.png
238
+ application/static/page-browser-next-ce781a242c23b980b99b9db7abc20b05.png
239
+ application/static/plus-box-dcde74a1e496f68298c9b443caa1c5d5.png
218
240
  application/static/px.gif
219
- application/static/select-arrow-root.png
220
- application/static/select-arrow.png
221
- application/static/slot-down-arrow.png
222
- application/static/slot-up-arrow.png
223
- application/static/splash.png
224
- application/static/spontaneous.png
225
- application/static/spot.png
226
- application/static/spot.svg
227
- application/static/texture.png
241
+ application/static/select-arrow-6e7dd3745b00e934b0d7a3250c46558b.png
242
+ application/static/slot-down-arrow-59ad5f5ee5b52a7ebd00bca4b3104194.png
243
+ application/static/splash-65b493a714df9b8b3ab170103401b53d.png
244
+ application/static/spontaneous-states-e91ec89db525c62da0105b97cdd781ce.png
245
+ application/static/spot-71fab1d2f065034f5fc15e7bea2ad36c.png
246
+ application/static/spot-8505041082d8d3bbe8d34c29dddb3b7d.svg
247
+ application/static/texture-03f7627e8264b1d607113ab32c593a58.png
228
248
  application/views/index.erb
229
249
  application/views/login.erb
230
250
  application/views/schema_modification_error.html.erb
@@ -245,32 +265,29 @@ Gem::Specification.new do |s|
245
265
  db/migrations/20110805141925_rename_site_to_state.rb
246
266
  db/migrations/20120106171423_visibility_path.rb
247
267
  db/migrations/20120107124541_owner_id.rb
268
+ db/migrations/20120305112647_site_modification_time.rb
269
+ db/migrations/20120418153903_add_ownership_of_content.rb
270
+ db/migrations/20120423175416_add_pending_modifications.rb
271
+ db/migrations/20120525164947_add_field_versions.rb
248
272
  docs/recipe-interface-screenshot.png
249
- lib/cutaneous.rb
250
- lib/cutaneous/context_helper.rb
251
- lib/cutaneous/preview_context.rb
252
- lib/cutaneous/preview_renderer.rb
253
- lib/cutaneous/publish_context.rb
254
- lib/cutaneous/publish_renderer.rb
255
- lib/cutaneous/publish_template.rb
256
- lib/cutaneous/publish_token_parser.rb
257
- lib/cutaneous/renderer.rb
258
- lib/cutaneous/request_context.rb
259
- lib/cutaneous/request_renderer.rb
260
- lib/cutaneous/request_template.rb
261
- lib/cutaneous/request_token_parser.rb
262
- lib/cutaneous/token_parser.rb
263
273
  lib/sequel/plugins/content_table_inheritance.rb
264
274
  lib/sequel/plugins/scoped_table_name.rb
265
275
  lib/spontaneous.rb
266
276
  lib/spontaneous/application.rb
267
277
  lib/spontaneous/application/feature.rb
268
278
  lib/spontaneous/application/plugin.rb
279
+ lib/spontaneous/asset.rb
280
+ lib/spontaneous/asset/file.rb
281
+ lib/spontaneous/asset/source.rb
269
282
  lib/spontaneous/box.rb
270
283
  lib/spontaneous/box_style.rb
284
+ lib/spontaneous/capistrano.rb
285
+ lib/spontaneous/capistrano/deploy.rb
286
+ lib/spontaneous/capistrano/sync.rb
271
287
  lib/spontaneous/change.rb
272
288
  lib/spontaneous/cli.rb
273
289
  lib/spontaneous/cli/adapter.rb
290
+ lib/spontaneous/cli/assets.rb
274
291
  lib/spontaneous/cli/base.rb
275
292
  lib/spontaneous/cli/console.rb
276
293
  lib/spontaneous/cli/media.rb
@@ -278,6 +295,7 @@ Gem::Specification.new do |s|
278
295
  lib/spontaneous/cli/site.rb
279
296
  lib/spontaneous/cli/sync.rb
280
297
  lib/spontaneous/cli/tasks.rb
298
+ lib/spontaneous/cli/user.rb
281
299
  lib/spontaneous/collections/box_set.rb
282
300
  lib/spontaneous/collections/change_set.rb
283
301
  lib/spontaneous/collections/entry_set.rb
@@ -291,6 +309,7 @@ Gem::Specification.new do |s|
291
309
  lib/spontaneous/errors.rb
292
310
  lib/spontaneous/extensions/array.rb
293
311
  lib/spontaneous/extensions/class.rb
312
+ lib/spontaneous/extensions/enumerable.rb
294
313
  lib/spontaneous/extensions/hash.rb
295
314
  lib/spontaneous/extensions/json.rb
296
315
  lib/spontaneous/extensions/kernel.rb
@@ -302,12 +321,15 @@ Gem::Specification.new do |s|
302
321
  lib/spontaneous/field_types.rb
303
322
  lib/spontaneous/field_types/date_field.rb
304
323
  lib/spontaneous/field_types/field.rb
324
+ lib/spontaneous/field_types/file_field.rb
305
325
  lib/spontaneous/field_types/image_field.rb
306
326
  lib/spontaneous/field_types/location_field.rb
307
327
  lib/spontaneous/field_types/long_string_field.rb
308
328
  lib/spontaneous/field_types/markdown_field.rb
329
+ lib/spontaneous/field_types/select_field.rb
309
330
  lib/spontaneous/field_types/string_field.rb
310
331
  lib/spontaneous/field_types/webvideo_field.rb
332
+ lib/spontaneous/field_version.rb
311
333
  lib/spontaneous/generators.rb
312
334
  lib/spontaneous/generators/page.rb
313
335
  lib/spontaneous/generators/page/inline.html.cut
@@ -347,6 +369,21 @@ Gem::Specification.new do |s|
347
369
  lib/spontaneous/logger.rb
348
370
  lib/spontaneous/media.rb
349
371
  lib/spontaneous/media/file.rb
372
+ lib/spontaneous/output.rb
373
+ lib/spontaneous/output/assets.rb
374
+ lib/spontaneous/output/assets/compression.rb
375
+ lib/spontaneous/output/context.rb
376
+ lib/spontaneous/output/format.rb
377
+ lib/spontaneous/output/format/html.rb
378
+ lib/spontaneous/output/format/plain.rb
379
+ lib/spontaneous/output/helpers.rb
380
+ lib/spontaneous/output/helpers/classes_helper.rb
381
+ lib/spontaneous/output/helpers/conditional_comment_helper.rb
382
+ lib/spontaneous/output/helpers/script_helper.rb
383
+ lib/spontaneous/output/helpers/stylesheet_helper.rb
384
+ lib/spontaneous/output/template.rb
385
+ lib/spontaneous/output/template/engine.rb
386
+ lib/spontaneous/output/template/renderer.rb
350
387
  lib/spontaneous/page.rb
351
388
  lib/spontaneous/page_controller.rb
352
389
  lib/spontaneous/page_piece.rb
@@ -365,7 +402,9 @@ Gem::Specification.new do |s|
365
402
  lib/spontaneous/plugins/application/render.rb
366
403
  lib/spontaneous/plugins/application/serialisation.rb
367
404
  lib/spontaneous/plugins/application/state.rb
405
+ lib/spontaneous/plugins/application/system.rb
368
406
  lib/spontaneous/plugins/boxes.rb
407
+ lib/spontaneous/plugins/content_groups.rb
369
408
  lib/spontaneous/plugins/controllers.rb
370
409
  lib/spontaneous/plugins/entries.rb
371
410
  lib/spontaneous/plugins/entry.rb
@@ -374,8 +413,10 @@ Gem::Specification.new do |s|
374
413
  lib/spontaneous/plugins/instance_code.rb
375
414
  lib/spontaneous/plugins/layouts.rb
376
415
  lib/spontaneous/plugins/media.rb
416
+ lib/spontaneous/plugins/modifications.rb
377
417
  lib/spontaneous/plugins/page/formats.rb
378
418
  lib/spontaneous/plugins/page/request.rb
419
+ lib/spontaneous/plugins/page/site_timestamps.rb
379
420
  lib/spontaneous/plugins/page_search.rb
380
421
  lib/spontaneous/plugins/page_tree.rb
381
422
  lib/spontaneous/plugins/paths.rb
@@ -388,15 +429,19 @@ Gem::Specification.new do |s|
388
429
  lib/spontaneous/plugins/schema_title.rb
389
430
  lib/spontaneous/plugins/serialisation.rb
390
431
  lib/spontaneous/plugins/site/features.rb
432
+ lib/spontaneous/plugins/site/helpers.rb
433
+ lib/spontaneous/plugins/site/hooks.rb
391
434
  lib/spontaneous/plugins/site/instance.rb
392
435
  lib/spontaneous/plugins/site/level.rb
393
436
  lib/spontaneous/plugins/site/map.rb
437
+ lib/spontaneous/plugins/site/paths.rb
394
438
  lib/spontaneous/plugins/site/publishing.rb
395
- lib/spontaneous/plugins/site/revisions.rb
396
439
  lib/spontaneous/plugins/site/schema.rb
397
440
  lib/spontaneous/plugins/site/search.rb
398
441
  lib/spontaneous/plugins/site/selectors.rb
442
+ lib/spontaneous/plugins/site/state.rb
399
443
  lib/spontaneous/plugins/site/storage.rb
444
+ lib/spontaneous/plugins/site/url.rb
400
445
  lib/spontaneous/plugins/site_map.rb
401
446
  lib/spontaneous/plugins/styles.rb
402
447
  lib/spontaneous/plugins/supertype.rb
@@ -406,6 +451,7 @@ Gem::Specification.new do |s|
406
451
  lib/spontaneous/prototypes/layout_prototype.rb
407
452
  lib/spontaneous/prototypes/style_prototype.rb
408
453
  lib/spontaneous/publishing.rb
454
+ lib/spontaneous/publishing/event_client.rb
409
455
  lib/spontaneous/publishing/immediate.rb
410
456
  lib/spontaneous/publishing/simultaneous.rb
411
457
  lib/spontaneous/publishing/threaded.rb
@@ -420,33 +466,19 @@ Gem::Specification.new do |s|
420
466
  lib/spontaneous/rack/cookie_authentication.rb
421
467
  lib/spontaneous/rack/css.rb
422
468
  lib/spontaneous/rack/event_source.rb
469
+ lib/spontaneous/rack/fiber_pool.rb
423
470
  lib/spontaneous/rack/front.rb
424
471
  lib/spontaneous/rack/helpers.rb
425
472
  lib/spontaneous/rack/http.rb
473
+ lib/spontaneous/rack/js.rb
426
474
  lib/spontaneous/rack/media.rb
427
475
  lib/spontaneous/rack/public.rb
428
476
  lib/spontaneous/rack/query_authentication.rb
429
477
  lib/spontaneous/rack/reloader.rb
478
+ lib/spontaneous/rack/sse.rb
430
479
  lib/spontaneous/rack/static.rb
480
+ lib/spontaneous/rack/user_admin.rb
431
481
  lib/spontaneous/rack/user_helpers.rb
432
- lib/spontaneous/render.rb
433
- lib/spontaneous/render/context_base.rb
434
- lib/spontaneous/render/development_renderer.rb
435
- lib/spontaneous/render/engine.rb
436
- lib/spontaneous/render/format.rb
437
- lib/spontaneous/render/format/html.rb
438
- lib/spontaneous/render/helpers.rb
439
- lib/spontaneous/render/helpers/html_helper.rb
440
- lib/spontaneous/render/helpers/script_helper.rb
441
- lib/spontaneous/render/helpers/stylesheet_helper.rb
442
- lib/spontaneous/render/preview_context.rb
443
- lib/spontaneous/render/preview_renderer.rb
444
- lib/spontaneous/render/publish_context.rb
445
- lib/spontaneous/render/published_renderer.rb
446
- lib/spontaneous/render/publishing_renderer.rb
447
- lib/spontaneous/render/render_cache.rb
448
- lib/spontaneous/render/renderer.rb
449
- lib/spontaneous/render/request_context.rb
450
482
  lib/spontaneous/revision.rb
451
483
  lib/spontaneous/schema.rb
452
484
  lib/spontaneous/schema/schema_modification.rb
@@ -458,6 +490,7 @@ Gem::Specification.new do |s|
458
490
  lib/spontaneous/search/field.rb
459
491
  lib/spontaneous/search/index.rb
460
492
  lib/spontaneous/search/results.rb
493
+ lib/spontaneous/sequel.rb
461
494
  lib/spontaneous/server.rb
462
495
  lib/spontaneous/site.rb
463
496
  lib/spontaneous/state.rb
@@ -471,20 +504,52 @@ Gem::Specification.new do |s|
471
504
  lib/spontaneous/utils.rb
472
505
  lib/spontaneous/utils/database.rb
473
506
  lib/spontaneous/utils/database/mysql_dumper.rb
507
+ lib/spontaneous/utils/database/postgres_dumper.rb
508
+ lib/spontaneous/utils/smart_quotes.rb
509
+ lib/spontaneous/utils/smush_it.rb
474
510
  lib/spontaneous/version.rb
475
511
  spontaneous.gemspec
476
512
  test/disabled/test_slots.rb
477
- test/experimental/test_cutaneous.rb
478
513
  test/experimental/test_features.rb
479
- test/fixtures/application/css/test.less
480
514
  test/fixtures/application/js/test.js
481
515
  test/fixtures/application/static/favicon.ico
482
516
  test/fixtures/application/static/test.html
483
517
  test/fixtures/application/views/index.erb
518
+ test/fixtures/asset_pipeline/application/css/basic.css.scss
519
+ test/fixtures/asset_pipeline/application/css/complex.css.scss.erb
520
+ test/fixtures/asset_pipeline/application/css/simple.css
521
+ test/fixtures/asset_pipeline/application/css/spontaneous.css
522
+ test/fixtures/asset_pipeline/application/css/subdir/complex.css.scss.erb
523
+ test/fixtures/asset_pipeline/application/css/subdir/library.css.scss
524
+ test/fixtures/asset_pipeline/application/css/subdir/simple.css
525
+ test/fixtures/asset_pipeline/application/js/basic.js.coffee
526
+ test/fixtures/asset_pipeline/application/js/complex.js.coffee.erb
527
+ test/fixtures/asset_pipeline/application/js/login.js
528
+ test/fixtures/asset_pipeline/application/js/require.js
529
+ test/fixtures/asset_pipeline/application/js/simple.js
530
+ test/fixtures/asset_pipeline/application/js/spontaneous.js
531
+ test/fixtures/asset_pipeline/application/js/subdir/complex.js.coffee.erb
532
+ test/fixtures/asset_pipeline/application/js/subdir/library.js.coffee
533
+ test/fixtures/asset_pipeline/application/js/subdir/simple.js
534
+ test/fixtures/asset_pipeline/application/js/vendor/jquery.js
535
+ test/fixtures/asset_pipeline/application/static/dot-texture.png
536
+ test/fixtures/asset_pipeline/application/static/subdir/px.gif
537
+ test/fixtures/assets/public1/css/a.scss
538
+ test/fixtures/assets/public1/js/a.js
539
+ test/fixtures/assets/public1/js/m.coffee
540
+ test/fixtures/assets/public2/css/b.scss
541
+ test/fixtures/assets/public2/css/c.css
542
+ test/fixtures/assets/public2/js/b.js
543
+ test/fixtures/assets/public2/js/c.js
544
+ test/fixtures/assets/public2/js/n.coffee
545
+ test/fixtures/back/config/user_levels.yml
484
546
  test/fixtures/back/public/css/sass_include.scss
485
547
  test/fixtures/back/public/css/sass_template.scss
548
+ test/fixtures/back/public/js/coffeescript.coffee
486
549
  test/fixtures/back/public/test.html
550
+ test/fixtures/back/templates/layouts/standard.css.cut
487
551
  test/fixtures/back/templates/layouts/standard.html.cut
552
+ test/fixtures/back/templates/layouts/standard.js.cut
488
553
  test/fixtures/config/config/environment.rb
489
554
  test/fixtures/config/config/environments/development.rb
490
555
  test/fixtures/config/config/environments/production.rb
@@ -537,12 +602,15 @@ Gem::Specification.new do |s|
537
602
  test/fixtures/example_application/templates/project_image.html.cut
538
603
  test/fixtures/example_application/templates/text.html.cut
539
604
  test/fixtures/fields/youtube_api_response.xml
605
+ test/fixtures/helpers/templates/layouts/standard.html.cut
606
+ test/fixtures/helpers/templates/layouts/standard.mobile.cut
540
607
  test/fixtures/images/rose.greyscale.jpg
541
608
  test/fixtures/images/rose.jpg
542
609
  test/fixtures/images/size.gif
543
610
  test/fixtures/images/size.jpg
544
611
  test/fixtures/images/size.png24
545
612
  test/fixtures/images/size.png8
613
+ test/fixtures/images/vimlogo.pdf
546
614
  test/fixtures/layouts/layouts/custom1.html.cut
547
615
  test/fixtures/layouts/layouts/custom1.pdf.cut
548
616
  test/fixtures/layouts/layouts/custom1.xml.cut
@@ -551,6 +619,7 @@ Gem::Specification.new do |s|
551
619
  test/fixtures/layouts/layouts/custom4.html.cut
552
620
  test/fixtures/layouts/layouts/standard.html.cut
553
621
  test/fixtures/media/101/003/rose.jpg
622
+ test/fixtures/outputs/templates/layouts/standard.atom.cut
554
623
  test/fixtures/permissions/config/user_levels.yml
555
624
  test/fixtures/permissions/media/image.jpg
556
625
  test/fixtures/plugins/schema_plugin/init.rb
@@ -638,6 +707,7 @@ Gem::Specification.new do |s|
638
707
  test/fixtures/templates/layouts/page_style.html.cut
639
708
  test/fixtures/templates/layouts/params.html.cut
640
709
  test/fixtures/templates/layouts/preview_render.html.cut
710
+ test/fixtures/templates/layouts/standard.html.cut
641
711
  test/fixtures/templates/layouts/standard_page.html.cut
642
712
  test/fixtures/templates/layouts/subdir_style.html.cut
643
713
  test/fixtures/templates/layouts/template_params.html.cut
@@ -648,6 +718,7 @@ Gem::Specification.new do |s|
648
718
  test/fixtures/templates/publishing/templates/layouts/dynamic.html.cut
649
719
  test/fixtures/templates/publishing/templates/layouts/dynamic.rtf.cut
650
720
  test/fixtures/templates/publishing/templates/layouts/static.html.cut
721
+ test/fixtures/templates/publishing/templates/layouts/static.rtf.cut
651
722
  test/fixtures/templates/template_class/anonymous_style.html.cut
652
723
  test/fixtures/templates/template_class/another_template.html.cut
653
724
  test/fixtures/templates/template_class/complex_template.html.cut
@@ -660,13 +731,14 @@ Gem::Specification.new do |s|
660
731
  test/fixtures/templates/template_class/this_template.html.cut
661
732
  test/fixtures/templates/template_class/this_template.pdf.cut
662
733
  test/fixtures/templates/with_default_style_class.html.cut
734
+ test/fixtures/user_manager/config/user_levels.yml
663
735
  test/functional/test_application.rb
664
736
  test/functional/test_back.rb
665
737
  test/functional/test_front.rb
738
+ test/functional/test_user_manager.rb
739
+ test/javascript/env.js
666
740
  test/javascript/test_dom.rb
667
741
  test/javascript/test_markdown.rb
668
- test/slow/test_publishing.rb
669
- test/slow/test_visibility.rb
670
742
  test/support/custom_matchers.rb
671
743
  test/support/timing.rb
672
744
  test/test_helper.rb
@@ -674,8 +746,12 @@ Gem::Specification.new do |s|
674
746
  test/ui/test_page_editing.rb
675
747
  test/ui_helper.rb
676
748
  test/unit/test_alias.rb
749
+ test/unit/test_asset_bundler.rb
750
+ test/unit/test_assets.rb
751
+ test/unit/test_async.rb
677
752
  test/unit/test_authentication.rb
678
753
  test/unit/test_boxes.rb
754
+ test/unit/test_changesets.rb
679
755
  test/unit/test_config.rb
680
756
  test/unit/test_content.rb
681
757
  test/unit/test_content_inheritance.rb
@@ -689,13 +765,16 @@ Gem::Specification.new do |s|
689
765
  test/unit/test_layouts.rb
690
766
  test/unit/test_logger.rb
691
767
  test/unit/test_media.rb
768
+ test/unit/test_modifications.rb
692
769
  test/unit/test_page.rb
693
770
  test/unit/test_permissions.rb
694
771
  test/unit/test_piece.rb
695
772
  test/unit/test_plugins.rb
696
773
  test/unit/test_prototype_set.rb
697
774
  test/unit/test_prototypes.rb
775
+ test/unit/test_publishing.rb
698
776
  test/unit/test_render.rb
777
+ test/unit/test_revisions.rb
699
778
  test/unit/test_schema.rb
700
779
  test/unit/test_search.rb
701
780
  test/unit/test_serialisation.rb
@@ -706,6 +785,7 @@ Gem::Specification.new do |s|
706
785
  test/unit/test_table_scoping.rb
707
786
  test/unit/test_templates.rb
708
787
  test/unit/test_type_hierarchy.rb
788
+ test/unit/test_visibility.rb
709
789
  ]
710
790
  # = MANIFEST =
711
791
 
@@ -49,7 +49,7 @@ class FeaturesTest < MiniTest::Spec
49
49
  config.stubs(:site_id).returns('example_org')
50
50
  @site.stubs(:config).returns(config)
51
51
 
52
- @user = Spontaneous::Permissions::User.create(:email => "root@example.com", :login => "root", :name => "root", :password => "rootpass", :password_confirmation => "rootpass")
52
+ @user = Spontaneous::Permissions::User.create(:email => "root@example.com", :login => "root", :name => "root", :password => "rootpass")
53
53
  @user.update(:level => Spontaneous::Permissions.root)
54
54
  @user.save
55
55
  @key = "c5AMX3r5kMHX2z9a5ExLKjAmCcnT6PFf22YQxzb4Codj"
@@ -0,0 +1,4 @@
1
+ $color: #abc;
2
+ .basic {
3
+ color: $color;
4
+ }
@@ -0,0 +1,6 @@
1
+ $color: #def;
2
+ $width: <%= Date.today.day %>px;
3
+ .complex {
4
+ color: $color;
5
+ width: $width;
6
+ }
@@ -0,0 +1,3 @@
1
+ .simple {
2
+ color: #aaa;
3
+ }
@@ -0,0 +1,7 @@
1
+ /*
2
+ *= require simple
3
+ *= require basic
4
+ *= require complex
5
+ *= require subdir/simple
6
+ *= require subdir/complex
7
+ */
@@ -0,0 +1,6 @@
1
+ @import "library.css.scss";
2
+
3
+ .subdir.complex {
4
+ color: $complex-color;
5
+ height: <%= Date.today.day %>px;
6
+ }
@@ -0,0 +1 @@
1
+ $complex-color: #aaa;
@@ -0,0 +1,3 @@
1
+ .subdir.simple {
2
+ color: #000;
3
+ }
@@ -0,0 +1 @@
1
+ complex = "<%= Date.today.day %>"
@@ -0,0 +1 @@
1
+ //= require simple
@@ -0,0 +1 @@
1
+ var require = true;
@@ -0,0 +1 @@
1
+ var simple = "yes";
@@ -0,0 +1,5 @@
1
+ //= require simple
2
+ //= require basic
3
+ //= require complex
4
+ //= require subdir/simple
5
+ //= require subdir/complex
@@ -0,0 +1 @@
1
+ complex_subdir = "subdir/<%= Date.today.day %>"