zen 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (131) hide show
  1. data/.gems +17 -15
  2. data/.gitignore +1 -1
  3. data/.travis.yml +1 -1
  4. data/MANIFEST +470 -0
  5. data/README.md +5 -3
  6. data/Rakefile +8 -6
  7. data/bin/zen +2 -7
  8. data/guide/asset_management.md +1 -0
  9. data/guide/autosaving_forms.md +1 -0
  10. data/guide/changelog.md +22 -0
  11. data/guide/faq.md +1 -0
  12. data/guide/getting_started.md +1 -0
  13. data/guide/hacking.md +1 -0
  14. data/guide/images/sections/revisions.png +0 -0
  15. data/guide/images/sections/revisions_diff.png +0 -0
  16. data/guide/images/sections/revisions_diff_multiple.png +0 -0
  17. data/guide/installation.md +4 -3
  18. data/guide/javascript.md +1 -0
  19. data/guide/javascript/zen_autosave.md +1 -0
  20. data/guide/javascript/zen_editor.md +1 -0
  21. data/guide/javascript/zen_form.md +1 -0
  22. data/guide/javascript/zen_hash.md +1 -0
  23. data/guide/javascript/zen_htmltable.md +1 -0
  24. data/guide/javascript/zen_tabs.md +1 -0
  25. data/guide/javascript/zen_window.md +1 -0
  26. data/guide/zen_compared.md +1 -0
  27. data/lib/zen.rb +10 -12
  28. data/lib/zen/event.rb +2 -2
  29. data/lib/zen/helper/controller.rb +13 -13
  30. data/lib/zen/helper/message.rb +3 -3
  31. data/lib/zen/helper/search.rb +4 -4
  32. data/lib/zen/helper/stacked_aspect.rb +9 -9
  33. data/lib/zen/html_diff.rb +151 -0
  34. data/lib/zen/language.rb +9 -7
  35. data/lib/zen/language/translation.rb +8 -8
  36. data/lib/zen/markup.rb +1 -1
  37. data/lib/zen/migrator.rb +2 -2
  38. data/lib/zen/model/helper.rb +4 -4
  39. data/lib/zen/model/plugin/events.rb +16 -16
  40. data/lib/zen/package.rb +2 -2
  41. data/lib/zen/package/all.rb +1 -1
  42. data/lib/zen/package/categories/lib/categories/controller/categories.rb +4 -4
  43. data/lib/zen/package/categories/lib/categories/controller/category_groups.rb +4 -4
  44. data/lib/zen/package/categories/lib/categories/helper/category.rb +3 -3
  45. data/lib/zen/package/categories/lib/categories/model/category.rb +9 -9
  46. data/lib/zen/package/categories/lib/categories/model/category_group.rb +9 -9
  47. data/lib/zen/package/comments/lib/comments/controller/comments.rb +4 -4
  48. data/lib/zen/package/comments/lib/comments/controller/comments_form.rb +2 -2
  49. data/lib/zen/package/comments/lib/comments/helper/comment.rb +1 -1
  50. data/lib/zen/package/comments/lib/comments/model/comment.rb +13 -13
  51. data/lib/zen/package/custom_fields/lib/custom_fields/blue_form_parameters.rb +1 -1
  52. data/lib/zen/package/custom_fields/lib/custom_fields/controller/custom_field_groups.rb +4 -4
  53. data/lib/zen/package/custom_fields/lib/custom_fields/controller/custom_field_types.rb +6 -6
  54. data/lib/zen/package/custom_fields/lib/custom_fields/controller/custom_fields.rb +5 -5
  55. data/lib/zen/package/custom_fields/lib/custom_fields/helper/custom_field.rb +3 -3
  56. data/lib/zen/package/custom_fields/lib/custom_fields/model/custom_field.rb +9 -9
  57. data/lib/zen/package/custom_fields/lib/custom_fields/model/custom_field_group.rb +9 -9
  58. data/lib/zen/package/custom_fields/lib/custom_fields/model/custom_field_type.rb +9 -9
  59. data/lib/zen/package/custom_fields/lib/custom_fields/model/custom_field_value.rb +8 -3
  60. data/lib/zen/package/custom_fields/migrations/1336171490_revisions.rb +41 -0
  61. data/lib/zen/package/dashboard/lib/dashboard/controller/dashboard.rb +6 -6
  62. data/lib/zen/package/dashboard/lib/dashboard/model/widget.rb +3 -3
  63. data/lib/zen/package/dashboard/lib/dashboard/widget.rb +12 -12
  64. data/lib/zen/package/extensions/lib/extensions/controller/extensions.rb +3 -3
  65. data/lib/zen/package/menus/lib/menus/controller/menu_items.rb +5 -5
  66. data/lib/zen/package/menus/lib/menus/controller/menus.rb +4 -4
  67. data/lib/zen/package/menus/lib/menus/helper/menu.rb +4 -4
  68. data/lib/zen/package/menus/lib/menus/model/menu.rb +11 -11
  69. data/lib/zen/package/menus/lib/menus/model/menu_item.rb +10 -10
  70. data/lib/zen/package/menus/lib/menus/public/admin/menus/js/lib/nested_sortables.js +13 -13
  71. data/lib/zen/package/menus/lib/menus/public/admin/menus/js/menu_items.js +1 -1
  72. data/lib/zen/package/sections/lib/sections.rb +19 -0
  73. data/lib/zen/package/sections/lib/sections/controller/revisions.rb +184 -0
  74. data/lib/zen/package/sections/lib/sections/controller/section_entries.rb +5 -5
  75. data/lib/zen/package/sections/lib/sections/controller/sections.rb +9 -6
  76. data/lib/zen/package/sections/lib/sections/helper/revision.rb +124 -0
  77. data/lib/zen/package/sections/lib/sections/helper/section.rb +17 -15
  78. data/lib/zen/package/sections/lib/sections/helper/section_frontend.rb +104 -6
  79. data/lib/zen/package/sections/lib/sections/language/en/revisions.rb +34 -0
  80. data/lib/zen/package/sections/lib/sections/language/en/sections.rb +1 -0
  81. data/lib/zen/package/sections/lib/sections/language/nl/revisions.rb +35 -0
  82. data/lib/zen/package/sections/lib/sections/language/nl/sections.rb +1 -0
  83. data/lib/zen/package/sections/lib/sections/model/revision.rb +76 -0
  84. data/lib/zen/package/sections/lib/sections/model/section.rb +9 -9
  85. data/lib/zen/package/sections/lib/sections/model/section_entry.rb +47 -12
  86. data/lib/zen/package/sections/lib/sections/view/admin/revisions/index.xhtml +89 -0
  87. data/lib/zen/package/sections/lib/sections/view/admin/section-entries/form.xhtml +1 -1
  88. data/lib/zen/package/sections/lib/sections/view/admin/section-entries/index.xhtml +14 -0
  89. data/lib/zen/package/sections/migrations/1335711557_revisions.rb +40 -0
  90. data/lib/zen/package/settings/lib/settings/controller/settings.rb +12 -4
  91. data/lib/zen/package/settings/lib/settings/setting.rb +6 -6
  92. data/lib/zen/package/users/lib/users/controller/user_groups.rb +4 -4
  93. data/lib/zen/package/users/lib/users/controller/users.rb +12 -12
  94. data/lib/zen/package/users/lib/users/helper/access.rb +1 -1
  95. data/lib/zen/package/users/lib/users/helper/acl.rb +4 -4
  96. data/lib/zen/package/users/lib/users/helper/users.rb +2 -2
  97. data/lib/zen/package/users/lib/users/model/permission.rb +1 -1
  98. data/lib/zen/package/users/lib/users/model/user.rb +11 -11
  99. data/lib/zen/package/users/lib/users/model/user_group.rb +9 -9
  100. data/lib/zen/package/users/lib/users/model/user_status.rb +2 -2
  101. data/lib/zen/public/admin/zen/css/general.css +54 -0
  102. data/lib/zen/public/admin/zen/css/messages.css +6 -3
  103. data/lib/zen/public/admin/zen/css/tables.css +10 -0
  104. data/lib/zen/public/admin/zen/images/icons/undo.png +0 -0
  105. data/lib/zen/public/admin/zen/js/lib/autosave.js +8 -8
  106. data/lib/zen/public/admin/zen/js/lib/base.js +2 -2
  107. data/lib/zen/public/admin/zen/js/lib/events.js +2 -2
  108. data/lib/zen/public/admin/zen/js/lib/form.js +7 -7
  109. data/lib/zen/public/admin/zen/js/lib/hash.js +7 -7
  110. data/lib/zen/public/admin/zen/js/lib/tabs.js +3 -3
  111. data/lib/zen/public/admin/zen/js/lib/window.js +1 -1
  112. data/lib/zen/security.rb +2 -2
  113. data/lib/zen/spec/helper.rb +3 -9
  114. data/lib/zen/spec/helper/capybara.rb +4 -4
  115. data/lib/zen/spec/helper/general.rb +1 -1
  116. data/lib/zen/spec/simplecov.rb +1 -5
  117. data/lib/zen/task/build.rake +22 -16
  118. data/lib/zen/task/db.rake +3 -2
  119. data/lib/zen/task/spelling.rake +10 -10
  120. data/lib/zen/task/test.rake +27 -19
  121. data/lib/zen/theme.rb +6 -6
  122. data/lib/zen/version.rb +1 -1
  123. data/spec/zen/all.rb +4 -0
  124. data/spec/zen/package/sections/controller/revisions.rb +235 -0
  125. data/spec/zen/package/sections/model/revision.rb +76 -0
  126. data/zen.gemspec +23 -21
  127. metadata +88 -29
  128. data/lib/zen/model/methods.rb +0 -27
  129. data/lib/zen/task/clean.rake +0 -20
  130. data/lib/zen/task/setup.rake +0 -4
  131. data/pkg/.gitkeep +0 -0
