spontaneous 0.2.0.alpha7 → 0.2.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (247) hide show
  1. data/Gemfile +10 -4
  2. data/Readme.markdown +1 -1
  3. data/application/css/definitions.css.scss +5 -0
  4. data/application/css/dialogue.css.scss +62 -0
  5. data/application/js/content.js +1 -1
  6. data/application/js/dom.js +1 -1
  7. data/application/js/event_source.js +3 -0
  8. data/application/js/{field_types/date_field.js → field/date.js} +2 -2
  9. data/application/js/{field_types/file_field.js → field/file.js} +2 -2
  10. data/application/js/{field_types/image_field.js → field/image.js} +54 -20
  11. data/application/js/{field_types/long_string_field.js → field/long_string.js} +2 -2
  12. data/application/js/{field_types/markdown_field.js → field/markdown.js} +2 -2
  13. data/application/js/{field_types/select_field.js → field/select.js} +2 -2
  14. data/application/js/{field_types/string_field.js → field/string.js} +21 -7
  15. data/application/js/{field_types/webvideo_field.js → field/webvideo.js} +2 -2
  16. data/application/js/field.js +2 -2
  17. data/application/js/publish.js +99 -19
  18. data/application/js/spontaneous.js +8 -8
  19. data/application/js/top_bar.js +6 -4
  20. data/db/migrations/20130109125023_add_page_publish_lock.rb +17 -0
  21. data/db/migrations/20130111161934_convert_bcrypt_passwords.rb +22 -0
  22. data/db/migrations/20130114120000_create_revision_tables.rb +106 -0
  23. data/db/migrations/20130116220423_add_index_to_archive.rb +9 -0
  24. data/lib/spontaneous/box.rb +53 -18
  25. data/lib/spontaneous/box_style.rb +2 -3
  26. data/lib/spontaneous/change.rb +39 -13
  27. data/lib/spontaneous/cli/fields.rb +29 -0
  28. data/lib/spontaneous/cli/init.rb +2 -2
  29. data/lib/spontaneous/cli/migrate.rb +0 -1
  30. data/lib/spontaneous/cli/server.rb +14 -10
  31. data/lib/spontaneous/cli/site.rb +20 -9
  32. data/lib/spontaneous/cli.rb +8 -6
  33. data/lib/spontaneous/collections/box_set.rb +11 -0
  34. data/lib/spontaneous/collections/field_set.rb +24 -1
  35. data/lib/spontaneous/concern.rb +37 -0
  36. data/lib/spontaneous/config.rb +3 -4
  37. data/lib/spontaneous/crypt/version.rb +130 -0
  38. data/lib/spontaneous/crypt.rb +84 -0
  39. data/lib/spontaneous/data_mapper/content_model/associations.rb +199 -0
  40. data/lib/spontaneous/data_mapper/content_model/column_accessors.rb +52 -0
  41. data/lib/spontaneous/data_mapper/content_model/instance_hooks.rb +34 -0
  42. data/lib/spontaneous/data_mapper/content_model/serialization.rb +54 -0
  43. data/lib/spontaneous/data_mapper/content_model/timestamps.rb +39 -0
  44. data/lib/spontaneous/data_mapper/content_model.rb +343 -0
  45. data/lib/spontaneous/data_mapper/content_table.rb +103 -0
  46. data/lib/spontaneous/data_mapper/dataset.rb +194 -0
  47. data/lib/spontaneous/data_mapper/scope.rb +195 -0
  48. data/lib/spontaneous/data_mapper.rb +161 -0
  49. data/lib/spontaneous/facet.rb +2 -2
  50. data/lib/spontaneous/field/base.rb +418 -0
  51. data/lib/spontaneous/field/date.rb +54 -0
  52. data/lib/spontaneous/{field_version.rb → field/field_version.rb} +1 -1
  53. data/lib/spontaneous/field/file.rb +100 -0
  54. data/lib/spontaneous/{field_types/image_field.rb → field/image.rb} +33 -33
  55. data/lib/spontaneous/{field_types/location_field.rb → field/location.rb} +2 -2
  56. data/lib/spontaneous/{field_types/long_string_field.rb → field/long_string.rb} +3 -3
  57. data/lib/spontaneous/field/markdown.rb +36 -0
  58. data/lib/spontaneous/{field_types/select_field.rb → field/select.rb} +4 -5
  59. data/lib/spontaneous/field/string.rb +17 -0
  60. data/lib/spontaneous/field/update.rb +156 -0
  61. data/lib/spontaneous/field/webvideo.rb +310 -0
  62. data/lib/spontaneous/field.rb +80 -0
  63. data/lib/spontaneous/generators/site/Gemfile.tt +2 -2
  64. data/lib/spontaneous/generators/site/config/environments/development.rb.tt +1 -1
  65. data/lib/spontaneous/generators/site/config/environments/production.rb.tt +1 -1
  66. data/lib/spontaneous/generators/site/lib/content.rb.tt +6 -0
  67. data/lib/spontaneous/generators/site/schema/box.rb.tt +3 -2
  68. data/lib/spontaneous/generators/site/schema/page.rb.tt +3 -1
  69. data/lib/spontaneous/generators/site/schema/piece.rb.tt +3 -1
  70. data/lib/spontaneous/generators/site/templates/layouts/standard.html.cut.tt +3 -1
  71. data/lib/spontaneous/generators/site.rb +4 -3
  72. data/lib/spontaneous/image_size.rb +8 -1
  73. data/lib/spontaneous/layout.rb +5 -1
  74. data/lib/spontaneous/loader.rb +2 -5
  75. data/lib/spontaneous/media/file.rb +11 -2
  76. data/lib/spontaneous/media/temp_file.rb +23 -0
  77. data/lib/spontaneous/media.rb +20 -39
  78. data/lib/spontaneous/{plugins → model/box}/allowed_types.rb +38 -17
  79. data/lib/spontaneous/model/box.rb +18 -0
  80. data/lib/spontaneous/{plugins → model/core}/aliases.rb +10 -14
  81. data/lib/spontaneous/{plugins → model/core}/boxes.rb +2 -2
  82. data/lib/spontaneous/{plugins → model/core}/content_groups.rb +2 -2
  83. data/lib/spontaneous/model/core/editor_class.rb +4 -0
  84. data/lib/spontaneous/{plugins → model/core}/entries.rb +19 -7
  85. data/lib/spontaneous/{plugins → model/core}/entry.rb +3 -3
  86. data/lib/spontaneous/{plugins → model/core}/fields.rb +38 -5
  87. data/lib/spontaneous/{plugins → model/core}/instance_code.rb +2 -2
  88. data/lib/spontaneous/{plugins → model/core}/media.rb +2 -12
  89. data/lib/spontaneous/{plugins → model/core}/modifications.rb +7 -6
  90. data/lib/spontaneous/model/core/page_search.rb +36 -0
  91. data/lib/spontaneous/{plugins → model/core}/permissions.rb +4 -4
  92. data/lib/spontaneous/{plugins → model/core}/prototypes.rb +4 -4
  93. data/lib/spontaneous/{plugins → model/core}/publishing.rb +93 -115
  94. data/lib/spontaneous/{plugins → model/core}/render.rb +2 -2
  95. data/lib/spontaneous/{plugins → model/core}/schema_hierarchy.rb +7 -11
  96. data/lib/spontaneous/model/core/schema_id.rb +65 -0
  97. data/lib/spontaneous/{plugins → model/core}/schema_title.rb +2 -2
  98. data/lib/spontaneous/{plugins → model/core}/serialisation.rb +2 -2
  99. data/lib/spontaneous/{plugins → model/core}/styles.rb +2 -2
  100. data/lib/spontaneous/{plugins → model/core}/supertype.rb +2 -2
  101. data/lib/spontaneous/{plugins → model/core}/visibility.rb +7 -48
  102. data/lib/spontaneous/model/core.rb +143 -0
  103. data/lib/spontaneous/{plugins → model/page}/controllers.rb +3 -3
  104. data/lib/spontaneous/{plugins → model}/page/formats.rb +2 -2
  105. data/lib/spontaneous/{plugins → model/page}/layouts.rb +2 -2
  106. data/lib/spontaneous/model/page/locks.rb +14 -0
  107. data/lib/spontaneous/{plugins → model/page}/page_tree.rb +3 -3
  108. data/lib/spontaneous/{plugins → model/page}/paths.rb +30 -12
  109. data/lib/spontaneous/{plugins → model}/page/request.rb +2 -2
  110. data/lib/spontaneous/{plugins → model/page}/site_map.rb +2 -2
  111. data/lib/spontaneous/model/page/site_timestamps.rb +44 -0
  112. data/lib/spontaneous/{page.rb → model/page.rb} +49 -28
  113. data/lib/spontaneous/{piece.rb → model/piece.rb} +7 -6
  114. data/lib/spontaneous/model.rb +97 -0
  115. data/lib/spontaneous/output/context.rb +1 -1
  116. data/lib/spontaneous/output/format.rb +4 -0
  117. data/lib/spontaneous/output/template/renderer.rb +2 -2
  118. data/lib/spontaneous/output.rb +2 -2
  119. data/lib/spontaneous/page_lock.rb +62 -0
  120. data/lib/spontaneous/page_piece.rb +1 -1
  121. data/lib/spontaneous/permissions/access_key.rb +9 -4
  122. data/lib/spontaneous/permissions/user.rb +19 -9
  123. data/lib/spontaneous/permissions.rb +2 -5
  124. data/lib/spontaneous/plugins/application/facets.rb +1 -2
  125. data/lib/spontaneous/plugins/application/features.rb +1 -1
  126. data/lib/spontaneous/plugins/application/paths.rb +1 -1
  127. data/lib/spontaneous/plugins/application/render.rb +1 -1
  128. data/lib/spontaneous/plugins/application/serialisation.rb +1 -1
  129. data/lib/spontaneous/plugins/application/state.rb +30 -1
  130. data/lib/spontaneous/plugins/application/system.rb +12 -12
  131. data/lib/spontaneous/prototypes/box_prototype.rb +1 -1
  132. data/lib/spontaneous/prototypes/field_prototype.rb +3 -6
  133. data/lib/spontaneous/prototypes/style_prototype.rb +1 -1
  134. data/lib/spontaneous/publishing/immediate.rb +77 -49
  135. data/lib/spontaneous/publishing/revision.rb +355 -0
  136. data/lib/spontaneous/publishing/simultaneous.rb +10 -49
  137. data/lib/spontaneous/publishing.rb +1 -0
  138. data/lib/spontaneous/rack/around_back.rb +1 -1
  139. data/lib/spontaneous/rack/around_front.rb +2 -4
  140. data/lib/spontaneous/rack/around_preview.rb +1 -1
  141. data/lib/spontaneous/rack/back.rb +80 -63
  142. data/lib/spontaneous/rack/cacheable_file.rb +2 -2
  143. data/lib/spontaneous/rack/cookie_authentication.rb +1 -1
  144. data/lib/spontaneous/rack/front.rb +1 -1
  145. data/lib/spontaneous/rack/helpers.rb +8 -9
  146. data/lib/spontaneous/{page_controller.rb → rack/page_controller.rb} +1 -1
  147. data/lib/spontaneous/rack/public.rb +3 -3
  148. data/lib/spontaneous/rack.rb +15 -15
  149. data/lib/spontaneous/schema/uid.rb +4 -1
  150. data/lib/spontaneous/schema.rb +57 -24
  151. data/lib/spontaneous/search/database.rb +12 -1
  152. data/lib/spontaneous/search/index.rb +34 -6
  153. data/lib/spontaneous/search/results.rb +1 -1
  154. data/lib/spontaneous/server.rb +3 -3
  155. data/lib/spontaneous/simultaneous.rb +53 -0
  156. data/lib/spontaneous/{plugins/site → site}/features.rb +2 -2
  157. data/lib/spontaneous/{plugins/site → site}/helpers.rb +2 -3
  158. data/lib/spontaneous/{plugins/site → site}/hooks.rb +2 -2
  159. data/lib/spontaneous/{plugins/site → site}/instance.rb +4 -6
  160. data/lib/spontaneous/{plugins/site → site}/level.rb +2 -2
  161. data/lib/spontaneous/{plugins/site → site}/map.rb +4 -4
  162. data/lib/spontaneous/{plugins/site → site}/paths.rb +2 -2
  163. data/lib/spontaneous/site/publishing.rb +89 -0
  164. data/lib/spontaneous/{plugins/site → site}/schema.rb +4 -4
  165. data/lib/spontaneous/{plugins/site → site}/search.rb +2 -2
  166. data/lib/spontaneous/{plugins/site → site}/selectors.rb +15 -7
  167. data/lib/spontaneous/{plugins/site → site}/state.rb +2 -2
  168. data/lib/spontaneous/{plugins/site → site}/storage.rb +2 -2
  169. data/lib/spontaneous/{plugins/site → site}/url.rb +2 -2
  170. data/lib/spontaneous/site.rb +31 -14
  171. data/lib/spontaneous/state.rb +5 -6
  172. data/lib/spontaneous/style.rb +3 -2
  173. data/lib/spontaneous/utils/database/mysql_dumper.rb +13 -0
  174. data/lib/spontaneous/utils/database/postgres_dumper.rb +5 -0
  175. data/lib/spontaneous/version.rb +1 -1
  176. data/lib/spontaneous.rb +34 -89
  177. data/spontaneous.gemspec +112 -114
  178. data/test/experimental/test_crypt.rb +158 -0
  179. data/test/experimental/test_features.rb +3 -3
  180. data/test/fixtures/example_application/config/environments/development.rb +1 -1
  181. data/test/fixtures/example_application/lib/content.rb +5 -0
  182. data/test/fixtures/example_application/schema/page.rb +2 -1
  183. data/test/fixtures/example_application/schema/piece.rb +3 -2
  184. data/test/fixtures/serialisation/class_hash.yaml.erb +5 -5
  185. data/test/fixtures/serialisation/root_hash.yaml.erb +8 -0
  186. data/test/functional/test_application.rb +12 -1
  187. data/test/functional/test_back.rb +80 -48
  188. data/test/functional/test_front.rb +39 -46
  189. data/test/functional/test_user_manager.rb +3 -9
  190. data/test/javascript/test_markdown.rb +2 -2
  191. data/test/test_helper.rb +78 -23
  192. data/test/unit/test_alias.rb +21 -15
  193. data/test/unit/test_asset_bundler.rb +3 -3
  194. data/test/unit/test_assets.rb +2 -2
  195. data/test/unit/test_async.rb +7 -6
  196. data/test/unit/test_authentication.rb +43 -37
  197. data/test/unit/test_boxes.rb +46 -21
  198. data/test/unit/test_changesets.rb +65 -20
  199. data/test/unit/test_config.rb +9 -9
  200. data/test/unit/test_content.rb +50 -51
  201. data/test/unit/test_content_inheritance.rb +6 -20
  202. data/test/unit/test_datamapper.rb +1330 -0
  203. data/test/unit/test_datamapper_content.rb +214 -0
  204. data/test/unit/test_fields.rb +543 -54
  205. data/test/unit/test_formats.rb +2 -3
  206. data/test/unit/test_generators.rb +6 -6
  207. data/test/unit/test_helpers.rb +1 -1
  208. data/test/unit/test_image_size.rb +10 -5
  209. data/test/unit/test_images.rb +17 -18
  210. data/test/unit/test_layouts.rb +18 -3
  211. data/test/unit/test_media.rb +74 -49
  212. data/test/unit/test_modifications.rb +43 -43
  213. data/test/unit/test_page.rb +7 -10
  214. data/test/unit/test_permissions.rb +3 -10
  215. data/test/unit/test_piece.rb +5 -6
  216. data/test/unit/test_plugins.rb +7 -14
  217. data/test/unit/test_prototypes.rb +3 -3
  218. data/test/unit/test_publishing.rb +49 -27
  219. data/test/unit/test_render.rb +46 -15
  220. data/test/unit/test_revisions.rb +124 -127
  221. data/test/unit/test_schema.rb +53 -58
  222. data/test/unit/test_search.rb +64 -16
  223. data/test/unit/test_serialisation.rb +4 -11
  224. data/test/unit/test_site.rb +11 -12
  225. data/test/unit/test_structure.rb +2 -5
  226. data/test/unit/test_styles.rb +22 -24
  227. data/test/unit/test_type_hierarchy.rb +7 -5
  228. data/test/unit/test_visibility.rb +79 -55
  229. metadata +128 -102
  230. data/lib/sequel/plugins/content_table_inheritance.rb +0 -203
  231. data/lib/sequel/plugins/scoped_table_name.rb +0 -54
  232. data/lib/spontaneous/content.rb +0 -129
  233. data/lib/spontaneous/field_types/date_field.rb +0 -56
  234. data/lib/spontaneous/field_types/field.rb +0 -302
  235. data/lib/spontaneous/field_types/file_field.rb +0 -68
  236. data/lib/spontaneous/field_types/markdown_field.rb +0 -38
  237. data/lib/spontaneous/field_types/string_field.rb +0 -19
  238. data/lib/spontaneous/field_types/webvideo_field.rb +0 -313
  239. data/lib/spontaneous/field_types.rb +0 -38
  240. data/lib/spontaneous/generators/site/lib/site.rb.tt +0 -4
  241. data/lib/spontaneous/plugins/field/editor_class.rb +0 -13
  242. data/lib/spontaneous/plugins/page/site_timestamps.rb +0 -28
  243. data/lib/spontaneous/plugins/page_search.rb +0 -63
  244. data/lib/spontaneous/plugins/schema_id.rb +0 -68
  245. data/lib/spontaneous/plugins/site/publishing.rb +0 -75
  246. data/lib/spontaneous/rack/fiber_pool.rb +0 -26
  247. data/test/unit/test_table_scoping.rb +0 -80
