zen 0.1a
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +19 -0
- data/MANIFEST +337 -0
- data/README.textile +42 -0
- data/Rakefile +6 -0
- data/bin/zen +9 -0
- data/doc/Categories.html +93 -0
- data/doc/Categories/Controllers.html +93 -0
- data/doc/Categories/Controllers/Categories.html +995 -0
- data/doc/Categories/Controllers/CategoryGroups.html +878 -0
- data/doc/Categories/Models.html +97 -0
- data/doc/Categories/Models/Category.html +269 -0
- data/doc/Categories/Models/CategoryGroup.html +231 -0
- data/doc/Comments.html +93 -0
- data/doc/Comments/Controllers.html +93 -0
- data/doc/Comments/Controllers/Comments.html +797 -0
- data/doc/Comments/Controllers/CommentsForm.html +487 -0
- data/doc/Comments/Liquid.html +93 -0
- data/doc/Comments/Liquid/CommentForm.html +522 -0
- data/doc/Comments/Liquid/Comments.html +543 -0
- data/doc/Comments/Models.html +95 -0
- data/doc/Comments/Models/Comment.html +260 -0
- data/doc/CustomFields.html +93 -0
- data/doc/CustomFields/Controllers.html +93 -0
- data/doc/CustomFields/Controllers/CustomFieldGroups.html +902 -0
- data/doc/CustomFields/Controllers/CustomFields.html +974 -0
- data/doc/CustomFields/Models.html +97 -0
- data/doc/CustomFields/Models/CustomField.html +272 -0
- data/doc/CustomFields/Models/CustomFieldGroup.html +259 -0
- data/doc/CustomFields/Models/CustomFieldValue.html +154 -0
- data/doc/Ramaze.html +93 -0
- data/doc/Ramaze/Helper.html +93 -0
- data/doc/Ramaze/Helper/ACL.html +531 -0
- data/doc/Ramaze/Helper/Asset.html +617 -0
- data/doc/Ramaze/Helper/Breadcrumb.html +411 -0
- data/doc/Ramaze/Helper/Common.html +738 -0
- data/doc/Sections.html +93 -0
- data/doc/Sections/Controllers.html +93 -0
- data/doc/Sections/Controllers/SectionEntries.html +1100 -0
- data/doc/Sections/Controllers/Sections.html +953 -0
- data/doc/Sections/Liquid.html +93 -0
- data/doc/Sections/Liquid/SectionEntries.html +674 -0
- data/doc/Sections/Liquid/Sections.html +494 -0
- data/doc/Sections/Models.html +97 -0
- data/doc/Sections/Models/Section.html +272 -0
- data/doc/Sections/Models/SectionEntry.html +264 -0
- data/doc/Sequel.html +91 -0
- data/doc/Sequel/Model.html +243 -0
- data/doc/Settings.html +93 -0
- data/doc/Settings/Controllers.html +91 -0
- data/doc/Settings/Controllers/Settings.html +565 -0
- data/doc/Settings/Liquid.html +91 -0
- data/doc/Settings/Liquid/Setting.html +426 -0
- data/doc/Settings/Models.html +95 -0
- data/doc/Settings/Models/Setting.html +293 -0
- data/doc/Users.html +93 -0
- data/doc/Users/Controllers.html +93 -0
- data/doc/Users/Controllers/AccessRules.html +904 -0
- data/doc/Users/Controllers/UserGroups.html +879 -0
- data/doc/Users/Controllers/Users.html +1124 -0
- data/doc/Users/Liquid.html +93 -0
- data/doc/Users/Liquid/User.html +480 -0
- data/doc/Users/Liquid/Users.html +495 -0
- data/doc/Users/Models.html +97 -0
- data/doc/Users/Models/AccessRule.html +257 -0
- data/doc/Users/Models/User.html +649 -0
- data/doc/Users/Models/UserGroup.html +267 -0
- data/doc/Zen.html +391 -0
- data/doc/Zen/Bin.html +113 -0
- data/doc/Zen/Bin/Base.html +727 -0
- data/doc/Zen/Controllers.html +115 -0
- data/doc/Zen/Controllers/AdminController.html +298 -0
- data/doc/Zen/Controllers/BaseController.html +272 -0
- data/doc/Zen/Controllers/FrontendController.html +164 -0
- data/doc/Zen/Controllers/MainController.html +421 -0
- data/doc/Zen/Database.html +498 -0
- data/doc/Zen/Language.html +660 -0
- data/doc/Zen/Liquid.html +117 -0
- data/doc/Zen/Liquid/ControllerBehavior.html +448 -0
- data/doc/Zen/Liquid/General.html +444 -0
- data/doc/Zen/Liquid/Redirect.html +435 -0
- data/doc/Zen/Liquid/Strip.html +447 -0
- data/doc/Zen/Logger.html +393 -0
- data/doc/Zen/Package.html +909 -0
- data/doc/_index.html +724 -0
- data/doc/class_list.html +36 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +53 -0
- data/doc/css/style.css +310 -0
- data/doc/file.README.html +86 -0
- data/doc/file_list.html +38 -0
- data/doc/frames.html +13 -0
- data/doc/index.html +86 -0
- data/doc/js/app.js +203 -0
- data/doc/js/full_list.js +149 -0
- data/doc/js/jquery.js +154 -0
- data/doc/method_list.html +1139 -0
- data/doc/top-level-namespace.html +88 -0
- data/lib/zen.rb +77 -0
- data/lib/zen/base/database.rb +105 -0
- data/lib/zen/base/language.rb +132 -0
- data/lib/zen/base/logger.rb +54 -0
- data/lib/zen/base/package.rb +233 -0
- data/lib/zen/base/version.rb +11 -0
- data/lib/zen/bin/zen_binary.rb +173 -0
- data/lib/zen/controller/admin_controller.rb +60 -0
- data/lib/zen/controller/base_controller.rb +39 -0
- data/lib/zen/controller/frontend_controller.rb +16 -0
- data/lib/zen/controller/main_controller.rb +93 -0
- data/lib/zen/helper/acl.rb +124 -0
- data/lib/zen/helper/asset.rb +104 -0
- data/lib/zen/helper/breadcrumb.rb +71 -0
- data/lib/zen/helper/common.rb +157 -0
- data/lib/zen/language/en/zen_general.rb +21 -0
- data/lib/zen/language/en/zen_models.rb +39 -0
- data/lib/zen/layout/admin.xhtml +72 -0
- data/lib/zen/layout/login.xhtml +44 -0
- data/lib/zen/liquid/controller_behavior.rb +55 -0
- data/lib/zen/liquid/general.rb +69 -0
- data/lib/zen/liquid/redirect.rb +47 -0
- data/lib/zen/liquid/strip.rb +58 -0
- data/lib/zen/model/methods.rb +26 -0
- data/lib/zen/model/settings.rb +27 -0
- data/lib/zen/packages/categories/LICENSE +19 -0
- data/lib/zen/packages/categories/README.textile +0 -0
- data/lib/zen/packages/categories/lib/categories.rb +24 -0
- data/lib/zen/packages/categories/lib/categories/controller/categories.rb +202 -0
- data/lib/zen/packages/categories/lib/categories/controller/category_groups.rb +173 -0
- data/lib/zen/packages/categories/lib/categories/language/en/categories.rb +38 -0
- data/lib/zen/packages/categories/lib/categories/language/en/category_groups.rb +37 -0
- data/lib/zen/packages/categories/lib/categories/model/category.rb +42 -0
- data/lib/zen/packages/categories/lib/categories/model/category_group.rb +29 -0
- data/lib/zen/packages/categories/lib/categories/view/admin/categories/edit.xhtml +7 -0
- data/lib/zen/packages/categories/lib/categories/view/admin/categories/form.xhtml +36 -0
- data/lib/zen/packages/categories/lib/categories/view/admin/categories/index.xhtml +70 -0
- data/lib/zen/packages/categories/lib/categories/view/admin/categories/new.xhtml +7 -0
- data/lib/zen/packages/categories/lib/categories/view/admin/category_groups/edit.xhtml +7 -0
- data/lib/zen/packages/categories/lib/categories/view/admin/category_groups/form.xhtml +18 -0
- data/lib/zen/packages/categories/lib/categories/view/admin/category_groups/index.xhtml +72 -0
- data/lib/zen/packages/categories/lib/categories/view/admin/category_groups/new.xhtml +7 -0
- data/lib/zen/packages/categories/migrations/.gitkeep +0 -0
- data/lib/zen/packages/categories/migrations/1295282303_create_schema.rb +40 -0
- data/lib/zen/packages/comments/LICENSE +19 -0
- data/lib/zen/packages/comments/README.textile +0 -0
- data/lib/zen/packages/comments/lib/comments.rb +26 -0
- data/lib/zen/packages/comments/lib/comments/controller/comments.rb +157 -0
- data/lib/zen/packages/comments/lib/comments/controller/comments_form.rb +135 -0
- data/lib/zen/packages/comments/lib/comments/language/en/comments.rb +52 -0
- data/lib/zen/packages/comments/lib/comments/liquid/comment_form.rb +97 -0
- data/lib/zen/packages/comments/lib/comments/liquid/comments.rb +115 -0
- data/lib/zen/packages/comments/lib/comments/model/comment.rb +34 -0
- data/lib/zen/packages/comments/lib/comments/view/admin/comments/edit.xhtml +7 -0
- data/lib/zen/packages/comments/lib/comments/view/admin/comments/form.xhtml +31 -0
- data/lib/zen/packages/comments/lib/comments/view/admin/comments/index.xhtml +74 -0
- data/lib/zen/packages/comments/migrations/.gitkeep +0 -0
- data/lib/zen/packages/comments/migrations/1295282202_create_schema.rb +24 -0
- data/lib/zen/packages/comments/migrations/1296949631_add_defensio_signature.rb +11 -0
- data/lib/zen/packages/custom_fields/LICENSE +19 -0
- data/lib/zen/packages/custom_fields/README.textile +0 -0
- data/lib/zen/packages/custom_fields/lib/custom_fields.rb +24 -0
- data/lib/zen/packages/custom_fields/lib/custom_fields/controller/custom_field_groups.rb +179 -0
- data/lib/zen/packages/custom_fields/lib/custom_fields/controller/custom_fields.rb +194 -0
- data/lib/zen/packages/custom_fields/lib/custom_fields/language/en/custom_field_groups.rb +45 -0
- data/lib/zen/packages/custom_fields/lib/custom_fields/language/en/custom_fields.rb +64 -0
- data/lib/zen/packages/custom_fields/lib/custom_fields/model/custom_field.rb +41 -0
- data/lib/zen/packages/custom_fields/lib/custom_fields/model/custom_field_group.rb +32 -0
- data/lib/zen/packages/custom_fields/lib/custom_fields/model/custom_field_value.rb +20 -0
- data/lib/zen/packages/custom_fields/lib/custom_fields/view/admin/custom_field_groups/edit.xhtml +7 -0
- data/lib/zen/packages/custom_fields/lib/custom_fields/view/admin/custom_field_groups/form.xhtml +18 -0
- data/lib/zen/packages/custom_fields/lib/custom_fields/view/admin/custom_field_groups/index.xhtml +88 -0
- data/lib/zen/packages/custom_fields/lib/custom_fields/view/admin/custom_field_groups/new.xhtml +7 -0
- data/lib/zen/packages/custom_fields/lib/custom_fields/view/admin/custom_fields/edit.xhtml +7 -0
- data/lib/zen/packages/custom_fields/lib/custom_fields/view/admin/custom_fields/form.xhtml +50 -0
- data/lib/zen/packages/custom_fields/lib/custom_fields/view/admin/custom_fields/index.xhtml +75 -0
- data/lib/zen/packages/custom_fields/lib/custom_fields/view/admin/custom_fields/new.xhtml +7 -0
- data/lib/zen/packages/custom_fields/migrations/.gitkeep +0 -0
- data/lib/zen/packages/custom_fields/migrations/1295255665_create_schema.rb +53 -0
- data/lib/zen/packages/sections/LICENSE +19 -0
- data/lib/zen/packages/sections/README.textile +43 -0
- data/lib/zen/packages/sections/lib/sections.rb +33 -0
- data/lib/zen/packages/sections/lib/sections/controller/section_entries.rb +251 -0
- data/lib/zen/packages/sections/lib/sections/controller/sections.rb +205 -0
- data/lib/zen/packages/sections/lib/sections/language/en/section_entries.rb +58 -0
- data/lib/zen/packages/sections/lib/sections/language/en/sections.rb +63 -0
- data/lib/zen/packages/sections/lib/sections/liquid/section_entries.rb +209 -0
- data/lib/zen/packages/sections/lib/sections/liquid/sections.rb +76 -0
- data/lib/zen/packages/sections/lib/sections/model/section.rb +43 -0
- data/lib/zen/packages/sections/lib/sections/model/section_entry.rb +43 -0
- data/lib/zen/packages/sections/lib/sections/view/admin/edit.xhtml +7 -0
- data/lib/zen/packages/sections/lib/sections/view/admin/form.xhtml +54 -0
- data/lib/zen/packages/sections/lib/sections/view/admin/index.xhtml +77 -0
- data/lib/zen/packages/sections/lib/sections/view/admin/new.xhtml +7 -0
- data/lib/zen/packages/sections/lib/sections/view/admin/section_entries/edit.xhtml +7 -0
- data/lib/zen/packages/sections/lib/sections/view/admin/section_entries/form.xhtml +147 -0
- data/lib/zen/packages/sections/lib/sections/view/admin/section_entries/index.xhtml +74 -0
- data/lib/zen/packages/sections/lib/sections/view/admin/section_entries/new.xhtml +7 -0
- data/lib/zen/packages/sections/migrations/.gitkeep +0 -0
- data/lib/zen/packages/sections/migrations/1295251836_create_schema.rb +35 -0
- data/lib/zen/packages/sections/migrations/1296335671_userdata_section_entries.rb +18 -0
- data/lib/zen/packages/sections/migrations/1296936110_drop_comment_antispam.rb +11 -0
- data/lib/zen/packages/settings/LICENSE +0 -0
- data/lib/zen/packages/settings/README.textile +0 -0
- data/lib/zen/packages/settings/lib/settings.rb +22 -0
- data/lib/zen/packages/settings/lib/settings/controller/settings.rb +113 -0
- data/lib/zen/packages/settings/lib/settings/language/en/settings.rb +56 -0
- data/lib/zen/packages/settings/lib/settings/liquid/setting.rb +56 -0
- data/lib/zen/packages/settings/lib/settings/model/setting.rb +38 -0
- data/lib/zen/packages/settings/lib/settings/view/admin/settings/index.xhtml +79 -0
- data/lib/zen/packages/settings/migrations/.gitkeep +0 -0
- data/lib/zen/packages/settings/migrations/1295597111_create_schema.rb +31 -0
- data/lib/zen/packages/users/LICENSE +19 -0
- data/lib/zen/packages/users/README.textile +0 -0
- data/lib/zen/packages/users/lib/users.rb +35 -0
- data/lib/zen/packages/users/lib/users/controller/access_rules.rb +186 -0
- data/lib/zen/packages/users/lib/users/controller/user_groups.rb +171 -0
- data/lib/zen/packages/users/lib/users/controller/users.rb +240 -0
- data/lib/zen/packages/users/lib/users/language/en/access_rules.rb +49 -0
- data/lib/zen/packages/users/lib/users/language/en/user_groups.rb +42 -0
- data/lib/zen/packages/users/lib/users/language/en/users.rb +63 -0
- data/lib/zen/packages/users/lib/users/liquid/user.rb +75 -0
- data/lib/zen/packages/users/lib/users/liquid/users.rb +80 -0
- data/lib/zen/packages/users/lib/users/model/access_rule.rb +29 -0
- data/lib/zen/packages/users/lib/users/model/user.rb +96 -0
- data/lib/zen/packages/users/lib/users/model/user_group.rb +38 -0
- data/lib/zen/packages/users/lib/users/public/admin/js/users/access_rules.js +43 -0
- data/lib/zen/packages/users/lib/users/view/admin/access_rules/edit.xhtml +7 -0
- data/lib/zen/packages/users/lib/users/view/admin/access_rules/form.xhtml +68 -0
- data/lib/zen/packages/users/lib/users/view/admin/access_rules/index.xhtml +85 -0
- data/lib/zen/packages/users/lib/users/view/admin/access_rules/new.xhtml +7 -0
- data/lib/zen/packages/users/lib/users/view/admin/user_groups/edit.xhtml +7 -0
- data/lib/zen/packages/users/lib/users/view/admin/user_groups/form.xhtml +19 -0
- data/lib/zen/packages/users/lib/users/view/admin/user_groups/index.xhtml +69 -0
- data/lib/zen/packages/users/lib/users/view/admin/user_groups/new.xhtml +7 -0
- data/lib/zen/packages/users/lib/users/view/admin/users/edit.xhtml +7 -0
- data/lib/zen/packages/users/lib/users/view/admin/users/form.xhtml +25 -0
- data/lib/zen/packages/users/lib/users/view/admin/users/index.xhtml +73 -0
- data/lib/zen/packages/users/lib/users/view/admin/users/login.xhtml +22 -0
- data/lib/zen/packages/users/lib/users/view/admin/users/new.xhtml +7 -0
- data/lib/zen/packages/users/migrations/.gitkeep +0 -0
- data/lib/zen/packages/users/migrations/1295281013_create_schema.rb +54 -0
- data/lib/zen/public/admin/css/boilerplate.css +174 -0
- data/lib/zen/public/admin/css/general.css +485 -0
- data/lib/zen/public/admin/css/grid.css +119 -0
- data/lib/zen/public/admin/css/layout.css +111 -0
- data/lib/zen/public/admin/images/general/noise.jpg +0 -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 +436 -0
- data/lib/zen/public/admin/js/mootools/more.js +288 -0
- data/lib/zen/public/admin/js/zen/editor/base.js +265 -0
- data/lib/zen/public/admin/js/zen/editor/drivers/html.js +104 -0
- data/lib/zen/public/admin/js/zen/editor/drivers/markdown.js +102 -0
- data/lib/zen/public/admin/js/zen/editor/drivers/textile.js +102 -0
- data/lib/zen/public/admin/js/zen/init.js +57 -0
- data/lib/zen/public/admin/js/zen/modal.js +159 -0
- data/lib/zen/public/admin/js/zen/notification.js +213 -0
- data/lib/zen/public/admin/js/zen/tabs.js +263 -0
- data/lib/zen/tasks.rb +6 -0
- data/pkg/.gitkeep +0 -0
- data/proto/app/Rakefile +2 -0
- data/proto/app/app.rb +20 -0
- data/proto/app/config.ru +18 -0
- data/proto/app/config/config.rb +17 -0
- data/proto/app/config/database.rb +18 -0
- data/proto/app/config/middlewares.rb +23 -0
- data/proto/app/config/requires.rb +8 -0
- data/proto/app/logs/.gitkeep +0 -0
- data/proto/app/public/.gitkeep +0 -0
- data/proto/app/start.rb +22 -0
- data/proto/app/vendor/.gitkeep +0 -0
- data/proto/app/vendor/themes/.gitkeep +0 -0
- data/proto/migration.rb +11 -0
- data/proto/module/LICENSE +0 -0
- data/proto/module/README.textile +0 -0
- data/proto/module/lib/module.rb +15 -0
- data/proto/module/lib/module/controller/controllers.rb +86 -0
- data/proto/module/lib/module/language/en/languages.rb +3 -0
- data/proto/module/lib/module/model/model.rb +12 -0
- data/proto/module/lib/module/view/admin/edit.xhtml +0 -0
- data/proto/module/lib/module/view/admin/form.xhtml +0 -0
- data/proto/module/lib/module/view/admin/index.xhtml +0 -0
- data/proto/module/lib/module/view/admin/new.xhtml +0 -0
- data/proto/module/migrations/.gitkeep +0 -0
- data/spec/javascript/css/base.css +177 -0
- data/spec/javascript/css/style.css +204 -0
- data/spec/javascript/css/typography.css +70 -0
- data/spec/javascript/editor/index.html +65 -0
- data/spec/javascript/images/close.png +0 -0
- data/spec/javascript/images/info.png +0 -0
- data/spec/javascript/js/editor.js +16 -0
- data/spec/javascript/js/modal.js +12 -0
- data/spec/javascript/js/namespace.js +2 -0
- data/spec/javascript/js/notification.js +43 -0
- data/spec/javascript/js/tabs.js +8 -0
- data/spec/javascript/modal/index.html +45 -0
- data/spec/javascript/notification/index.html +48 -0
- data/spec/javascript/tabs/index.html +73 -0
- data/spec/javascript/tabs/tab_1.html +1 -0
- data/spec/javascript/tabs/tab_2.html +1 -0
- data/spec/zen/base/language.rb +31 -0
- data/spec/zen/base/logger.rb +34 -0
- data/spec/zen/base/package.rb +47 -0
- data/spec/zen/config/database.rb +8 -0
- data/spec/zen/helper/asset.rb +26 -0
- data/spec/zen/helper/breadcrumb.rb +24 -0
- data/spec/zen/language/en/general.rb +4 -0
- data/spec/zen/language/nl/general.rb +4 -0
- data/spec/zen/liquid/general.rb +42 -0
- data/spec/zen/logs/.gitkeep +0 -0
- data/spec/zen/spec.rb +9 -0
- data/spec/zen/spec_database.db +0 -0
- data/tasks/bacon.rake +99 -0
- data/tasks/build.rake +72 -0
- data/tasks/clean.rake +18 -0
- data/tasks/db.rake +81 -0
- data/tasks/doc.rake +5 -0
- data/tasks/extension.rake +65 -0
- data/tasks/proto.rake +37 -0
- data/tasks/theme.rake +63 -0
- metadata +512 -0
data/tasks/build.rake
ADDED
@@ -0,0 +1,72 @@
|
|
1
|
+
require 'fileutils'
|
2
|
+
require 'find'
|
3
|
+
|
4
|
+
namespace :build do
|
5
|
+
|
6
|
+
desc 'Build and install a new version of the Gem.'
|
7
|
+
task :gem do
|
8
|
+
# Get the root directory
|
9
|
+
zen_path = File.expand_path('../../', __FILE__)
|
10
|
+
|
11
|
+
# Build and install the gem
|
12
|
+
sh "gem build #{zen_path}/zen.gemspec"
|
13
|
+
sh "mv #{zen_path}/zen-#{Zen::Version}.gem #{zen_path}/pkg"
|
14
|
+
sh "gem install #{zen_path}/pkg/zen-#{Zen::Version}.gem"
|
15
|
+
end
|
16
|
+
|
17
|
+
desc 'Remove all non-required files and install a new version of the gem.'
|
18
|
+
task :gem_clean do
|
19
|
+
begin
|
20
|
+
sh 'gem uninstall zen'
|
21
|
+
rescue
|
22
|
+
puts "Failed to uninstall the gem, most likely it wasn't installed in the first place."
|
23
|
+
end
|
24
|
+
|
25
|
+
# Remove all logs files
|
26
|
+
log_dirs = Dir.glob(File.expand_path('../../spec/zen/logs/', __FILE__) + '*/*')
|
27
|
+
|
28
|
+
if !log_dirs.empty?
|
29
|
+
log_dirs.each do |dir|
|
30
|
+
# Ignore non-directory files
|
31
|
+
if File.directory?(dir)
|
32
|
+
FileUtils.rm_rf(dir)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
Rake::Task["build:gem"].invoke
|
38
|
+
end
|
39
|
+
|
40
|
+
desc 'Build the MANIFEST file.'
|
41
|
+
task :manifest do
|
42
|
+
|
43
|
+
ignore_exts = ['.gem', '.gemspec']
|
44
|
+
ignore_files = ['.DS_Store', '.gitignore']
|
45
|
+
ignore_dirs = ['.git', '.yardoc', 'spec/zen/logs/common', 'spec/zen/logs/server',
|
46
|
+
'spec/zen/logs/database', 'spec/zen/logs/spec']
|
47
|
+
files = String.new
|
48
|
+
|
49
|
+
Find.find './' do |f|
|
50
|
+
# Ignore directories
|
51
|
+
if !File.directory?(f) and !ignore_exts.include?(File.extname(f)) and !ignore_files.include?(File.basename(f))
|
52
|
+
# Remove the ./ at the front of each filepath
|
53
|
+
f['./'] = ''
|
54
|
+
files += "#{f}\n"
|
55
|
+
else
|
56
|
+
# Get rid of the ./ prefix and prune the current directory tree if it's excluded.
|
57
|
+
f['./'] = ''
|
58
|
+
Find.prune if ignore_dirs.include?(f)
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
# Time to write the MANIFEST file
|
63
|
+
begin
|
64
|
+
handle = File.open 'MANIFEST', 'w'
|
65
|
+
handle.write files.strip
|
66
|
+
abort "The MANIFEST file has been updated."
|
67
|
+
rescue
|
68
|
+
abort "The MANIFEST file could not be written."
|
69
|
+
end
|
70
|
+
|
71
|
+
end
|
72
|
+
end
|
data/tasks/clean.rake
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'fileutils'
|
2
|
+
|
3
|
+
desc "Removes non-required files such as log files."
|
4
|
+
task :clean do
|
5
|
+
|
6
|
+
# Remove all log files
|
7
|
+
puts "Cleaning log files..."
|
8
|
+
log_files = Dir.glob(__DIR__('../spec/zen/logs/**/**/*.log'))
|
9
|
+
log_files.each { |file| File.unlink(file) }
|
10
|
+
|
11
|
+
# Remove the documentation files. They're not required
|
12
|
+
# for developing/hacking with Zen and can be generated manually
|
13
|
+
puts "Cleaning YARD files..."
|
14
|
+
FileUtils.rm_rf(__DIR__('../doc'))
|
15
|
+
FileUtils.rm_rf(__DIR__('../.yardoc'))
|
16
|
+
|
17
|
+
puts "And done!"
|
18
|
+
end
|
data/tasks/db.rake
ADDED
@@ -0,0 +1,81 @@
|
|
1
|
+
Sequel.extension :migration
|
2
|
+
|
3
|
+
namespace :db do
|
4
|
+
|
5
|
+
desc "Install/update all extensions"
|
6
|
+
task :migrate do
|
7
|
+
exts = Zen::Package.extensions
|
8
|
+
|
9
|
+
puts "Migrating..."
|
10
|
+
exts.each do |ident, ext|
|
11
|
+
dir = ext.directory + '/../../migrations'
|
12
|
+
table = ext.identifier.gsub('.', '_').to_sym
|
13
|
+
|
14
|
+
if File.directory?(dir)
|
15
|
+
Zen::Database.handle.transaction do
|
16
|
+
Sequel::Migrator.run Zen::Database.handle, dir, :table => table
|
17
|
+
|
18
|
+
puts "Successfully migrated \"#{ext.name}\""
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
desc "Delete the database"
|
25
|
+
task :delete do
|
26
|
+
exts = Zen::Package.extensions.map { |ident, ext| [ident, ext] }
|
27
|
+
|
28
|
+
exts.reverse.each do |ident, ext|
|
29
|
+
dir = ext.directory + '/../../migrations'
|
30
|
+
table = ext.identifier.gsub('.', '_').to_sym
|
31
|
+
|
32
|
+
if File.directory?(dir)
|
33
|
+
Zen::Database.handle.transaction do
|
34
|
+
puts "Uninstalling \"#{ext.name}\""
|
35
|
+
|
36
|
+
Sequel::Migrator.run Zen::Database.handle, dir, :table => table, :target => 0
|
37
|
+
|
38
|
+
# Remove the migrations table
|
39
|
+
Zen::Database.handle.drop_table table
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
desc "Inserts a new user with a random password"
|
46
|
+
task :user do
|
47
|
+
password = (0..12).map do
|
48
|
+
letter = ('a'..'z').to_a[rand(26)]
|
49
|
+
number = (0..9).to_a[rand(26)]
|
50
|
+
|
51
|
+
letter + number.to_s
|
52
|
+
end.join
|
53
|
+
|
54
|
+
# Only insert the user if it isn't there yet.
|
55
|
+
user = Users::Models::User[:email => 'admin@website.tld']
|
56
|
+
group = Users::Models::UserGroup[:slug => 'administrators']
|
57
|
+
|
58
|
+
if group.nil?
|
59
|
+
group = Users::Models::UserGroup.new(:name => 'Administrators',
|
60
|
+
:slug => 'administrators', :super_group => true).save
|
61
|
+
end
|
62
|
+
|
63
|
+
if !user.nil?
|
64
|
+
abort "The default user has already been inserted."
|
65
|
+
end
|
66
|
+
|
67
|
+
user = Users::Models::User.new(:email => 'admin@website.tld', :name => 'Administrator',
|
68
|
+
:password => password, :status => 'open').save
|
69
|
+
|
70
|
+
user.user_group_pks = [group.id]
|
71
|
+
|
72
|
+
puts "Default administrator account has been created.
|
73
|
+
|
74
|
+
Email: admin@website.tld
|
75
|
+
Passowrd: #{password}
|
76
|
+
|
77
|
+
You can login by going to http://domain.tld/admin/users/login/
|
78
|
+
"
|
79
|
+
end
|
80
|
+
|
81
|
+
end
|
data/tasks/doc.rake
ADDED
@@ -0,0 +1,65 @@
|
|
1
|
+
Sequel.extension :migration
|
2
|
+
|
3
|
+
namespace :extension do
|
4
|
+
|
5
|
+
desc "List all loaded extensions and their details"
|
6
|
+
task :list do
|
7
|
+
Zen::Package.extensions.each do |ident, ext|
|
8
|
+
puts "Name: #{ext.name}"
|
9
|
+
puts "Author: #{ext.author}"
|
10
|
+
puts "Identifier: #{ext.identifier}"
|
11
|
+
puts "--------------"
|
12
|
+
puts ext.about + "\n\n"
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
desc "Migrates a given extension to a certain version number"
|
17
|
+
task :migrate, :version do |task, args|
|
18
|
+
exts = []
|
19
|
+
version = args[:version]
|
20
|
+
|
21
|
+
if !version.nil?
|
22
|
+
version = version.to_i
|
23
|
+
end
|
24
|
+
|
25
|
+
if Zen::Package.extensions.nil? or Zen::Package.extensions.empty?
|
26
|
+
abort "No extensions have been loaded. Be sure to add them to config/requires.rb"
|
27
|
+
end
|
28
|
+
|
29
|
+
Zen::Package.extensions.each do |ident, ext|
|
30
|
+
exts.push(ext)
|
31
|
+
end
|
32
|
+
|
33
|
+
puts "Loaded extensions:"
|
34
|
+
exts.each_with_index do |ext, index|
|
35
|
+
puts "[#{index}] " + ext.name
|
36
|
+
end
|
37
|
+
|
38
|
+
# Get the index
|
39
|
+
print "Extension number: "
|
40
|
+
index = STDIN.gets.strip.to_i
|
41
|
+
|
42
|
+
if !exts[index]
|
43
|
+
abort "The specified extension does not exist"
|
44
|
+
end
|
45
|
+
|
46
|
+
install_ext = exts[index]
|
47
|
+
|
48
|
+
puts "Migrating..."
|
49
|
+
|
50
|
+
dir = install_ext.directory + '/../../migrations'
|
51
|
+
table = install_ext.identifier.gsub('.', '_').to_sym
|
52
|
+
|
53
|
+
if File.directory?(dir)
|
54
|
+
Zen::Database.handle.transaction do
|
55
|
+
Sequel::Migrator.run Zen::Database.handle, dir, :table => table, :target => version
|
56
|
+
|
57
|
+
if version == 0
|
58
|
+
# Remove the migrations table
|
59
|
+
Zen::Database.handle.drop_table table
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
end
|
data/tasks/proto.rake
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
|
2
|
+
namespace :proto do
|
3
|
+
|
4
|
+
desc "Generate a new migration and save it in the specified directory"
|
5
|
+
task :migration, :directory do |task, args|
|
6
|
+
dir = args[:directory]
|
7
|
+
|
8
|
+
# Get the name
|
9
|
+
print "Migration name: "
|
10
|
+
name = STDIN.gets.strip
|
11
|
+
|
12
|
+
# If no directory is specified we'll store the migrations under ./migrations
|
13
|
+
if dir.nil? or dir == ''
|
14
|
+
if !File.directory?('./migrations')
|
15
|
+
abort "No directory specified and ./migrations doesn't exist"
|
16
|
+
else
|
17
|
+
dir = './migrations'
|
18
|
+
puts "Using ./migrations"
|
19
|
+
end
|
20
|
+
else
|
21
|
+
puts "Using #{dir}"
|
22
|
+
end
|
23
|
+
|
24
|
+
# Generate the prototype
|
25
|
+
puts "Generating..."
|
26
|
+
|
27
|
+
proto = File.open(__DIR__('../proto/migration.rb'), 'r').read
|
28
|
+
path = "#{dir}/#{Time.new.to_i}_#{name}.rb"
|
29
|
+
|
30
|
+
begin
|
31
|
+
File.open(path, 'w').write(proto)
|
32
|
+
puts "Done!"
|
33
|
+
rescue => e
|
34
|
+
puts "Failed to generate the migration: #{e}"
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
data/tasks/theme.rake
ADDED
@@ -0,0 +1,63 @@
|
|
1
|
+
namespace :theme do
|
2
|
+
|
3
|
+
desc "List all loaded themes"
|
4
|
+
task :list do
|
5
|
+
Zen::Package.themes.each do |ident, ext|
|
6
|
+
puts "Name: #{ext.name}"
|
7
|
+
puts "Author: #{ext.author}"
|
8
|
+
puts "Identifier: #{ext.identifier}"
|
9
|
+
puts "--------------"
|
10
|
+
puts ext.about + "\n\n"
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
desc "Migrate an installed theme to the specified version"
|
15
|
+
task :migrate, :version do |task, args|
|
16
|
+
themes = []
|
17
|
+
|
18
|
+
if !args[:version].nil?
|
19
|
+
version = args[:version].to_i
|
20
|
+
else
|
21
|
+
version = nil
|
22
|
+
end
|
23
|
+
|
24
|
+
if Zen::Package.themes.nil? or Zen::Package.themes.empty?
|
25
|
+
abort "No themes have been loaded. Be sure to add them to config/requires.rb"
|
26
|
+
end
|
27
|
+
|
28
|
+
Zen::Package.themes.each do |ident, t|
|
29
|
+
themes.push(t)
|
30
|
+
end
|
31
|
+
|
32
|
+
puts "Loaded themes:"
|
33
|
+
themes.each_with_index do |t, index|
|
34
|
+
puts "[#{index}] " + t.name
|
35
|
+
end
|
36
|
+
|
37
|
+
# Get the index
|
38
|
+
print "Theme number: "
|
39
|
+
index = STDIN.gets.strip.to_i
|
40
|
+
|
41
|
+
if !themes[index]
|
42
|
+
abort "The specified theme does not exist"
|
43
|
+
end
|
44
|
+
|
45
|
+
install_theme = themes[index]
|
46
|
+
|
47
|
+
puts "Migrating..."
|
48
|
+
|
49
|
+
dir = install_theme.directory + '/../../migrations'
|
50
|
+
table = install_theme.identifier.gsub('.', '_').to_sym
|
51
|
+
|
52
|
+
if File.directory?(dir)
|
53
|
+
Zen::Database.handle.transaction do
|
54
|
+
Sequel::Migrator.run(Zen::Database.handle, dir, :table => table, :target => version)
|
55
|
+
|
56
|
+
if version == 0
|
57
|
+
# Remove the migrations table
|
58
|
+
Zen::Database.handle.drop_table table
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
metadata
ADDED
@@ -0,0 +1,512 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: zen
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: 3
|
5
|
+
version: 0.1a
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Yorick Peterse
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
|
13
|
+
date: 2011-02-06 00:00:00 +01:00
|
14
|
+
default_executable:
|
15
|
+
dependencies:
|
16
|
+
- !ruby/object:Gem::Dependency
|
17
|
+
name: sequel
|
18
|
+
prerelease: false
|
19
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
20
|
+
none: false
|
21
|
+
requirements:
|
22
|
+
- - ">="
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: "0"
|
25
|
+
type: :runtime
|
26
|
+
version_requirements: *id001
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: ramaze
|
29
|
+
prerelease: false
|
30
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
31
|
+
none: false
|
32
|
+
requirements:
|
33
|
+
- - ">="
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: "0"
|
36
|
+
type: :runtime
|
37
|
+
version_requirements: *id002
|
38
|
+
- !ruby/object:Gem::Dependency
|
39
|
+
name: bcrypt-ruby
|
40
|
+
prerelease: false
|
41
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
43
|
+
requirements:
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: "0"
|
47
|
+
type: :runtime
|
48
|
+
version_requirements: *id003
|
49
|
+
- !ruby/object:Gem::Dependency
|
50
|
+
name: liquid
|
51
|
+
prerelease: false
|
52
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
53
|
+
none: false
|
54
|
+
requirements:
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: "0"
|
58
|
+
type: :runtime
|
59
|
+
version_requirements: *id004
|
60
|
+
- !ruby/object:Gem::Dependency
|
61
|
+
name: json
|
62
|
+
prerelease: false
|
63
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
64
|
+
none: false
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: "0"
|
69
|
+
type: :runtime
|
70
|
+
version_requirements: *id005
|
71
|
+
- !ruby/object:Gem::Dependency
|
72
|
+
name: RedCloth
|
73
|
+
prerelease: false
|
74
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
75
|
+
none: false
|
76
|
+
requirements:
|
77
|
+
- - ">="
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: "0"
|
80
|
+
type: :runtime
|
81
|
+
version_requirements: *id006
|
82
|
+
- !ruby/object:Gem::Dependency
|
83
|
+
name: rdiscount
|
84
|
+
prerelease: false
|
85
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
86
|
+
none: false
|
87
|
+
requirements:
|
88
|
+
- - ">="
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: "0"
|
91
|
+
type: :runtime
|
92
|
+
version_requirements: *id007
|
93
|
+
- !ruby/object:Gem::Dependency
|
94
|
+
name: thor
|
95
|
+
prerelease: false
|
96
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ">="
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: "0"
|
102
|
+
type: :runtime
|
103
|
+
version_requirements: *id008
|
104
|
+
- !ruby/object:Gem::Dependency
|
105
|
+
name: rake
|
106
|
+
prerelease: false
|
107
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
108
|
+
none: false
|
109
|
+
requirements:
|
110
|
+
- - ">="
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: "0"
|
113
|
+
type: :runtime
|
114
|
+
version_requirements: *id009
|
115
|
+
- !ruby/object:Gem::Dependency
|
116
|
+
name: defensio
|
117
|
+
prerelease: false
|
118
|
+
requirement: &id010 !ruby/object:Gem::Requirement
|
119
|
+
none: false
|
120
|
+
requirements:
|
121
|
+
- - ">="
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: "0"
|
124
|
+
type: :runtime
|
125
|
+
version_requirements: *id010
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: sequel_sluggable
|
128
|
+
prerelease: false
|
129
|
+
requirement: &id011 !ruby/object:Gem::Requirement
|
130
|
+
none: false
|
131
|
+
requirements:
|
132
|
+
- - ">="
|
133
|
+
- !ruby/object:Gem::Version
|
134
|
+
version: "0"
|
135
|
+
type: :runtime
|
136
|
+
version_requirements: *id011
|
137
|
+
description: Zen is a fully modular CMS written using Ramaze. Unlike traditional Content Management Systems you are completely free to build whatever you want.
|
138
|
+
email: info@yorickpeterse.com
|
139
|
+
executables:
|
140
|
+
- zen
|
141
|
+
extensions: []
|
142
|
+
|
143
|
+
extra_rdoc_files: []
|
144
|
+
|
145
|
+
files:
|
146
|
+
- LICENSE
|
147
|
+
- MANIFEST
|
148
|
+
- README.textile
|
149
|
+
- Rakefile
|
150
|
+
- bin/zen
|
151
|
+
- doc/Categories/Controllers/Categories.html
|
152
|
+
- doc/Categories/Controllers/CategoryGroups.html
|
153
|
+
- doc/Categories/Controllers.html
|
154
|
+
- doc/Categories/Models/Category.html
|
155
|
+
- doc/Categories/Models/CategoryGroup.html
|
156
|
+
- doc/Categories/Models.html
|
157
|
+
- doc/Categories.html
|
158
|
+
- doc/Comments/Controllers/Comments.html
|
159
|
+
- doc/Comments/Controllers/CommentsForm.html
|
160
|
+
- doc/Comments/Controllers.html
|
161
|
+
- doc/Comments/Liquid/CommentForm.html
|
162
|
+
- doc/Comments/Liquid/Comments.html
|
163
|
+
- doc/Comments/Liquid.html
|
164
|
+
- doc/Comments/Models/Comment.html
|
165
|
+
- doc/Comments/Models.html
|
166
|
+
- doc/Comments.html
|
167
|
+
- doc/CustomFields/Controllers/CustomFieldGroups.html
|
168
|
+
- doc/CustomFields/Controllers/CustomFields.html
|
169
|
+
- doc/CustomFields/Controllers.html
|
170
|
+
- doc/CustomFields/Models/CustomField.html
|
171
|
+
- doc/CustomFields/Models/CustomFieldGroup.html
|
172
|
+
- doc/CustomFields/Models/CustomFieldValue.html
|
173
|
+
- doc/CustomFields/Models.html
|
174
|
+
- doc/CustomFields.html
|
175
|
+
- doc/Ramaze/Helper/ACL.html
|
176
|
+
- doc/Ramaze/Helper/Asset.html
|
177
|
+
- doc/Ramaze/Helper/Breadcrumb.html
|
178
|
+
- doc/Ramaze/Helper/Common.html
|
179
|
+
- doc/Ramaze/Helper.html
|
180
|
+
- doc/Ramaze.html
|
181
|
+
- doc/Sections/Controllers/SectionEntries.html
|
182
|
+
- doc/Sections/Controllers/Sections.html
|
183
|
+
- doc/Sections/Controllers.html
|
184
|
+
- doc/Sections/Liquid/SectionEntries.html
|
185
|
+
- doc/Sections/Liquid/Sections.html
|
186
|
+
- doc/Sections/Liquid.html
|
187
|
+
- doc/Sections/Models/Section.html
|
188
|
+
- doc/Sections/Models/SectionEntry.html
|
189
|
+
- doc/Sections/Models.html
|
190
|
+
- doc/Sections.html
|
191
|
+
- doc/Sequel/Model.html
|
192
|
+
- doc/Sequel.html
|
193
|
+
- doc/Settings/Controllers/Settings.html
|
194
|
+
- doc/Settings/Controllers.html
|
195
|
+
- doc/Settings/Liquid/Setting.html
|
196
|
+
- doc/Settings/Liquid.html
|
197
|
+
- doc/Settings/Models/Setting.html
|
198
|
+
- doc/Settings/Models.html
|
199
|
+
- doc/Settings.html
|
200
|
+
- doc/Users/Controllers/AccessRules.html
|
201
|
+
- doc/Users/Controllers/UserGroups.html
|
202
|
+
- doc/Users/Controllers/Users.html
|
203
|
+
- doc/Users/Controllers.html
|
204
|
+
- doc/Users/Liquid/User.html
|
205
|
+
- doc/Users/Liquid/Users.html
|
206
|
+
- doc/Users/Liquid.html
|
207
|
+
- doc/Users/Models/AccessRule.html
|
208
|
+
- doc/Users/Models/User.html
|
209
|
+
- doc/Users/Models/UserGroup.html
|
210
|
+
- doc/Users/Models.html
|
211
|
+
- doc/Users.html
|
212
|
+
- doc/Zen/Bin/Base.html
|
213
|
+
- doc/Zen/Bin.html
|
214
|
+
- doc/Zen/Controllers/AdminController.html
|
215
|
+
- doc/Zen/Controllers/BaseController.html
|
216
|
+
- doc/Zen/Controllers/FrontendController.html
|
217
|
+
- doc/Zen/Controllers/MainController.html
|
218
|
+
- doc/Zen/Controllers.html
|
219
|
+
- doc/Zen/Database.html
|
220
|
+
- doc/Zen/Language.html
|
221
|
+
- doc/Zen/Liquid/ControllerBehavior.html
|
222
|
+
- doc/Zen/Liquid/General.html
|
223
|
+
- doc/Zen/Liquid/Redirect.html
|
224
|
+
- doc/Zen/Liquid/Strip.html
|
225
|
+
- doc/Zen/Liquid.html
|
226
|
+
- doc/Zen/Logger.html
|
227
|
+
- doc/Zen/Package.html
|
228
|
+
- doc/Zen.html
|
229
|
+
- doc/_index.html
|
230
|
+
- doc/class_list.html
|
231
|
+
- doc/css/common.css
|
232
|
+
- doc/css/full_list.css
|
233
|
+
- doc/css/style.css
|
234
|
+
- doc/file.README.html
|
235
|
+
- doc/file_list.html
|
236
|
+
- doc/frames.html
|
237
|
+
- doc/index.html
|
238
|
+
- doc/js/app.js
|
239
|
+
- doc/js/full_list.js
|
240
|
+
- doc/js/jquery.js
|
241
|
+
- doc/method_list.html
|
242
|
+
- doc/top-level-namespace.html
|
243
|
+
- lib/zen/base/database.rb
|
244
|
+
- lib/zen/base/language.rb
|
245
|
+
- lib/zen/base/logger.rb
|
246
|
+
- lib/zen/base/package.rb
|
247
|
+
- lib/zen/base/version.rb
|
248
|
+
- lib/zen/bin/zen_binary.rb
|
249
|
+
- lib/zen/controller/admin_controller.rb
|
250
|
+
- lib/zen/controller/base_controller.rb
|
251
|
+
- lib/zen/controller/frontend_controller.rb
|
252
|
+
- lib/zen/controller/main_controller.rb
|
253
|
+
- lib/zen/helper/acl.rb
|
254
|
+
- lib/zen/helper/asset.rb
|
255
|
+
- lib/zen/helper/breadcrumb.rb
|
256
|
+
- lib/zen/helper/common.rb
|
257
|
+
- lib/zen/language/en/zen_general.rb
|
258
|
+
- lib/zen/language/en/zen_models.rb
|
259
|
+
- lib/zen/layout/admin.xhtml
|
260
|
+
- lib/zen/layout/login.xhtml
|
261
|
+
- lib/zen/liquid/controller_behavior.rb
|
262
|
+
- lib/zen/liquid/general.rb
|
263
|
+
- lib/zen/liquid/redirect.rb
|
264
|
+
- lib/zen/liquid/strip.rb
|
265
|
+
- lib/zen/model/methods.rb
|
266
|
+
- lib/zen/model/settings.rb
|
267
|
+
- lib/zen/packages/categories/LICENSE
|
268
|
+
- lib/zen/packages/categories/README.textile
|
269
|
+
- lib/zen/packages/categories/lib/categories/controller/categories.rb
|
270
|
+
- lib/zen/packages/categories/lib/categories/controller/category_groups.rb
|
271
|
+
- lib/zen/packages/categories/lib/categories/language/en/categories.rb
|
272
|
+
- lib/zen/packages/categories/lib/categories/language/en/category_groups.rb
|
273
|
+
- lib/zen/packages/categories/lib/categories/model/category.rb
|
274
|
+
- lib/zen/packages/categories/lib/categories/model/category_group.rb
|
275
|
+
- lib/zen/packages/categories/lib/categories/view/admin/categories/edit.xhtml
|
276
|
+
- lib/zen/packages/categories/lib/categories/view/admin/categories/form.xhtml
|
277
|
+
- lib/zen/packages/categories/lib/categories/view/admin/categories/index.xhtml
|
278
|
+
- lib/zen/packages/categories/lib/categories/view/admin/categories/new.xhtml
|
279
|
+
- lib/zen/packages/categories/lib/categories/view/admin/category_groups/edit.xhtml
|
280
|
+
- lib/zen/packages/categories/lib/categories/view/admin/category_groups/form.xhtml
|
281
|
+
- lib/zen/packages/categories/lib/categories/view/admin/category_groups/index.xhtml
|
282
|
+
- lib/zen/packages/categories/lib/categories/view/admin/category_groups/new.xhtml
|
283
|
+
- lib/zen/packages/categories/lib/categories.rb
|
284
|
+
- lib/zen/packages/categories/migrations/.gitkeep
|
285
|
+
- lib/zen/packages/categories/migrations/1295282303_create_schema.rb
|
286
|
+
- lib/zen/packages/comments/LICENSE
|
287
|
+
- lib/zen/packages/comments/README.textile
|
288
|
+
- lib/zen/packages/comments/lib/comments/controller/comments.rb
|
289
|
+
- lib/zen/packages/comments/lib/comments/controller/comments_form.rb
|
290
|
+
- lib/zen/packages/comments/lib/comments/language/en/comments.rb
|
291
|
+
- lib/zen/packages/comments/lib/comments/liquid/comment_form.rb
|
292
|
+
- lib/zen/packages/comments/lib/comments/liquid/comments.rb
|
293
|
+
- lib/zen/packages/comments/lib/comments/model/comment.rb
|
294
|
+
- lib/zen/packages/comments/lib/comments/view/admin/comments/edit.xhtml
|
295
|
+
- lib/zen/packages/comments/lib/comments/view/admin/comments/form.xhtml
|
296
|
+
- lib/zen/packages/comments/lib/comments/view/admin/comments/index.xhtml
|
297
|
+
- lib/zen/packages/comments/lib/comments.rb
|
298
|
+
- lib/zen/packages/comments/migrations/.gitkeep
|
299
|
+
- lib/zen/packages/comments/migrations/1295282202_create_schema.rb
|
300
|
+
- lib/zen/packages/comments/migrations/1296949631_add_defensio_signature.rb
|
301
|
+
- lib/zen/packages/custom_fields/LICENSE
|
302
|
+
- lib/zen/packages/custom_fields/README.textile
|
303
|
+
- lib/zen/packages/custom_fields/lib/custom_fields/controller/custom_field_groups.rb
|
304
|
+
- lib/zen/packages/custom_fields/lib/custom_fields/controller/custom_fields.rb
|
305
|
+
- lib/zen/packages/custom_fields/lib/custom_fields/language/en/custom_field_groups.rb
|
306
|
+
- lib/zen/packages/custom_fields/lib/custom_fields/language/en/custom_fields.rb
|
307
|
+
- lib/zen/packages/custom_fields/lib/custom_fields/model/custom_field.rb
|
308
|
+
- lib/zen/packages/custom_fields/lib/custom_fields/model/custom_field_group.rb
|
309
|
+
- lib/zen/packages/custom_fields/lib/custom_fields/model/custom_field_value.rb
|
310
|
+
- lib/zen/packages/custom_fields/lib/custom_fields/view/admin/custom_field_groups/edit.xhtml
|
311
|
+
- lib/zen/packages/custom_fields/lib/custom_fields/view/admin/custom_field_groups/form.xhtml
|
312
|
+
- lib/zen/packages/custom_fields/lib/custom_fields/view/admin/custom_field_groups/index.xhtml
|
313
|
+
- lib/zen/packages/custom_fields/lib/custom_fields/view/admin/custom_field_groups/new.xhtml
|
314
|
+
- lib/zen/packages/custom_fields/lib/custom_fields/view/admin/custom_fields/edit.xhtml
|
315
|
+
- lib/zen/packages/custom_fields/lib/custom_fields/view/admin/custom_fields/form.xhtml
|
316
|
+
- lib/zen/packages/custom_fields/lib/custom_fields/view/admin/custom_fields/index.xhtml
|
317
|
+
- lib/zen/packages/custom_fields/lib/custom_fields/view/admin/custom_fields/new.xhtml
|
318
|
+
- lib/zen/packages/custom_fields/lib/custom_fields.rb
|
319
|
+
- lib/zen/packages/custom_fields/migrations/.gitkeep
|
320
|
+
- lib/zen/packages/custom_fields/migrations/1295255665_create_schema.rb
|
321
|
+
- lib/zen/packages/sections/LICENSE
|
322
|
+
- lib/zen/packages/sections/README.textile
|
323
|
+
- lib/zen/packages/sections/lib/sections/controller/section_entries.rb
|
324
|
+
- lib/zen/packages/sections/lib/sections/controller/sections.rb
|
325
|
+
- lib/zen/packages/sections/lib/sections/language/en/section_entries.rb
|
326
|
+
- lib/zen/packages/sections/lib/sections/language/en/sections.rb
|
327
|
+
- lib/zen/packages/sections/lib/sections/liquid/section_entries.rb
|
328
|
+
- lib/zen/packages/sections/lib/sections/liquid/sections.rb
|
329
|
+
- lib/zen/packages/sections/lib/sections/model/section.rb
|
330
|
+
- lib/zen/packages/sections/lib/sections/model/section_entry.rb
|
331
|
+
- lib/zen/packages/sections/lib/sections/view/admin/edit.xhtml
|
332
|
+
- lib/zen/packages/sections/lib/sections/view/admin/form.xhtml
|
333
|
+
- lib/zen/packages/sections/lib/sections/view/admin/index.xhtml
|
334
|
+
- lib/zen/packages/sections/lib/sections/view/admin/new.xhtml
|
335
|
+
- lib/zen/packages/sections/lib/sections/view/admin/section_entries/edit.xhtml
|
336
|
+
- lib/zen/packages/sections/lib/sections/view/admin/section_entries/form.xhtml
|
337
|
+
- lib/zen/packages/sections/lib/sections/view/admin/section_entries/index.xhtml
|
338
|
+
- lib/zen/packages/sections/lib/sections/view/admin/section_entries/new.xhtml
|
339
|
+
- lib/zen/packages/sections/lib/sections.rb
|
340
|
+
- lib/zen/packages/sections/migrations/.gitkeep
|
341
|
+
- lib/zen/packages/sections/migrations/1295251836_create_schema.rb
|
342
|
+
- lib/zen/packages/sections/migrations/1296335671_userdata_section_entries.rb
|
343
|
+
- lib/zen/packages/sections/migrations/1296936110_drop_comment_antispam.rb
|
344
|
+
- lib/zen/packages/settings/LICENSE
|
345
|
+
- lib/zen/packages/settings/README.textile
|
346
|
+
- lib/zen/packages/settings/lib/settings/controller/settings.rb
|
347
|
+
- lib/zen/packages/settings/lib/settings/language/en/settings.rb
|
348
|
+
- lib/zen/packages/settings/lib/settings/liquid/setting.rb
|
349
|
+
- lib/zen/packages/settings/lib/settings/model/setting.rb
|
350
|
+
- lib/zen/packages/settings/lib/settings/view/admin/settings/index.xhtml
|
351
|
+
- lib/zen/packages/settings/lib/settings.rb
|
352
|
+
- lib/zen/packages/settings/migrations/.gitkeep
|
353
|
+
- lib/zen/packages/settings/migrations/1295597111_create_schema.rb
|
354
|
+
- lib/zen/packages/users/LICENSE
|
355
|
+
- lib/zen/packages/users/README.textile
|
356
|
+
- lib/zen/packages/users/lib/users/controller/access_rules.rb
|
357
|
+
- lib/zen/packages/users/lib/users/controller/user_groups.rb
|
358
|
+
- lib/zen/packages/users/lib/users/controller/users.rb
|
359
|
+
- lib/zen/packages/users/lib/users/language/en/access_rules.rb
|
360
|
+
- lib/zen/packages/users/lib/users/language/en/user_groups.rb
|
361
|
+
- lib/zen/packages/users/lib/users/language/en/users.rb
|
362
|
+
- lib/zen/packages/users/lib/users/liquid/user.rb
|
363
|
+
- lib/zen/packages/users/lib/users/liquid/users.rb
|
364
|
+
- lib/zen/packages/users/lib/users/model/access_rule.rb
|
365
|
+
- lib/zen/packages/users/lib/users/model/user.rb
|
366
|
+
- lib/zen/packages/users/lib/users/model/user_group.rb
|
367
|
+
- lib/zen/packages/users/lib/users/public/admin/js/users/access_rules.js
|
368
|
+
- lib/zen/packages/users/lib/users/view/admin/access_rules/edit.xhtml
|
369
|
+
- lib/zen/packages/users/lib/users/view/admin/access_rules/form.xhtml
|
370
|
+
- lib/zen/packages/users/lib/users/view/admin/access_rules/index.xhtml
|
371
|
+
- lib/zen/packages/users/lib/users/view/admin/access_rules/new.xhtml
|
372
|
+
- lib/zen/packages/users/lib/users/view/admin/user_groups/edit.xhtml
|
373
|
+
- lib/zen/packages/users/lib/users/view/admin/user_groups/form.xhtml
|
374
|
+
- lib/zen/packages/users/lib/users/view/admin/user_groups/index.xhtml
|
375
|
+
- lib/zen/packages/users/lib/users/view/admin/user_groups/new.xhtml
|
376
|
+
- lib/zen/packages/users/lib/users/view/admin/users/edit.xhtml
|
377
|
+
- lib/zen/packages/users/lib/users/view/admin/users/form.xhtml
|
378
|
+
- lib/zen/packages/users/lib/users/view/admin/users/index.xhtml
|
379
|
+
- lib/zen/packages/users/lib/users/view/admin/users/login.xhtml
|
380
|
+
- lib/zen/packages/users/lib/users/view/admin/users/new.xhtml
|
381
|
+
- lib/zen/packages/users/lib/users.rb
|
382
|
+
- lib/zen/packages/users/migrations/.gitkeep
|
383
|
+
- lib/zen/packages/users/migrations/1295281013_create_schema.rb
|
384
|
+
- lib/zen/public/admin/css/boilerplate.css
|
385
|
+
- lib/zen/public/admin/css/general.css
|
386
|
+
- lib/zen/public/admin/css/grid.css
|
387
|
+
- lib/zen/public/admin/css/layout.css
|
388
|
+
- lib/zen/public/admin/images/general/noise.jpg
|
389
|
+
- lib/zen/public/admin/images/icons/accept.png
|
390
|
+
- lib/zen/public/admin/images/icons/add.png
|
391
|
+
- lib/zen/public/admin/images/icons/back.png
|
392
|
+
- lib/zen/public/admin/images/icons/bold.png
|
393
|
+
- lib/zen/public/admin/images/icons/close.png
|
394
|
+
- lib/zen/public/admin/images/icons/delete.png
|
395
|
+
- lib/zen/public/admin/images/icons/edit.png
|
396
|
+
- lib/zen/public/admin/images/icons/error.png
|
397
|
+
- lib/zen/public/admin/images/icons/help.png
|
398
|
+
- lib/zen/public/admin/images/icons/info.png
|
399
|
+
- lib/zen/public/admin/images/icons/italic.png
|
400
|
+
- lib/zen/public/admin/images/icons/large/error.png
|
401
|
+
- lib/zen/public/admin/images/icons/large/notice.png
|
402
|
+
- lib/zen/public/admin/images/icons/large/success.png
|
403
|
+
- lib/zen/public/admin/images/icons/link.png
|
404
|
+
- lib/zen/public/admin/images/icons/logout.png
|
405
|
+
- lib/zen/public/admin/images/icons/ol.png
|
406
|
+
- lib/zen/public/admin/images/icons/pdf.png
|
407
|
+
- lib/zen/public/admin/images/icons/ul.png
|
408
|
+
- lib/zen/public/admin/images/icons/user.png
|
409
|
+
- lib/zen/public/admin/images/icons/view.png
|
410
|
+
- lib/zen/public/admin/js/mootools/core.js
|
411
|
+
- lib/zen/public/admin/js/mootools/more.js
|
412
|
+
- lib/zen/public/admin/js/zen/editor/base.js
|
413
|
+
- lib/zen/public/admin/js/zen/editor/drivers/html.js
|
414
|
+
- lib/zen/public/admin/js/zen/editor/drivers/markdown.js
|
415
|
+
- lib/zen/public/admin/js/zen/editor/drivers/textile.js
|
416
|
+
- lib/zen/public/admin/js/zen/init.js
|
417
|
+
- lib/zen/public/admin/js/zen/modal.js
|
418
|
+
- lib/zen/public/admin/js/zen/notification.js
|
419
|
+
- lib/zen/public/admin/js/zen/tabs.js
|
420
|
+
- lib/zen/tasks.rb
|
421
|
+
- lib/zen.rb
|
422
|
+
- pkg/.gitkeep
|
423
|
+
- proto/app/Rakefile
|
424
|
+
- proto/app/app.rb
|
425
|
+
- proto/app/config/config.rb
|
426
|
+
- proto/app/config/database.rb
|
427
|
+
- proto/app/config/middlewares.rb
|
428
|
+
- proto/app/config/requires.rb
|
429
|
+
- proto/app/config.ru
|
430
|
+
- proto/app/logs/.gitkeep
|
431
|
+
- proto/app/public/.gitkeep
|
432
|
+
- proto/app/start.rb
|
433
|
+
- proto/app/vendor/.gitkeep
|
434
|
+
- proto/app/vendor/themes/.gitkeep
|
435
|
+
- proto/migration.rb
|
436
|
+
- proto/module/LICENSE
|
437
|
+
- proto/module/README.textile
|
438
|
+
- proto/module/lib/module/controller/controllers.rb
|
439
|
+
- proto/module/lib/module/language/en/languages.rb
|
440
|
+
- proto/module/lib/module/model/model.rb
|
441
|
+
- proto/module/lib/module/view/admin/edit.xhtml
|
442
|
+
- proto/module/lib/module/view/admin/form.xhtml
|
443
|
+
- proto/module/lib/module/view/admin/index.xhtml
|
444
|
+
- proto/module/lib/module/view/admin/new.xhtml
|
445
|
+
- proto/module/lib/module.rb
|
446
|
+
- proto/module/migrations/.gitkeep
|
447
|
+
- spec/javascript/css/base.css
|
448
|
+
- spec/javascript/css/style.css
|
449
|
+
- spec/javascript/css/typography.css
|
450
|
+
- spec/javascript/editor/index.html
|
451
|
+
- spec/javascript/images/close.png
|
452
|
+
- spec/javascript/images/info.png
|
453
|
+
- spec/javascript/js/editor.js
|
454
|
+
- spec/javascript/js/modal.js
|
455
|
+
- spec/javascript/js/namespace.js
|
456
|
+
- spec/javascript/js/notification.js
|
457
|
+
- spec/javascript/js/tabs.js
|
458
|
+
- spec/javascript/modal/index.html
|
459
|
+
- spec/javascript/notification/index.html
|
460
|
+
- spec/javascript/tabs/index.html
|
461
|
+
- spec/javascript/tabs/tab_1.html
|
462
|
+
- spec/javascript/tabs/tab_2.html
|
463
|
+
- spec/zen/base/language.rb
|
464
|
+
- spec/zen/base/logger.rb
|
465
|
+
- spec/zen/base/package.rb
|
466
|
+
- spec/zen/config/database.rb
|
467
|
+
- spec/zen/helper/asset.rb
|
468
|
+
- spec/zen/helper/breadcrumb.rb
|
469
|
+
- spec/zen/language/en/general.rb
|
470
|
+
- spec/zen/language/nl/general.rb
|
471
|
+
- spec/zen/liquid/general.rb
|
472
|
+
- spec/zen/logs/.gitkeep
|
473
|
+
- spec/zen/spec.rb
|
474
|
+
- spec/zen/spec_database.db
|
475
|
+
- tasks/bacon.rake
|
476
|
+
- tasks/build.rake
|
477
|
+
- tasks/clean.rake
|
478
|
+
- tasks/db.rake
|
479
|
+
- tasks/doc.rake
|
480
|
+
- tasks/extension.rake
|
481
|
+
- tasks/proto.rake
|
482
|
+
- tasks/theme.rake
|
483
|
+
has_rdoc: yard
|
484
|
+
homepage: http://zen-cms.com/
|
485
|
+
licenses: []
|
486
|
+
|
487
|
+
post_install_message:
|
488
|
+
rdoc_options: []
|
489
|
+
|
490
|
+
require_paths:
|
491
|
+
- lib
|
492
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
493
|
+
none: false
|
494
|
+
requirements:
|
495
|
+
- - ">="
|
496
|
+
- !ruby/object:Gem::Version
|
497
|
+
version: "0"
|
498
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
499
|
+
none: false
|
500
|
+
requirements:
|
501
|
+
- - ">"
|
502
|
+
- !ruby/object:Gem::Version
|
503
|
+
version: 1.3.1
|
504
|
+
requirements: []
|
505
|
+
|
506
|
+
rubyforge_project:
|
507
|
+
rubygems_version: 1.5.0
|
508
|
+
signing_key:
|
509
|
+
specification_version: 3
|
510
|
+
summary: Zen is a fully modular CMS written using Ramaze.
|
511
|
+
test_files: []
|
512
|
+
|