@@ -0,0 +1,76 @@
1
+ require File.expand_path('../../../../../helper', __FILE__)
2
+
3
+ describe 'Sections::Model::Revision' do
4
+ behaves_like :capybara
5
+
6
+ textbox_id = CustomFields::Model::CustomFieldType[:name => 'textbox'].id
7
+ section = Sections::Model::Section.create(
8
+ :name => 'Spec section',
9
+ :comment_allow => true,
10
+ :comment_require_account => true,
11
+ :comment_moderate => true,
12
+ :comment_format => 'plain'
13
+ )
14
+
15
+ group = CustomFields::Model::CustomFieldGroup.create(:name => 'Spec fields')
16
+
17
+ field = CustomFields::Model::CustomField.create(
18
+ :name => 'Spec field',
19
+ :sort_order => 0,
20
+ :format => 'markdown',
21
+ :required => true,
22
+ :text_editor => false,
23
+ :custom_field_group_id => group.id,
24
+ :custom_field_type_id => textbox_id
25
+ )
26
+
27
+ section.custom_field_group_pks = [group.id]
28
+
29
+ entries_url = Sections::Controller::SectionEntries.r(:index, section.id).to_s
30
+ new_button = lang('section_entries.buttons.new')
31
+ save_button = lang('section_entries.buttons.save')
32
+ title_field = lang('section_entries.labels.title')
33
+
34
+ it 'The last revision should not be deleted' do
35
+ visit(entries_url)
36
+
37
+ click_on(new_button)
38
+
39
+ within '#section_entry_form' do
40
+ fill_in(title_field, :with => 'Title')
41
+ fill_in(field.name, :with => 'Original value')
42
+
43
+ click_on(save_button)
44
+ end
45
+
46
+ page.has_selector?('.message.error').should == false
47
+
48
+ 10.times do |t|
49
+ within '#section_entry_form' do
50
+ fill_in(field.name, :with => "Modified #{t}")
51
+
52
+ click_on(save_button)
53
+ end
54
+ end
55
+
56
+ entry = Sections::Model::SectionEntry[:title => 'Title']
57
+ revisions = entry.revisions
58
+
59
+ revisions.length.should == 10
60
+
61
+ revisions[1..-1].each { |rev| rev.destroy }
62
+
63
+ should.raise?(Sequel::Error::InvalidOperation) do
64
+ revisions[0].destroy
65
+ end
66
+
67
+ Sections::Model::Revision \
68
+ .filter(:section_entry_id => entry.id) \
69
+ .count \
70
+ .should == 1
71
+ end
72
+
73
+ field.destroy
74
+ section.destroy
75
+ group.destroy
76
+ end
@@ -1,11 +1,9 @@
1
1
  require File.expand_path('../lib/zen/version', __FILE__)