data/lib/spontaneous.rb CHANGED
@@ -22,10 +22,12 @@ require "active_support/core_ext/file"
22
22
  module Spontaneous
23
23
 
24
24
  require "spontaneous/logger"
25
+ require "spontaneous/concern"
25
26
  require "spontaneous/constants"
26
27
  require "spontaneous/errors"
27
28
  require "spontaneous/json"
28
29
  require "spontaneous/sequel"
30
+ require "spontaneous/model"
29
31
 
30
32
  include Constants
31
33
 
@@ -37,121 +39,64 @@ module Spontaneous
37
39
  instance.reload!
38
40
  end
39
41
 
40
- autoload :Config, "spontaneous/config"
41
- autoload :Paths, "spontaneous/paths"
42
- autoload :Facet, "spontaneous/facet"
43
- autoload :Content, "spontaneous/content"
44
- autoload :Page, "spontaneous/page"
45
- autoload :Piece, "spontaneous/piece"
42
+ autoload :Application, "spontaneous/application"
43
+ autoload :Asset, "spontaneous/asset"
46
44
  autoload :Box, "spontaneous/box"
47
- autoload :FieldTypes, "spontaneous/field_types"
48
- autoload :FieldVersion, "spontaneous/field_version"
49
- autoload :PagePiece, "spontaneous/page_piece"
50
- autoload :Style, "spontaneous/style"
51
45
  autoload :BoxStyle, "spontaneous/box_style"
