zen 0.2.4.1 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- data/MANIFEST +42 -33
- data/README.md +14 -27
- data/ROADMAP.md +20 -2
- data/{Thorfile → Rakefile} +2 -3
- data/bin/zen +27 -5
- data/lib/zen.rb +70 -52
- data/lib/zen/asset.rb +258 -0
- data/lib/zen/bin/app.rb +42 -0
- data/lib/zen/controller/admin_controller.rb +53 -36
- data/lib/zen/controller/base_controller.rb +13 -8
- data/lib/zen/controller/frontend_controller.rb +4 -3
- data/lib/zen/controller/main_controller.rb +17 -33
- data/lib/zen/error/validation_error.rb +10 -0
- data/lib/zen/ext/string.rb +185 -0
- data/lib/zen/helper/acl.rb +120 -92
- data/lib/zen/helper/common.rb +1 -3
- data/lib/zen/helper/theme.rb +73 -0
- data/lib/zen/language.rb +66 -57
- data/lib/zen/layout/admin.xhtml +5 -48
- data/lib/zen/layout/login.xhtml +4 -44
- data/lib/zen/model/methods.rb +1 -1
- data/lib/zen/model/settings.rb +0 -3
- data/lib/zen/package.rb +101 -83
- data/lib/zen/package/base.rb +62 -0
- data/lib/zen/package/categories/lib/categories.rb +29 -10
- data/lib/zen/package/categories/lib/categories/controller/categories.rb +4 -5
- data/lib/zen/package/categories/lib/categories/controller/category_groups.rb +4 -5
- data/lib/zen/package/categories/lib/categories/language/en/category_groups.yml +4 -3
- data/lib/zen/package/categories/lib/categories/model/category.rb +2 -2
- data/lib/zen/package/categories/lib/categories/model/category_group.rb +3 -3
- data/lib/zen/package/categories/lib/categories/plugin/categories.rb +130 -0
- data/lib/zen/package/categories/lib/categories/view/admin/categories/form.xhtml +1 -1
- data/lib/zen/package/categories/lib/categories/view/admin/categories/index.xhtml +2 -2
- data/lib/zen/package/categories/lib/categories/view/admin/category-groups/index.xhtml +11 -6
- data/lib/zen/package/comments/lib/comments.rb +23 -13
- data/lib/zen/package/comments/lib/comments/controller/comments.rb +4 -5
- data/lib/zen/package/comments/lib/comments/controller/comments_form.rb +7 -8
- data/lib/zen/package/comments/lib/comments/model/comment.rb +4 -4
- data/lib/zen/package/comments/lib/comments/plugin/comments.rb +111 -0
- data/lib/zen/package/comments/lib/comments/view/admin/comments/form.xhtml +2 -2
- data/lib/zen/package/comments/lib/comments/view/admin/comments/index.xhtml +3 -3
- data/lib/zen/package/custom_fields/lib/custom_fields.rb +18 -11
- data/lib/zen/package/custom_fields/lib/custom_fields/controller/custom_field_groups.rb +4 -5
- data/lib/zen/package/custom_fields/lib/custom_fields/controller/custom_fields.rb +4 -5
- data/lib/zen/package/custom_fields/lib/custom_fields/model/custom_field.rb +2 -2
- data/lib/zen/package/custom_fields/lib/custom_fields/model/custom_field_group.rb +3 -3
- data/lib/zen/package/custom_fields/lib/custom_fields/model/custom_field_value.rb +3 -3
- data/lib/zen/package/custom_fields/lib/custom_fields/view/admin/custom-field-groups/index.xhtml +9 -5
- data/lib/zen/package/custom_fields/lib/custom_fields/view/admin/custom-fields/form.xhtml +1 -1
- data/lib/zen/package/custom_fields/lib/custom_fields/view/admin/custom-fields/index.xhtml +3 -3
- data/lib/zen/package/menus/lib/menus.rb +25 -43
- data/lib/zen/package/menus/lib/menus/controller/menu_items.rb +5 -6
- data/lib/zen/package/menus/lib/menus/controller/menus.rb +9 -5
- data/lib/zen/package/menus/lib/menus/helper/menu_item.rb +4 -4
- data/lib/zen/package/menus/lib/menus/model/menu.rb +2 -2
- data/lib/zen/package/menus/lib/menus/model/menu_item.rb +4 -1
- data/lib/zen/package/menus/lib/menus/plugin/menus.rb +152 -0
- data/lib/zen/package/menus/lib/menus/view/admin/menu-items/form.xhtml +1 -1
- data/lib/zen/package/menus/lib/menus/view/admin/menu-items/index.xhtml +3 -3
- data/lib/zen/package/menus/lib/menus/view/admin/menus/index.xhtml +7 -7
- data/lib/zen/package/sections/lib/sections.rb +32 -16
- data/lib/zen/package/sections/lib/sections/controller/section_entries.rb +9 -18
- data/lib/zen/package/sections/lib/sections/controller/sections.rb +8 -9
- data/lib/zen/package/sections/lib/sections/language/en/section_entries.yml +1 -1
- data/lib/zen/package/sections/lib/sections/model/section.rb +4 -4
- data/lib/zen/package/sections/lib/sections/model/section_entry.rb +9 -10
- data/lib/zen/package/sections/lib/sections/plugin/section_entries.rb +224 -0
- data/lib/zen/package/sections/lib/sections/plugin/sections.rb +85 -0
- data/lib/zen/package/sections/lib/sections/view/admin/form.xhtml +1 -1
- data/lib/zen/package/sections/lib/sections/view/admin/index.xhtml +9 -5
- data/lib/zen/package/sections/lib/sections/view/admin/section-entries/index.xhtml +2 -2
- data/lib/zen/package/settings/lib/settings.rb +145 -10
- data/lib/zen/package/settings/lib/settings/controller/settings.rb +28 -24
- data/lib/zen/package/settings/lib/settings/language/en/settings.yml +10 -0
- data/lib/zen/package/settings/lib/settings/model/setting.rb +3 -64
- data/lib/zen/package/settings/lib/settings/plugin/group_base.rb +40 -0
- data/lib/zen/package/settings/lib/settings/plugin/setting_base.rb +76 -0
- data/lib/zen/package/settings/lib/settings/plugin/settings.rb +236 -0
- data/lib/zen/package/settings/lib/settings/view/admin/settings/index.xhtml +20 -49
- data/lib/zen/package/settings/migrations/1295597111_create_schema.rb +0 -12
- data/lib/zen/package/settings/migrations/1303196915_settings_plugin.rb +31 -0
- data/lib/zen/package/users/lib/users.rb +18 -15
- data/lib/zen/package/users/lib/users/controller/access_rules.rb +44 -8
- data/lib/zen/package/users/lib/users/controller/user_groups.rb +4 -5
- data/lib/zen/package/users/lib/users/controller/users.rb +5 -6
- data/lib/zen/package/users/lib/users/language/en/access_rules.yml +11 -9
- data/lib/zen/package/users/lib/users/model/access_rule.rb +7 -6
- data/lib/zen/package/users/lib/users/model/user.rb +4 -4
- data/lib/zen/package/users/lib/users/model/user_group.rb +3 -3
- data/lib/zen/package/users/lib/users/public/admin/js/users/access_rules.js +50 -0
- data/lib/zen/package/users/lib/users/view/admin/access-rules/form.xhtml +32 -29
- data/lib/zen/package/users/lib/users/view/admin/access-rules/index.xhtml +8 -6
- data/lib/zen/package/users/lib/users/view/admin/user-groups/index.xhtml +3 -3
- data/lib/zen/package/users/lib/users/view/admin/users/index.xhtml +2 -2
- data/lib/zen/package/users/migrations/1303510943_class_rules.rb +13 -0
- data/lib/zen/plugin.rb +110 -104
- data/lib/zen/plugin/base.rb +46 -0
- data/lib/zen/{liquid/controller_behavior.rb → plugin/controller.rb} +9 -7
- data/lib/zen/plugin/helper.rb +47 -0
- data/lib/zen/plugin/markup/lib/markup.rb +14 -0
- data/lib/zen/plugin/markup/lib/markup/language/en/markup.yml +6 -0
- data/lib/zen/plugin/markup/lib/markup/markup.rb +154 -0
- data/lib/zen/public/admin/css/forms.css +4 -0
- data/lib/zen/public/admin/css/general.css +15 -15
- data/lib/zen/public/admin/css/layout.css +10 -10
- data/lib/zen/public/admin/css/reset.css +123 -0
- data/lib/zen/public/admin/images/icons/accept.png +0 -0
- data/lib/zen/public/admin/images/icons/add.png +0 -0
- data/lib/zen/public/admin/images/icons/back.png +0 -0
- data/lib/zen/public/admin/images/icons/bold.png +0 -0
- data/lib/zen/public/admin/images/icons/close.png +0 -0
- data/lib/zen/public/admin/images/icons/delete.png +0 -0
- data/lib/zen/public/admin/images/icons/edit.png +0 -0
- data/lib/zen/public/admin/images/icons/error.png +0 -0
- data/lib/zen/public/admin/images/icons/help.png +0 -0
- data/lib/zen/public/admin/images/icons/info.png +0 -0
- data/lib/zen/public/admin/images/icons/italic.png +0 -0
- data/lib/zen/public/admin/images/icons/large/error.png +0 -0
- data/lib/zen/public/admin/images/icons/large/notice.png +0 -0
- data/lib/zen/public/admin/images/icons/large/success.png +0 -0
- data/lib/zen/public/admin/images/icons/link.png +0 -0
- data/lib/zen/public/admin/images/icons/logout.png +0 -0
- data/lib/zen/public/admin/images/icons/ol.png +0 -0
- data/lib/zen/public/admin/images/icons/pdf.png +0 -0
- data/lib/zen/public/admin/images/icons/ul.png +0 -0
- data/lib/zen/public/admin/images/icons/user.png +0 -0
- data/lib/zen/public/admin/images/icons/view.png +0 -0
- data/lib/zen/public/admin/js/mootools/core.js +384 -333
- data/lib/zen/public/admin/js/mootools/more.js +256 -231
- data/lib/zen/public/admin/js/vendor/{datepicker/Picker.Date.js → datepicker.js} +447 -0
- data/lib/zen/public/admin/js/vendor/yepnope.js +1 -0
- data/lib/zen/public/admin/js/zen/editor/base.js +8 -1
- data/lib/zen/public/admin/js/zen/init.js +89 -26
- data/lib/zen/public/favicon.ico +0 -0
- data/lib/zen/task.rb +7 -0
- data/lib/zen/task/build.rake +60 -0
- data/lib/zen/task/clean.rake +27 -0
- data/lib/zen/task/db.rake +111 -0
- data/lib/zen/task/package.rake +67 -0
- data/lib/zen/task/plugin.rake +24 -0
- data/lib/zen/task/proto.rake +95 -0
- data/lib/zen/task/theme.rake +68 -0
- data/lib/zen/theme.rb +28 -55
- data/lib/zen/theme/base.rb +64 -0
- data/lib/zen/validation.rb +149 -0
- data/lib/zen/version.rb +1 -1
- data/lib/zen/view/bottom.xhtml +6 -0
- data/lib/zen/view/main.xhtml +32 -0
- data/proto/app/Rakefile +12 -0
- data/proto/app/app.rb +6 -6
- data/proto/app/config/config.rb +7 -14
- data/proto/app/config/database.rb +0 -20
- data/proto/app/start.rb +0 -1
- data/proto/app/{vendor/themes → task}/.gitkeep +0 -0
- data/proto/app/vendor/theme/.gitkeep +0 -0
- data/proto/package/lib/package.rb +8 -17
- data/proto/package/lib/package/controller/controllers.rb +4 -4
- data/proto/package/lib/package/language/en/languages.yml +3 -3
- data/proto/package/lib/package/model/model.rb +1 -1
- metadata +73 -73
- data/lib/zen/bin/base.rb +0 -109
- data/lib/zen/helper/asset.rb +0 -106
- data/lib/zen/liquid/general.rb +0 -94
- data/lib/zen/liquid/redirect.rb +0 -70
- data/lib/zen/liquid/strip.rb +0 -60
- data/lib/zen/package/categories/lib/categories/liquid/categories.rb +0 -16
- data/lib/zen/package/comments/lib/comments/liquid/comment_form.rb +0 -127
- data/lib/zen/package/comments/lib/comments/liquid/comments.rb +0 -115
- data/lib/zen/package/menus/lib/menus/liquid/menus.rb +0 -152
- data/lib/zen/package/sections/lib/sections/liquid/section_entries.rb +0 -228
- data/lib/zen/package/sections/lib/sections/liquid/sections.rb +0 -77
- data/lib/zen/package/settings/lib/settings/liquid/setting.rb +0 -58
- data/lib/zen/package/users/lib/users/liquid/user.rb +0 -77
- data/lib/zen/package/users/lib/users/liquid/users.rb +0 -82
- data/lib/zen/plugin/markup.rb +0 -30
- data/lib/zen/public/admin/css/boilerplate.css +0 -176
- data/lib/zen/public/admin/images/general/noise.jpg +0 -0
- data/lib/zen/public/admin/js/vendor/datepicker/Picker.Attach.js +0 -137
- data/lib/zen/public/admin/js/vendor/datepicker/Picker.js +0 -291
- data/lib/zen/public/admin/js/vendor/datepicker/README.md +0 -325
- data/lib/zen/public/admin/js/vendor/datepicker/locale.js +0 -16
- data/lib/zen/strict_struct.rb +0 -36
- data/lib/zen/task/build.rb +0 -123
- data/lib/zen/task/clean.rb +0 -46
- data/lib/zen/task/db.rb +0 -130
- data/lib/zen/task/package.rb +0 -87
- data/lib/zen/task/proto.rb +0 -116
- data/lib/zen/task/theme.rb +0 -88
- data/proto/app/Thorfile +0 -4
data/lib/zen/version.rb
CHANGED
@@ -0,0 +1,32 @@
|
|
1
|
+
<!--
|
2
|
+
Main area of the admin panel. The content stretches across the entire screen and there
|
3
|
+
are no silly sidebars.
|
4
|
+
-->
|
5
|
+
<div id="container" class="container">
|
6
|
+
<div id="content" class="grid_12">
|
7
|
+
#{@content}
|
8
|
+
</div>
|
9
|
+
</div>
|
10
|
+
|
11
|
+
<footer id="main_footer" class="container">
|
12
|
+
<div class="grid_12">
|
13
|
+
<p>#{lang('zen_general.labels.zen_version') % Zen::Version}</p>
|
14
|
+
<ul class="clearfix">
|
15
|
+
<li>
|
16
|
+
<a href="http://zen-cms.com/">
|
17
|
+
#{lang('zen_general.labels.zen_website')}
|
18
|
+
</a>
|
19
|
+
</li>
|
20
|
+
<li>
|
21
|
+
<a href="http://zen-cms.com/userguide">
|
22
|
+
#{lang('zen_general.labels.zen_docs')}
|
23
|
+
</a>
|
24
|
+
</li>
|
25
|
+
<li>
|
26
|
+
<a href="https://github.com/zen-cms/">
|
27
|
+
#{lang('zen_general.labels.zen_github')}
|
28
|
+
</a>
|
29
|
+
</li>
|
30
|
+
</ul>
|
31
|
+
</div>
|
32
|
+
</footer>
|
data/proto/app/Rakefile
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
require File.expand_path('../app.rb', __FILE__)
|
2
|
+
require 'zen/task'
|
3
|
+
|
4
|
+
task_dir = File.expand_path('../task', __FILE__)
|
5
|
+
|
6
|
+
# Load all tasks from ./task if the directory exists
|
7
|
+
if File.directory?(task_dir)
|
8
|
+
Dir.glob("#{task_dir}/**/*.rake").each do |task|
|
9
|
+
import task
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
data/proto/app/app.rb
CHANGED
@@ -2,19 +2,19 @@
|
|
2
2
|
require 'zen'
|
3
3
|
|
4
4
|
# Load the configuration files
|
5
|
-
require __DIR__
|
5
|
+
require __DIR__('config/config')
|
6
6
|
|
7
7
|
# Load all our custom Rack middlewares
|
8
|
-
require __DIR__
|
8
|
+
require __DIR__('config/middlewares')
|
9
9
|
|
10
10
|
# Load the database configuration file
|
11
|
-
require __DIR__
|
11
|
+
require __DIR__('config/database')
|
12
12
|
|
13
13
|
# Make sure that Ramaze knows where you are
|
14
|
-
Ramaze.options.roots
|
14
|
+
Ramaze.options.roots.push(Zen.options.root)
|
15
15
|
|
16
|
-
#
|
16
|
+
# Load the database
|
17
17
|
Zen.init
|
18
18
|
|
19
19
|
# Require all the custom gems/modules we need
|
20
|
-
require __DIR__
|
20
|
+
require __DIR__('config/requires')
|
data/proto/app/config/config.rb
CHANGED
@@ -1,30 +1,23 @@
|
|
1
|
-
##
|
2
1
|
# Specify the root directory. This is required since there are multiple directories
|
3
2
|
# to load resources from. This directory will be used for the database logger, modes, etc.
|
4
|
-
#
|
5
3
|
Zen.options.root = __DIR__('../')
|
6
4
|
|
7
|
-
##
|
8
5
|
# UTF-8 bitches.
|
9
|
-
#
|
10
6
|
Zen.options.encoding = 'utf8'
|
11
7
|
|
12
|
-
##
|
13
8
|
# Sets the language to use in the event of the database settings not being set correctly.
|
14
|
-
#
|
15
9
|
Zen.options.language = 'en'
|
16
10
|
|
17
|
-
##
|
18
11
|
# Set the application's mode. Available modes are "dev" and "live"
|
19
|
-
#
|
20
12
|
Ramaze.options.mode = :dev
|
21
13
|
|
22
|
-
##
|
23
14
|
# The session identifier to use for cookies.
|
24
|
-
#
|
25
15
|
Ramaze.options.session.key = 'zen.sid'
|
26
16
|
|
27
|
-
|
28
|
-
#
|
29
|
-
|
30
|
-
Ramaze::View.options.
|
17
|
+
# Cache settings. These are turned off for the development server to make it easier
|
18
|
+
# to debug potential errors.
|
19
|
+
Ramaze::View.options.cache = false
|
20
|
+
Ramaze::View.options.read_cache = false
|
21
|
+
|
22
|
+
# Use LRU instead of the memory cache as the latter leaks memory over time
|
23
|
+
Ramaze::Cache.options.session = Ramaze::Cache::LRU
|
@@ -16,29 +16,19 @@
|
|
16
16
|
# all databases.
|
17
17
|
#
|
18
18
|
Zen::Database.mode :dev do |db|
|
19
|
-
##
|
20
19
|
# Example: mysql2
|
21
|
-
#
|
22
20
|
db.adapter = ''
|
23
21
|
|
24
|
-
##
|
25
22
|
# Example: localhost
|
26
|
-
#
|
27
23
|
db.host = ''
|
28
24
|
|
29
|
-
##
|
30
25
|
# Example: zen-app
|
31
|
-
#
|
32
26
|
db.username = ''
|
33
27
|
|
34
|
-
##
|
35
28
|
# Example: 23x190jj38123x
|
36
|
-
#
|
37
29
|
db.password = ''
|
38
30
|
|
39
|
-
##
|
40
31
|
# Example: blog
|
41
|
-
#
|
42
32
|
db.database = ''
|
43
33
|
end
|
44
34
|
|
@@ -47,28 +37,18 @@ end
|
|
47
37
|
# This group accepts the same settings as the block above.
|
48
38
|
#
|
49
39
|
Zen::Database.mode :live do |db|
|
50
|
-
##
|
51
40
|
# Example: mysql2
|
52
|
-
#
|
53
41
|
db.adapter = ''
|
54
42
|
|
55
|
-
##
|
56
43
|
# Example: localhost
|
57
|
-
#
|
58
44
|
db.host = ''
|
59
45
|
|
60
|
-
##
|
61
46
|
# Example: zen-app
|
62
|
-
#
|
63
47
|
db.username = ''
|
64
48
|
|
65
|
-
##
|
66
49
|
# Example: 23x190jj38123x
|
67
|
-
#
|
68
50
|
db.password = ''
|
69
51
|
|
70
|
-
##
|
71
52
|
# Example: blog
|
72
|
-
#
|
73
53
|
db.database = ''
|
74
54
|
end
|
data/proto/app/start.rb
CHANGED
File without changes
|
File without changes
|
@@ -1,31 +1,22 @@
|
|
1
1
|
Zen::Package.add do |p|
|
2
|
-
# The name of the package
|
3
|
-
p.name
|
2
|
+
# The name of the package, should match /[a-z0-9_\-]+/
|
3
|
+
p.name = ''
|
4
4
|
|
5
5
|
# The person/company that made the package
|
6
|
-
p.author
|
6
|
+
p.author = ''
|
7
7
|
|
8
8
|
# A URL to a page about the package
|
9
|
-
p.url
|
9
|
+
p.url = ''
|
10
10
|
|
11
11
|
# Describe what your theme or extension does.
|
12
|
-
p.about
|
12
|
+
p.about = ''
|
13
13
|
|
14
|
-
##
|
15
|
-
# An identifier is a unique string for your package in the following format:
|
16
|
-
#
|
17
|
-
# com.VENDOR.NAME
|
18
|
-
#
|
19
|
-
p.identifier = 'com.vendor.module'
|
20
|
-
|
21
|
-
##
|
22
14
|
# Path to the directory containing the controllers, models, etc.
|
23
|
-
|
24
|
-
p.directory = __DIR__('package')
|
15
|
+
p.directory = __DIR__('package')
|
25
16
|
|
26
17
|
# Note that themes can not have menu items (they'll be ignored).
|
27
18
|
p.menu = [{
|
28
|
-
:title =>
|
29
|
-
:url =>
|
19
|
+
:title => 'Prototype',
|
20
|
+
:url => '/admin/prototype'
|
30
21
|
}]
|
31
22
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module EXTENSION
|
2
|
-
module
|
2
|
+
module Controller
|
3
3
|
##
|
4
4
|
#
|
5
5
|
# @author
|
@@ -8,8 +8,7 @@ module EXTENSION
|
|
8
8
|
class CONTROLLER < Zen::Controllers::AdminController
|
9
9
|
include ::EXTENSION::Models
|
10
10
|
|
11
|
-
map
|
12
|
-
trait :extension_identifier => ''
|
11
|
+
map('/admin/module')
|
13
12
|
|
14
13
|
before_all do
|
15
14
|
csrf_protection :save, :delete do
|
@@ -25,7 +24,7 @@ module EXTENSION
|
|
25
24
|
def initialize
|
26
25
|
super
|
27
26
|
|
28
|
-
Zen::Language.load
|
27
|
+
Zen::Language.load('language')
|
29
28
|
|
30
29
|
# Set the page title
|
31
30
|
if !action.method.nil?
|
@@ -78,6 +77,7 @@ module EXTENSION
|
|
78
77
|
def delete
|
79
78
|
|
80
79
|
end
|
80
|
+
|
81
81
|
end
|
82
82
|
end
|
83
83
|
end
|
@@ -1,4 +1,4 @@
|
|
1
1
|
titles:
|
2
|
-
index
|
3
|
-
edit
|
4
|
-
new
|
2
|
+
index: ''
|
3
|
+
edit : ''
|
4
|
+
new : ''
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: zen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.2.
|
5
|
+
version: 0.2.5
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Yorick Peterse
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-
|
13
|
+
date: 2011-05-01 00:00:00 +02:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -47,149 +47,140 @@ dependencies:
|
|
47
47
|
type: :runtime
|
48
48
|
version_requirements: *id003
|
49
49
|
- !ruby/object:Gem::Dependency
|
50
|
-
name:
|
50
|
+
name: json
|
51
51
|
prerelease: false
|
52
52
|
requirement: &id004 !ruby/object:Gem::Requirement
|
53
53
|
none: false
|
54
54
|
requirements:
|
55
55
|
- - ">="
|
56
56
|
- !ruby/object:Gem::Version
|
57
|
-
version:
|
57
|
+
version: 1.5.1
|
58
58
|
type: :runtime
|
59
59
|
version_requirements: *id004
|
60
60
|
- !ruby/object:Gem::Dependency
|
61
|
-
name:
|
61
|
+
name: defensio
|
62
62
|
prerelease: false
|
63
63
|
requirement: &id005 !ruby/object:Gem::Requirement
|
64
64
|
none: false
|
65
65
|
requirements:
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 0.9.1
|
69
69
|
type: :runtime
|
70
70
|
version_requirements: *id005
|
71
71
|
- !ruby/object:Gem::Dependency
|
72
|
-
name:
|
72
|
+
name: sequel_sluggable
|
73
73
|
prerelease: false
|
74
74
|
requirement: &id006 !ruby/object:Gem::Requirement
|
75
75
|
none: false
|
76
76
|
requirements:
|
77
77
|
- - ">="
|
78
78
|
- !ruby/object:Gem::Version
|
79
|
-
version: 0.
|
79
|
+
version: 0.0.6
|
80
80
|
type: :runtime
|
81
81
|
version_requirements: *id006
|
82
82
|
- !ruby/object:Gem::Dependency
|
83
|
-
name:
|
83
|
+
name: commander
|
84
84
|
prerelease: false
|
85
85
|
requirement: &id007 !ruby/object:Gem::Requirement
|
86
86
|
none: false
|
87
87
|
requirements:
|
88
88
|
- - ">="
|
89
89
|
- !ruby/object:Gem::Version
|
90
|
-
version: 0.
|
90
|
+
version: 4.0.4
|
91
91
|
type: :runtime
|
92
92
|
version_requirements: *id007
|
93
93
|
- !ruby/object:Gem::Dependency
|
94
|
-
name:
|
94
|
+
name: rake
|
95
95
|
prerelease: false
|
96
96
|
requirement: &id008 !ruby/object:Gem::Requirement
|
97
97
|
none: false
|
98
98
|
requirements:
|
99
99
|
- - ">="
|
100
100
|
- !ruby/object:Gem::Version
|
101
|
-
version: 0.
|
101
|
+
version: 0.8.7
|
102
102
|
type: :runtime
|
103
103
|
version_requirements: *id008
|
104
104
|
- !ruby/object:Gem::Dependency
|
105
|
-
name:
|
105
|
+
name: rdiscount
|
106
106
|
prerelease: false
|
107
107
|
requirement: &id009 !ruby/object:Gem::Requirement
|
108
108
|
none: false
|
109
109
|
requirements:
|
110
110
|
- - ">="
|
111
111
|
- !ruby/object:Gem::Version
|
112
|
-
version:
|
113
|
-
type: :
|
112
|
+
version: 1.6.8
|
113
|
+
type: :development
|
114
114
|
version_requirements: *id009
|
115
115
|
- !ruby/object:Gem::Dependency
|
116
|
-
name:
|
116
|
+
name: redcloth
|
117
117
|
prerelease: false
|
118
118
|
requirement: &id010 !ruby/object:Gem::Requirement
|
119
119
|
none: false
|
120
120
|
requirements:
|
121
121
|
- - ">="
|
122
122
|
- !ruby/object:Gem::Version
|
123
|
-
version:
|
123
|
+
version: 4.2.7
|
124
124
|
type: :development
|
125
125
|
version_requirements: *id010
|
126
126
|
- !ruby/object:Gem::Dependency
|
127
|
-
name:
|
127
|
+
name: rspec
|
128
128
|
prerelease: false
|
129
129
|
requirement: &id011 !ruby/object:Gem::Requirement
|
130
130
|
none: false
|
131
131
|
requirements:
|
132
132
|
- - ">="
|
133
133
|
- !ruby/object:Gem::Version
|
134
|
-
version:
|
134
|
+
version: 2.5.0
|
135
135
|
type: :development
|
136
136
|
version_requirements: *id011
|
137
137
|
- !ruby/object:Gem::Dependency
|
138
|
-
name:
|
138
|
+
name: yard
|
139
139
|
prerelease: false
|
140
140
|
requirement: &id012 !ruby/object:Gem::Requirement
|
141
141
|
none: false
|
142
142
|
requirements:
|
143
143
|
- - ">="
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version:
|
145
|
+
version: 0.6.5
|
146
146
|
type: :development
|
147
147
|
version_requirements: *id012
|
148
148
|
- !ruby/object:Gem::Dependency
|
149
|
-
name:
|
149
|
+
name: capybara
|
150
150
|
prerelease: false
|
151
151
|
requirement: &id013 !ruby/object:Gem::Requirement
|
152
152
|
none: false
|
153
153
|
requirements:
|
154
154
|
- - ">="
|
155
155
|
- !ruby/object:Gem::Version
|
156
|
-
version: 0.
|
156
|
+
version: 0.4.1.2
|
157
157
|
type: :development
|
158
158
|
version_requirements: *id013
|
159
159
|
- !ruby/object:Gem::Dependency
|
160
|
-
name:
|
160
|
+
name: rack-test
|
161
161
|
prerelease: false
|
162
162
|
requirement: &id014 !ruby/object:Gem::Requirement
|
163
163
|
none: false
|
164
164
|
requirements:
|
165
165
|
- - ">="
|
166
166
|
- !ruby/object:Gem::Version
|
167
|
-
version: 0.
|
167
|
+
version: 0.5.7
|
168
168
|
type: :development
|
169
169
|
version_requirements: *id014
|
170
170
|
- !ruby/object:Gem::Dependency
|
171
|
-
name:
|
171
|
+
name: sqlite3
|
172
172
|
prerelease: false
|
173
173
|
requirement: &id015 !ruby/object:Gem::Requirement
|
174
174
|
none: false
|
175
175
|
requirements:
|
176
176
|
- - ">="
|
177
177
|
- !ruby/object:Gem::Version
|
178
|
-
version:
|
178
|
+
version: 1.3.3
|
179
179
|
type: :development
|
180
180
|
version_requirements: *id015
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
requirement: &id016 !ruby/object:Gem::Requirement
|
185
|
-
none: false
|
186
|
-
requirements:
|
187
|
-
- - ">="
|
188
|
-
- !ruby/object:Gem::Version
|
189
|
-
version: "0"
|
190
|
-
type: :development
|
191
|
-
version_requirements: *id016
|
192
|
-
description: Zen is a fully modular CMS written using Ramaze. Unlike traditional Content Management Systems you are completely free to build whatever you want.
|
181
|
+
description: |-
|
182
|
+
Zen is a modular CMS written using Ramaze. Unlike traditional CMS' you
|
183
|
+
are completely free to build whatever you want.
|
193
184
|
email: info@yorickpeterse.com
|
194
185
|
executables:
|
195
186
|
- zen
|
@@ -202,9 +193,10 @@ files:
|
|
202
193
|
- MANIFEST
|
203
194
|
- README.md
|
204
195
|
- ROADMAP.md
|
205
|
-
-
|
196
|
+
- Rakefile
|
206
197
|
- bin/zen
|
207
|
-
- lib/zen/
|
198
|
+
- lib/zen/asset.rb
|
199
|
+
- lib/zen/bin/app.rb
|
208
200
|
- lib/zen/controller/admin_controller.rb
|
209
201
|
- lib/zen/controller/base_controller.rb
|
210
202
|
- lib/zen/controller/frontend_controller.rb
|
@@ -214,30 +206,29 @@ files:
|
|
214
206
|
- lib/zen/error/package_error.rb
|
215
207
|
- lib/zen/error/plugin_error.rb
|
216
208
|
- lib/zen/error/theme_error.rb
|
209
|
+
- lib/zen/error/validation_error.rb
|
210
|
+
- lib/zen/ext/string.rb
|
217
211
|
- lib/zen/helper/acl.rb
|
218
|
-
- lib/zen/helper/asset.rb
|
219
212
|
- lib/zen/helper/breadcrumb.rb
|
220
213
|
- lib/zen/helper/common.rb
|
214
|
+
- lib/zen/helper/theme.rb
|
221
215
|
- lib/zen/language/en/zen_general.yml
|
222
216
|
- lib/zen/language/en/zen_models.yml
|
223
217
|
- lib/zen/language.rb
|
224
218
|
- lib/zen/layout/admin.xhtml
|
225
219
|
- lib/zen/layout/login.xhtml
|
226
|
-
- lib/zen/liquid/controller_behavior.rb
|
227
|
-
- lib/zen/liquid/general.rb
|
228
|
-
- lib/zen/liquid/redirect.rb
|
229
|
-
- lib/zen/liquid/strip.rb
|
230
220
|
- lib/zen/logger.rb
|
231
221
|
- lib/zen/model/methods.rb
|
232
222
|
- lib/zen/model/settings.rb
|
233
223
|
- lib/zen/package/all.rb
|
224
|
+
- lib/zen/package/base.rb
|
234
225
|
- lib/zen/package/categories/lib/categories/controller/categories.rb
|
235
226
|
- lib/zen/package/categories/lib/categories/controller/category_groups.rb
|
236
227
|
- lib/zen/package/categories/lib/categories/language/en/categories.yml
|
237
228
|
- lib/zen/package/categories/lib/categories/language/en/category_groups.yml
|
238
|
-
- lib/zen/package/categories/lib/categories/liquid/categories.rb
|
239
229
|
- lib/zen/package/categories/lib/categories/model/category.rb
|
240
230
|
- lib/zen/package/categories/lib/categories/model/category_group.rb
|
231
|
+
- lib/zen/package/categories/lib/categories/plugin/categories.rb
|
241
232
|
- lib/zen/package/categories/lib/categories/view/admin/categories/edit.xhtml
|
242
233
|
- lib/zen/package/categories/lib/categories/view/admin/categories/form.xhtml
|
243
234
|
- lib/zen/package/categories/lib/categories/view/admin/categories/index.xhtml
|
@@ -252,9 +243,8 @@ files:
|
|
252
243
|
- lib/zen/package/comments/lib/comments/controller/comments.rb
|
253
244
|
- lib/zen/package/comments/lib/comments/controller/comments_form.rb
|
254
245
|
- lib/zen/package/comments/lib/comments/language/en/comments.yml
|
255
|
-
- lib/zen/package/comments/lib/comments/liquid/comment_form.rb
|
256
|
-
- lib/zen/package/comments/lib/comments/liquid/comments.rb
|
257
246
|
- lib/zen/package/comments/lib/comments/model/comment.rb
|
247
|
+
- lib/zen/package/comments/lib/comments/plugin/comments.rb
|
258
248
|
- lib/zen/package/comments/lib/comments/view/admin/comments/edit.xhtml
|
259
249
|
- lib/zen/package/comments/lib/comments/view/admin/comments/form.xhtml
|
260
250
|
- lib/zen/package/comments/lib/comments/view/admin/comments/index.xhtml
|
@@ -284,9 +274,9 @@ files:
|
|
284
274
|
- lib/zen/package/menus/lib/menus/helper/menu_item.rb
|
285
275
|
- lib/zen/package/menus/lib/menus/language/en/menu_items.yml
|
286
276
|
- lib/zen/package/menus/lib/menus/language/en/menus.yml
|
287
|
-
- lib/zen/package/menus/lib/menus/liquid/menus.rb
|
288
277
|
- lib/zen/package/menus/lib/menus/model/menu.rb
|
289
278
|
- lib/zen/package/menus/lib/menus/model/menu_item.rb
|
279
|
+
- lib/zen/package/menus/lib/menus/plugin/menus.rb
|
290
280
|
- lib/zen/package/menus/lib/menus/view/admin/menu-items/edit.xhtml
|
291
281
|
- lib/zen/package/menus/lib/menus/view/admin/menu-items/form.xhtml
|
292
282
|
- lib/zen/package/menus/lib/menus/view/admin/menu-items/index.xhtml
|
@@ -302,10 +292,10 @@ files:
|
|
302
292
|
- lib/zen/package/sections/lib/sections/controller/sections.rb
|
303
293
|
- lib/zen/package/sections/lib/sections/language/en/section_entries.yml
|
304
294
|
- lib/zen/package/sections/lib/sections/language/en/sections.yml
|
305
|
-
- lib/zen/package/sections/lib/sections/liquid/section_entries.rb
|
306
|
-
- lib/zen/package/sections/lib/sections/liquid/sections.rb
|
307
295
|
- lib/zen/package/sections/lib/sections/model/section.rb
|
308
296
|
- lib/zen/package/sections/lib/sections/model/section_entry.rb
|
297
|
+
- lib/zen/package/sections/lib/sections/plugin/section_entries.rb
|
298
|
+
- lib/zen/package/sections/lib/sections/plugin/sections.rb
|
309
299
|
- lib/zen/package/sections/lib/sections/view/admin/edit.xhtml
|
310
300
|
- lib/zen/package/sections/lib/sections/view/admin/form.xhtml
|
311
301
|
- lib/zen/package/sections/lib/sections/view/admin/index.xhtml
|
@@ -319,21 +309,22 @@ files:
|
|
319
309
|
- lib/zen/package/sections/migrations/1295251836_create_schema.rb
|
320
310
|
- lib/zen/package/settings/lib/settings/controller/settings.rb
|
321
311
|
- lib/zen/package/settings/lib/settings/language/en/settings.yml
|
322
|
-
- lib/zen/package/settings/lib/settings/liquid/setting.rb
|
323
312
|
- lib/zen/package/settings/lib/settings/model/setting.rb
|
313
|
+
- lib/zen/package/settings/lib/settings/plugin/group_base.rb
|
314
|
+
- lib/zen/package/settings/lib/settings/plugin/setting_base.rb
|
315
|
+
- lib/zen/package/settings/lib/settings/plugin/settings.rb
|
324
316
|
- lib/zen/package/settings/lib/settings/view/admin/settings/index.xhtml
|
325
317
|
- lib/zen/package/settings/lib/settings.rb
|
326
318
|
- lib/zen/package/settings/migrations/.gitkeep
|
327
319
|
- lib/zen/package/settings/migrations/1295597111_create_schema.rb
|
328
320
|
- lib/zen/package/settings/migrations/1299538742_add_language_key.rb
|
321
|
+
- lib/zen/package/settings/migrations/1303196915_settings_plugin.rb
|
329
322
|
- lib/zen/package/users/lib/users/controller/access_rules.rb
|
330
323
|
- lib/zen/package/users/lib/users/controller/user_groups.rb
|
331
324
|
- lib/zen/package/users/lib/users/controller/users.rb
|
332
325
|
- lib/zen/package/users/lib/users/language/en/access_rules.yml
|
333
326
|
- lib/zen/package/users/lib/users/language/en/user_groups.yml
|
334
327
|
- lib/zen/package/users/lib/users/language/en/users.yml
|
335
|
-
- lib/zen/package/users/lib/users/liquid/user.rb
|
336
|
-
- lib/zen/package/users/lib/users/liquid/users.rb
|
337
328
|
- lib/zen/package/users/lib/users/model/access_rule.rb
|
338
329
|
- lib/zen/package/users/lib/users/model/user.rb
|
339
330
|
- lib/zen/package/users/lib/users/model/user_group.rb
|
@@ -354,10 +345,15 @@ files:
|
|
354
345
|
- lib/zen/package/users/lib/users.rb
|
355
346
|
- lib/zen/package/users/migrations/.gitkeep
|
356
347
|
- lib/zen/package/users/migrations/1295281013_create_schema.rb
|
348
|
+
- lib/zen/package/users/migrations/1303510943_class_rules.rb
|
357
349
|
- lib/zen/package.rb
|
358
|
-
- lib/zen/plugin/
|
350
|
+
- lib/zen/plugin/base.rb
|
351
|
+
- lib/zen/plugin/controller.rb
|
352
|
+
- lib/zen/plugin/helper.rb
|
353
|
+
- lib/zen/plugin/markup/lib/markup/language/en/markup.yml
|
354
|
+
- lib/zen/plugin/markup/lib/markup/markup.rb
|
355
|
+
- lib/zen/plugin/markup/lib/markup.rb
|
359
356
|
- lib/zen/plugin.rb
|
360
|
-
- lib/zen/public/admin/css/boilerplate.css
|
361
357
|
- lib/zen/public/admin/css/buttons.css
|
362
358
|
- lib/zen/public/admin/css/datepicker.css
|
363
359
|
- lib/zen/public/admin/css/editor.css
|
@@ -367,9 +363,9 @@ files:
|
|
367
363
|
- lib/zen/public/admin/css/layout.css
|
368
364
|
- lib/zen/public/admin/css/modals.css
|
369
365
|
- lib/zen/public/admin/css/notifications.css
|
366
|
+
- lib/zen/public/admin/css/reset.css
|
370
367
|
- lib/zen/public/admin/css/tables.css
|
371
368
|
- lib/zen/public/admin/css/tabs.css
|
372
|
-
- lib/zen/public/admin/images/general/noise.jpg
|
373
369
|
- lib/zen/public/admin/images/icons/accept.png
|
374
370
|
- lib/zen/public/admin/images/icons/add.png
|
375
371
|
- lib/zen/public/admin/images/icons/back.png
|
@@ -393,11 +389,8 @@ files:
|
|
393
389
|
- lib/zen/public/admin/images/icons/view.png
|
394
390
|
- lib/zen/public/admin/js/mootools/core.js
|
395
391
|
- lib/zen/public/admin/js/mootools/more.js
|
396
|
-
- lib/zen/public/admin/js/vendor/datepicker
|
397
|
-
- lib/zen/public/admin/js/vendor/
|
398
|
-
- lib/zen/public/admin/js/vendor/datepicker/Picker.js
|
399
|
-
- lib/zen/public/admin/js/vendor/datepicker/README.md
|
400
|
-
- lib/zen/public/admin/js/vendor/datepicker/locale.js
|
392
|
+
- lib/zen/public/admin/js/vendor/datepicker.js
|
393
|
+
- lib/zen/public/admin/js/vendor/yepnope.js
|
401
394
|
- lib/zen/public/admin/js/zen/editor/base.js
|
402
395
|
- lib/zen/public/admin/js/zen/editor/drivers/html.js
|
403
396
|
- lib/zen/public/admin/js/zen/editor/drivers/markdown.js
|
@@ -406,18 +399,24 @@ files:
|
|
406
399
|
- lib/zen/public/admin/js/zen/modal.js
|
407
400
|
- lib/zen/public/admin/js/zen/notification.js
|
408
401
|
- lib/zen/public/admin/js/zen/tabs.js
|
409
|
-
- lib/zen/
|
410
|
-
- lib/zen/task/build.
|
411
|
-
- lib/zen/task/clean.
|
412
|
-
- lib/zen/task/db.
|
413
|
-
- lib/zen/task/package.
|
414
|
-
- lib/zen/task/
|
415
|
-
- lib/zen/task/
|
402
|
+
- lib/zen/public/favicon.ico
|
403
|
+
- lib/zen/task/build.rake
|
404
|
+
- lib/zen/task/clean.rake
|
405
|
+
- lib/zen/task/db.rake
|
406
|
+
- lib/zen/task/package.rake
|
407
|
+
- lib/zen/task/plugin.rake
|
408
|
+
- lib/zen/task/proto.rake
|
409
|
+
- lib/zen/task/theme.rake
|
410
|
+
- lib/zen/task.rb
|
411
|
+
- lib/zen/theme/base.rb
|
416
412
|
- lib/zen/theme.rb
|
413
|
+
- lib/zen/validation.rb
|
417
414
|
- lib/zen/version.rb
|
415
|
+
- lib/zen/view/bottom.xhtml
|
416
|
+
- lib/zen/view/main.xhtml
|
418
417
|
- lib/zen.rb
|
419
418
|
- license.txt
|
420
|
-
- proto/app/
|
419
|
+
- proto/app/Rakefile
|
421
420
|
- proto/app/app.rb
|
422
421
|
- proto/app/config/config.rb
|
423
422
|
- proto/app/config/database.rb
|
@@ -427,8 +426,9 @@ files:
|
|
427
426
|
- proto/app/log/.gitkeep
|
428
427
|
- proto/app/public/.gitkeep
|
429
428
|
- proto/app/start.rb
|
429
|
+
- proto/app/task/.gitkeep
|
430
430
|
- proto/app/vendor/.gitkeep
|
431
|
-
- proto/app/vendor/
|
431
|
+
- proto/app/vendor/theme/.gitkeep
|
432
432
|
- proto/migration.rb
|
433
433
|
- proto/package/lib/package/controller/controllers.rb
|
434
434
|
- proto/package/lib/package/language/en/languages.yml
|
@@ -466,6 +466,6 @@ rubyforge_project:
|
|
466
466
|
rubygems_version: 1.5.0
|
467
467
|
signing_key:
|
468
468
|
specification_version: 3
|
469
|
-
summary: Zen is a
|
469
|
+
summary: Zen is a modular CMS written using Ramaze.
|
470
470
|
test_files: []
|
471
471
|
|