2
2
 
3
- path = File.expand_path('../', __FILE__)
4
-
5
3
  Gem::Specification.new do |s|
6
4
  s.name = 'zen'
7
5
  s.version = Zen::VERSION
8
- s.date = '2012-04-16'
6
+ s.date = '2012-06-10'
9
7
  s.authors = ['Yorick Peterse']
10
8
  s.email = 'yorickpeterse@gmail.com'
11
9
  s.summary = 'Zen is a modular CMS written using Ramaze.'
@@ -37,27 +35,31 @@ After the database has been migrated you can start your application:
37
35
  For more information see the documentation: http://zen-cms.com/documentation
38
36
  TXT
39
37
 
40
- s.files = `cd #{path}; git ls-files`.split("\n").sort
38
+ s.files = File.read(File.expand_path('../MANIFEST', __FILE__)).split("\n")
39
+
41
40
  s.has_rdoc = 'yard'
42
41
  s.executables = ['zen']
43
42
  s.required_ruby_version = '>= 1.9.2'
44
43
 
45
- s.add_dependency('sequel' , ['~> 3.34.1'])
46
- s.add_dependency('ramaze' , ['~> 2012.04.14'])
47
- s.add_dependency('bcrypt-ruby' , ['~> 3.0.1'])
48
- s.add_dependency('rake' , ['~> 0.9.2'])
49
- s.add_dependency('loofah' , ['~> 1.2.1'])
44
+ s.add_dependency('sequel', ['~> 3.35.0'])
45
+ s.add_dependency('ramaze', ['~> 2012.04.14'])
46
+ s.add_dependency('bcrypt-ruby', ['~> 3.0.1'])
47
+ s.add_dependency('rake', ['~> 0.9.2.2'])
48
+ s.add_dependency('loofah', ['~> 1.2.1'])
50
49
  s.add_dependency('ramaze-asset', ['~> 0.2.3'])