52
- autoload :Layout, "spontaneous/layout"
53
- autoload :Site, "spontaneous/site"
54
- autoload :State, "spontaneous/state"
55
- autoload :Schema, "spontaneous/schema"
56
- autoload :ImageSize, "spontaneous/image_size"
57
- autoload :Rack, "spontaneous/rack"
58
- autoload :Output, "spontaneous/output"
59
- autoload :Media, "spontaneous/media"
60
46
  autoload :Change, "spontaneous/change"
61
- autoload :Revision, "spontaneous/revision"
62
- autoload :Publishing, "spontaneous/publishing"
47
+ autoload :Cli, "spontaneous/cli"
48
+ autoload :Config, "spontaneous/config"
49
+ autoload :ContentQuery, "spontaneous/content_query"
50
+ autoload :Crypt, "spontaneous/crypt"
51
+ autoload :DataMapper, "spontaneous/data_mapper"
52
+ autoload :Facet, "spontaneous/facet"
53
+ autoload :Field, "spontaneous/field"
63
54
  autoload :Generators, "spontaneous/generators"
64
- autoload :Server, "spontaneous/server"
55
+ autoload :ImageSize, "spontaneous/image_size"
56
+ autoload :Layout, "spontaneous/layout"
57
+ autoload :Media, "spontaneous/media"
58
+ autoload :Output, "spontaneous/output"
59
+ autoload :PagePiece, "spontaneous/page_piece"
60
+ autoload :PageLock, "spontaneous/page_lock"
61
+ autoload :Paths, "spontaneous/paths"
65
62
  autoload :Permissions, "spontaneous/permissions"
