lc_alchemy_cms 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.editorconfig +23 -0
- data/.gitignore +21 -0
- data/.hound.yml +2 -0
- data/.rspec +1 -0
- data/.rubocop.yml +861 -0
- data/.teatro.yml +7 -0
- data/.travis.yml +27 -0
- data/.yardopts +5 -0
- data/CODE_OF_CONDUCT.md +13 -0
- data/CONTRIBUTING.md +73 -0
- data/Gemfile +34 -0
- data/LICENSE +27 -0
- data/README.md +297 -0
- data/Rakefile +48 -0
- data/alchemy_cms.gemspec +81 -0
- data/app/assets/fonts/alchemy/icons.eot +0 -0
- data/app/assets/fonts/alchemy/icons.svg +71 -0
- data/app/assets/fonts/alchemy/icons.ttf +0 -0
- data/app/assets/fonts/alchemy/icons.woff +0 -0
- data/app/assets/images/alchemy/alchemy-logo.svg +70 -0
- data/app/assets/images/alchemy/favicon.ico +0 -0
- data/app/assets/images/alchemy/icon.svg +14 -0
- data/app/assets/images/alchemy/icons.png +0 -0
- data/app/assets/images/alchemy/lupe.cur +0 -0
- data/app/assets/images/alchemy/ui-icons_666666_256x240.png +0 -0
- data/app/assets/images/sassy-ie-overlay.png +0 -0
- data/app/assets/javascripts/alchemy/alchemy.autocomplete.js.coffee +30 -0
- data/app/assets/javascripts/alchemy/alchemy.base.js.coffee +142 -0
- data/app/assets/javascripts/alchemy/alchemy.browser.js.coffee +22 -0
- data/app/assets/javascripts/alchemy/alchemy.buttons.js.coffee +32 -0
- data/app/assets/javascripts/alchemy/alchemy.char_counter.js.coffee +19 -0
- data/app/assets/javascripts/alchemy/alchemy.confirm_dialog.js.coffee +85 -0
- data/app/assets/javascripts/alchemy/alchemy.custom.js +1 -0
- data/app/assets/javascripts/alchemy/alchemy.datepicker.js.coffee +31 -0
- data/app/assets/javascripts/alchemy/alchemy.dialog.js.coffee +266 -0
- data/app/assets/javascripts/alchemy/alchemy.dirty.js.coffee +70 -0
- data/app/assets/javascripts/alchemy/alchemy.dragndrop.js.coffee +84 -0
- data/app/assets/javascripts/alchemy/alchemy.element_editors.js.coffee +138 -0
- data/app/assets/javascripts/alchemy/alchemy.elements_window.js.coffee +89 -0
- data/app/assets/javascripts/alchemy/alchemy.file_progress.js.coffee +63 -0
- data/app/assets/javascripts/alchemy/alchemy.growler.js.coffee +27 -0
- data/app/assets/javascripts/alchemy/alchemy.gui.js.coffee +22 -0
- data/app/assets/javascripts/alchemy/alchemy.hotkeys.js.coffee +49 -0
- data/app/assets/javascripts/alchemy/alchemy.html5.js +22 -0
- data/app/assets/javascripts/alchemy/alchemy.i18n.js.coffee +26 -0
- data/app/assets/javascripts/alchemy/alchemy.image_cropper.js.coffee +44 -0
- data/app/assets/javascripts/alchemy/alchemy.initializer.js.coffee +63 -0
- data/app/assets/javascripts/alchemy/alchemy.jquery_loader.js +42 -0
- data/app/assets/javascripts/alchemy/alchemy.js +52 -0
- data/app/assets/javascripts/alchemy/alchemy.link_dialog.js.coffee +250 -0
- data/app/assets/javascripts/alchemy/alchemy.list_filter.js.coffee +49 -0
- data/app/assets/javascripts/alchemy/alchemy.page_sorter.js +48 -0
- data/app/assets/javascripts/alchemy/alchemy.preview.js.coffee +106 -0
- data/app/assets/javascripts/alchemy/alchemy.preview_window.js.coffee +58 -0
- data/app/assets/javascripts/alchemy/alchemy.sitemap.js.coffee +50 -0
- data/app/assets/javascripts/alchemy/alchemy.spinner.js.coffee +49 -0
- data/app/assets/javascripts/alchemy/alchemy.string_extension.js.coffee +11 -0
- data/app/assets/javascripts/alchemy/alchemy.tinymce.js.coffee +66 -0
- data/app/assets/javascripts/alchemy/alchemy.translations.js.coffee +132 -0
- data/app/assets/javascripts/alchemy/alchemy.uploader.js.coffee +102 -0
- data/app/assets/javascripts/alchemy/alchemy.windows.js.coffee +42 -0
- data/app/assets/javascripts/alchemy/menubar.js.coffee +8 -0
- data/app/assets/javascripts/alchemy/preview.js +1 -0
- data/app/assets/javascripts/tinymce/plugins/alchemy_link/plugin.min.js +19 -0
- data/app/assets/stylesheets/alchemy/_defaults.scss +8 -0
- data/app/assets/stylesheets/alchemy/_extends.scss +93 -0
- data/app/assets/stylesheets/alchemy/_mixins.scss +112 -0
- data/app/assets/stylesheets/alchemy/_variables.scss +61 -0
- data/app/assets/stylesheets/alchemy/admin.scss +31 -0
- data/app/assets/stylesheets/alchemy/archive.scss +436 -0
- data/app/assets/stylesheets/alchemy/base.scss +609 -0
- data/app/assets/stylesheets/alchemy/buttons.scss +259 -0
- data/app/assets/stylesheets/alchemy/custom.scss +1 -0
- data/app/assets/stylesheets/alchemy/dashboard.scss +104 -0
- data/app/assets/stylesheets/alchemy/dialogs.scss +214 -0
- data/app/assets/stylesheets/alchemy/elements.scss +772 -0
- data/app/assets/stylesheets/alchemy/errors.scss +39 -0
- data/app/assets/stylesheets/alchemy/flash.scss +65 -0
- data/app/assets/stylesheets/alchemy/form_fields.scss +89 -0
- data/app/assets/stylesheets/alchemy/forms.scss +193 -0
- data/app/assets/stylesheets/alchemy/frame.scss +301 -0
- data/app/assets/stylesheets/alchemy/icon-font.scss +67 -0
- data/app/assets/stylesheets/alchemy/icons.scss +324 -0
- data/app/assets/stylesheets/alchemy/jquery-ui.scss +1511 -0
- data/app/assets/stylesheets/alchemy/menubar.scss +81 -0
- data/app/assets/stylesheets/alchemy/modules.scss +33 -0
- data/app/assets/stylesheets/alchemy/notices.scss +64 -0
- data/app/assets/stylesheets/alchemy/pagination.scss +65 -0
- data/app/assets/stylesheets/alchemy/print.scss +34 -0
- data/app/assets/stylesheets/alchemy/search.scss +73 -0
- data/app/assets/stylesheets/alchemy/selects.scss +235 -0
- data/app/assets/stylesheets/alchemy/sitemap.scss +385 -0
- data/app/assets/stylesheets/alchemy/tables.scss +218 -0
- data/app/assets/stylesheets/alchemy/toolbar.scss +146 -0
- data/app/assets/stylesheets/alchemy/upload.scss +121 -0
- data/app/assets/stylesheets/tinymce/skins/alchemy/content.min.css.scss +90 -0
- data/app/assets/stylesheets/tinymce/skins/alchemy/fonts/readme.md +1 -0
- data/app/assets/stylesheets/tinymce/skins/alchemy/fonts/tinymce-small.eot +0 -0
- data/app/assets/stylesheets/tinymce/skins/alchemy/fonts/tinymce-small.svg +175 -0
- data/app/assets/stylesheets/tinymce/skins/alchemy/fonts/tinymce-small.ttf +0 -0
- data/app/assets/stylesheets/tinymce/skins/alchemy/fonts/tinymce-small.woff +0 -0
- data/app/assets/stylesheets/tinymce/skins/alchemy/fonts/tinymce.eot +0 -0
- data/app/assets/stylesheets/tinymce/skins/alchemy/fonts/tinymce.svg +153 -0
- data/app/assets/stylesheets/tinymce/skins/alchemy/fonts/tinymce.ttf +0 -0
- data/app/assets/stylesheets/tinymce/skins/alchemy/fonts/tinymce.woff +0 -0
- data/app/assets/stylesheets/tinymce/skins/alchemy/img/anchor.gif +0 -0
- data/app/assets/stylesheets/tinymce/skins/alchemy/img/loader.gif +0 -0
- data/app/assets/stylesheets/tinymce/skins/alchemy/img/object.gif +0 -0
- data/app/assets/stylesheets/tinymce/skins/alchemy/img/trans.gif +0 -0
- data/app/assets/stylesheets/tinymce/skins/alchemy/img/wline.gif +0 -0
- data/app/assets/stylesheets/tinymce/skins/alchemy/skin.ie7.min.css +1 -0
- data/app/assets/stylesheets/tinymce/skins/alchemy/skin.min.css.scss +1810 -0
- data/app/controllers/alchemy/admin/attachments_controller.rb +106 -0
- data/app/controllers/alchemy/admin/base_controller.rb +168 -0
- data/app/controllers/alchemy/admin/clipboard_controller.rb +51 -0
- data/app/controllers/alchemy/admin/contents_controller.rb +76 -0
- data/app/controllers/alchemy/admin/dashboard_controller.rb +89 -0
- data/app/controllers/alchemy/admin/elements_controller.rb +190 -0
- data/app/controllers/alchemy/admin/essence_files_controller.rb +47 -0
- data/app/controllers/alchemy/admin/essence_pictures_controller.rb +120 -0
- data/app/controllers/alchemy/admin/languages_controller.rb +17 -0
- data/app/controllers/alchemy/admin/layoutpages_controller.rb +19 -0
- data/app/controllers/alchemy/admin/legacy_page_urls_controller.rb +39 -0
- data/app/controllers/alchemy/admin/pages_controller.rb +359 -0
- data/app/controllers/alchemy/admin/pictures_controller.rb +168 -0
- data/app/controllers/alchemy/admin/resources_controller.rb +185 -0
- data/app/controllers/alchemy/admin/sites_controller.rb +6 -0
- data/app/controllers/alchemy/admin/tags_controller.rb +76 -0
- data/app/controllers/alchemy/admin/trash_controller.rb +27 -0
- data/app/controllers/alchemy/api/base_controller.rb +19 -0
- data/app/controllers/alchemy/api/contents_controller.rb +35 -0
- data/app/controllers/alchemy/api/elements_controller.rb +29 -0
- data/app/controllers/alchemy/api/pages_controller.rb +32 -0
- data/app/controllers/alchemy/attachments_controller.rb +35 -0
- data/app/controllers/alchemy/base_controller.rb +106 -0
- data/app/controllers/alchemy/elements_controller.rb +27 -0
- data/app/controllers/alchemy/messages_controller.rb +114 -0
- data/app/controllers/alchemy/pages_controller.rb +211 -0
- data/app/controllers/alchemy/pictures_controller.rb +82 -0
- data/app/helpers/alchemy/admin/attachments_helper.rb +12 -0
- data/app/helpers/alchemy/admin/base_helper.rb +471 -0
- data/app/helpers/alchemy/admin/contents_helper.rb +113 -0
- data/app/helpers/alchemy/admin/elements_helper.rb +134 -0
- data/app/helpers/alchemy/admin/essences_helper.rb +120 -0
- data/app/helpers/alchemy/admin/form_helper.rb +30 -0
- data/app/helpers/alchemy/admin/navigation_helper.rb +238 -0
- data/app/helpers/alchemy/admin/pages_helper.rb +70 -0
- data/app/helpers/alchemy/admin/pictures_helper.rb +30 -0
- data/app/helpers/alchemy/admin/tags_helper.rb +102 -0
- data/app/helpers/alchemy/base_helper.rb +81 -0
- data/app/helpers/alchemy/elements_block_helper.rb +162 -0
- data/app/helpers/alchemy/elements_helper.rb +291 -0
- data/app/helpers/alchemy/essences_helper.rb +138 -0
- data/app/helpers/alchemy/pages_helper.rb +417 -0
- data/app/helpers/alchemy/url_helper.rb +76 -0
- data/app/mailers/alchemy/messages.rb +15 -0
- data/app/models/alchemy.rb +7 -0
- data/app/models/alchemy/attachment.rb +129 -0
- data/app/models/alchemy/cell.rb +94 -0
- data/app/models/alchemy/content.rb +255 -0
- data/app/models/alchemy/content/factory.rb +190 -0
- data/app/models/alchemy/element.rb +513 -0
- data/app/models/alchemy/element/definitions.rb +52 -0
- data/app/models/alchemy/element/presenters.rb +87 -0
- data/app/models/alchemy/element_to_page.rb +7 -0
- data/app/models/alchemy/essence_boolean.rb +19 -0
- data/app/models/alchemy/essence_date.rb +24 -0
- data/app/models/alchemy/essence_file.rb +42 -0
- data/app/models/alchemy/essence_html.rb +23 -0
- data/app/models/alchemy/essence_link.rb +20 -0
- data/app/models/alchemy/essence_picture.rb +152 -0
- data/app/models/alchemy/essence_richtext.rb +47 -0
- data/app/models/alchemy/essence_select.rb +18 -0
- data/app/models/alchemy/essence_text.rb +22 -0
- data/app/models/alchemy/folded_page.rb +16 -0
- data/app/models/alchemy/language.rb +144 -0
- data/app/models/alchemy/language/code.rb +22 -0
- data/app/models/alchemy/legacy_page_url.rb +20 -0
- data/app/models/alchemy/message.rb +40 -0
- data/app/models/alchemy/page.rb +409 -0
- data/app/models/alchemy/page/page_cells.rb +71 -0
- data/app/models/alchemy/page/page_elements.rb +272 -0
- data/app/models/alchemy/page/page_naming.rb +122 -0
- data/app/models/alchemy/page/page_natures.rb +114 -0
- data/app/models/alchemy/page/page_scopes.rb +95 -0
- data/app/models/alchemy/page/page_users.rb +58 -0
- data/app/models/alchemy/picture.rb +220 -0
- data/app/models/alchemy/picture/sweeping.rb +17 -0
- data/app/models/alchemy/picture/transformations.rb +256 -0
- data/app/models/alchemy/site.rb +91 -0
- data/app/models/alchemy/site/layout.rb +38 -0
- data/app/models/alchemy/tag.rb +24 -0
- data/app/models/alchemy/translations.rb +7 -0
- data/app/models/alchemy/translations/essence_body_updater.rb +64 -0
- data/app/models/alchemy/translations/translation_pusher.rb +18 -0
- data/app/models/alchemy/tree_node.rb +4 -0
- data/app/serializers/alchemy/attachment_serializer.rb +15 -0
- data/app/serializers/alchemy/cell_serializer.rb +18 -0
- data/app/serializers/alchemy/content_serializer.rb +20 -0
- data/app/serializers/alchemy/element_serializer.rb +20 -0
- data/app/serializers/alchemy/essence_boolean_serializer.rb +11 -0
- data/app/serializers/alchemy/essence_date_serializer.rb +11 -0
- data/app/serializers/alchemy/essence_file_serializer.rb +12 -0
- data/app/serializers/alchemy/essence_html_serializer.rb +11 -0
- data/app/serializers/alchemy/essence_link_serializer.rb +14 -0
- data/app/serializers/alchemy/essence_picture_serializer.rb +28 -0
- data/app/serializers/alchemy/essence_richtext_serializer.rb +12 -0
- data/app/serializers/alchemy/essence_select_serializer.rb +11 -0
- data/app/serializers/alchemy/essence_text_serializer.rb +22 -0
- data/app/serializers/alchemy/legacy_element_serializer.rb +17 -0
- data/app/serializers/alchemy/page_serializer.rb +29 -0
- data/app/serializers/alchemy/picture_serializer.rb +16 -0
- data/app/views/alchemy/_menubar.html.erb +16 -0
- data/app/views/alchemy/admin/attachments/_archive_overlay.html.erb +32 -0
- data/app/views/alchemy/admin/attachments/_attachment.html.erb +63 -0
- data/app/views/alchemy/admin/attachments/_file_to_assign.html.erb +15 -0
- data/app/views/alchemy/admin/attachments/_files_list.html.erb +39 -0
- data/app/views/alchemy/admin/attachments/_overlay_file_list.html.erb +11 -0
- data/app/views/alchemy/admin/attachments/_tag_list.html.erb +14 -0
- data/app/views/alchemy/admin/attachments/archive_overlay.js.erb +7 -0
- data/app/views/alchemy/admin/attachments/create.js.erb +11 -0
- data/app/views/alchemy/admin/attachments/destroy.js.erb +1 -0
- data/app/views/alchemy/admin/attachments/edit.html.erb +10 -0
- data/app/views/alchemy/admin/attachments/index.html.erb +29 -0
- data/app/views/alchemy/admin/attachments/new.html.erb +14 -0
- data/app/views/alchemy/admin/attachments/show.html.erb +3 -0
- data/app/views/alchemy/admin/clipboard/clear.js.erb +3 -0
- data/app/views/alchemy/admin/clipboard/index.html.erb +22 -0
- data/app/views/alchemy/admin/clipboard/insert.js.erb +19 -0
- data/app/views/alchemy/admin/clipboard/remove.js.erb +10 -0
- data/app/views/alchemy/admin/contents/_missing.html.erb +19 -0
- data/app/views/alchemy/admin/contents/create.js.erb +56 -0
- data/app/views/alchemy/admin/contents/destroy.js.erb +4 -0
- data/app/views/alchemy/admin/contents/new.html.erb +11 -0
- data/app/views/alchemy/admin/contents/order.js.erb +3 -0
- data/app/views/alchemy/admin/dashboard/_locked_pages.html.erb +38 -0
- data/app/views/alchemy/admin/dashboard/_recent_pages.html.erb +22 -0
- data/app/views/alchemy/admin/dashboard/_sites.html.erb +23 -0
- data/app/views/alchemy/admin/dashboard/_users.html.erb +19 -0
- data/app/views/alchemy/admin/dashboard/help.html.erb +21 -0
- data/app/views/alchemy/admin/dashboard/index.html.erb +44 -0
- data/app/views/alchemy/admin/dashboard/info.html.erb +64 -0
- data/app/views/alchemy/admin/elements/_add_picture.html.erb +14 -0
- data/app/views/alchemy/admin/elements/_element.html.erb +23 -0
- data/app/views/alchemy/admin/elements/_element_foot.html.erb +36 -0
- data/app/views/alchemy/admin/elements/_element_head.html.erb +23 -0
- data/app/views/alchemy/admin/elements/_new_element_form.html.erb +26 -0
- data/app/views/alchemy/admin/elements/_picture_gallery_editor.html.erb +24 -0
- data/app/views/alchemy/admin/elements/_refresh_editor.js.erb +8 -0
- data/app/views/alchemy/admin/elements/create.js.erb +46 -0
- data/app/views/alchemy/admin/elements/fold.js.erb +28 -0
- data/app/views/alchemy/admin/elements/index.html.erb +26 -0
- data/app/views/alchemy/admin/elements/list.html.erb +16 -0
- data/app/views/alchemy/admin/elements/new.html.erb +25 -0
- data/app/views/alchemy/admin/elements/order.js.erb +14 -0
- data/app/views/alchemy/admin/elements/trash.js.erb +12 -0
- data/app/views/alchemy/admin/elements/update.js.erb +28 -0
- data/app/views/alchemy/admin/essence_files/assign.js.erb +9 -0
- data/app/views/alchemy/admin/essence_files/edit.html.erb +18 -0
- data/app/views/alchemy/admin/essence_pictures/assign.js.erb +18 -0
- data/app/views/alchemy/admin/essence_pictures/crop.html.erb +50 -0
- data/app/views/alchemy/admin/essence_pictures/destroy.js.erb +24 -0
- data/app/views/alchemy/admin/essence_pictures/edit.html.erb +28 -0
- data/app/views/alchemy/admin/essence_pictures/save_link.js.erb +3 -0
- data/app/views/alchemy/admin/essence_pictures/update.js.erb +9 -0
- data/app/views/alchemy/admin/languages/_form.html.erb +14 -0
- data/app/views/alchemy/admin/languages/_language.html.erb +42 -0
- data/app/views/alchemy/admin/languages/_table.html.erb +37 -0
- data/app/views/alchemy/admin/languages/index.html.erb +23 -0
- data/app/views/alchemy/admin/layoutpages/_layoutpage.html.erb +63 -0
- data/app/views/alchemy/admin/layoutpages/edit.html.erb +15 -0
- data/app/views/alchemy/admin/layoutpages/index.html.erb +41 -0
- data/app/views/alchemy/admin/leave.html.erb +11 -0
- data/app/views/alchemy/admin/legacy_page_urls/_form.html.erb +5 -0
- data/app/views/alchemy/admin/legacy_page_urls/_label.html.erb +1 -0
- data/app/views/alchemy/admin/legacy_page_urls/_legacy_page_url.html.erb +13 -0
- data/app/views/alchemy/admin/legacy_page_urls/_new.html.erb +20 -0
- data/app/views/alchemy/admin/legacy_page_urls/create.js.erb +10 -0
- data/app/views/alchemy/admin/legacy_page_urls/destroy.js.erb +6 -0
- data/app/views/alchemy/admin/legacy_page_urls/update.js.erb +2 -0
- data/app/views/alchemy/admin/pages/_create_language_form.html.erb +54 -0
- data/app/views/alchemy/admin/pages/_external_link.html.erb +31 -0
- data/app/views/alchemy/admin/pages/_file_link.html.erb +31 -0
- data/app/views/alchemy/admin/pages/_form.html.erb +62 -0
- data/app/views/alchemy/admin/pages/_internal_link.html.erb +41 -0
- data/app/views/alchemy/admin/pages/_legacy_urls.html.erb +23 -0
- data/app/views/alchemy/admin/pages/_locked_page.html.erb +24 -0
- data/app/views/alchemy/admin/pages/_new_page_form.html.erb +11 -0
- data/app/views/alchemy/admin/pages/_page.html.erb +112 -0
- data/app/views/alchemy/admin/pages/_page_for_links.html.erb +45 -0
- data/app/views/alchemy/admin/pages/_page_status.html.erb +14 -0
- data/app/views/alchemy/admin/pages/_sitemap.html.erb +8 -0
- data/app/views/alchemy/admin/pages/_tinymce_custom_config.html.erb +13 -0
- data/app/views/alchemy/admin/pages/configure.html.erb +16 -0
- data/app/views/alchemy/admin/pages/configure_external.html.erb +33 -0
- data/app/views/alchemy/admin/pages/destroy.js.erb +19 -0
- data/app/views/alchemy/admin/pages/edit.html.erb +206 -0
- data/app/views/alchemy/admin/pages/flush.js.erb +2 -0
- data/app/views/alchemy/admin/pages/fold.js.erb +3 -0
- data/app/views/alchemy/admin/pages/index.html.erb +101 -0
- data/app/views/alchemy/admin/pages/info.html.erb +43 -0
- data/app/views/alchemy/admin/pages/link.html.erb +16 -0
- data/app/views/alchemy/admin/pages/locked.html.erb +3 -0
- data/app/views/alchemy/admin/pages/new.html.erb +26 -0
- data/app/views/alchemy/admin/pages/show.html.erb +1 -0
- data/app/views/alchemy/admin/pages/sort.js.erb +5 -0
- data/app/views/alchemy/admin/pages/unlock.js.erb +8 -0
- data/app/views/alchemy/admin/pages/update.js.erb +37 -0
- data/app/views/alchemy/admin/partials/_autocomplete_tag_list.html.erb +1 -0
- data/app/views/alchemy/admin/partials/_flash.html.erb +4 -0
- data/app/views/alchemy/admin/partials/_flash_notices.html.erb +5 -0
- data/app/views/alchemy/admin/partials/_language_tree_select.html.erb +11 -0
- data/app/views/alchemy/admin/partials/_main_navigation_entry.html.erb +12 -0
- data/app/views/alchemy/admin/partials/_remote_search_form.html.erb +33 -0
- data/app/views/alchemy/admin/partials/_routes.html.erb +25 -0
- data/app/views/alchemy/admin/partials/_search_form.html.erb +20 -0
- data/app/views/alchemy/admin/partials/_sub_navigation.html.erb +8 -0
- data/app/views/alchemy/admin/partials/_toolbar_button.html.erb +25 -0
- data/app/views/alchemy/admin/partials/_upload_form.html.erb +67 -0
- data/app/views/alchemy/admin/pictures/_archive.html.erb +53 -0
- data/app/views/alchemy/admin/pictures/_archive_overlay.html.erb +14 -0
- data/app/views/alchemy/admin/pictures/_filter_and_size_bar.html.erb +78 -0
- data/app/views/alchemy/admin/pictures/_filter_bar.html.erb +33 -0
- data/app/views/alchemy/admin/pictures/_overlay_picture_list.html.erb +11 -0
- data/app/views/alchemy/admin/pictures/_picture.html.erb +87 -0
- data/app/views/alchemy/admin/pictures/_picture_to_assign.html.erb +28 -0
- data/app/views/alchemy/admin/pictures/_tag_list.html.erb +16 -0
- data/app/views/alchemy/admin/pictures/archive_overlay.js.erb +8 -0
- data/app/views/alchemy/admin/pictures/edit.html.erb +13 -0
- data/app/views/alchemy/admin/pictures/edit_multiple.html.erb +30 -0
- data/app/views/alchemy/admin/pictures/flush.js.erb +2 -0
- data/app/views/alchemy/admin/pictures/index.html.erb +109 -0
- data/app/views/alchemy/admin/pictures/index.js.erb +3 -0
- data/app/views/alchemy/admin/pictures/info.html.erb +38 -0
- data/app/views/alchemy/admin/pictures/new.html.erb +16 -0
- data/app/views/alchemy/admin/pictures/show.html.erb +11 -0
- data/app/views/alchemy/admin/resources/_form.html.erb +13 -0
- data/app/views/alchemy/admin/resources/_resource.html.erb +30 -0
- data/app/views/alchemy/admin/resources/_table.html.erb +25 -0
- data/app/views/alchemy/admin/resources/edit.html.erb +1 -0
- data/app/views/alchemy/admin/resources/index.csv.erb +13 -0
- data/app/views/alchemy/admin/resources/index.html.erb +32 -0
- data/app/views/alchemy/admin/resources/new.html.erb +1 -0
- data/app/views/alchemy/admin/sites/index.html.erb +23 -0
- data/app/views/alchemy/admin/tags/_radio_tag.html.erb +6 -0
- data/app/views/alchemy/admin/tags/_tag.html.erb +30 -0
- data/app/views/alchemy/admin/tags/edit.html.erb +24 -0
- data/app/views/alchemy/admin/tags/index.html.erb +52 -0
- data/app/views/alchemy/admin/tags/new.html.erb +7 -0
- data/app/views/alchemy/admin/trash/clear.js.erb +4 -0
- data/app/views/alchemy/admin/trash/index.html.erb +29 -0
- data/app/views/alchemy/attachments/show.html.erb +1 -0
- data/app/views/alchemy/base/500.html.erb +26 -0
- data/app/views/alchemy/base/error_notice.html.erb +1 -0
- data/app/views/alchemy/base/error_notice.js.erb +2 -0
- data/app/views/alchemy/base/permission_denied.js.erb +3 -0
- data/app/views/alchemy/base/redirect.js.erb +12 -0
- data/app/views/alchemy/base/update.js.erb +5 -0
- data/app/views/alchemy/breadcrumb/_page.html.erb +16 -0
- data/app/views/alchemy/breadcrumb/_separator.html.erb +1 -0
- data/app/views/alchemy/breadcrumb/_wrapper.html.erb +13 -0
- data/app/views/alchemy/elements/_editor_not_found.html.erb +5 -0
- data/app/views/alchemy/elements/_view_not_found.html.erb +1 -0
- data/app/views/alchemy/elements/show.html.erb +1 -0
- data/app/views/alchemy/elements/show.js.erb +1 -0
- data/app/views/alchemy/essences/_essence_boolean_editor.html.erb +16 -0
- data/app/views/alchemy/essences/_essence_boolean_view.html.erb +3 -0
- data/app/views/alchemy/essences/_essence_date_editor.html.erb +19 -0
- data/app/views/alchemy/essences/_essence_date_view.html.erb +11 -0
- data/app/views/alchemy/essences/_essence_file_editor.html.erb +57 -0
- data/app/views/alchemy/essences/_essence_file_view.html.erb +10 -0
- data/app/views/alchemy/essences/_essence_html_editor.html.erb +9 -0
- data/app/views/alchemy/essences/_essence_html_view.html.erb +3 -0
- data/app/views/alchemy/essences/_essence_link_editor.html.erb +25 -0
- data/app/views/alchemy/essences/_essence_link_view.html.erb +11 -0
- data/app/views/alchemy/essences/_essence_picture_editor.html.erb +59 -0
- data/app/views/alchemy/essences/_essence_picture_view.html.erb +5 -0
- data/app/views/alchemy/essences/_essence_richtext_editor.html.erb +13 -0
- data/app/views/alchemy/essences/_essence_richtext_view.html.erb +5 -0
- data/app/views/alchemy/essences/_essence_select_editor.html.erb +25 -0
- data/app/views/alchemy/essences/_essence_select_view.html.erb +3 -0
- data/app/views/alchemy/essences/_essence_text_editor.html.erb +18 -0
- data/app/views/alchemy/essences/_essence_text_view.html.erb +18 -0
- data/app/views/alchemy/essences/shared/_essence_picture_tools.html.erb +61 -0
- data/app/views/alchemy/essences/shared/_linkable_essence_tools.html.erb +19 -0
- data/app/views/alchemy/language_links/_language.html.erb +12 -0
- data/app/views/alchemy/language_links/_spacer.html.erb +1 -0
- data/app/views/alchemy/messages/contact_form_mail.de.text.erb +12 -0
- data/app/views/alchemy/messages/contact_form_mail.en.text.erb +12 -0
- data/app/views/alchemy/messages/contact_form_mail.es.text.erb +12 -0
- data/app/views/alchemy/messages/new.html.erb +1 -0
- data/app/views/alchemy/navigation/_image_link.html.erb +14 -0
- data/app/views/alchemy/navigation/_link.html.erb +20 -0
- data/app/views/alchemy/navigation/_renderer.html.erb +30 -0
- data/app/views/alchemy/pages/show.html.erb +1 -0
- data/app/views/alchemy/pages/show.rss.builder +20 -0
- data/app/views/alchemy/pages/sitemap.xml.erb +6 -0
- data/app/views/kaminari/alchemy/_first_page.html.erb +11 -0
- data/app/views/kaminari/alchemy/_gap.html.erb +8 -0
- data/app/views/kaminari/alchemy/_last_page.html.erb +11 -0
- data/app/views/kaminari/alchemy/_next_page.html.erb +13 -0
- data/app/views/kaminari/alchemy/_page.html.erb +14 -0
- data/app/views/kaminari/alchemy/_paginator.html.erb +23 -0
- data/app/views/kaminari/alchemy/_prev_page.html.erb +13 -0
- data/app/views/layouts/alchemy/admin.html.erb +109 -0
- data/app/views/layouts/alchemy/sitemap.xml.erb +4 -0
- data/bin/alchemy +267 -0
- data/bin/rails +8 -0
- data/config/alchemy/config.yml +189 -0
- data/config/alchemy/modules.yml +88 -0
- data/config/initializers/dragonfly.rb +25 -0
- data/config/initializers/simple_form.rb +144 -0
- data/config/locales/alchemy.de.yml +918 -0
- data/config/locales/alchemy.en.yml +920 -0
- data/config/locales/alchemy.es.yml +958 -0
- data/config/locales/alchemy.fr.yml +942 -0
- data/config/locales/alchemy.nl.yml +921 -0
- data/config/locales/alchemy.ru.yml +837 -0
- data/config/locales/simple_form.de.yml +26 -0
- data/config/locales/simple_form.en.yml +25 -0
- data/config/locales/simple_form.es.yml +6 -0
- data/config/locales/simple_form.fr.yml +26 -0
- data/config/locales/simple_form.nl.yml +25 -0
- data/config/locales/simple_form.ru.yml +25 -0
- data/config/routes.rb +164 -0
- data/db/migrate/20130827094554_alchemy_two_point_six.rb +380 -0
- data/db/migrate/20130828121054_remove_do_not_index_from_alchemy_essence_texts.rb +5 -0
- data/db/migrate/20130828121120_remove_do_not_index_from_alchemy_essence_richtexts.rb +5 -0
- data/db/migrate/20130918201742_add_published_at_to_alchemy_pages.rb +5 -0
- data/lib/alchemy/auth_accessors.rb +104 -0
- data/lib/alchemy/cache_digests/template_tracker.rb +65 -0
- data/lib/alchemy/config.rb +65 -0
- data/lib/alchemy/configuration_methods.rb +29 -0
- data/lib/alchemy/controller_actions.rb +138 -0
- data/lib/alchemy/engine.rb +104 -0
- data/lib/alchemy/errors.rb +82 -0
- data/lib/alchemy/essence.rb +232 -0
- data/lib/alchemy/filetypes.rb +33 -0
- data/lib/alchemy/forms/builder.rb +23 -0
- data/lib/alchemy/hints.rb +57 -0
- data/lib/alchemy/i18n.rb +70 -0
- data/lib/alchemy/kaminari/scoped_pagination_url_helper.rb +13 -0
- data/lib/alchemy/locale.rb +65 -0
- data/lib/alchemy/logger.rb +15 -0
- data/lib/alchemy/middleware/rescue_old_cookies.rb +27 -0
- data/lib/alchemy/modules.rb +75 -0
- data/lib/alchemy/mount_point.rb +47 -0
- data/lib/alchemy/name_conversions.rb +28 -0
- data/lib/alchemy/on_page_layout.rb +58 -0
- data/lib/alchemy/page_layout.rb +183 -0
- data/lib/alchemy/permissions.rb +221 -0
- data/lib/alchemy/picture_attributes.rb +29 -0
- data/lib/alchemy/resource.rb +238 -0
- data/lib/alchemy/resources_helper.rb +135 -0
- data/lib/alchemy/routing_constraints.rb +49 -0
- data/lib/alchemy/seeder.rb +53 -0
- data/lib/alchemy/shell.rb +102 -0
- data/lib/alchemy/ssl_protection.rb +30 -0
- data/lib/alchemy/tasks/helpers.rb +83 -0
- data/lib/alchemy/test_support/controller_requests.rb +73 -0
- data/lib/alchemy/test_support/essence_shared_examples.rb +286 -0
- data/lib/alchemy/test_support/factories.rb +147 -0
- data/lib/alchemy/test_support/integration_helpers.rb +33 -0
- data/lib/alchemy/tinymce.rb +68 -0
- data/lib/alchemy/touching.rb +41 -0
- data/lib/alchemy/upgrader.rb +80 -0
- data/lib/alchemy/upgrader/three_point_one.rb +54 -0
- data/lib/alchemy/upgrader/three_point_two.rb +69 -0
- data/lib/alchemy/upgrader/three_point_zero.rb +93 -0
- data/lib/alchemy/userstamp.rb +10 -0
- data/lib/alchemy/version.rb +7 -0
- data/lib/alchemy_cms.rb +5 -0
- data/lib/rails/generators/alchemy/base.rb +41 -0
- data/lib/rails/generators/alchemy/elements/elements_generator.rb +37 -0
- data/lib/rails/generators/alchemy/elements/templates/editor.html.erb +14 -0
- data/lib/rails/generators/alchemy/elements/templates/editor.html.haml +13 -0
- data/lib/rails/generators/alchemy/elements/templates/editor.html.slim +12 -0
- data/lib/rails/generators/alchemy/elements/templates/view.html.erb +27 -0
- data/lib/rails/generators/alchemy/elements/templates/view.html.haml +20 -0
- data/lib/rails/generators/alchemy/elements/templates/view.html.slim +20 -0
- data/lib/rails/generators/alchemy/essence/essence_generator.rb +52 -0
- data/lib/rails/generators/alchemy/essence/templates/editor.html.erb +17 -0
- data/lib/rails/generators/alchemy/essence/templates/view.html.erb +2 -0
- data/lib/rails/generators/alchemy/install/files/_article_editor.html.erb +5 -0
- data/lib/rails/generators/alchemy/install/files/_article_view.html.erb +7 -0
- data/lib/rails/generators/alchemy/install/files/_standard.html.erb +1 -0
- data/lib/rails/generators/alchemy/install/files/alchemy.de.yml +31 -0
- data/lib/rails/generators/alchemy/install/files/alchemy.elements.css.scss +30 -0
- data/lib/rails/generators/alchemy/install/files/alchemy.en.yml +31 -0
- data/lib/rails/generators/alchemy/install/files/alchemy.es.yml +31 -0
- data/lib/rails/generators/alchemy/install/files/application.html.erb +14 -0
- data/lib/rails/generators/alchemy/install/install_generator.rb +69 -0
- data/lib/rails/generators/alchemy/install/templates/elements.yml.tt +21 -0
- data/lib/rails/generators/alchemy/install/templates/page_layouts.yml.tt +10 -0
- data/lib/rails/generators/alchemy/module/module_generator.rb +30 -0
- data/lib/rails/generators/alchemy/module/templates/ability.rb.tt +11 -0
- data/lib/rails/generators/alchemy/module/templates/controller.rb.tt +2 -0
- data/lib/rails/generators/alchemy/module/templates/module_config.rb.tt +17 -0
- data/lib/rails/generators/alchemy/page_layouts/page_layouts_generator.rb +24 -0
- data/lib/rails/generators/alchemy/page_layouts/templates/layout.html.erb +1 -0
- data/lib/rails/generators/alchemy/page_layouts/templates/layout.html.haml +1 -0
- data/lib/rails/generators/alchemy/page_layouts/templates/layout.html.slim +1 -0
- data/lib/rails/generators/alchemy/site_layouts/site_layouts_generator.rb +23 -0
- data/lib/rails/generators/alchemy/site_layouts/templates/layout.html.erb +1 -0
- data/lib/rails/generators/alchemy/site_layouts/templates/layout.html.haml +1 -0
- data/lib/rails/generators/alchemy/site_layouts/templates/layout.html.slim +1 -0
- data/lib/rails/generators/alchemy/views/views_generator.rb +41 -0
- data/lib/rails/templates/alchemy.rb +7 -0
- data/lib/tasks/alchemy/convert.rake +39 -0
- data/lib/tasks/alchemy/db.rake +22 -0
- data/lib/tasks/alchemy/install.rake +61 -0
- data/lib/tasks/alchemy/tidy.rake +102 -0
- data/lib/tasks/alchemy/upgrade.rake +28 -0
- data/spec/controllers/admin/attachments_controller_spec.rb +211 -0
- data/spec/controllers/admin/base_controller_spec.rb +74 -0
- data/spec/controllers/admin/clipboard_controller_spec.rb +60 -0
- data/spec/controllers/admin/contents_controller_spec.rb +72 -0
- data/spec/controllers/admin/dashboard_controller_spec.rb +139 -0
- data/spec/controllers/admin/elements_controller_spec.rb +473 -0
- data/spec/controllers/admin/essence_files_controller_spec.rb +71 -0
- data/spec/controllers/admin/essence_pictures_controller_spec.rb +202 -0
- data/spec/controllers/admin/languages_controller_spec.rb +61 -0
- data/spec/controllers/admin/layoutpages_controller_spec.rb +27 -0
- data/spec/controllers/admin/pages_controller_spec.rb +553 -0
- data/spec/controllers/admin/pictures_controller_spec.rb +358 -0
- data/spec/controllers/admin/resources_controller_spec.rb +53 -0
- data/spec/controllers/admin/trash_controller_spec.rb +68 -0
- data/spec/controllers/alchemy/admin/tags_controller_spec.rb +63 -0
- data/spec/controllers/alchemy/api/contents_controller_spec.rb +126 -0
- data/spec/controllers/alchemy/api/elements_controller_spec.rb +125 -0
- data/spec/controllers/alchemy/api/pages_controller_spec.rb +134 -0
- data/spec/controllers/attachments_controller_spec.rb +64 -0
- data/spec/controllers/base_controller_spec.rb +51 -0
- data/spec/controllers/elements_controller_spec.rb +48 -0
- data/spec/controllers/messages_controller_spec.rb +199 -0
- data/spec/controllers/pages_controller_spec.rb +265 -0
- data/spec/controllers/pictures_controller_spec.rb +393 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/controllers/admin/events_controller.rb +3 -0
- data/spec/dummy/app/controllers/application_controller.rb +15 -0
- data/spec/dummy/app/controllers/login_controller.rb +5 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/mailers/.gitkeep +0 -0
- data/spec/dummy/app/models/ability.rb +9 -0
- data/spec/dummy/app/models/dummy_model.rb +3 -0
- data/spec/dummy/app/models/dummy_user.rb +11 -0
- data/spec/dummy/app/models/event.rb +10 -0
- data/spec/dummy/app/models/location.rb +3 -0
- data/spec/dummy/app/views/alchemy/elements/_all_you_can_eat_editor.html.erb +11 -0
- data/spec/dummy/app/views/alchemy/elements/_article_editor.html.erb +10 -0
- data/spec/dummy/app/views/alchemy/elements/_article_view.html.erb +25 -0
- data/spec/dummy/app/views/alchemy/elements/_headline_editor.html.erb +1 -0
- data/spec/dummy/app/views/alchemy/elements/_headline_view.html.erb +1 -0
- data/spec/dummy/app/views/alchemy/elements/_news_view.html.erb +11 -0
- data/spec/dummy/app/views/alchemy/page_layouts/_standard.html.erb +14 -0
- data/spec/dummy/app/views/layouts/application.html.erb +17 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/alchemy/cells.yml +5 -0
- data/spec/dummy/config/alchemy/elements.yml +112 -0
- data/spec/dummy/config/alchemy/page_layouts.yml +32 -0
- data/spec/dummy/config/application.rb +32 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +32 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +41 -0
- data/spec/dummy/config/environments/production.rb +77 -0
- data/spec/dummy/config/environments/test.rb +43 -0
- data/spec/dummy/config/initializers/alchemy.rb +2 -0
- data/spec/dummy/config/initializers/assets.rb +11 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/secret_token.rb +12 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/routes.rb +12 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/db/migrate/20121026104128_create_events.rb +20 -0
- data/spec/dummy/db/migrate/20130328101418_create_locations.rb +9 -0
- data/spec/dummy/db/migrate/20130827094554_alchemy_two_point_six.rb +380 -0
- data/spec/dummy/db/migrate/20130828121054_remove_do_not_index_from_alchemy_essence_texts.rb +5 -0
- data/spec/dummy/db/migrate/20130828121120_remove_do_not_index_from_alchemy_essence_richtexts.rb +5 -0
- data/spec/dummy/db/migrate/20130918201742_add_published_at_to_alchemy_pages.rb +5 -0
- data/spec/dummy/db/migrate/20131209225243_create_dummy_users.rb +9 -0
- data/spec/dummy/db/migrate/20150122213511_acts_as_taggable_on_migration.acts_as_taggable_on_engine.rb +31 -0
- data/spec/dummy/db/migrate/20150122213512_add_missing_unique_indices.acts_as_taggable_on_engine.rb +20 -0
- data/spec/dummy/db/migrate/20150122213513_add_taggings_counter_cache_to_tags.acts_as_taggable_on_engine.rb +15 -0
- data/spec/dummy/db/migrate/20150122213514_add_missing_taggable_index.acts_as_taggable_on_engine.rb +10 -0
- data/spec/dummy/db/migrate/20150412103152_create_dummy_model.rb +7 -0
- data/spec/dummy/db/schema.rb +322 -0
- data/spec/dummy/db/seeds.rb +1 -0
- data/spec/dummy/lib/assets/.gitkeep +0 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/features/admin/dashboard_spec.rb +82 -0
- data/spec/features/admin/language_tree_feature_spec.rb +33 -0
- data/spec/features/admin/legacy_page_url_management_spec.rb +62 -0
- data/spec/features/admin/link_overlay_spec.rb +54 -0
- data/spec/features/admin/locale_select_feature_spec.rb +25 -0
- data/spec/features/admin/modules_integration_spec.rb +24 -0
- data/spec/features/admin/navigation_feature_spec.rb +13 -0
- data/spec/features/admin/page_creation_feature_spec.rb +51 -0
- data/spec/features/admin/page_editing_feature_spec.rb +135 -0
- data/spec/features/admin/picture_library_integration_spec.rb +62 -0
- data/spec/features/admin/resources_integration_spec.rb +133 -0
- data/spec/features/admin/site_select_feature_spec.rb +32 -0
- data/spec/features/admin/tinymce_feature_spec.rb +34 -0
- data/spec/features/navigation_spec.rb +9 -0
- data/spec/features/page_feature_spec.rb +287 -0
- data/spec/features/picture_security_spec.rb +35 -0
- data/spec/features/security_spec.rb +24 -0
- data/spec/features/translation_integration_spec.rb +51 -0
- data/spec/fixtures/500x500.png +0 -0
- data/spec/fixtures/80x60.png +0 -0
- data/spec/fixtures/image with spaces.png +0 -0
- data/spec/fixtures/image.png +0 -0
- data/spec/fixtures/image2.PNG +0 -0
- data/spec/fixtures/image3.jpeg +0 -0
- data/spec/helpers/admin/attachments_helper_spec.rb +15 -0
- data/spec/helpers/admin/base_helper_spec.rb +270 -0
- data/spec/helpers/admin/contents_helper_spec.rb +65 -0
- data/spec/helpers/admin/elements_helper_spec.rb +178 -0
- data/spec/helpers/admin/essences_helper_spec.rb +140 -0
- data/spec/helpers/admin/navigation_helper_spec.rb +288 -0
- data/spec/helpers/admin/pages_helper_spec.rb +95 -0
- data/spec/helpers/admin/pictures_helper_spec.rb +29 -0
- data/spec/helpers/admin/tags_helper_spec.rb +113 -0
- data/spec/helpers/base_helper_spec.rb +45 -0
- data/spec/helpers/elements_block_helper_spec.rb +135 -0
- data/spec/helpers/elements_helper_spec.rb +311 -0
- data/spec/helpers/essences_helper_spec.rb +156 -0
- data/spec/helpers/pages_helper_spec.rb +413 -0
- data/spec/helpers/picture_url_helpers_spec.rb +35 -0
- data/spec/helpers/url_helper_spec.rb +174 -0
- data/spec/javascripts/alchemy/dialog_spec.coffee +82 -0
- data/spec/javascripts/alchemy/link_overlay_spec.coffee +25 -0
- data/spec/javascripts/alchemy_integration_spec.coffee +3 -0
- data/spec/javascripts/fixtures/select.html +3 -0
- data/spec/javascripts/helpers/mock-ajax.js +199 -0
- data/spec/javascripts/helpers/test_responses/test_responses.js +1 -0
- data/spec/javascripts/support/jasmine.yml +29 -0
- data/spec/libraries/auth_accessors_spec.rb +40 -0
- data/spec/libraries/config_spec.rb +112 -0
- data/spec/libraries/controller_actions_spec.rb +133 -0
- data/spec/libraries/i18n_spec.rb +30 -0
- data/spec/libraries/kaminari/scoped_pagination_url_helper_spec.rb +30 -0
- data/spec/libraries/modules_spec.rb +67 -0
- data/spec/libraries/mount_point_spec.rb +77 -0
- data/spec/libraries/on_page_layout_spec.rb +112 -0
- data/spec/libraries/page_layout_spec.rb +144 -0
- data/spec/libraries/permissions_spec.rb +261 -0
- data/spec/libraries/resource_spec.rb +371 -0
- data/spec/libraries/resources_helper_spec.rb +144 -0
- data/spec/libraries/shell_spec.rb +125 -0
- data/spec/libraries/template_tracker_spec.rb +94 -0
- data/spec/libraries/tinymce_spec.rb +67 -0
- data/spec/libraries/userstamp_spec.rb +10 -0
- data/spec/mailers/messages_spec.rb +23 -0
- data/spec/models/attachment_spec.rb +227 -0
- data/spec/models/cell_spec.rb +102 -0
- data/spec/models/content_spec.rb +404 -0
- data/spec/models/dummy_model_spec.rb +11 -0
- data/spec/models/element_spec.rb +617 -0
- data/spec/models/element_to_page_spec.rb +14 -0
- data/spec/models/essence_boolean_spec.rb +10 -0
- data/spec/models/essence_date_spec.rb +29 -0
- data/spec/models/essence_file_spec.rb +43 -0
- data/spec/models/essence_html_spec.rb +18 -0
- data/spec/models/essence_link_spec.rb +10 -0
- data/spec/models/essence_picture_spec.rb +183 -0
- data/spec/models/essence_richtext_spec.rb +18 -0
- data/spec/models/essence_select_spec.rb +10 -0
- data/spec/models/essence_text_spec.rb +114 -0
- data/spec/models/language_spec.rb +123 -0
- data/spec/models/legacy_page_url_spec.rb +21 -0
- data/spec/models/message_spec.rb +55 -0
- data/spec/models/page_spec.rb +1896 -0
- data/spec/models/picture_spec.rb +330 -0
- data/spec/models/site_spec.rb +233 -0
- data/spec/models/tag_spec.rb +31 -0
- data/spec/routing/api_routing_spec.rb +150 -0
- data/spec/routing/routing_spec.rb +234 -0
- data/spec/spec_helper.rb +89 -0
- data/spec/support/ci/install_phantomjs +7 -0
- data/spec/support/hint_examples.rb +30 -0
- data/spec/support/rspec-activemodel-mocks_patch.rb +8 -0
- data/spec/support/test_tweaks.rb +31 -0
- data/spec/support/transformation_examples.rb +180 -0
- data/spec/tasks/helpers_spec.rb +219 -0
- data/spec/views/essences/essence_boolean_editor_spec.rb +33 -0
- data/spec/views/essences/essence_boolean_view_spec.rb +25 -0
- data/spec/views/essences/essence_date_view_spec.rb +39 -0
- data/spec/views/essences/essence_file_editor_spec.rb +61 -0
- data/spec/views/essences/essence_file_view_spec.rb +24 -0
- data/spec/views/essences/essence_html_view_spec.rb +22 -0
- data/spec/views/essences/essence_link_view_spec.rb +41 -0
- data/spec/views/essences/essence_picture_view_spec.rb +129 -0
- data/spec/views/essences/essence_richtext_view_spec.rb +32 -0
- data/spec/views/essences/essence_select_view_spec.rb +12 -0
- data/spec/views/essences/essence_text_view_spec.rb +52 -0
- data/vendor/assets/images/Jcrop.gif +0 -0
- data/vendor/assets/javascripts/fileupload/jquery.fileupload-process.js +175 -0
- data/vendor/assets/javascripts/fileupload/jquery.fileupload-validate.js +122 -0
- data/vendor/assets/javascripts/fileupload/jquery.fileupload.js +1467 -0
- data/vendor/assets/javascripts/fileupload/jquery.iframe-transport.js +217 -0
- data/vendor/assets/javascripts/jquery_plugins/jquery.Jcrop.min.js +22 -0
- data/vendor/assets/javascripts/jquery_plugins/jquery.floatThead.min.js +3 -0
- data/vendor/assets/javascripts/jquery_plugins/jquery.scrollTo.min.js +7 -0
- data/vendor/assets/javascripts/jquery_plugins/jquery.ui.nestedSortable.js +435 -0
- data/vendor/assets/javascripts/jquery_plugins/jquery.ui.tabspaging.js +296 -0
- data/vendor/assets/javascripts/keymaster.js +296 -0
- data/vendor/assets/javascripts/requestAnimationFrame.js +31 -0
- data/vendor/assets/javascripts/spin.min.js +1 -0
- data/vendor/assets/javascripts/tinymce/langs/de.js +200 -0
- data/vendor/assets/javascripts/tinymce/langs/es.js +200 -0
- data/vendor/assets/javascripts/tinymce/langs/fr.js +200 -0
- data/vendor/assets/javascripts/tinymce/langs/nl.js +200 -0
- data/vendor/assets/javascripts/tinymce/langs/ru.js +200 -0
- data/vendor/assets/javascripts/tinymce/license.txt +504 -0
- data/vendor/assets/javascripts/tinymce/plugins/anchor/plugin.min.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/autoresize/plugin.min.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/charmap/plugin.min.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/code/plugin.min.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/directionality/plugin.min.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/fullscreen/plugin.min.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/hr/plugin.min.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/link/plugin.min.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/paste/plugin.min.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/tabfocus/plugin.min.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/table/plugin.min.js +1 -0
- data/vendor/assets/javascripts/tinymce/themes/modern/theme.min.js +1 -0
- data/vendor/assets/javascripts/tinymce/tinymce.min.js +13 -0
- data/vendor/assets/stylesheets/jquery.Jcrop.min.css +28 -0
- metadata +1453 -0
data/.teatro.yml
ADDED
data/.travis.yml
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
language: ruby
|
2
|
+
sudo: false
|
3
|
+
cache: bundler
|
4
|
+
rvm:
|
5
|
+
- 2.0.0
|
6
|
+
- 2.1
|
7
|
+
- 2.2.0
|
8
|
+
branches:
|
9
|
+
only:
|
10
|
+
- master
|
11
|
+
before_script: bundle exec rake alchemy:spec:prepare
|
12
|
+
script: bundle exec rspec
|
13
|
+
env:
|
14
|
+
- DB=mysql
|
15
|
+
- DB=postgresql
|
16
|
+
notifications:
|
17
|
+
irc:
|
18
|
+
on_success: change
|
19
|
+
on_failure: always
|
20
|
+
use_notice: true
|
21
|
+
channels:
|
22
|
+
- irc.freenode.org#alchemy_cms
|
23
|
+
slack:
|
24
|
+
secure: QzOFw1Ph69pzwWBFgtIVkOnjbcRxB9HPRQ+RYjK+2tg+fsbiTJ+wYgHcZL49tPYcLAls4kymkFWzWBF3PCAXJMfKgUCqXzdQ2FuJC/JoVRTLll4wDnZFPG33jsm5tVznmycZ3ma4+ZWfJQ+C+elEBOba6v1kG9eGIy6sH2cvXfE=
|
25
|
+
addons:
|
26
|
+
code_climate:
|
27
|
+
secure: qmOMqc4FUBRP25XqaYIKuxZQ/GrGLKjIc3vUqZa+XfkQKh6xLXvOF7YUM/XJZ5u6D6hk0Ly8UxjctvDY+tQxEAK49lFwK51i7bODfkQjfVBrFzfht7QhxY5HJKx7F0HHmpyNJet4n8mR0gGlhwVyXv+Tz7Rm6O3Hq3+TEbY9+pk=
|
data/.yardopts
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of AlchemyCMS, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
|
4
|
+
|
5
|
+
We are committed to making participation in AlchemyCMS a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
|
6
|
+
|
7
|
+
Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
|
8
|
+
|
9
|
+
AlchemyCMS maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. AlchemyCMS maintainers who do not follow the Code of Conduct may be removed from the AlchemyCMS team.
|
10
|
+
|
11
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the AlchemyCMS maintainers.
|
12
|
+
|
13
|
+
This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
|
data/CONTRIBUTING.md
ADDED
@@ -0,0 +1,73 @@
|
|
1
|
+
Alchemy CMS is an open source project and we encourage contributions. Please read these
|
2
|
+
contributors guidelines before contributing.
|
3
|
+
|
4
|
+
## Filing an issue
|
5
|
+
|
6
|
+
When filing an issue on the Alchemy CMS project, please provide these details:
|
7
|
+
|
8
|
+
* A comprehensive list of steps to reproduce the issue.
|
9
|
+
* What you're *expecting* to happen compared with what's *actually* happening.
|
10
|
+
* The version of Alchemy *and* the version of Rails.
|
11
|
+
* Your application's complete Gemfile, as text (*not as an image*)
|
12
|
+
* Any relevant stack traces ("Full trace" preferred)
|
13
|
+
|
14
|
+
In 99% of cases, this information is enough to determine the cause and solution
|
15
|
+
to the problem that is being described.
|
16
|
+
|
17
|
+
Please remember to format code using triple backticks (\`\`\`) so that it is neatly
|
18
|
+
formatted when the issue is posted.
|
19
|
+
|
20
|
+
## Pull requests
|
21
|
+
|
22
|
+
We gladly accept pull requests to fix bugs and, in some circumstances, add new
|
23
|
+
features to Alchemy.
|
24
|
+
|
25
|
+
NOTE: Please discuss new features at the public Alchemy Trello board
|
26
|
+
and/or the Alchemy discussion board, before sending a pull request.
|
27
|
+
|
28
|
+
Here's a quick guide:
|
29
|
+
|
30
|
+
1. Fork the repo.
|
31
|
+
|
32
|
+
2. Run the tests. We only take pull requests with passing tests, and it's great
|
33
|
+
to know that you have a clean slate:
|
34
|
+
|
35
|
+
$ bundle exec rake
|
36
|
+
|
37
|
+
3. Create new branch then make changes and add tests for your changes. Only
|
38
|
+
refactoring and documentation changes require no new tests. If you are adding
|
39
|
+
functionality or fixing a bug, we need tests!
|
40
|
+
|
41
|
+
4. Push to your fork and submit a pull request. If the changes will apply cleanly
|
42
|
+
to the latest stable branches and master branch, you will only need to submit one
|
43
|
+
pull request.
|
44
|
+
|
45
|
+
5. If a PR does not apply cleanly to one of its targeted branches, then a separate
|
46
|
+
PR should be created that does. For instance, if a PR applied to master & 2.7-stable but not 2.8-stable, then there should be one PR for master & 2.7-stable and another, separate PR for 2.8-stable.
|
47
|
+
|
48
|
+
At this point you're waiting on us. We like to at least comment on, if not
|
49
|
+
accept pull requests. We may suggest some changes or improvements or alternatives.
|
50
|
+
|
51
|
+
Some things that will increase the chance that your pull request is accepted,
|
52
|
+
taken straight from the Ruby on Rails guide:
|
53
|
+
|
54
|
+
* Use Rails idioms and helpers
|
55
|
+
* Include tests that fail without your code, and pass with it
|
56
|
+
* Update the documentation, the surrounding one, examples elsewhere, guides,
|
57
|
+
whatever is affected by your contribution
|
58
|
+
|
59
|
+
Please follow these syntax guides:
|
60
|
+
|
61
|
+
* Two spaces, no tabs.
|
62
|
+
* No trailing whitespace. Blank lines should not have any space.
|
63
|
+
* Add a new line at the end of every file.
|
64
|
+
* Prefer `&&`/`||` over `and`/`or`.
|
65
|
+
* `MyClass.my_method(my_arg)` not `my_method( my_arg )` or `my_method my_arg`.
|
66
|
+
* `a = b` and not `a=b`.
|
67
|
+
* `a_method { |block| ... }` and not `a_method { | block | ... }`
|
68
|
+
* Follow the conventions you see used in the source already.
|
69
|
+
* `->` symbol over lambda
|
70
|
+
* This `{a: 'b'}` is a hash, this `{ a + b }` is a block.
|
71
|
+
* Ruby 1.9 hash syntax over Ruby 1.8 hash syntax
|
72
|
+
|
73
|
+
And in case we didn't emphasize it enough: we love tests!
|
data/Gemfile
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
gemspec
|
4
|
+
|
5
|
+
gem 'sqlite3' if ENV['DB'].nil? || ENV['DB'] == 'sqlite'
|
6
|
+
gem 'mysql2' if ENV['DB'] == 'mysql'
|
7
|
+
gem 'pg' if ENV['DB'] == 'postgresql'
|
8
|
+
|
9
|
+
group :development, :test do
|
10
|
+
gem 'jasmine-rails', github: 'searls/jasmine-rails'
|
11
|
+
gem 'jasmine-jquery-rails', github: 'travisjeffery/jasmine-jquery-rails'
|
12
|
+
if ENV['TRAVIS']
|
13
|
+
gem "codeclimate-test-reporter", require: false
|
14
|
+
else
|
15
|
+
gem 'simplecov', require: false
|
16
|
+
end
|
17
|
+
unless ENV['CI']
|
18
|
+
gem 'launchy'
|
19
|
+
gem 'annotate'
|
20
|
+
gem 'bumpy'
|
21
|
+
gem 'yard'
|
22
|
+
gem 'redcarpet'
|
23
|
+
gem 'pry-byebug'
|
24
|
+
gem 'spring'
|
25
|
+
gem 'spring-commands-rspec'
|
26
|
+
gem 'rubocop', require: false
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
# We need this if we want to start the dummy app in production, ie on Teatro.io
|
31
|
+
group :production do
|
32
|
+
gem 'uglifier', '>= 1.0.3'
|
33
|
+
gem 'therubyracer'
|
34
|
+
end
|
data/LICENSE
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
Copyright (c) 2010-2014, magic labs GmbH, Hamburg Germany
|
2
|
+
All rights reserved.
|
3
|
+
|
4
|
+
Redistribution and use in source and binary forms, with or without modification,
|
5
|
+
are permitted provided that the following conditions are met:
|
6
|
+
|
7
|
+
Redistributions of source code must retain the above copyright notice, this
|
8
|
+
list of conditions and the following disclaimer.
|
9
|
+
|
10
|
+
Redistributions in binary form must reproduce the above copyright notice, this
|
11
|
+
list of conditions and the following disclaimer in the documentation and/or
|
12
|
+
other materials provided with the distribution.
|
13
|
+
|
14
|
+
Neither the name of the magic labs GmbH nor the names of its
|
15
|
+
contributors may be used to endorse or promote products derived from
|
16
|
+
this software without specific prior written permission.
|
17
|
+
|
18
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
19
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
20
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
21
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
22
|
+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
23
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
24
|
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
25
|
+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
26
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
27
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
data/README.md
ADDED
@@ -0,0 +1,297 @@
|
|
1
|
+
[![Gem Version](https://badge.fury.io/rb/alchemy_cms.svg)](http://badge.fury.io/rb/alchemy_cms)
|
2
|
+
[![Build Status](https://travis-ci.org/AlchemyCMS/alchemy_cms.svg?branch=3.2-stable)](https://travis-ci.org/AlchemyCMS/alchemy_cms) [![Code Climate](https://codeclimate.com/github/AlchemyCMS/alchemy_cms.svg)](https://codeclimate.com/github/AlchemyCMS/alchemy_cms) [![Test Coverage](https://codeclimate.com/github/AlchemyCMS/alchemy_cms/badges/coverage.svg)](https://codeclimate.com/github/AlchemyCMS/alchemy_cms)
|
3
|
+
|
4
|
+
|
5
|
+
## About
|
6
|
+
|
7
|
+
![Alchemy CMS](http://alchemy-cms.com/assets/alchemy_logo.svg)
|
8
|
+
|
9
|
+
Alchemy is a powerful, flexible and user centric Rails CMS.
|
10
|
+
|
11
|
+
Read more about Alchemy on the [website](http://alchemy-cms.com) and in the [guidelines](http://guides.alchemy-cms.com).
|
12
|
+
|
13
|
+
|
14
|
+
## Features
|
15
|
+
|
16
|
+
- Highly flexible templating that completely separates content from markup
|
17
|
+
- End-User centric graphical user interface
|
18
|
+
- Multi language and multi domain
|
19
|
+
- SEO friendly urls
|
20
|
+
- User Access Control
|
21
|
+
- Build in contact form mailer
|
22
|
+
- Attachments and downloads
|
23
|
+
- Powerful image rendering
|
24
|
+
- Extendable via Rails engines
|
25
|
+
- Integrates into existing Rails Apps
|
26
|
+
- Flexible caching
|
27
|
+
- Hostable on any Server that supports Ruby on Rails, a SQL Database and ImageMagick
|
28
|
+
|
29
|
+
|
30
|
+
## Rails Version
|
31
|
+
|
32
|
+
**This version of Alchemy CMS runs with Rails 4.2 only**
|
33
|
+
|
34
|
+
* For a Rails 4.0/4.1 compatible version use the [`3.1-stable` branch](https://github.com/AlchemyCMS/alchemy_cms/tree/3.1-stable).
|
35
|
+
* For a Rails 3.2 compatible version use the [`2.8-stable` branch](https://github.com/AlchemyCMS/alchemy_cms/tree/2.8-stable).
|
36
|
+
* For a Rails 3.1 compatible version use the [`2.1-stable` branch](https://github.com/AlchemyCMS/alchemy_cms/tree/2.1-stable).
|
37
|
+
* For a Rails 3.0 compatible version use the [`2.0-stable` branch](https://github.com/AlchemyCMS/alchemy_cms/tree/2.0-stable).
|
38
|
+
* For a Rails 2.3 compatible version use the [`1.6-stable` branch](https://github.com/AlchemyCMS/alchemy_cms/tree/1.6-stable).
|
39
|
+
|
40
|
+
|
41
|
+
## Ruby Version
|
42
|
+
|
43
|
+
Alchemy runs with Ruby >= 2.0.0.
|
44
|
+
|
45
|
+
For a Ruby 1.9.3 compatible version use the [`3.1-stable` branch](https://github.com/AlchemyCMS/alchemy_cms/tree/3.1-stable).
|
46
|
+
|
47
|
+
For a Ruby 1.8.7 compatible version use the [`2.3-stable` branch](https://github.com/AlchemyCMS/alchemy_cms/tree/2.3-stable).
|
48
|
+
|
49
|
+
|
50
|
+
## Installation
|
51
|
+
|
52
|
+
### Install as a standalone project
|
53
|
+
|
54
|
+
Use the installer:
|
55
|
+
|
56
|
+
```shell
|
57
|
+
$ gem install alchemy_cms
|
58
|
+
$ alchemy new my_magicpage
|
59
|
+
```
|
60
|
+
|
61
|
+
and follow the instructions to finish the installation.
|
62
|
+
|
63
|
+
The installer has some options (like choosing the database). See them with:
|
64
|
+
|
65
|
+
```shell
|
66
|
+
$ alchemy --help
|
67
|
+
```
|
68
|
+
|
69
|
+
### Install into an existing Rails project
|
70
|
+
|
71
|
+
#### 1. Add the Alchemy gem:
|
72
|
+
|
73
|
+
Put this into your `Gemfile`:
|
74
|
+
|
75
|
+
```ruby
|
76
|
+
gem 'alchemy_cms', github: 'AlchemyCMS/alchemy_cms', branch: '3.2-stable'
|
77
|
+
```
|
78
|
+
|
79
|
+
**NOTE:** You normally want to use a stable branch, like `3.0-stable`.
|
80
|
+
|
81
|
+
If you want to use Russian translation and have better i18n support, you should put:
|
82
|
+
|
83
|
+
```ruby
|
84
|
+
gem 'russian', '~> 0.6.0'
|
85
|
+
```
|
86
|
+
|
87
|
+
or gem with similar functionality into your Gemfile.
|
88
|
+
|
89
|
+
#### 2. Update your bundle:
|
90
|
+
|
91
|
+
```shell
|
92
|
+
$ bundle install
|
93
|
+
```
|
94
|
+
|
95
|
+
#### 3. Set the authentication user
|
96
|
+
|
97
|
+
Now you have to decide, if you want to use your own user model or if you want to use
|
98
|
+
the Devise based user model that Alchemy provides and was extracted [into its own gem](https://github.com/AlchemyCMS/alchemy-devise).
|
99
|
+
|
100
|
+
##### Use Alchemy user
|
101
|
+
|
102
|
+
If you don't have your own user class, you can use the Alchemy user model. Just add the following gem into your `Gemfile`:
|
103
|
+
|
104
|
+
```ruby
|
105
|
+
gem 'alchemy-devise', github: 'AlchemyCMS/alchemy-devise', branch: '3.2-stable'
|
106
|
+
```
|
107
|
+
|
108
|
+
**NOTE:** You normally want to use a stable branch, like `2.0-stable`.
|
109
|
+
|
110
|
+
Then run:
|
111
|
+
|
112
|
+
```shell
|
113
|
+
$ bundle install
|
114
|
+
$ bin/rake alchemy_devise:install:migrations
|
115
|
+
```
|
116
|
+
|
117
|
+
##### Use your User model
|
118
|
+
|
119
|
+
In order to use your own user model you need to tell Alchemy about it.
|
120
|
+
|
121
|
+
The best practice is to use an initializer:
|
122
|
+
|
123
|
+
```ruby
|
124
|
+
# config/initializers/alchemy.rb
|
125
|
+
Alchemy.user_class_name = 'YourUserClass' # Defaults to 'User'
|
126
|
+
Alchemy.current_user_method = 'current_admin_user' # Defaults to 'current_user'
|
127
|
+
Alchemy.signup_path = '/your/signup/path' # Defaults to '/signup'
|
128
|
+
Alchemy.login_path = '/your/login/path' # Defaults to '/login'
|
129
|
+
Alchemy.logout_path = '/your/logout/path' # Defaults to '/logout'
|
130
|
+
```
|
131
|
+
|
132
|
+
The only thing Alchemy needs to know from your user class is the `alchemy_roles` method.
|
133
|
+
|
134
|
+
This method has to return an `Array` (or `ActiveRecord::Relation`) with at least one of the following roles: `member`, `author`, `editor`, `admin`.
|
135
|
+
|
136
|
+
##### Example
|
137
|
+
|
138
|
+
```ruby
|
139
|
+
# app/models/user.rb
|
140
|
+
|
141
|
+
def alchemy_roles
|
142
|
+
if admin?
|
143
|
+
%w(admin)
|
144
|
+
end
|
145
|
+
end
|
146
|
+
```
|
147
|
+
|
148
|
+
Please follow [this guide](http://guides.alchemy-cms.com/edge/custom_authentication.html) for further instructions on how to customize your user class even more.
|
149
|
+
|
150
|
+
#### 4. Install Alchemy into your app:
|
151
|
+
|
152
|
+
**After** you set the user model you need to run the Alchemy install task:
|
153
|
+
|
154
|
+
```shell
|
155
|
+
$ bin/rake alchemy:install
|
156
|
+
```
|
157
|
+
|
158
|
+
Now everything should be set up and you should be able to visit the Alchemy Dashboard at:
|
159
|
+
|
160
|
+
<http://localhost:3000/admin>
|
161
|
+
|
162
|
+
*) Use your custom path if you mounted Alchemy at something else then `'/'`
|
163
|
+
|
164
|
+
|
165
|
+
## Customizing
|
166
|
+
|
167
|
+
Alchemy has very flexible ways to organize and manage content. Please be sure to read [the introduction guide](http://guides.alchemy-cms.com/edge/index.html) in order to understand the basic idea of how Alchemy works.
|
168
|
+
|
169
|
+
|
170
|
+
### Custom Controllers
|
171
|
+
|
172
|
+
Beginning with Alchemy 3.1 we do not patch the `ApplicationController` anymore. If you have controllers that loads Alchemy content or uses Alchemy helpers in the views (i.e. `render_navigation` or `render_elements`) you can either inherit from `Alchemy::BaseController` or you `include Alchemy::ControllerActions` in your controller (**that's the recommended way**).
|
173
|
+
|
174
|
+
|
175
|
+
## Upgrading
|
176
|
+
|
177
|
+
The Alchemy team takes upgrades very seriously and tries to make them as smooth as we can. Therefore we have build in upgrade tasks, that try to automate as much as possible.
|
178
|
+
|
179
|
+
That's why after updating the Alchemy gem you should **always run the upgrader**:
|
180
|
+
|
181
|
+
```shell
|
182
|
+
$ bundle update alchemy_cms
|
183
|
+
$ bin/rake alchemy:upgrade
|
184
|
+
```
|
185
|
+
|
186
|
+
Alchemy will print out useful information after running the automated tasks that help a smooth upgrade path. So please **take your time and read them**.
|
187
|
+
|
188
|
+
Always be sure to keep an eye on the `config/alchemy/config.yml.defaults` file and update your `config/alchemy/config.yml` accordingly.
|
189
|
+
|
190
|
+
Also, `git diff` is your friend. You are using git to track changes of your projects, right?
|
191
|
+
|
192
|
+
|
193
|
+
## Deployment
|
194
|
+
|
195
|
+
Alchemy has an official Capistrano extension which takes care of everything you need to deploy an Alchemy site.
|
196
|
+
|
197
|
+
Please use https://github.com/AlchemyCMS/capistrano-alchemy, if you want to deploy with Capistrano.
|
198
|
+
|
199
|
+
### Without Capistrano
|
200
|
+
|
201
|
+
If you don't use Capistrano you have to **make sure** that the `uploads`, `tmp/cache/assets`, `public/assets` and `public/pictures` folders get **shared between deployments**, otherwise you **will loose data**. No, not really, but you know, just keep them in sync.
|
202
|
+
|
203
|
+
|
204
|
+
## Testing
|
205
|
+
|
206
|
+
If you want to contribute to Alchemy ([and we encourage you to do so](https://github.com/AlchemyCMS/alchemy_cms/blob/master/CONTRIBUTING.md)) we have a strong test suite that helps you to not break anything.
|
207
|
+
|
208
|
+
### Preparation
|
209
|
+
|
210
|
+
First of all you need to clone your fork to your local development machine. Then you need to install the dependencies with bundler.
|
211
|
+
|
212
|
+
```shell
|
213
|
+
$ bundle install
|
214
|
+
```
|
215
|
+
|
216
|
+
To prepare the tests of your Alchemy fork please make sure to run the preparation task:
|
217
|
+
|
218
|
+
```shell
|
219
|
+
$ bundle exec rake alchemy:spec:prepare
|
220
|
+
```
|
221
|
+
|
222
|
+
to set up the database for testing.
|
223
|
+
|
224
|
+
### Run your tests with:
|
225
|
+
|
226
|
+
```shell
|
227
|
+
$ bundle exec rspec
|
228
|
+
```
|
229
|
+
|
230
|
+
**Alternatively** you can just run*:
|
231
|
+
|
232
|
+
```shell
|
233
|
+
$ bundle exec rake
|
234
|
+
```
|
235
|
+
|
236
|
+
*) This default task executes the database preparations and runs all defined test cases.
|
237
|
+
|
238
|
+
### Start the dummy app
|
239
|
+
|
240
|
+
You can even start the dummy app and use it to manually test your changes with:
|
241
|
+
|
242
|
+
```shell
|
243
|
+
$ cd spec/dummy
|
244
|
+
$ bin/rake db:setup
|
245
|
+
$ bin/rails s
|
246
|
+
```
|
247
|
+
|
248
|
+
**A note about RSpec version:**
|
249
|
+
|
250
|
+
Alchemy specs are written **in RSpec 3**. Please **do not use deprecated RSpec 2.x syntax**. Thanks
|
251
|
+
|
252
|
+
|
253
|
+
## Getting Help
|
254
|
+
|
255
|
+
* Read the guidelines: http://guides.alchemy-cms.com.
|
256
|
+
* Read the documentation: http://rubydoc.info/github/AlchemyCMS/alchemy_cms
|
257
|
+
* If you found a bug please use the [issue tracker on Github](https://github.com/AlchemyCMS/alchemy_cms/issues).
|
258
|
+
* For questions about general usage please use [Stack Overflow](http://stackoverflow.com/questions/tagged/alchemy-cms), [the User Group](http://groups.google.com/group/alchemy-cms) or the [IRC channel](irc://irc.freenode.net#alchemy_cms).
|
259
|
+
* New features should be discussed on our [Trello Board](https://trello.com/alchemycms).
|
260
|
+
|
261
|
+
**PLEASE** don't use the Github issues for feature requests. If you want to contribute to Alchemy please [read the contribution guidelines](https://github.com/AlchemyCMS/alchemy_cms/blob/master/CONTRIBUTING.md) before doing so.
|
262
|
+
|
263
|
+
|
264
|
+
## Resources
|
265
|
+
|
266
|
+
* Homepage: <http://alchemy-cms.com>
|
267
|
+
* Live-Demo: <http://demo.alchemy-cms.com> (user: demo, password: demo123)
|
268
|
+
* API Documentation: <http://rubydoc.info/github/AlchemyCMS/alchemy_cms>
|
269
|
+
* Issue-Tracker: <https://github.com/AlchemyCMS/alchemy_cms/issues>
|
270
|
+
* Sourcecode: <https://github.com/AlchemyCMS/alchemy_cms>
|
271
|
+
* User Group: <http://groups.google.com/group/alchemy-cms>
|
272
|
+
* IRC Channel: <irc://irc.freenode.net#alchemy_cms>
|
273
|
+
* Discussion Board: <https://trello.com/alchemycms>
|
274
|
+
* Twitter: <https://twitter.com/alchemy_cms>
|
275
|
+
|
276
|
+
|
277
|
+
## Authors
|
278
|
+
|
279
|
+
* Thomas von Deyen: <https://github.com/tvdeyen>
|
280
|
+
* Robin Böning: <https://github.com/robinboening>
|
281
|
+
* Marc Schettke: <https://github.com/masche842>
|
282
|
+
* Hendrik Mans: <https://github.com/hmans>
|
283
|
+
* Carsten Fregin: <https://github.com/cfregin>
|
284
|
+
|
285
|
+
|
286
|
+
## License
|
287
|
+
|
288
|
+
* BSD: <https://raw.github.com/magiclabs/alchemy_cms/master/LICENSE>
|
289
|
+
|
290
|
+
|
291
|
+
## Spread the love
|
292
|
+
|
293
|
+
If you like Alchemy, please help us to spread the word about Alchemy and star this repo [on GitHub](https://github.com/AlchemyCMS/alchemy_cms), upvote it [on The Ruby Toolbox](https://www.ruby-toolbox.com/projects/alchemy_cms), mention us [on Twitter](https://twitter.com/alchemy_cms) and vote for it [on Bitnami](https://bitnami.com/stack/alchemy).
|
294
|
+
|
295
|
+
That will help us to keep Alchemy awesome.
|
296
|
+
|
297
|
+
Thank you <3!
|