51
- s.add_dependency('shebang' , ['~> 0.1'])
52
-
53
- s.add_development_dependency('redcarpet', ['>= 2.1.1'])
54
- s.add_development_dependency('RedCloth' , ['>= 4.2.8'])
55
- s.add_development_dependency('bacon' , ['>= 1.1.0'])
56
- s.add_development_dependency('yard' , ['>= 0.7.2'])
57
- s.add_development_dependency('capybara' , ['>= 1.1.1'])
58
- s.add_development_dependency('sqlite3' , ['>= 1.3.4'])
59
- s.add_development_dependency('defensio' , ['>= 0.9.1'])
60
- s.add_development_dependency('simplecov', ['>= 0.4.2'])
61
- s.add_development_dependency('webmock' , ['>= 1.6.4'])
62
- s.add_development_dependency('raspell' , ['>= 1.3'])
50
+ s.add_dependency('shebang', ['~> 0.1'])
51
+ s.add_dependency('diff-lcs', ['~> 1.1.3'])
52
+
53
+ s.add_development_dependency('redcarpet', ['>= 2.1.1'])
54
+ s.add_development_dependency('RedCloth', ['>= 4.2.8'])
55
+ s.add_development_dependency('bacon', ['>= 1.1.0'])
56
+ s.add_development_dependency('yard', ['>= 0.8.1'])
57
+ s.add_development_dependency('capybara', ['>= 1.1.1'])
58
+ s.add_development_dependency('defensio', ['>= 0.9.1'])
59
+ s.add_development_dependency('simplecov', ['>= 0.6.4'])
60
+ s.add_development_dependency('webmock', ['>= 1.8.7'])
61
+ s.add_development_dependency('ffi-aspell', ['>= 0.0.2'])
62
+ s.add_development_dependency('sqlite3', ['>= 1.3.4'])
63
+ s.add_development_dependency('pg', ['>= 0.13.2'])
64
+ s.add_development_dependency('mysql2', ['>= 0.3.11'])
63
65
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-16 00:00:00.000000000 Z
12
+ date: 2012-06-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sequel
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 3.34.1
21
+ version: 3.35.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
- version: 3.34.1
29
+ version: 3.35.0
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: ramaze
32
32
  requirement: !ruby/object:Gem::Requirement