66
- autoload :ContentQuery, "spontaneous/content_query"
67
- autoload :PageController, "spontaneous/page_controller"
68
- autoload :Application, "spontaneous/application"
63
+ autoload :Publishing, "spontaneous/publishing"
64
+ autoload :Rack, "spontaneous/rack"
65
+ autoload :Revision, "spontaneous/revision"
66
+ autoload :Schema, "spontaneous/schema"
69
67
  autoload :Search, "spontaneous/search"
68
+ autoload :Server, "spontaneous/server"
69
+ autoload :Simultaneous, "spontaneous/simultaneous"
70
+ autoload :Site, "spontaneous/site"
71
+ autoload :State, "spontaneous/state"
70
72
  autoload :Storage, "spontaneous/storage"
71
- autoload :Cli, "spontaneous/cli"
73
+ autoload :Style, "spontaneous/style"
72
74
  autoload :Utils, "spontaneous/utils"
73
- autoload :Asset, "spontaneous/asset"
74
75
 
75
76
  module Prototypes
76
- autoload :FieldPrototype, "spontaneous/prototypes/field_prototype"
77
77
  autoload :BoxPrototype, "spontaneous/prototypes/box_prototype"
78
- autoload :StylePrototype, "spontaneous/prototypes/style_prototype"
78
+ autoload :FieldPrototype, "spontaneous/prototypes/field_prototype"
79
79
  autoload :LayoutPrototype, "spontaneous/prototypes/layout_prototype"
80
+ autoload :StylePrototype, "spontaneous/prototypes/style_prototype"
80
81
  end
81
82
 
82
83
  module Collections
83
- autoload :PrototypeSet, "spontaneous/collections/prototype_set"
84
+ autoload :BoxSet, "spontaneous/collections/box_set"
84
85
  autoload :ChangeSet, "spontaneous/collections/change_set"
85
86
  autoload :EntrySet, "spontaneous/collections/entry_set"
86
87
  autoload :FieldSet, "spontaneous/collections/field_set"
87
- autoload :BoxSet, "spontaneous/collections/box_set"
88
+ autoload :PrototypeSet, "spontaneous/collections/prototype_set"
88
89
  autoload :StyleSet, "spontaneous/collections/style_set"
89
90
  end
90
91
 
91
92
  module Plugins
92
- autoload :Supertype, "spontaneous/plugins/supertype"
93
- autoload :Boxes, "spontaneous/plugins/boxes"
94
- autoload :Fields, "spontaneous/plugins/fields"
95
- autoload :Entries, "spontaneous/plugins/entries"
96
- autoload :Entry, "spontaneous/plugins/entry"
97
- autoload :Styles, "spontaneous/plugins/styles"
98
- autoload :Layouts, "spontaneous/plugins/layouts"
99
- autoload :SchemaTitle, "spontaneous/plugins/schema_title"
100
- autoload :SchemaId, "spontaneous/plugins/schema_id"
101
- autoload :Render, "spontaneous/plugins/render"
102
- autoload :SchemaHierarchy, "spontaneous/plugins/schema_hierarchy"
103
- autoload :InstanceCode, "spontaneous/plugins/instance_code"
104
- autoload :Paths, "spontaneous/plugins/paths"
105
- autoload :PageTree, "spontaneous/plugins/page_tree"
106
- autoload :AllowedTypes, "spontaneous/plugins/allowed_types"
107
- autoload :Serialisation, "spontaneous/plugins/serialisation"
108
- autoload :SiteMap, "spontaneous/plugins/site_map"
109
- autoload :PageSearch, "spontaneous/plugins/page_search"
110
- autoload :Media, "spontaneous/plugins/media"
111
- autoload :Publishing, "spontaneous/plugins/publishing"
112
- autoload :Aliases, "spontaneous/plugins/aliases"
113
- autoload :Visibility, "spontaneous/plugins/visibility"
114
- autoload :Prototypes, "spontaneous/plugins/prototypes"
115
- autoload :Permissions, "spontaneous/plugins/permissions"
116
- autoload :Controllers, "spontaneous/plugins/controllers"
117
- autoload :Modifications, "spontaneous/plugins/modifications"
118
- autoload :ContentGroups, "spontaneous/plugins/content_groups"
119
-
120
- module Field
121
- autoload :EditorClass, "spontaneous/plugins/field/editor_class"
122
- end
123
-
124
- module Page
125
- autoload :Formats, "spontaneous/plugins/page/formats"
126
- autoload :Request, "spontaneous/plugins/page/request"
127
- autoload :SiteTimestamps, "spontaneous/plugins/page/site_timestamps"
128
- end
129
-
130
- module Site
131
- autoload :Publishing, "spontaneous/plugins/site/publishing"
132
- autoload :State, "spontaneous/plugins/site/state"
133
- autoload :Selectors, "spontaneous/plugins/site/selectors"
134
- autoload :Map, "spontaneous/plugins/site/map"
135
- autoload :Paths, "spontaneous/plugins/site/paths"
136
- autoload :Instance, "spontaneous/plugins/site/instance"
137
- autoload :Search, "spontaneous/plugins/site/search"
138
- autoload :Features, "spontaneous/plugins/site/features"
139
- autoload :Schema, "spontaneous/plugins/site/schema"
140
- autoload :Level, "spontaneous/plugins/site/level"
141
- autoload :Storage, "spontaneous/plugins/site/storage"
142
- autoload :Timestamps, "spontaneous/plugins/site/timestamps"
143
- autoload :URL, "spontaneous/plugins/site/url"
144
- autoload :Hooks, "spontaneous/plugins/site/hooks"
145
- autoload :Helpers, "spontaneous/plugins/site/helpers"
146
- end
147
-
148
93
  module Application
149
- autoload :State, "spontaneous/plugins/application/state"
94
+ autoload :Facets, "spontaneous/plugins/application/facets"
95
+ autoload :Features, "spontaneous/plugins/application/features"
150
96
  autoload :Paths, "spontaneous/plugins/application/paths"
151
97
  autoload :Render, "spontaneous/plugins/application/render"
152
- autoload :Facets, "spontaneous/plugins/application/facets"
153
98
  autoload :Serialisation, "spontaneous/plugins/application/serialisation"
154
- autoload :Features, "spontaneous/plugins/application/features"
99
+ autoload :State, "spontaneous/plugins/application/state"
155
100
  autoload :System, "spontaneous/plugins/application/system"
156
101
  end
157
102
  end
data/spontaneous.gemspec CHANGED
@@ -1,56 +1,36 @@
1
- ## This is the rakegem gemspec template. Make sure you read and understand
2
- ## all of the comments. Some sections require modification, and others can
3
- ## be deleted if you don't need them. Once you understand the contents of
4
- ## this file, feel free to delete any comments that begin with two hash marks.
5
- ## You can find comprehensive Gem::Specification documentation, at
6
- ## http://docs.rubygems.org/read/chapter/20
1
+
7
2
  Gem::Specification.new do |s|
8
3
  s.specification_version = 2 if s.respond_to? :specification_version=
9
4
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
10
5
  s.rubygems_version = '1.3.5'
11
- s.required_ruby_version = ">= 1.9.2"
6
+ s.required_ruby_version = ">= 1.9.3"
12
7
 
13
- ## Leave these as is they will be modified for you by the rake gemspec task.
14
- ## If your rubyforge_project name is different, then edit it and comment out
15
- ## the sub! line in the Rakefile
16
8
  s.name = 'spontaneous'
17
- s.version = '0.2.0.alpha7'
18
- s.date = '2012-11-01'
9
+ s.version = '0.2.0.beta1'
10
+ s.date = '2013-01-26'
19
11
  s.rubyforge_project = 'spontaneous'
20
12
 
21
- ## Make sure your summary is short. The description may be as long
22
- ## as you like.
23
13
  s.summary = "Spontaneous is a next-generation Ruby CMS"
24
14
  s.description = "Spontaneous is a next-generation Ruby CMS"
25
15
 
26
- ## List the primary authors. If there are a bunch of authors, it's probably
27
- ## better to set the email to an email list or something. If you don't have
28
- ## a custom homepage, consider using your GitHub URL or the like.
29
16
  s.authors = ["Garry Hill"]
30
17
  s.email = 'garry@magnetised.net'
31
- s.homepage = 'http://spontaneouscms.org'
18
+ s.homepage = 'http://spontaneous.io'
32
19
 
33
- ## This gets added to the $LOAD_PATH so that 'lib/NAME.rb' can be required as
34
- ## require 'NAME.rb' or'/lib/NAME/file.rb' can be as require 'NAME/file.rb'
35
20
  s.require_paths = %w[lib]
36
21
 
37
- # ## This sections is only necessary if you have C extensions.
38
22
  # s.require_paths << 'ext'
39
23
  # s.extensions = %w[ext/extconf.rb]
40
24
 
41
- ## If your gem includes any executables, list them here.
42
25
  s.executables = ["spot"]
43
26
 
44
- ## Specify any RDoc options here. You'll want to add your README and
45
- ## LICENSE files to the extra_rdoc_files list.
46
27
  s.rdoc_options = ["--charset=UTF-8"]
47
28
  s.extra_rdoc_files = %w[README LICENSE]
48
29
 
49
- ## List your runtime dependencies here. Runtime dependencies are those
50
- ## that are needed for an end user to actually USE your code.
51
30
  s.add_dependency('activesupport', ["~> 3.2.0"])
52
31
  s.add_dependency('base58', ["~> 0.1.0"])
53
- s.add_dependency('bundler', ["> 1.0.15"])
32
+ s.add_dependency('bcrypt-ruby', ["~> 3.0.1"])
33
+ s.add_dependency('bundler', ["> 1.0.15"])
54
34
  s.add_dependency('coffee-script', ["~> 2.2.0"])
55
35
  s.add_dependency('cutaneous', ["~> 0.1.3"])
56
36
  s.add_dependency('erubis', ["~> 2.6"])
@@ -61,26 +41,23 @@ Gem::Specification.new do |s|
61
41
  s.add_dependency('mini_magick', ["~> 3.3"])
62
42
  s.add_dependency('nokogiri', ["~> 1.5.0"])
63
43
  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"])
44
+ s.add_dependency('rack', ["= 1.4.1"])
66
45
  s.add_dependency('rake', ["~> 0.9.2"])
67
46
  s.add_dependency('rdoc', ["~> 3.9.4"])
68
47
  s.add_dependency('sass', ["~> 3.1.4"])
69
- s.add_dependency('sequel', ["= 3.36.1"])
48
+ s.add_dependency('sequel', ["~> 3.43.0"])
70
49
  s.add_dependency('shine', ["~> 0.6"])
71
- s.add_dependency('simultaneous', ["~> 0.4.1"])
72
- s.add_dependency('sinatra', ["= 1.3.2"])
50
+ s.add_dependency('simultaneous', ["~> 0.4.2"])
51
+ s.add_dependency('sinatra', ["= 1.3.2"])
73
52
  s.add_dependency('sinatra-contrib', ["~> 1.3.1"])