@@ -66,7 +66,7 @@ dependencies:
66
66
  requirements:
67
67
  - - ~>
68
68
  - !ruby/object:Gem::Version
69
- version: 0.9.2
69
+ version: 0.9.2.2
70
70
  type: :runtime
71
71
  prerelease: false
72
72
  version_requirements: !ruby/object:Gem::Requirement
@@ -74,7 +74,7 @@ dependencies:
74
74
  requirements:
75
75
  - - ~>
76
76
  - !ruby/object:Gem::Version
77
- version: 0.9.2
77
+ version: 0.9.2.2
78
78
  - !ruby/object:Gem::Dependency
79
79
  name: loofah
80
80
  requirement: !ruby/object:Gem::Requirement
@@ -123,6 +123,22 @@ dependencies:
123
123
  - - ~>
124
124
  - !ruby/object:Gem::Version
125
125
  version: '0.1'
126
+ - !ruby/object:Gem::Dependency
127
+ name: diff-lcs
128
+ requirement: !ruby/object:Gem::Requirement
129
+ none: false
130
+ requirements:
131
+ - - ~>
132
+ - !ruby/object:Gem::Version
133
+ version: 1.1.3
134
+ type: :runtime
135
+ prerelease: false
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ~>
140
+ - !ruby/object:Gem::Version
141
+ version: 1.1.3
126
142
  - !ruby/object:Gem::Dependency
127
143
  name: redcarpet
128
144
  requirement: !ruby/object:Gem::Requirement
@@ -178,7 +194,7 @@ dependencies:
178
194
  requirements:
179
195
  - - ! '>='
180
196
  - !ruby/object:Gem::Version
181
- version: 0.7.2
197
+ version: 0.8.1
182
198
  type: :development
183
199
  prerelease: false
184
200
  version_requirements: !ruby/object:Gem::Requirement
@@ -186,7 +202,7 @@ dependencies:
186
202
  requirements:
187
203
  - - ! '>='
188
204
  - !ruby/object:Gem::Version
189
- version: 0.7.2
205
+ version: 0.8.1
190
206
  - !ruby/object:Gem::Dependency
191
207
  name: capybara
192
208
  requirement: !ruby/object:Gem::Requirement
@@ -204,13 +220,13 @@ dependencies:
204
220
  - !ruby/object:Gem::Version
205
221
  version: 1.1.1
206
222
  - !ruby/object:Gem::Dependency
207
- name: sqlite3
223
+ name: defensio
208
224
  requirement: !ruby/object:Gem::Requirement
209
225
  none: false
210
226
  requirements:
211
227
  - - ! '>='
212
228
  - !ruby/object:Gem::Version
213
- version: 1.3.4
229
+ version: 0.9.1
214
230
  type: :development
215
231
  prerelease: false
216
232
  version_requirements: !ruby/object:Gem::Requirement
@@ -218,15 +234,15 @@ dependencies:
218
234
  requirements:
219
235
  - - ! '>='
220
236
  - !ruby/object:Gem::Version
221
- version: 1.3.4
237
+ version: 0.9.1
222
238
  - !ruby/object:Gem::Dependency
223
- name: defensio
239
+ name: simplecov
224
240
  requirement: !ruby/object:Gem::Requirement
225
241
  none: false
226
242
  requirements:
227
243
  - - ! '>='
228
244
  - !ruby/object:Gem::Version
229
- version: 0.9.1
245
+ version: 0.6.4
230
246
  type: :development
231
247
  prerelease: false
232
248
  version_requirements: !ruby/object:Gem::Requirement
@@ -234,15 +250,15 @@ dependencies:
234
250
  requirements:
235
251
  - - ! '>='
236
252
  - !ruby/object:Gem::Version
237
- version: 0.9.1
253
+ version: 0.6.4
238
254
  - !ruby/object:Gem::Dependency
239
- name: simplecov
255
+ name: webmock
240
256
  requirement: !ruby/object:Gem::Requirement
241
257
  none: false
242
258
  requirements:
243
259
  - - ! '>='
244
260
  - !ruby/object:Gem::Version
245
- version: 0.4.2
261
+ version: 1.8.7
246
262
  type: :development
247
263
  prerelease: false
248
264
  version_requirements: !ruby/object:Gem::Requirement
@@ -250,15 +266,47 @@ dependencies:
250
266
  requirements:
251
267
  - - ! '>='
252
268
  - !ruby/object:Gem::Version
253
- version: 0.4.2
269
+ version: 1.8.7
254
270
  - !ruby/object:Gem::Dependency
255
- name: webmock
271
+ name: ffi-aspell
272
+ requirement: !ruby/object:Gem::Requirement
273
+ none: false
274
+ requirements:
275
+ - - ! '>='
276
+ - !ruby/object:Gem::Version
277
+ version: 0.0.2
278
+ type: :development
279
+ prerelease: false
280
+ version_requirements: !ruby/object:Gem::Requirement
281
+ none: false
282
+ requirements:
283
+ - - ! '>='
284
+ - !ruby/object:Gem::Version
285
+ version: 0.0.2
286
+ - !ruby/object:Gem::Dependency
287
+ name: sqlite3
288
+ requirement: !ruby/object:Gem::Requirement
289
+ none: false
290
+ requirements:
291
+ - - ! '>='
292
+ - !ruby/object:Gem::Version
293
+ version: 1.3.4
294
+ type: :development
295
+ prerelease: false
296
+ version_requirements: !ruby/object:Gem::Requirement
297
+ none: false
298
+ requirements:
299
+ - - ! '>='
300
+ - !ruby/object:Gem::Version
301
+ version: 1.3.4
302
+ - !ruby/object:Gem::Dependency
303
+ name: pg
256
304
  requirement: !ruby/object:Gem::Requirement
257
305
  none: false
258
306
  requirements:
259
307
  - - ! '>='
260
308
  - !ruby/object:Gem::Version
261
- version: 1.6.4
309
+ version: 0.13.2
262
310
  type: :development
263
311
  prerelease: false
264
312
  version_requirements: !ruby/object:Gem::Requirement
@@ -266,15 +314,15 @@ dependencies:
266
314
  requirements:
267
315
  - - ! '>='
268
316
  - !ruby/object:Gem::Version
269
- version: 1.6.4
317
+ version: 0.13.2
270
318
  - !ruby/object:Gem::Dependency
271
- name: raspell
319
+ name: mysql2
272
320
  requirement: !ruby/object:Gem::Requirement
273
321
  none: false
274
322
  requirements:
275
323
  - - ! '>='
276
324
  - !ruby/object:Gem::Version
277
- version: '1.3'
325
+ version: 0.3.11
278
326
  type: :development
279
327
  prerelease: false
280
328
  version_requirements: !ruby/object:Gem::Requirement
@@ -282,7 +330,7 @@ dependencies:
282
330
  requirements:
283
331
  - - ! '>='
284
332
  - !ruby/object:Gem::Version