74
53
  s.add_dependency('sprockets', ["~> 2.7.0"])
75
- s.add_dependency('stringex', ["= 1.3"])
54
+ s.add_dependency('stringex', ["= 1.3"])
76
55
  s.add_dependency('therubyracer', ['~> 0.9.10'])
77
56
  s.add_dependency('thin', ["~> 1.2"])
78
57
  s.add_dependency('thor', ["~> 0.16.0"])
79
58
  s.add_dependency('uglifier', ["~> 1.3.0"])
80
59
  s.add_dependency('yajl-ruby', ["~> 1.1.0"])
81
60
 
82
- ## List your development dependencies here. Development dependencies are
83
- ## those that are only needed during development
84
61
  s.add_development_dependency('minitest', ["~> 2.1.0"])
85
62
  s.add_development_dependency('mysql2', ["~> 0.3.11"])
86
63
  s.add_development_dependency('pg', ["~> 0.14.1"])
@@ -93,9 +70,6 @@ Gem::Specification.new do |s|
93
70
  s.add_development_dependency('leftright', ["~> 0.9"])
94
71
  s.add_development_dependency('stackdeck', ["~> 0.2"])
95
72
 
96
- ## Leave this section as-is. It will be automatically generated from the
97
- ## contents of your Git repository via the gemspec task. DO NOT REMOVE
98
- ## THE MANIFEST COMMENTS, they are used as delimiters by the task.
99
73
  # = MANIFEST =