285
- version: '1.3'
333
+ version: 0.3.11
286
334
  description: Zen is a modular CMS written using Ramaze. Zen gives you complete freedom
287
335
  to build whatever you want in whatever way you might want to build it.
288
336
  email: yorickpeterse@gmail.com
@@ -299,6 +347,7 @@ files:
299
347
  - .travis.yml
300
348
  - .yardopts
301
349
  - LICENSE
350
+ - MANIFEST
302
351
  - README.md
303
352
  - Rakefile
304
353
  - bin/zen
@@ -339,6 +388,9 @@ files:
339
388
  - guide/images/sections/edit_section_general.png
340
389
  - guide/images/sections/edit_section_groups.png
341
390
  - guide/images/sections/entries.png
391
+ - guide/images/sections/revisions.png
392
+ - guide/images/sections/revisions_diff.png
393
+ - guide/images/sections/revisions_diff_multiple.png
342
394
  - guide/images/sections/sections.png
343
395
  - guide/images/settings/overview_general.png
344
396
  - guide/images/settings/overview_security.png
@@ -380,6 +432,7 @@ files:
380
432
  - lib/zen/helper/search.rb
381
433
  - lib/zen/helper/stacked_aspect.rb
382
434
  - lib/zen/helper/theme.rb
435
+ - lib/zen/html_diff.rb
383
436
  - lib/zen/language.rb
384
437
  - lib/zen/language/en/zen_general.rb
385
438
  - lib/zen/language/en/zen_models.rb
@@ -393,7 +446,6 @@ files:
393
446
  - lib/zen/migrator.rb
394
447
  - lib/zen/model/helper.rb
395
448
  - lib/zen/model/init.rb
396
- - lib/zen/model/methods.rb
397
449
  - lib/zen/model/plugin/events.rb
398
450
  - lib/zen/package.rb
399
451
  - lib/zen/package/all.rb
@@ -457,6 +509,7 @@ files:
457
509
  - lib/zen/package/custom_fields/migrations/1295255665_create_schema.rb
458
510
  - lib/zen/package/custom_fields/migrations/1310659580_custom_field_types.rb
459
511
  - lib/zen/package/custom_fields/migrations/1311694920_rename_css_class.rb
512
+ - lib/zen/package/custom_fields/migrations/1336171490_revisions.rb
460
513
  - lib/zen/package/dashboard/lib/dashboard.rb
461
514
  - lib/zen/package/dashboard/lib/dashboard/controller/dashboard.rb
462
515
  - lib/zen/package/dashboard/lib/dashboard/language/en/dashboard.rb
@@ -498,17 +551,23 @@ files:
498
551
  - lib/zen/package/menus/migrations/1308671733_rename_order_column.rb
499
552
  - lib/zen/package/menus/migrations/1311695030_rename_css_class.rb
500
553
  - lib/zen/package/sections/lib/sections.rb
554
+ - lib/zen/package/sections/lib/sections/controller/revisions.rb
501
555
  - lib/zen/package/sections/lib/sections/controller/section_entries.rb
502
556
  - lib/zen/package/sections/lib/sections/controller/sections.rb
557
+ - lib/zen/package/sections/lib/sections/helper/revision.rb
503
558
  - lib/zen/package/sections/lib/sections/helper/section.rb
504
559
  - lib/zen/package/sections/lib/sections/helper/section_frontend.rb
560
+ - lib/zen/package/sections/lib/sections/language/en/revisions.rb
505
561
  - lib/zen/package/sections/lib/sections/language/en/section_entries.rb
506
562
  - lib/zen/package/sections/lib/sections/language/en/sections.rb
563
+ - lib/zen/package/sections/lib/sections/language/nl/revisions.rb
507
564
  - lib/zen/package/sections/lib/sections/language/nl/section_entries.rb
508
565
  - lib/zen/package/sections/lib/sections/language/nl/sections.rb
566
+ - lib/zen/package/sections/lib/sections/model/revision.rb
509
567
  - lib/zen/package/sections/lib/sections/model/section.rb