100
74
  s.files = %w[
101
75
  Gemfile
@@ -149,15 +123,15 @@ Gem::Specification.new do |s|
149
123
  application/js/event_source.js
150
124
  application/js/extensions.js
151
125
  application/js/field.js
126
+ application/js/field/date.js
127
+ application/js/field/file.js
128
+ application/js/field/image.js
129
+ application/js/field/long_string.js
130
+ application/js/field/markdown.js
131
+ application/js/field/select.js
132
+ application/js/field/string.js
133
+ application/js/field/webvideo.js
152
134
  application/js/field_preview.js
153
- application/js/field_types/date_field.js
154
- application/js/field_types/file_field.js
155
- application/js/field_types/image_field.js
156
- application/js/field_types/long_string_field.js
157
- application/js/field_types/markdown_field.js
158
- application/js/field_types/select_field.js
159
- application/js/field_types/string_field.js
160
- application/js/field_types/webvideo_field.js
161
135
  application/js/image.js
162
136
  application/js/init.js
163
137
  application/js/load.js
@@ -269,9 +243,11 @@ Gem::Specification.new do |s|
269
243
  db/migrations/20120418153903_add_ownership_of_content.rb
270
244
  db/migrations/20120423175416_add_pending_modifications.rb
271
245
  db/migrations/20120525164947_add_field_versions.rb
246
+ db/migrations/20130109125023_add_page_publish_lock.rb
247
+ db/migrations/20130111161934_convert_bcrypt_passwords.rb
248
+ db/migrations/20130114120000_create_revision_tables.rb
249
+ db/migrations/20130116220423_add_index_to_archive.rb
272
250
  docs/recipe-interface-screenshot.png
273
- lib/sequel/plugins/content_table_inheritance.rb
274
- lib/sequel/plugins/scoped_table_name.rb
275
251
  lib/spontaneous.rb
276
252
  lib/spontaneous/application.rb
277
253
  lib/spontaneous/application/feature.rb
@@ -288,6 +264,7 @@ Gem::Specification.new do |s|
288
264
  lib/spontaneous/cli.rb
289
265
  lib/spontaneous/cli/assets.rb
290
266
  lib/spontaneous/cli/console.rb
267
+ lib/spontaneous/cli/fields.rb
291
268
  lib/spontaneous/cli/generate.rb
292
269
  lib/spontaneous/cli/init.rb
293
270
  lib/spontaneous/cli/media.rb
@@ -302,10 +279,22 @@ Gem::Specification.new do |s|
302
279
  lib/spontaneous/collections/field_set.rb
303
280
  lib/spontaneous/collections/prototype_set.rb
304
281
  lib/spontaneous/collections/style_set.rb
282
+ lib/spontaneous/concern.rb
305
283
  lib/spontaneous/config.rb
306
284
  lib/spontaneous/constants.rb
307
- lib/spontaneous/content.rb
308
285
  lib/spontaneous/content_query.rb
286
+ lib/spontaneous/crypt.rb
287
+ lib/spontaneous/crypt/version.rb
288
+ lib/spontaneous/data_mapper.rb
289
+ lib/spontaneous/data_mapper/content_model.rb
290
+ lib/spontaneous/data_mapper/content_model/associations.rb
291
+ lib/spontaneous/data_mapper/content_model/column_accessors.rb
292
+ lib/spontaneous/data_mapper/content_model/instance_hooks.rb
293
+ lib/spontaneous/data_mapper/content_model/serialization.rb
294
+ lib/spontaneous/data_mapper/content_model/timestamps.rb
295
+ lib/spontaneous/data_mapper/content_table.rb
296
+ lib/spontaneous/data_mapper/dataset.rb
297
+ lib/spontaneous/data_mapper/scope.rb
309
298
  lib/spontaneous/errors.rb
310
299
  lib/spontaneous/extensions/array.rb
311
300
  lib/spontaneous/extensions/class.rb
@@ -318,18 +307,19 @@ Gem::Specification.new do |s|
318
307
  lib/spontaneous/extensions/object_space.rb
319
308
  lib/spontaneous/extensions/string.rb
320
309
  lib/spontaneous/facet.rb
321
- lib/spontaneous/field_types.rb
322
- lib/spontaneous/field_types/date_field.rb
323
- lib/spontaneous/field_types/field.rb
324
- lib/spontaneous/field_types/file_field.rb
325
- lib/spontaneous/field_types/image_field.rb
326
- lib/spontaneous/field_types/location_field.rb
327
- lib/spontaneous/field_types/long_string_field.rb
328
- lib/spontaneous/field_types/markdown_field.rb
329
- lib/spontaneous/field_types/select_field.rb
330
- lib/spontaneous/field_types/string_field.rb
331
- lib/spontaneous/field_types/webvideo_field.rb
332
- lib/spontaneous/field_version.rb
310
+ lib/spontaneous/field.rb
311
+ lib/spontaneous/field/base.rb
312
+ lib/spontaneous/field/date.rb
313
+ lib/spontaneous/field/field_version.rb
314
+ lib/spontaneous/field/file.rb
315
+ lib/spontaneous/field/image.rb
316
+ lib/spontaneous/field/location.rb
317
+ lib/spontaneous/field/long_string.rb
318
+ lib/spontaneous/field/markdown.rb
319
+ lib/spontaneous/field/select.rb
320
+ lib/spontaneous/field/string.rb
321
+ lib/spontaneous/field/update.rb
322
+ lib/spontaneous/field/webvideo.rb
333
323
  lib/spontaneous/generators.rb
334
324
  lib/spontaneous/generators/page.rb
335
325
  lib/spontaneous/generators/page/inline.html.cut
@@ -351,7 +341,7 @@ Gem::Specification.new do |s|
351
341
  lib/spontaneous/generators/site/config/indexes.rb.tt
352
342
  lib/spontaneous/generators/site/config/schema.yml
353
343
  lib/spontaneous/generators/site/config/user_levels.yml
354
- lib/spontaneous/generators/site/lib/site.rb.tt
344
+ lib/spontaneous/generators/site/lib/content.rb.tt
355
345
  lib/spontaneous/generators/site/lib/tasks/site.rake.tt
356
346
  lib/spontaneous/generators/site/public/css/site.scss
357
347
  lib/spontaneous/generators/site/public/favicon.ico
@@ -370,6 +360,44 @@ Gem::Specification.new do |s|
370
360
  lib/spontaneous/logger.rb
371
361
  lib/spontaneous/media.rb
372
362
  lib/spontaneous/media/file.rb
363
+ lib/spontaneous/media/temp_file.rb
364
+ lib/spontaneous/model.rb
365
+ lib/spontaneous/model/box.rb
366
+ lib/spontaneous/model/box/allowed_types.rb
367
+ lib/spontaneous/model/core.rb
368
+ lib/spontaneous/model/core/aliases.rb
369
+ lib/spontaneous/model/core/boxes.rb
370
+ lib/spontaneous/model/core/content_groups.rb
371
+ lib/spontaneous/model/core/editor_class.rb
372
+ lib/spontaneous/model/core/entries.rb
373
+ lib/spontaneous/model/core/entry.rb
374
+ lib/spontaneous/model/core/fields.rb
375
+ lib/spontaneous/model/core/instance_code.rb
376
+ lib/spontaneous/model/core/media.rb
377
+ lib/spontaneous/model/core/modifications.rb
378
+ lib/spontaneous/model/core/page_search.rb
379
+ lib/spontaneous/model/core/permissions.rb
380
+ lib/spontaneous/model/core/prototypes.rb
381
+ lib/spontaneous/model/core/publishing.rb
382
+ lib/spontaneous/model/core/render.rb
383
+ lib/spontaneous/model/core/schema_hierarchy.rb
384
+ lib/spontaneous/model/core/schema_id.rb
385
+ lib/spontaneous/model/core/schema_title.rb
386
+ lib/spontaneous/model/core/serialisation.rb
387
+ lib/spontaneous/model/core/styles.rb
388
+ lib/spontaneous/model/core/supertype.rb
389
+ lib/spontaneous/model/core/visibility.rb
390
+ lib/spontaneous/model/page.rb
391
+ lib/spontaneous/model/page/controllers.rb
392
+ lib/spontaneous/model/page/formats.rb
393
+ lib/spontaneous/model/page/layouts.rb
394
+ lib/spontaneous/model/page/locks.rb
395
+ lib/spontaneous/model/page/page_tree.rb
396
+ lib/spontaneous/model/page/paths.rb
397
+ lib/spontaneous/model/page/request.rb
398
+ lib/spontaneous/model/page/site_map.rb
399
+ lib/spontaneous/model/page/site_timestamps.rb
400
+ lib/spontaneous/model/piece.rb
373
401
  lib/spontaneous/output.rb
374
402
  lib/spontaneous/output/assets.rb
375
403
  lib/spontaneous/output/assets/compression.rb
@@ -385,8 +413,7 @@ Gem::Specification.new do |s|
385
413
  lib/spontaneous/output/template.rb
386
414
  lib/spontaneous/output/template/engine.rb
387
415
  lib/spontaneous/output/template/renderer.rb
388
- lib/spontaneous/page.rb
389
- lib/spontaneous/page_controller.rb
416
+ lib/spontaneous/page_lock.rb
390
417
  lib/spontaneous/page_piece.rb
391
418
  lib/spontaneous/paths.rb
392
419
  lib/spontaneous/permissions.rb
@@ -394,9 +421,6 @@ Gem::Specification.new do |s|
394
421
  lib/spontaneous/permissions/access_key.rb
395
422
  lib/spontaneous/permissions/user.rb
396
423
  lib/spontaneous/permissions/user_level.rb
397
- lib/spontaneous/piece.rb
398
- lib/spontaneous/plugins/aliases.rb
399
- lib/spontaneous/plugins/allowed_types.rb
400
424
  lib/spontaneous/plugins/application/facets.rb
401
425
  lib/spontaneous/plugins/application/features.rb
402
426
  lib/spontaneous/plugins/application/paths.rb
@@ -404,49 +428,6 @@ Gem::Specification.new do |s|
404
428
  lib/spontaneous/plugins/application/serialisation.rb
405
429
  lib/spontaneous/plugins/application/state.rb
406
430
  lib/spontaneous/plugins/application/system.rb
407
- lib/spontaneous/plugins/boxes.rb
408
- lib/spontaneous/plugins/content_groups.rb
409
- lib/spontaneous/plugins/controllers.rb
410
- lib/spontaneous/plugins/entries.rb
411
- lib/spontaneous/plugins/entry.rb
412
- lib/spontaneous/plugins/field/editor_class.rb
413
- lib/spontaneous/plugins/fields.rb
414
- lib/spontaneous/plugins/instance_code.rb
415
- lib/spontaneous/plugins/layouts.rb
416
- lib/spontaneous/plugins/media.rb
417
- lib/spontaneous/plugins/modifications.rb
418
- lib/spontaneous/plugins/page/formats.rb
419
- lib/spontaneous/plugins/page/request.rb
420
- lib/spontaneous/plugins/page/site_timestamps.rb
421
- lib/spontaneous/plugins/page_search.rb
422
- lib/spontaneous/plugins/page_tree.rb
423
- lib/spontaneous/plugins/paths.rb
424
- lib/spontaneous/plugins/permissions.rb
425
- lib/spontaneous/plugins/prototypes.rb
426
- lib/spontaneous/plugins/publishing.rb
427
- lib/spontaneous/plugins/render.rb
428
- lib/spontaneous/plugins/schema_hierarchy.rb
429
- lib/spontaneous/plugins/schema_id.rb
430
- lib/spontaneous/plugins/schema_title.rb
431
- lib/spontaneous/plugins/serialisation.rb
432
- lib/spontaneous/plugins/site/features.rb
433
- lib/spontaneous/plugins/site/helpers.rb
434
- lib/spontaneous/plugins/site/hooks.rb
435
- lib/spontaneous/plugins/site/instance.rb
436
- lib/spontaneous/plugins/site/level.rb
437
- lib/spontaneous/plugins/site/map.rb
438
- lib/spontaneous/plugins/site/paths.rb
439
- lib/spontaneous/plugins/site/publishing.rb
440
- lib/spontaneous/plugins/site/schema.rb
441
- lib/spontaneous/plugins/site/search.rb
442
- lib/spontaneous/plugins/site/selectors.rb
443
- lib/spontaneous/plugins/site/state.rb
444
- lib/spontaneous/plugins/site/storage.rb
445
- lib/spontaneous/plugins/site/url.rb
446
- lib/spontaneous/plugins/site_map.rb
447
- lib/spontaneous/plugins/styles.rb
448
- lib/spontaneous/plugins/supertype.rb
449
- lib/spontaneous/plugins/visibility.rb
450
431
  lib/spontaneous/prototypes/box_prototype.rb
451
432
  lib/spontaneous/prototypes/field_prototype.rb
452
433
  lib/spontaneous/prototypes/layout_prototype.rb
@@ -454,6 +435,7 @@ Gem::Specification.new do |s|
454
435
  lib/spontaneous/publishing.rb
455
436
  lib/spontaneous/publishing/event_client.rb
456
437
  lib/spontaneous/publishing/immediate.rb
438
+ lib/spontaneous/publishing/revision.rb
457
439
  lib/spontaneous/publishing/simultaneous.rb
458
440
  lib/spontaneous/publishing/threaded.rb
459
441
  lib/spontaneous/rack.rb
@@ -467,12 +449,12 @@ Gem::Specification.new do |s|
467
449
  lib/spontaneous/rack/cookie_authentication.rb
468
450
  lib/spontaneous/rack/css.rb
469
451
  lib/spontaneous/rack/event_source.rb
470
- lib/spontaneous/rack/fiber_pool.rb
471
452
  lib/spontaneous/rack/front.rb
472
453
  lib/spontaneous/rack/helpers.rb
473
454
  lib/spontaneous/rack/http.rb
474
455
  lib/spontaneous/rack/js.rb
475
456
  lib/spontaneous/rack/media.rb
457
+ lib/spontaneous/rack/page_controller.rb
476
458
  lib/spontaneous/rack/public.rb
477
459
  lib/spontaneous/rack/query_authentication.rb
478
460
  lib/spontaneous/rack/reloader.rb
@@ -493,7 +475,22 @@ Gem::Specification.new do |s|
493
475
  lib/spontaneous/search/results.rb
494
476
  lib/spontaneous/sequel.rb
495
477
  lib/spontaneous/server.rb
478
+ lib/spontaneous/simultaneous.rb
496
479
  lib/spontaneous/site.rb
480
+ lib/spontaneous/site/features.rb
481
+ lib/spontaneous/site/helpers.rb
482
+ lib/spontaneous/site/hooks.rb
483
+ lib/spontaneous/site/instance.rb
484
+ lib/spontaneous/site/level.rb
485
+ lib/spontaneous/site/map.rb
486
+ lib/spontaneous/site/paths.rb
487
+ lib/spontaneous/site/publishing.rb
488
+ lib/spontaneous/site/schema.rb
489
+ lib/spontaneous/site/search.rb
490
+ lib/spontaneous/site/selectors.rb
491
+ lib/spontaneous/site/state.rb
492
+ lib/spontaneous/site/storage.rb
493
+ lib/spontaneous/site/url.rb
497
494
  lib/spontaneous/state.rb
498
495
  lib/spontaneous/storage.rb
499
496
  lib/spontaneous/storage/backend.rb
@@ -511,6 +508,7 @@ Gem::Specification.new do |s|
511
508
  lib/spontaneous/version.rb
512
509
  spontaneous.gemspec
513
510
  test/disabled/test_slots.rb
511
+ test/experimental/test_crypt.rb
514
512
  test/experimental/test_features.rb
515
513
  test/fixtures/application/js/test.js
516
514
  test/fixtures/application/static/favicon.ico
@@ -573,6 +571,7 @@ Gem::Specification.new do |s|
573
571
  test/fixtures/example_application/config/schema.yml
574
572
  test/fixtures/example_application/config/unicorn.rb
575
573
  test/fixtures/example_application/config/user_levels.yml
574
+ test/fixtures/example_application/lib/content.rb
576
575
  test/fixtures/example_application/public/css/test.css
577
576
  test/fixtures/example_application/public/favicon.ico
578
577
  test/fixtures/example_application/public/js/test.js
@@ -758,6 +757,8 @@ Gem::Specification.new do |s|
758
757
  test/unit/test_config.rb
759
758
  test/unit/test_content.rb
760
759
  test/unit/test_content_inheritance.rb
760
+ test/unit/test_datamapper.rb
761
+ test/unit/test_datamapper_content.rb
761
762
  test/unit/test_extensions.rb
762
763
  test/unit/test_fields.rb
763
764
  test/unit/test_formats.rb
@@ -785,14 +786,11 @@ Gem::Specification.new do |s|
785
786
  test/unit/test_storage.rb
786
787
  test/unit/test_structure.rb
787
788
  test/unit/test_styles.rb
788
- test/unit/test_table_scoping.rb
789
789
  test/unit/test_templates.rb
790
790
  test/unit/test_type_hierarchy.rb
791
791
  test/unit/test_visibility.rb
792
792
  ]
793
793
  # = MANIFEST =
794
794
 
795
- ## Test files will be grabbed from the file list. Make sure the path glob
796
- ## matches what you actually use.
797
795
  s.test_files = s.files.select { |path| path =~ /^test\/test_.*\.rb/ }
798
796
  end