510
568
  - lib/zen/package/sections/lib/sections/model/section_entry.rb
511
569
  - lib/zen/package/sections/lib/sections/model/section_entry_status.rb
570
+ - lib/zen/package/sections/lib/sections/view/admin/revisions/index.xhtml
512
571
  - lib/zen/package/sections/lib/sections/view/admin/section-entries/form.xhtml
513
572
  - lib/zen/package/sections/lib/sections/view/admin/section-entries/index.xhtml
514
573
  - lib/zen/package/sections/lib/sections/view/admin/section-entries/recent_entries.xhtml
@@ -520,6 +579,7 @@ files:
520
579
  - lib/zen/package/sections/migrations/1306772479_remove_unique_slug.rb
521
580
  - lib/zen/package/sections/migrations/1308672298_use_id_for_default_section.rb
522
581
  - lib/zen/package/sections/migrations/1308813320_section_entry_statuses.rb
582
+ - lib/zen/package/sections/migrations/1335711557_revisions.rb
523
583
  - lib/zen/package/settings/lib/settings.rb
524
584
  - lib/zen/package/settings/lib/settings/blue_form_parameters.rb
525
585
  - lib/zen/package/settings/lib/settings/controller/settings.rb
@@ -606,6 +666,7 @@ files:
606
666
  - lib/zen/public/admin/zen/images/icons/settings.png
607
667
  - lib/zen/public/admin/zen/images/icons/template.png
608
668
  - lib/zen/public/admin/zen/images/icons/ul.png
669
+ - lib/zen/public/admin/zen/images/icons/undo.png
609
670
  - lib/zen/public/admin/zen/images/icons/user.png
610
671
  - lib/zen/public/admin/zen/images/icons/user_group.png
611
672
  - lib/zen/public/admin/zen/js/index.js
@@ -629,11 +690,9 @@ files:
629
690
  - lib/zen/spec/simplecov.rb
630
691
  - lib/zen/task.rb
631
692
  - lib/zen/task/build.rake
632
- - lib/zen/task/clean.rake
633
693
  - lib/zen/task/db.rake
634
694
  - lib/zen/task/package.rake
635
695
  - lib/zen/task/proto.rake
636
- - lib/zen/task/setup.rake
637
696
  - lib/zen/task/spelling.rake
638
697
  - lib/zen/task/test.rake
639
698
  - lib/zen/task/theme.rake
@@ -643,7 +702,6 @@ files:
643
702
  - lib/zen/view/bottom.xhtml
644
703
  - lib/zen/view/head.xhtml
645
704
  - lib/zen/view/search.xhtml
646
- - pkg/.gitkeep
647
705
  - proto/app/Rakefile
648
706
  - proto/app/app.rb
649
707
  - proto/app/config.ru
@@ -732,10 +790,12 @@ files:
732
790
  - spec/zen/package/menus/helper/menu_frontend.rb
733
791
  - spec/zen/package/menus/model/menu.rb
734
792
  - spec/zen/package/menus/model/menu_item.rb
793
+ - spec/zen/package/sections/controller/revisions.rb
735
794
  - spec/zen/package/sections/controller/section_entries.rb
736
795
  - spec/zen/package/sections/controller/sections.rb
737
796
  - spec/zen/package/sections/helper/section.rb
738
797
  - spec/zen/package/sections/helper/section_frontend.rb
798
+ - spec/zen/package/sections/model/revision.rb
739
799
  - spec/zen/package/sections/widget.rb
740
800
  - spec/zen/package/settings/controller/settings.rb
741
801
  - spec/zen/package/settings/settings.rb
@@ -777,9 +837,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
777
837
  version: '0'
778
838
  requirements: []
779
839
  rubyforge_project:
780
- rubygems_version: 1.8.19
840
+ rubygems_version: 1.8.24
781
841
  signing_key:
782
842
  specification_version: 3
783
843
  summary: Zen is a modular CMS written using Ramaze.
784
844
  test_files: []
785
- has_rdoc: yard