refinerycms-core 1.0.11 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/{public → app/assets/images}/favicon.ico +0 -0
- data/{public → app/assets}/images/refinery/add.png +0 -0
- data/{public → app/assets}/images/refinery/admin_bg.png +0 -0
- data/{public → app/assets}/images/refinery/ajax-loader.gif +0 -0
- data/{public → app/assets}/images/refinery/branch-end.gif +0 -0
- data/{public → app/assets}/images/refinery/branch-start.gif +0 -0
- data/{public → app/assets}/images/refinery/branch.gif +0 -0
- data/{public → app/assets}/images/refinery/carousel-left.png +0 -0
- data/{public → app/assets}/images/refinery/carousel-right.png +0 -0
- data/{public → app/assets}/images/refinery/cross.png +0 -0
- data/{public → app/assets}/images/refinery/dialogLoadingAnimation.gif +0 -0
- data/{public → app/assets}/images/refinery/header_background.png +0 -0
- data/{public → app/assets}/images/refinery/hover-gradient.jpg +0 -0
- data/{public → app/assets}/images/refinery/icons/accept.png +0 -0
- data/{public → app/assets}/images/refinery/icons/add.png +0 -0
- data/{public → app/assets}/images/refinery/icons/ajax-loader.gif +0 -0
- data/{public → app/assets}/images/refinery/icons/application_edit.png +0 -0
- data/{public → app/assets}/images/refinery/icons/application_go.png +0 -0
- data/{public → app/assets}/images/refinery/icons/arrow_left.png +0 -0
- data/{public → app/assets}/images/refinery/icons/arrow_switch.png +0 -0
- data/{public → app/assets}/images/refinery/icons/arrow_up.png +0 -0
- data/{public → app/assets}/images/refinery/icons/bin.png +0 -0
- data/{public → app/assets}/images/refinery/icons/bin_closed.png +0 -0
- data/{public → app/assets}/images/refinery/icons/cancel.png +0 -0
- data/{public → app/assets}/images/refinery/icons/cog_add.png +0 -0
- data/{public → app/assets}/images/refinery/icons/cog_edit.png +0 -0
- data/{public → app/assets}/images/refinery/icons/cross.png +0 -0
- data/{public → app/assets}/images/refinery/icons/delete.png +0 -0
- data/{public → app/assets}/images/refinery/icons/doc.png +0 -0
- data/{public → app/assets}/images/refinery/icons/down.gif +0 -0
- data/{public → app/assets}/images/refinery/icons/edit.png +0 -0
- data/{public → app/assets}/images/refinery/icons/email.png +0 -0
- data/{public → app/assets}/images/refinery/icons/email_edit.png +0 -0
- data/{public → app/assets}/images/refinery/icons/email_go.png +0 -0
- data/{public → app/assets}/images/refinery/icons/email_open.png +0 -0
- data/{public → app/assets}/images/refinery/icons/eye.png +0 -0
- data/app/assets/images/refinery/icons/folder.png +0 -0
- data/app/assets/images/refinery/icons/folder_open.png +0 -0
- data/{public → app/assets}/images/refinery/icons/folder_page_white.png +0 -0
- data/{public → app/assets}/images/refinery/icons/image_add.png +0 -0
- data/{public → app/assets}/images/refinery/icons/image_edit.png +0 -0
- data/{public → app/assets}/images/refinery/icons/img.png +0 -0
- data/{public → app/assets}/images/refinery/icons/information.png +0 -0
- data/{public → app/assets}/images/refinery/icons/layout_add.png +0 -0
- data/{public → app/assets}/images/refinery/icons/layout_edit.png +0 -0
- data/{public → app/assets}/images/refinery/icons/music.png +0 -0
- data/app/assets/images/refinery/icons/page.png +0 -0
- data/{public → app/assets}/images/refinery/icons/page_add.png +0 -0
- data/{public → app/assets}/images/refinery/icons/page_edit.png +0 -0
- data/{public → app/assets}/images/refinery/icons/page_white_edit.png +0 -0
- data/{public → app/assets}/images/refinery/icons/page_white_gear.png +0 -0
- data/{public → app/assets}/images/refinery/icons/page_white_put.png +0 -0
- data/{public → app/assets}/images/refinery/icons/pdf.png +0 -0
- data/{public → app/assets}/images/refinery/icons/ppt.png +0 -0
- data/{public → app/assets}/images/refinery/icons/star.png +0 -0
- data/{public → app/assets}/images/refinery/icons/tick.png +0 -0
- data/{public → app/assets}/images/refinery/icons/up.gif +0 -0
- data/{public → app/assets}/images/refinery/icons/user_add.png +0 -0
- data/{public → app/assets}/images/refinery/icons/user_comment.png +0 -0
- data/{public → app/assets}/images/refinery/icons/user_edit.png +0 -0
- data/{public → app/assets}/images/refinery/icons/xls.png +0 -0
- data/{public → app/assets}/images/refinery/icons/zip.png +0 -0
- data/{public → app/assets}/images/refinery/icons/zoom.png +0 -0
- data/{public → app/assets}/images/refinery/logo-large.png +0 -0
- data/{public → app/assets}/images/refinery/logo-medium.png +0 -0
- data/{public → app/assets}/images/refinery/logo-site-bar.png +0 -0
- data/{public → app/assets}/images/refinery/logo-small-medium.png +0 -0
- data/{public → app/assets}/images/refinery/logo-small.png +0 -0
- data/{public → app/assets}/images/refinery/logo-tiny.png +0 -0
- data/{public → app/assets}/images/refinery/logo.png +0 -0
- data/{public → app/assets}/images/refinery/nav-3-background.gif +0 -0
- data/{public → app/assets}/images/refinery/nav_inactive_background.png +0 -0
- data/{public → app/assets}/images/refinery/orange_button.png +0 -0
- data/{public → app/assets}/images/refinery/page_bg.png +0 -0
- data/{public → app/assets}/images/refinery/resolve_digital_footer_logo.png +0 -0
- data/{public → app/assets}/images/refinery/text_field_background.png +0 -0
- data/{public → app/assets}/images/refinery/tooltip-nib.gif +0 -0
- data/{public → app/assets}/images/refinery/tooltip-nib.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/arrow_redo.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/arrow_undo.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/eye.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/html5/article.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/html5/aside.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/html5/blockquote.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/html5/command.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/html5/details.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/html5/figcaption.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/html5/figure.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/html5/footer.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/html5/h1.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/html5/h2.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/html5/h3.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/html5/h4.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/html5/h5.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/html5/h6.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/html5/header.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/html5/hgroup.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/html5/mark.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/html5/meter.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/html5/nav.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/html5/p.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/html5/pre.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/html5/progress.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/html5/readme.md +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/html5/rp.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/html5/rt.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/html5/ruby.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/html5/section.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/html5/summary.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/html5/time.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/iframe/lbl-blockquote.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/iframe/lbl-h1.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/iframe/lbl-h2.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/iframe/lbl-h3.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/iframe/lbl-h4.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/iframe/lbl-h5.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/iframe/lbl-h6.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/iframe/lbl-p.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/iframe/lbl-pre.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/link_add.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/link_break.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/page_code.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/page_paste.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/photo_add.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/right.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/style.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/table_add.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/text_align_center.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/text_align_justify.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/text_align_left.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/text_align_right.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/text_bold.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/text_heading_1.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/text_heading_2.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/text_heading_3.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/text_heading_4.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/text_heading_5.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/text_heading_6.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/text_indent.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/text_indent_remove.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/text_italic.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/text_list_bullets.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/text_list_numbers.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/text_paragraph.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/text_strikethrough.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/text_subscript.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/text_superscript.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/refinery/text_underline.png +0 -0
- data/{public → app/assets}/images/wymeditor/skins/wymeditor_icon.png +0 -0
- data/{public → app/assets}/javascripts/admin.js +1 -2
- data/{public → app/assets}/javascripts/application.js +0 -0
- data/{public → app/assets}/javascripts/dd_belatedpng.js +0 -0
- data/{public → app/assets}/javascripts/jquery/GPL-LICENSE.txt +0 -0
- data/{public → app/assets}/javascripts/jquery/MIT-LICENSE.txt +0 -0
- data/{public → app/assets}/javascripts/jquery/jquery.corner.js +0 -0
- data/{public → app/assets}/javascripts/jquery/jquery.html5-placeholder-shim.js +0 -0
- data/{public → app/assets}/javascripts/jquery/jquery.jcarousel.js +0 -0
- data/{public → app/assets}/javascripts/jquery/jquery.textTruncate.js +0 -0
- data/{public → app/assets}/javascripts/jquery/jquery.timers.js +0 -0
- data/app/assets/javascripts/modernizr-min.js +4 -0
- data/{public/javascripts/refinery/admin.js → app/assets/javascripts/refinery/admin.js.erb} +121 -209
- data/app/assets/javascripts/refinery/ajaxy_pagination.js.coffee +13 -0
- data/{public/javascripts/refinery/boot_wym.js → app/assets/javascripts/refinery/boot_wym.js.erb} +8 -8
- data/{public → app/assets}/javascripts/refinery/core.js +1 -1
- data/app/assets/javascripts/refinery/interface.js.coffee.erb +70 -0
- data/app/assets/javascripts/refinery/modal_dialogs.js.erb +142 -0
- data/app/assets/javascripts/refinery/nestedsortables.js +356 -0
- data/app/assets/javascripts/refinery/refinery.js.erb +20 -0
- data/app/assets/javascripts/refinery/serializelist.js +68 -0
- data/{public → app/assets}/javascripts/refinery/site_bar.js +0 -0
- data/app/assets/javascripts/refinery/sortable_menu.js.coffee +21 -0
- data/{public/javascripts/refinery/submenu.js → app/assets/javascripts/refinery/submenu.js.erb} +1 -1
- data/app/assets/javascripts/refinery/submit_continue.js.coffee.erb +8 -0
- data/app/assets/javascripts/refinery/tree.js +25 -0
- data/app/assets/javascripts/refinery/wymeditor.js +37 -0
- data/app/assets/javascripts/wymeditor/browsers/ie.js.erb +224 -0
- data/app/assets/javascripts/wymeditor/browsers/mozilla.js.erb +293 -0
- data/app/assets/javascripts/wymeditor/browsers/opera.js.erb +123 -0
- data/app/assets/javascripts/wymeditor/browsers/webkit.js.erb +284 -0
- data/app/assets/javascripts/wymeditor/classes.js.erb +1577 -0
- data/app/assets/javascripts/wymeditor/functions.js.erb +218 -0
- data/{public → app/assets}/javascripts/wymeditor/lang/bg.js +0 -0
- data/{public → app/assets}/javascripts/wymeditor/lang/ca.js +0 -0
- data/{public → app/assets}/javascripts/wymeditor/lang/cs.js +12 -1
- data/{public → app/assets}/javascripts/wymeditor/lang/da.js +0 -0
- data/{public → app/assets}/javascripts/wymeditor/lang/de.js +0 -0
- data/{public → app/assets}/javascripts/wymeditor/lang/en.js +0 -0
- data/{public → app/assets}/javascripts/wymeditor/lang/es.js +0 -0
- data/{public → app/assets}/javascripts/wymeditor/lang/fa.js +0 -0
- data/{public → app/assets}/javascripts/wymeditor/lang/fi.js +0 -0
- data/{public → app/assets}/javascripts/wymeditor/lang/fr.js +13 -1
- data/{public → app/assets}/javascripts/wymeditor/lang/he.js +0 -0
- data/{public → app/assets}/javascripts/wymeditor/lang/hu.js +0 -0
- data/{public → app/assets}/javascripts/wymeditor/lang/it.js +0 -0
- data/{public/javascripts/wymeditor/lang/jp.js → app/assets/javascripts/wymeditor/lang/ja.js} +1 -1
- data/{public → app/assets}/javascripts/wymeditor/lang/lv.js +0 -0
- data/{public → app/assets}/javascripts/wymeditor/lang/nb.js +0 -0
- data/{public → app/assets}/javascripts/wymeditor/lang/nl.js +0 -0
- data/{public → app/assets}/javascripts/wymeditor/lang/nn.js +0 -0
- data/{public → app/assets}/javascripts/wymeditor/lang/pl.js +0 -0
- data/app/assets/javascripts/wymeditor/lang/pt-BR.js +58 -0
- data/{public → app/assets}/javascripts/wymeditor/lang/pt.js +0 -0
- data/{public → app/assets}/javascripts/wymeditor/lang/rs.js +0 -0
- data/{public → app/assets}/javascripts/wymeditor/lang/ru.js +14 -3
- data/{public → app/assets}/javascripts/wymeditor/lang/sk.js +12 -1
- data/{public → app/assets}/javascripts/wymeditor/lang/sl.js +0 -0
- data/{public → app/assets}/javascripts/wymeditor/lang/sv.js +0 -0
- data/{public → app/assets}/javascripts/wymeditor/lang/tr.js +0 -0
- data/{public → app/assets}/javascripts/wymeditor/lang/vi.js +0 -0
- data/{public → app/assets}/javascripts/wymeditor/lang/zh_cn.js +0 -0
- data/app/assets/javascripts/wymeditor/prototypes.js.erb +1106 -0
- data/app/assets/javascripts/wymeditor/setup.js.erb +622 -0
- data/{public → app/assets}/javascripts/wymeditor/skins/refinery/skin.js +0 -0
- data/app/assets/javascripts/wymeditor/validators.js.erb +776 -0
- data/{public/stylesheets/refinery/home.css → app/assets/stylesheets/.gitkeep} +0 -0
- data/app/assets/stylesheets/application.css.scss +55 -0
- data/{public/stylesheets/refinery/formatting.css → app/assets/stylesheets/formatting.css.scss} +20 -23
- data/{public/stylesheets/home.css → app/assets/stylesheets/home.css.scss} +1 -2
- data/{public/stylesheets/refinery/refinery.css → app/assets/stylesheets/refinery/refinery.css.scss} +616 -654
- data/app/assets/stylesheets/refinery/site_bar.css.scss +92 -0
- data/app/assets/stylesheets/refinery/submenu.css.scss +24 -0
- data/app/assets/stylesheets/refinery/tooltips.css.scss +34 -0
- data/{public/stylesheets/refinery/ui.css → app/assets/stylesheets/refinery/ui.css.scss} +50 -54
- data/{public/stylesheets/refinery/theme.css → app/assets/stylesheets/theme.css.scss} +1 -1
- data/{public/stylesheets/wymeditor/skins/refinery/skin.css → app/assets/stylesheets/wymeditor/skins/refinery/skin.css.scss} +58 -58
- data/{public/stylesheets/wymeditor/skins/refinery/wymiframe.css → app/assets/stylesheets/wymeditor/skins/refinery/wymiframe.css.scss} +29 -29
- data/app/controllers/application_controller.rb +0 -1
- data/app/controllers/refinery/admin/dialogs_controller.rb +24 -0
- data/app/controllers/refinery/admin/refinery_core_controller.rb +14 -0
- data/app/controllers/{admin/base_controller.rb → refinery/admin_controller.rb} +2 -3
- data/app/controllers/refinery/fast_controller.rb +5 -1
- data/app/controllers/refinery/sitemap_controller.rb +20 -0
- data/app/helpers/application_helper.rb +1 -1
- data/app/helpers/refinery/custom_assets_helper.rb +11 -0
- data/app/helpers/refinery/html_truncation_helper.rb +23 -0
- data/app/helpers/refinery/image_helper.rb +37 -0
- data/app/helpers/refinery/menu_helper.rb +66 -0
- data/app/helpers/refinery/meta_helper.rb +52 -0
- data/app/helpers/refinery/pagination_helper.rb +14 -0
- data/app/helpers/refinery/site_bar_helper.rb +30 -0
- data/app/helpers/refinery/tag_helper.rb +20 -0
- data/app/helpers/refinery/translation_helper.rb +15 -0
- data/app/models/refinery/core/base_model.rb +11 -0
- data/app/views/layouts/application.html.erb +9 -9
- data/app/views/layouts/refinery/admin.html.erb +23 -0
- data/app/views/layouts/refinery/admin_dialog.html.erb +17 -0
- data/app/views/layouts/refinery/flash.html.erb +2 -0
- data/app/views/refinery/_content_page.html.erb +2 -0
- data/app/views/{shared → refinery}/_draft_page_message.html.erb +0 -0
- data/app/views/refinery/_footer.html.erb +4 -0
- data/app/views/{shared → refinery}/_google_analytics.html.erb +2 -2
- data/app/views/refinery/_head.html.erb +18 -0
- data/app/views/refinery/_header.html.erb +7 -0
- data/app/views/{shared → refinery}/_html_tag.html.erb +0 -0
- data/app/views/{shared → refinery}/_ie6check.html.erb +2 -2
- data/app/views/{shared → refinery}/_javascripts.html.erb +0 -0
- data/app/views/refinery/_menu.html.erb +20 -0
- data/app/views/refinery/_menu_branch.html.erb +19 -0
- data/app/views/refinery/_message.html.erb +7 -0
- data/app/views/{shared → refinery}/_no_script.html.erb +0 -0
- data/app/views/{shared → refinery}/_site_bar.html.erb +3 -3
- data/app/views/{shared → refinery}/admin/_continue_editing.html.erb +0 -0
- data/app/views/refinery/admin/_dialog_success.html.erb +5 -0
- data/app/views/{shared → refinery}/admin/_error_messages.html.erb +0 -0
- data/app/views/{shared → refinery}/admin/_form_actions.html.erb +11 -15
- data/app/views/refinery/admin/_head.html.erb +13 -0
- data/app/views/{shared → refinery}/admin/_image_picker.html.erb +8 -7
- data/app/views/refinery/admin/_javascripts.html.erb +8 -0
- data/app/views/refinery/admin/_make_sortable.html.erb +16 -0
- data/app/views/{admin → refinery/admin}/_menu.html.erb +4 -4
- data/app/views/{shared → refinery}/admin/_resource_picker.html.erb +14 -23
- data/app/views/{shared → refinery}/admin/_search.html.erb +1 -1
- data/app/views/{shared → refinery}/admin/_sortable_list.html.erb +0 -0
- data/app/views/{shared → refinery}/admin/_tabbed_fields.html.erb +2 -2
- data/app/views/{admin → refinery/admin}/dialogs/show.html.erb +0 -0
- data/app/views/refinery/sitemap/index.xml.builder +25 -0
- data/app/views/{wymiframe.html.erb → refinery/wymiframe.html.erb} +2 -3
- data/config/initializers/will_paginate_monkeypatch.rb +21 -0
- data/config/locales/bg.yml +24 -29
- data/config/locales/cs.yml +20 -25
- data/config/locales/da.yml +19 -24
- data/config/locales/de.yml +19 -24
- data/config/locales/el.yml +19 -24
- data/config/locales/en.yml +25 -31
- data/config/locales/es.yml +12 -17
- data/config/locales/fi.yml +22 -27
- data/config/locales/fr.yml +19 -24
- data/config/locales/it.yml +19 -40
- data/config/locales/{jp.yml → ja.yml} +25 -28
- data/config/locales/ko.yml +76 -0
- data/config/locales/lt.yml +19 -24
- data/config/locales/lv.yml +21 -26
- data/config/locales/nb.yml +19 -24
- data/config/locales/nl.yml +19 -24
- data/config/locales/pl.yml +19 -24
- data/config/locales/pt-BR.yml +19 -24
- data/config/locales/rs.yml +19 -25
- data/config/locales/ru.yml +37 -38
- data/config/locales/sk.yml +19 -24
- data/config/locales/sl.yml +12 -21
- data/config/locales/sv.yml +19 -24
- data/config/locales/vi.yml +19 -24
- data/config/locales/zh-CN.yml +19 -24
- data/config/locales/zh-TW.yml +19 -24
- data/config/routes.rb +5 -10
- data/lib/generators/refinery/clash_keywords.yml +3 -0
- data/lib/generators/refinery/cms/cms_generator.rb +238 -0
- data/lib/generators/{templates → refinery/cms/templates}/.gitignore +3 -1
- data/lib/generators/refinery/cms/templates/app/decorators/controllers/refinery/.gitkeep +0 -0
- data/lib/generators/refinery/cms/templates/app/decorators/models/refinery/.gitkeep +0 -0
- data/lib/generators/{templates → refinery/cms/templates}/app/views/sitemap/index.xml.builder +1 -1
- data/lib/generators/{templates → refinery/cms/templates}/config/database.yml.mysql +5 -5
- data/lib/generators/{templates → refinery/cms/templates}/config/database.yml.postgresql +26 -25
- data/lib/generators/{templates → refinery/cms/templates}/config/database.yml.sqlite3 +1 -9
- data/lib/generators/refinery/cms/templates/config/initializers/devise.rb +229 -0
- data/lib/generators/refinery/core/core_generator.rb +9 -0
- data/lib/generators/refinery/core/templates/config/initializers/refinery/core.rb.erb +48 -0
- data/lib/generators/refinery/dummy/dummy_generator.rb +86 -0
- data/lib/generators/refinery/dummy/templates/rails/Rakefile +7 -0
- data/lib/generators/refinery/dummy/templates/rails/application.rb +14 -0
- data/lib/generators/refinery/dummy/templates/rails/boot.rb +6 -0
- data/lib/generators/refinery/dummy/templates/rails/database.yml +34 -0
- data/lib/generators/refinery/dummy/templates/rails/routes.rb +3 -0
- data/lib/generators/refinery/engine/USAGE +24 -0
- data/lib/generators/refinery/engine/engine_generator.rb +36 -0
- data/lib/generators/refinery/engine/templates/Gemfile +69 -0
- data/lib/generators/refinery/engine/templates/Guardfile +27 -0
- data/lib/generators/refinery/engine/templates/Rakefile +20 -0
- data/lib/generators/refinery/engine/templates/app/controllers/refinery/namespace/admin/plural_name_controller.rb +14 -0
- data/lib/generators/refinery/engine/templates/app/controllers/refinery/namespace/plural_name_controller.rb +34 -0
- data/lib/generators/refinery/engine/templates/app/models/refinery/namespace/singular_name.rb +28 -0
- data/lib/generators/refinery/engine/templates/app/views/refinery/namespace/admin/plural_name/_actions.html.erb +25 -0
- data/lib/generators/refinery/engine/templates/app/views/refinery/namespace/admin/plural_name/_form.html.erb +67 -0
- data/lib/generators/refinery/engine/templates/app/views/refinery/namespace/admin/plural_name/_locale_picker.html.erb +11 -0
- data/lib/generators/refinery/engine/templates/app/views/refinery/namespace/admin/plural_name/_plural_name.html.erb +2 -0
- data/lib/generators/refinery/engine/templates/app/views/refinery/namespace/admin/plural_name/_records.html.erb +18 -0
- data/lib/generators/refinery/engine/templates/app/views/refinery/namespace/admin/plural_name/_singular_name.html.erb +32 -0
- data/lib/generators/refinery/engine/templates/app/views/refinery/namespace/admin/plural_name/_sortable_list.html.erb +5 -0
- data/lib/generators/refinery/engine/templates/app/views/refinery/namespace/admin/plural_name/edit.html.erb +1 -0
- data/lib/generators/refinery/engine/templates/app/views/refinery/namespace/admin/plural_name/index.html.erb +7 -0
- data/lib/generators/refinery/engine/templates/app/views/refinery/namespace/admin/plural_name/new.html.erb +1 -0
- data/lib/generators/refinery/engine/templates/app/views/refinery/namespace/plural_name/index.html.erb +11 -0
- data/lib/generators/refinery/engine/templates/app/views/refinery/namespace/plural_name/show.html.erb +39 -0
- data/lib/generators/refinery/engine/templates/config/locales/en.yml +28 -0
- data/lib/generators/refinery/engine/templates/config/locales/es.yml +29 -0
- data/lib/generators/refinery/engine/templates/config/locales/fr.yml +28 -0
- data/lib/generators/refinery/engine/templates/config/locales/nb.yml +28 -0
- data/lib/generators/refinery/engine/templates/config/locales/nl.yml +28 -0
- data/lib/generators/refinery/engine/templates/config/routes.rb +19 -0
- data/lib/generators/refinery/engine/templates/db/migrate/1_create_namespace_plural_name.rb +39 -0
- data/lib/generators/refinery/engine/templates/db/seeds.rb +23 -0
- data/lib/generators/refinery/engine/templates/lib/generators/refinery/extension_plural_name_generator.rb +18 -0
- data/lib/generators/refinery/engine/templates/lib/refinery/plural_name/engine.rb +30 -0
- data/lib/generators/refinery/engine/templates/lib/refinery/plural_name.rb +21 -0
- data/lib/generators/refinery/engine/templates/lib/refinerycms-extension_plural_name.rb +1 -0
- data/lib/generators/refinery/engine/templates/lib/tasks/refinery/extension_plural_name.rake +13 -0
- data/lib/generators/refinery/engine/templates/readme.md +10 -0
- data/lib/generators/refinery/engine/templates/refinerycms-extension_plural_name.gemspec +18 -0
- data/lib/generators/refinery/engine/templates/spec/models/refinery/namespace/singular_name_spec.rb +20 -0
- data/lib/generators/refinery/engine/templates/spec/requests/refinery/namespace/admin/plural_name_spec.rb +200 -0
- data/lib/generators/refinery/engine/templates/spec/spec_helper.rb +50 -0
- data/lib/generators/refinery/engine/templates/spec/support/factories/refinery/plural_name.rb +7 -0
- data/lib/generators/refinery/engine/templates/tasks/rspec.rake +6 -0
- data/lib/generators/refinery/engine/templates/tasks/testing.rake +8 -0
- data/lib/generators/refinery/form/USAGE +20 -0
- data/lib/generators/refinery/form/form_generator.rb +31 -0
- data/lib/generators/refinery/form/templates/.gitkeep +0 -0
- data/lib/generators/refinery/form/templates/app/controllers/refinery/namespace/admin/plural_name_controller.rb +54 -0
- data/lib/generators/refinery/form/templates/app/controllers/refinery/namespace/admin/settings_controller.rb +51 -0
- data/lib/generators/refinery/form/templates/app/controllers/refinery/namespace/plural_name_controller.rb +53 -0
- data/lib/generators/refinery/form/templates/app/mailers/refinery/namespace/mailer.rb +22 -0
- data/lib/generators/refinery/form/templates/app/models/refinery/namespace/setting.rb +34 -0
- data/lib/generators/refinery/form/templates/app/models/refinery/namespace/singular_name.rb +46 -0
- data/lib/generators/refinery/form/templates/app/views/refinery/namespace/admin/plural_name/_records.html.erb +23 -0
- data/lib/generators/refinery/form/templates/app/views/refinery/namespace/admin/plural_name/_singular_name.html.erb +25 -0
- data/lib/generators/refinery/form/templates/app/views/refinery/namespace/admin/plural_name/_submenu.html.erb +29 -0
- data/lib/generators/refinery/form/templates/app/views/refinery/namespace/admin/plural_name/index.html.erb +4 -0
- data/lib/generators/refinery/form/templates/app/views/refinery/namespace/admin/plural_name/show.html.erb +52 -0
- data/lib/generators/refinery/form/templates/app/views/refinery/namespace/admin/plural_name/spam.html.erb +26 -0
- data/lib/generators/refinery/form/templates/app/views/refinery/namespace/admin/settings/_confirmation_email_form.html.erb +51 -0
- data/lib/generators/refinery/form/templates/app/views/refinery/namespace/admin/settings/_notification_recipients_form.html.erb +21 -0
- data/lib/generators/refinery/form/templates/app/views/refinery/namespace/admin/settings/edit.html.erb +5 -0
- data/lib/generators/refinery/form/templates/app/views/refinery/namespace/mailer/confirmation.html.erb +1 -0
- data/lib/generators/refinery/form/templates/app/views/refinery/namespace/mailer/notification.html.erb +17 -0
- data/lib/generators/refinery/form/templates/app/views/refinery/namespace/plural_name/new.html.erb +43 -0
- data/lib/generators/refinery/form/templates/app/views/refinery/namespace/plural_name/thank_you.html.erb +1 -0
- data/lib/generators/refinery/form/templates/config/locales/da.yml +69 -0
- data/lib/generators/refinery/form/templates/config/locales/de.yml +78 -0
- data/lib/generators/refinery/form/templates/config/locales/en.yml +78 -0
- data/lib/generators/refinery/form/templates/config/locales/es.yml +70 -0
- data/lib/generators/refinery/form/templates/config/locales/fr.yml +78 -0
- data/lib/generators/refinery/form/templates/config/locales/it.yml +68 -0
- data/lib/generators/refinery/form/templates/config/locales/lv.yml +77 -0
- data/lib/generators/refinery/form/templates/config/locales/nb.yml +78 -0
- data/lib/generators/refinery/form/templates/config/locales/nl.yml +77 -0
- data/lib/generators/refinery/form/templates/config/locales/pt-BR.yml +78 -0
- data/lib/generators/refinery/form/templates/config/locales/ru.yml +80 -0
- data/lib/generators/refinery/form/templates/config/locales/sl.yml +69 -0
- data/lib/generators/refinery/form/templates/config/locales/zh-CN.yml +4 -0
- data/lib/generators/refinery/form/templates/config/routes.rb +26 -0
- data/lib/generators/refinery/form/templates/db/migrate/1_create_plural_name.rb +42 -0
- data/lib/generators/refinery/form/templates/db/seeds.rb +27 -0
- data/lib/generators/refinery/form/templates/lib/generators/refinery/plural_name_generator.rb +20 -0
- data/lib/generators/refinery/form/templates/lib/refinery/plural_name/engine.rb +30 -0
- data/lib/generators/refinery/form/templates/lib/refinery/plural_name.rb +17 -0
- data/lib/generators/refinery/form/templates/lib/refinerycms-plural_name.rb +1 -0
- data/lib/generators/refinery/form/templates/refinerycms-plural_name.gemspec +19 -0
- data/lib/refinery/activity.rb +75 -18
- data/lib/refinery/admin/base_controller.rb +49 -66
- data/lib/refinery/application_controller.rb +59 -79
- data/lib/refinery/base_presenter.rb +25 -23
- data/lib/refinery/catch_all_routes.rb +1 -1
- data/lib/refinery/cli.rb +162 -0
- data/lib/refinery/core/configuration.rb +57 -0
- data/lib/refinery/core/engine.rb +143 -0
- data/lib/refinery/core.rb +179 -0
- data/lib/refinery/crud.rb +74 -54
- data/lib/refinery/engine.rb +56 -12
- data/lib/refinery/errors.rb +13 -0
- data/lib/refinery/ext/action_view/helpers/form_builder.rb +7 -0
- data/lib/refinery/ext/action_view/helpers/form_helper.rb +20 -0
- data/lib/refinery/ext/action_view/helpers/form_tag_helper.rb +10 -0
- data/lib/refinery/extension_generation.rb +258 -0
- data/lib/refinery/menu.rb +0 -19
- data/lib/refinery/menu_item.rb +32 -14
- data/lib/refinery/plugin.rb +19 -43
- data/lib/refinery/plugins.rb +2 -2
- data/lib/refinery/version.rb +16 -0
- data/lib/refinerycms-core.rb +1 -175
- data/lib/tasks/refinery.rake +2 -191
- data/lib/tasks/yard.rake +1 -1
- data/refinerycms-core.gemspec +23 -422
- data/spec/controllers/refinery/admin/refinery_core_controller_spec.rb +20 -0
- data/spec/controllers/{fast_controller_spec.rb → refinery/fast_controller_spec.rb} +3 -1
- data/spec/controllers/refinery/sitemap_controller_spec.rb +28 -0
- data/spec/helpers/refinery/custom_assets_helper_spec.rb +53 -0
- data/spec/helpers/refinery/html_truncation_helper_spec.rb +26 -0
- data/spec/helpers/refinery/pagination_helper_spec.rb +35 -0
- data/spec/helpers/refinery/tag_helper_spec.rb +23 -0
- data/spec/helpers/refinery/translation_helper_spec.rb +14 -0
- data/spec/lib/generators/refinery/cms/cms_generator_spec.rb +47 -0
- data/spec/lib/generators/refinery/core/core_generator_spec.rb +29 -0
- data/spec/lib/generators/refinery/engine/engine_generator_spec.rb +84 -0
- data/spec/lib/generators/refinery/engine/engine_generator_with_i18n_spec.rb +85 -0
- data/spec/lib/generators/refinery/engine/engine_generator_without_frontend_spec.rb +77 -0
- data/spec/lib/generators/refinery/form/form_generator_spec.rb +91 -0
- data/spec/lib/refinery/activity_spec.rb +38 -0
- data/spec/lib/refinery/application_controller_spec.rb +28 -0
- data/spec/lib/refinery/core_spec.rb +176 -0
- data/spec/lib/refinery/plugin_spec.rb +36 -34
- data/spec/lib/refinery/plugins_spec.rb +42 -16
- data/spec/requests/refinery/admin/custom_assets_spec.rb +32 -0
- data/spec/requests/refinery/admin/dialogs_spec.rb +28 -0
- data/spec/requests/refinery/search_spec.rb +71 -0
- data/spec/requests/refinery/site_bar_spec.rb +49 -0
- data/spec/support/background_selenium_firefox_driver.rb +14 -0
- data/spec/support/database_cleaner.rb +15 -0
- data/spec/support/fixtures/invalid_engine.rb +6 -0
- data/spec/support/fixtures/valid_engine.rb +13 -0
- data/spec/support/refinery.rb +14 -0
- metadata +626 -439
- data/app/controllers/admin/dialogs_controller.rb +0 -23
- data/app/controllers/admin/refinery_core_controller.rb +0 -12
- data/app/controllers/sitemap_controller.rb +0 -18
- data/app/views/admin/_head.html.erb +0 -21
- data/app/views/admin/_javascripts.html.erb +0 -33
- data/app/views/layouts/admin.html.erb +0 -24
- data/app/views/layouts/admin_dialog.html.erb +0 -14
- data/app/views/shared/_content_page.html.erb +0 -63
- data/app/views/shared/_footer.html.erb +0 -4
- data/app/views/shared/_head.html.erb +0 -20
- data/app/views/shared/_header.html.erb +0 -7
- data/app/views/shared/_menu.html.erb +0 -19
- data/app/views/shared/_menu_branch.html.erb +0 -19
- data/app/views/shared/_message.html.erb +0 -10
- data/app/views/shared/admin/_make_sortable.html.erb +0 -13
- data/app/views/welcome.html.erb +0 -17
- data/config/locales/lolcat.yml +0 -71
- data/doc/included-jquery-ui-packages.jpg +0 -0
- data/features/dialogs.feature +0 -20
- data/features/search.feature +0 -55
- data/features/site_bar.feature +0 -27
- data/features/step_definitions/core_steps.rb +0 -59
- data/features/support/paths.rb +0 -18
- data/features/uploads/beach.jpeg +0 -0
- data/features/uploads/refinery_is_awesome.txt +0 -1
- data/lib/gemspec.rb +0 -44
- data/lib/generators/refinerycms_generator.rb +0 -124
- data/lib/generators/templates/autotest/autotest.rb +0 -17
- data/lib/generators/templates/autotest/discover.rb +0 -2
- data/lib/generators/templates/config/initializers/devise.rb +0 -144
- data/lib/generators/templates/db/seeds.rb +0 -5
- data/lib/refinery/admin_base_controller.rb +0 -5
- data/lib/refinery/application.rb +0 -47
- data/lib/refinery/application_helper.rb +0 -19
- data/lib/refinery/configuration.rb +0 -29
- data/lib/refinery/helpers/form_helper.rb +0 -66
- data/lib/refinery/helpers/head_helper.rb +0 -17
- data/lib/refinery/helpers/html_truncation_helper.rb +0 -25
- data/lib/refinery/helpers/image_helper.rb +0 -42
- data/lib/refinery/helpers/menu_helper.rb +0 -98
- data/lib/refinery/helpers/meta_helper.rb +0 -78
- data/lib/refinery/helpers/pagination_helper.rb +0 -16
- data/lib/refinery/helpers/script_helper.rb +0 -36
- data/lib/refinery/helpers/site_bar_helper.rb +0 -32
- data/lib/refinery/helpers/tag_helper.rb +0 -22
- data/lib/refinery/helpers/translation_helper.rb +0 -17
- data/lib/tasks/doc.rake +0 -29
- data/public/javascripts/i18n-messages.js +0 -2
- data/public/javascripts/jquery-min.js +0 -16
- data/public/javascripts/jquery-ui-custom-min.js +0 -252
- data/public/javascripts/jquery.js +0 -8374
- data/public/javascripts/modernizr-min.js +0 -2
- data/public/javascripts/rails.js +0 -297
- data/public/javascripts/refinery/i18n.js +0 -340
- data/public/javascripts/refinery/nestedsortables.js +0 -164
- data/public/javascripts/refinery/serializelist.js +0 -66
- data/public/javascripts/wymeditor/jquery.refinery.wymeditor.js +0 -5262
- data/public/javascripts/wymeditor/lang/pt-BR.js +0 -47
- data/public/stylesheets/application.css +0 -4
- data/public/stylesheets/formatting.css +0 -4
- data/public/stylesheets/refinery/application.css +0 -76
- data/public/stylesheets/refinery/site_bar.css +0 -87
- data/public/stylesheets/refinery/submenu.css +0 -22
- data/public/stylesheets/refinery/tooltips.css +0 -34
- data/public/stylesheets/theme.css +0 -4
- data/spec/controllers/refinery_core_controller_spec.rb +0 -18
- data/spec/controllers/sitemap_controller_spec.rb +0 -27
@@ -0,0 +1,238 @@
|
|
1
|
+
module Refinery
|
2
|
+
class CmsGenerator < Rails::Generators::Base
|
3
|
+
source_root Pathname.new(File.expand_path('../templates', __FILE__))
|
4
|
+
|
5
|
+
class_option :update, :type => :boolean, :aliases => nil, :group => :runtime,
|
6
|
+
:desc => "Update an existing Refinery CMS based application"
|
7
|
+
class_option :fresh_installation, :type => :boolean, :aliases => nil, :group => :runtime, :default => false,
|
8
|
+
:desc => "Allow Refinery to remove default Rails files in a fresh installation"
|
9
|
+
class_option :heroku, :type => :string, :default => nil, :group => :runtime, :banner => 'APP_NAME',
|
10
|
+
:desc => "Deploy to Heroku after the generator has run."
|
11
|
+
class_option :stack, :type => :string, :default => 'cedar', :group => :runtime,
|
12
|
+
:desc => "Specify which Heroku stack you want to use. Requires --heroku option to function."
|
13
|
+
|
14
|
+
def generate
|
15
|
+
start_pretending?
|
16
|
+
|
17
|
+
manage_roadblocks! unless self.options[:update]
|
18
|
+
|
19
|
+
ensure_environments_are_sane!
|
20
|
+
|
21
|
+
stop_pretending?
|
22
|
+
|
23
|
+
append_gitignore!
|
24
|
+
|
25
|
+
forced_overwriting?
|
26
|
+
|
27
|
+
copy_files!
|
28
|
+
|
29
|
+
create_decorators!
|
30
|
+
|
31
|
+
mount!
|
32
|
+
|
33
|
+
run_additional_generators! if self.options[:fresh_installation]
|
34
|
+
|
35
|
+
migrate_database!
|
36
|
+
|
37
|
+
seed_database!
|
38
|
+
|
39
|
+
deploy_to_hosting?
|
40
|
+
end
|
41
|
+
|
42
|
+
protected
|
43
|
+
|
44
|
+
def append_gitignore!
|
45
|
+
# Ensure .gitignore exists and append our rules to it.
|
46
|
+
create_file ".gitignore" unless destination_path.join('.gitignore').file?
|
47
|
+
our_ignore_rules = self.class.source_root.join('.gitignore').read
|
48
|
+
our_ignore_rules = our_ignore_rules.split('# REFINERY CMS DEVELOPMENT').first if destination_path != Refinery.root
|
49
|
+
append_file ".gitignore", our_ignore_rules
|
50
|
+
end
|
51
|
+
|
52
|
+
def append_heroku_gems!
|
53
|
+
append_file 'Gemfile', %q{
|
54
|
+
# The Heroku gem allows you to interface with Heroku's API
|
55
|
+
gem 'heroku'
|
56
|
+
|
57
|
+
# Fog allows you to use S3 assets (added for Heroku)
|
58
|
+
gem 'fog'
|
59
|
+
}
|
60
|
+
# If postgres is not the database in use, Heroku still needs it.
|
61
|
+
if destination_path.join('Gemfile').read !~ %r{gem ['"]pg['"]}
|
62
|
+
append_file 'Gemfile', %q{
|
63
|
+
# Postgres support (added for Heroku)
|
64
|
+
gem 'pg'
|
65
|
+
}
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
def bundle!
|
70
|
+
run 'bundle install'
|
71
|
+
end
|
72
|
+
|
73
|
+
def copy_files!
|
74
|
+
# The extension installer only installs database templates.
|
75
|
+
Pathname.glob(self.class.source_root.join('**', '*')).reject{|f|
|
76
|
+
f.directory? or f.to_s =~ /\/db\//
|
77
|
+
}.sort.each do |path|
|
78
|
+
copy_file path, path.to_s.gsub(self.class.source_root.to_s, destination_path.to_s)
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
def create_decorators!
|
83
|
+
# Create decorator directories
|
84
|
+
%w[controllers models].each do |decorator_namespace|
|
85
|
+
src_file_path = "app/decorators/#{decorator_namespace}/refinery/.gitkeep"
|
86
|
+
copy_file self.class.source_root.join(src_file_path), destination_path.join(src_file_path)
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
def deploy_to_hosting?
|
91
|
+
if options[:heroku]
|
92
|
+
append_heroku_gems!
|
93
|
+
|
94
|
+
bundle!
|
95
|
+
|
96
|
+
# Sanity check the heroku application name and save whatever messages are produced.
|
97
|
+
message = sanity_check_heroku_application_name!
|
98
|
+
|
99
|
+
# Supply the deploy process with the previous messages to make them visible.
|
100
|
+
deploy_to_hosting_heroku!(message)
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
104
|
+
def deploy_to_hosting_heroku!(message = nil)
|
105
|
+
say_status "Initializing and committing to git..", nil
|
106
|
+
run "git init && git add . && git commit -am 'Created application using Refinery CMS #{Refinery.version}'"
|
107
|
+
|
108
|
+
say_status message, nil, :yellow if message
|
109
|
+
|
110
|
+
say_status "Creating Heroku app..", nil
|
111
|
+
run "heroku create #{options[:heroku]}#{" --stack #{options[:stack]}" if options[:stack]}"
|
112
|
+
|
113
|
+
say_status "Pushing to Heroku (this takes time, be patient)..", nil
|
114
|
+
run "git push heroku master"
|
115
|
+
|
116
|
+
say_status "Setting up the Heroku database..", nil
|
117
|
+
run "heroku#{' run' if options[:stack] == 'cedar'} rake db:migrate"
|
118
|
+
|
119
|
+
say_status "Restarting servers...", nil
|
120
|
+
run "heroku restart"
|
121
|
+
end
|
122
|
+
|
123
|
+
# Helper method to quickly convert destination_root to a Pathname for easy file path manipulation
|
124
|
+
def destination_path
|
125
|
+
@destination_path ||= Pathname.new(self.destination_root)
|
126
|
+
end
|
127
|
+
|
128
|
+
def ensure_environments_are_sane!
|
129
|
+
# Massage environment files
|
130
|
+
%w(development test production).map{|e| "config/environments/#{e}.rb"}.each do |env|
|
131
|
+
next unless destination_path.join(env).file?
|
132
|
+
|
133
|
+
gsub_file env, "config.assets.compile = false", "config.assets.compile = true", :verbose => false
|
134
|
+
|
135
|
+
insert_into_file env, %Q{
|
136
|
+
# Refinery has set config.assets.initialize_on_precompile = false by default.
|
137
|
+
config.assets.initialize_on_precompile = false
|
138
|
+
|
139
|
+
}, :after => "Application.configure do\n" if env =~ /production/
|
140
|
+
end
|
141
|
+
end
|
142
|
+
|
143
|
+
def forced_overwriting?
|
144
|
+
force_options = self.options.dup
|
145
|
+
force_options[:force] = self.options[:force] || self.options[:update]
|
146
|
+
self.options = force_options
|
147
|
+
end
|
148
|
+
|
149
|
+
def manage_roadblocks!
|
150
|
+
%w(public/index.html app/views/layouts/application.html.erb).each do |roadblock|
|
151
|
+
if (roadblock_path = destination_path.join(roadblock)).file?
|
152
|
+
if self.options[:fresh_installation]
|
153
|
+
remove_file roadblock_path, :verbose => true
|
154
|
+
else
|
155
|
+
say_status :"-- You may need to remove '#{roadblock}' for Refinery to function properly --", nil, :yellow
|
156
|
+
end
|
157
|
+
end
|
158
|
+
end
|
159
|
+
end
|
160
|
+
|
161
|
+
def migrate_database!
|
162
|
+
rake 'railties:install:migrations'
|
163
|
+
rake 'db:create db:migrate'
|
164
|
+
end
|
165
|
+
|
166
|
+
def mount!
|
167
|
+
if (routes_file = destination_path.join('config', 'routes.rb')).file? && (self.behavior == :revoke || (routes_file.read !~ %r{mount\ Refinery::Core::Engine}))
|
168
|
+
# Append routes
|
169
|
+
mount = %Q{
|
170
|
+
# This line mounts Refinery's routes at the root of your application.
|
171
|
+
# This means, any requests to the root URL of your application will go to Refinery::PagesController#home.
|
172
|
+
# If you would like to change where this extension is mounted, simply change the :at option to something different.
|
173
|
+
#
|
174
|
+
# We ask that you don't use the :as option here, as Refinery relies on it being the default of "refinery"
|
175
|
+
mount Refinery::Core::Engine, :at => '/'
|
176
|
+
|
177
|
+
}
|
178
|
+
|
179
|
+
inject_into_file 'config/routes.rb', mount, :after => "Application.routes.draw do\n"
|
180
|
+
end
|
181
|
+
end
|
182
|
+
|
183
|
+
def run_additional_generators!
|
184
|
+
generator_args = []
|
185
|
+
generator_args << '--quiet' if self.options[:quiet]
|
186
|
+
Refinery::CoreGenerator.start generator_args
|
187
|
+
Refinery::ResourcesGenerator.start generator_args
|
188
|
+
Refinery::PagesGenerator.start generator_args
|
189
|
+
Refinery::ImagesGenerator.start generator_args
|
190
|
+
Refinery::I18nGenerator.start generator_args if defined?(Refinery::I18nGenerator)
|
191
|
+
end
|
192
|
+
|
193
|
+
def sanity_check_heroku_application_name!
|
194
|
+
if options[:heroku].to_s.include?('_') || options[:heroku].to_s.length > 30
|
195
|
+
message = ["\nThe application name '#{options[:heroku]}' that you specified is invalid for Heroku."]
|
196
|
+
suggested_name = options[:heroku].dup.to_s
|
197
|
+
if suggested_name.include?('_')
|
198
|
+
message << "This is because it contains underscores which Heroku does not allow."
|
199
|
+
suggested_name.gsub!(/_/, '-')
|
200
|
+
end
|
201
|
+
if suggested_name.length > 30
|
202
|
+
message << "This is#{" also" unless suggested_name.nil?} because it is longer than 30 characters."
|
203
|
+
suggested_name = suggested_name[0..29]
|
204
|
+
end
|
205
|
+
|
206
|
+
options[:heroku] = suggested_name
|
207
|
+
|
208
|
+
message << "We have changed the name to '#{suggested_name}' for you, hope it suits you.\n"
|
209
|
+
message.join("\n")
|
210
|
+
end
|
211
|
+
end
|
212
|
+
|
213
|
+
def seed_database!
|
214
|
+
rake 'db:seed'
|
215
|
+
end
|
216
|
+
|
217
|
+
def start_pretending?
|
218
|
+
# Only pretend to do the next actions if this is Refinery to stay DRY
|
219
|
+
if destination_path == Refinery.root
|
220
|
+
say_status :'-- pretending to make changes that happen in an actual installation --', nil, :yellow
|
221
|
+
old_pretend = self.options[:pretend]
|
222
|
+
new_options = self.options.dup
|
223
|
+
new_options[:pretend] = true
|
224
|
+
self.options = new_options
|
225
|
+
end
|
226
|
+
end
|
227
|
+
|
228
|
+
def stop_pretending?
|
229
|
+
# Stop pretending
|
230
|
+
if destination_path == Refinery.root
|
231
|
+
say_status :'-- finished pretending --', nil, :yellow
|
232
|
+
new_options = self.options.dup
|
233
|
+
new_options[:pretend] = old_pretend
|
234
|
+
self.options = new_options
|
235
|
+
end
|
236
|
+
end
|
237
|
+
end
|
238
|
+
end
|
@@ -11,6 +11,7 @@ doc/api
|
|
11
11
|
doc/app
|
12
12
|
.yardoc
|
13
13
|
.yardopts
|
14
|
+
coverage
|
14
15
|
|
15
16
|
# Public Uploads
|
16
17
|
public/system/*
|
@@ -30,7 +31,6 @@ index/**/*
|
|
30
31
|
*.tmproj
|
31
32
|
*.autobackupbyrefinery.*
|
32
33
|
refinerycms-*.gem
|
33
|
-
.autotest
|
34
34
|
|
35
35
|
# Mac
|
36
36
|
.DS_Store
|
@@ -81,5 +81,7 @@ config/database.yml
|
|
81
81
|
config/rackspace_cloudfiles.yml
|
82
82
|
your_*.*
|
83
83
|
db/schema.rb
|
84
|
+
public/refinery
|
85
|
+
config/ideal_load_path
|
84
86
|
|
85
87
|
# END REFINERY CMS DEVELOPMENT =================================================
|
File without changes
|
File without changes
|
data/lib/generators/{templates → refinery/cms/templates}/app/views/sitemap/index.xml.builder
RENAMED
@@ -4,7 +4,7 @@ xml.urlset "xmlns" => "http://www.sitemaps.org/schemas/sitemap/0.9" do
|
|
4
4
|
|
5
5
|
@locales.each do |locale|
|
6
6
|
::I18n.locale = locale
|
7
|
-
Page.live.in_menu.includes(:parts).each do |page|
|
7
|
+
::Refinery::Page.live.in_menu.includes(:parts).each do |page|
|
8
8
|
# exclude sites that are external to our own domain.
|
9
9
|
page_url = if page.url.is_a?(Hash)
|
10
10
|
# This is how most pages work without being overriden by link_url
|
@@ -1,16 +1,16 @@
|
|
1
|
-
|
1
|
+
development: &development
|
2
2
|
adapter: mysql2
|
3
3
|
host: localhost
|
4
4
|
username: root
|
5
5
|
password:
|
6
|
-
|
7
|
-
development: &development
|
8
6
|
database: your_local_database
|
9
|
-
<<: *login
|
10
7
|
|
11
8
|
test: &test
|
9
|
+
adapter: mysql2
|
10
|
+
host: localhost
|
11
|
+
username: root
|
12
|
+
password:
|
12
13
|
database: your_test_database
|
13
|
-
<<: *login
|
14
14
|
|
15
15
|
production: &production
|
16
16
|
adapter: mysql2
|
@@ -1,23 +1,25 @@
|
|
1
1
|
# PostgreSQL. Versions 7.4 and 8.x are supported.
|
2
2
|
#
|
3
|
-
# Install the
|
4
|
-
# gem install
|
5
|
-
# On Mac OS X:
|
6
|
-
# gem install
|
3
|
+
# Install the pg driver:
|
4
|
+
# gem install pg
|
5
|
+
# On Mac OS X with macports:
|
6
|
+
# gem install pg -- --with-pg-config=/opt/local/lib/postgresql84/bin/pg_config
|
7
7
|
# On Windows:
|
8
|
-
# gem install
|
8
|
+
# gem install pg
|
9
9
|
# Choose the win32 build.
|
10
10
|
# Install PostgreSQL and put its /bin directory on your path.
|
11
|
-
|
11
|
+
#
|
12
|
+
# Configure Using Gemfile
|
13
|
+
# gem 'pg'
|
14
|
+
#
|
15
|
+
development:
|
12
16
|
adapter: postgresql
|
13
17
|
encoding: unicode
|
18
|
+
database: refinery_database_development
|
19
|
+
pool: 5
|
14
20
|
username: postgres
|
15
21
|
password: postgres
|
16
|
-
|
17
|
-
|
18
|
-
development: &development
|
19
|
-
database: your_local_database
|
20
|
-
<<: *login
|
22
|
+
min_messages: warning
|
21
23
|
|
22
24
|
# Connect on a TCP socket. Omitted by default since the client uses a
|
23
25
|
# domain socket that doesn't need configuration. Windows does not have
|
@@ -37,21 +39,20 @@ development: &development
|
|
37
39
|
# Warning: The database defined as "test" will be erased and
|
38
40
|
# re-generated from your development database when you run "rake".
|
39
41
|
# Do not set this db to the same as development or production.
|
40
|
-
test:
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
database: your_cucumber_database
|
49
|
-
<<: *login
|
42
|
+
test:
|
43
|
+
adapter: postgresql
|
44
|
+
encoding: unicode
|
45
|
+
database: refinery_database_test
|
46
|
+
pool: 5
|
47
|
+
username: postgres
|
48
|
+
password: postgres
|
49
|
+
min_messages: warning
|
50
50
|
|
51
|
-
production:
|
51
|
+
production:
|
52
52
|
adapter: postgresql
|
53
53
|
encoding: unicode
|
54
|
+
database: refinery_database_production
|
54
55
|
pool: 5
|
55
|
-
|
56
|
-
|
57
|
-
|
56
|
+
username: postgres
|
57
|
+
password: postgres
|
58
|
+
min_messages: warning
|
@@ -12,15 +12,7 @@ test:
|
|
12
12
|
database: db/test.sqlite3
|
13
13
|
timeout: 5000
|
14
14
|
|
15
|
-
# Warning: The database defined as 'cucumber' will be erased and
|
16
|
-
# re-generated from your development database when you run 'rake'.
|
17
|
-
# Do not set this db to the same as development or production.
|
18
|
-
cucumber:
|
19
|
-
adapter: <%= "jdbc" if defined?(JRUBY_PLATFORM) %>sqlite3
|
20
|
-
database: db/cucumber.sqlite3
|
21
|
-
timeout: 5000
|
22
|
-
|
23
15
|
production:
|
24
16
|
adapter: <%= "jdbc" if defined?(JRUBY_PLATFORM) %>sqlite3
|
25
17
|
database: db/production.sqlite3
|
26
|
-
timeout: 5000
|
18
|
+
timeout: 5000
|
@@ -0,0 +1,229 @@
|
|
1
|
+
require 'devise'
|
2
|
+
|
3
|
+
# Use this hook to configure devise mailer, warden hooks and so forth.
|
4
|
+
# Many of these configuration options can be set straight in your model.
|
5
|
+
Devise.setup do |config|
|
6
|
+
# ==> Mailer Configuration
|
7
|
+
# Configure the e-mail address which will be shown in Devise::Mailer,
|
8
|
+
# note that it will be overwritten if you use your own mailer class with default "from" parameter.
|
9
|
+
# config.mailer_sender = "please-change-me-at-config-initializers-devise@example.com"
|
10
|
+
|
11
|
+
# Configure the class responsible to send e-mails.
|
12
|
+
# config.mailer = "Devise::Mailer"
|
13
|
+
|
14
|
+
# Automatically apply schema changes in tableless databases
|
15
|
+
config.apply_schema = false
|
16
|
+
|
17
|
+
# ==> ORM configuration
|
18
|
+
# Load and configure the ORM. Supports :active_record (default) and
|
19
|
+
# :mongoid (bson_ext recommended) by default. Other ORMs may be
|
20
|
+
# available as additional gems.
|
21
|
+
require 'devise/orm/active_record'
|
22
|
+
|
23
|
+
# ==> Configuration for any authentication mechanism
|
24
|
+
# Configure which keys are used when authenticating a user. The default is
|
25
|
+
# just :email. You can configure it to use [:username, :subdomain], so for
|
26
|
+
# authenticating a user, both parameters are required. Remember that those
|
27
|
+
# parameters are used only when authenticating and not when retrieving from
|
28
|
+
# session. If you need permissions, you should implement that in a before filter.
|
29
|
+
# You can also supply a hash where the value is a boolean determining whether
|
30
|
+
# or not authentication should be aborted when the value is not present.
|
31
|
+
config.authentication_keys = [ :login ]
|
32
|
+
|
33
|
+
# Configure parameters from the request object used for authentication. Each entry
|
34
|
+
# given should be a request method and it will automatically be passed to the
|
35
|
+
# find_for_authentication method and considered in your model lookup. For instance,
|
36
|
+
# if you set :request_keys to [:subdomain], :subdomain will be used on authentication.
|
37
|
+
# The same considerations mentioned for authentication_keys also apply to request_keys.
|
38
|
+
# config.request_keys = []
|
39
|
+
|
40
|
+
# Configure which authentication keys should be case-insensitive.
|
41
|
+
# These keys will be downcased upon creating or modifying a user and when used
|
42
|
+
# to authenticate or find a user. Default is :email.
|
43
|
+
config.case_insensitive_keys = []
|
44
|
+
|
45
|
+
# Configure which authentication keys should have whitespace stripped.
|
46
|
+
# These keys will have whitespace before and after removed upon creating or
|
47
|
+
# modifying a user and when used to authenticate or find a user. Default is :email.
|
48
|
+
# config.strip_whitespace_keys = [ :email ]
|
49
|
+
|
50
|
+
# Tell if authentication through request.params is enabled. True by default.
|
51
|
+
# It can be set to an array that will enable params authentication only for the
|
52
|
+
# given stratragies, for example, `config.params_authenticatable = [:database]` will
|
53
|
+
# enable it only for database (email + password) authentication.
|
54
|
+
# config.params_authenticatable = true
|
55
|
+
|
56
|
+
# Tell if authentication through HTTP Basic Auth is enabled. False by default.
|
57
|
+
# It can be set to an array that will enable http authentication only for the
|
58
|
+
# given stratragies, for example, `config.http_authenticatable = [:token]` will
|
59
|
+
# enable it only for token authentication.
|
60
|
+
# config.http_authenticatable = false
|
61
|
+
|
62
|
+
# If http headers should be returned for AJAX requests. True by default.
|
63
|
+
# config.http_authenticatable_on_xhr = true
|
64
|
+
|
65
|
+
# The realm used in Http Basic Authentication. "Application" by default.
|
66
|
+
# config.http_authentication_realm = "Application"
|
67
|
+
|
68
|
+
# It will change confirmation, password recovery and other workflows
|
69
|
+
# to behave the same regardless if the e-mail provided was right or wrong.
|
70
|
+
# Does not affect registerable.
|
71
|
+
# config.paranoid = true
|
72
|
+
|
73
|
+
# By default Devise will store the user in session. You can skip storage for
|
74
|
+
# :http_auth and :token_auth by adding those symbols to the array below.
|
75
|
+
# Notice that if you are skipping storage for all authentication paths, you
|
76
|
+
# may want to disable generating routes to Devise's sessions controller by
|
77
|
+
# passing :skip => :sessions to `devise_for` in your config/routes.rb
|
78
|
+
config.skip_session_storage = [:http_auth]
|
79
|
+
|
80
|
+
# ==> Configuration for :database_authenticatable
|
81
|
+
# For bcrypt, this is the cost for hashing the password and defaults to 10. If
|
82
|
+
# using other encryptors, it sets how many times you want the password re-encrypted.
|
83
|
+
#
|
84
|
+
# Limiting the stretches to just one in testing will increase the performance of
|
85
|
+
# your test suite dramatically. However, it is STRONGLY RECOMMENDED to not use
|
86
|
+
# a value less than 10 in other environments.
|
87
|
+
config.stretches = Rails.env.test? ? 1 : 10
|
88
|
+
|
89
|
+
# Setup a pepper to generate the encrypted password.
|
90
|
+
# config.pepper = <%= SecureRandom.hex(64).inspect %>
|
91
|
+
|
92
|
+
# ==> Configuration for :confirmable
|
93
|
+
# A period that the user is allowed to access the website even without
|
94
|
+
# confirming his account. For instance, if set to 2.days, the user will be
|
95
|
+
# able to access the website for two days without confirming his account,
|
96
|
+
# access will be blocked just in the third day. Default is 0.days, meaning
|
97
|
+
# the user cannot access the website without confirming his account.
|
98
|
+
# config.allow_unconfirmed_access_for = 2.days
|
99
|
+
|
100
|
+
# If true, requires any email changes to be confirmed (exctly the same way as
|
101
|
+
# initial account confirmation) to be applied. Requires additional unconfirmed_email
|
102
|
+
# db field (see migrations). Until confirmed new email is stored in
|
103
|
+
# unconfirmed email column, and copied to email column on successful confirmation.
|
104
|
+
# config.reconfirmable = true
|
105
|
+
|
106
|
+
# Defines which key will be used when confirming an account
|
107
|
+
# config.confirmation_keys = [ :email ]
|
108
|
+
|
109
|
+
# ==> Configuration for :rememberable
|
110
|
+
# The time the user will be remembered without asking for credentials again.
|
111
|
+
# config.remember_for = 2.weeks
|
112
|
+
|
113
|
+
# If true, extends the user's remember period when remembered via cookie.
|
114
|
+
# config.extend_remember_period = false
|
115
|
+
|
116
|
+
# If true, uses the password salt as remember token. This should be turned
|
117
|
+
# to false if you are not using database authenticatable.
|
118
|
+
config.use_salt_as_remember_token = true
|
119
|
+
|
120
|
+
# Options to be passed to the created cookie. For instance, you can set
|
121
|
+
# :secure => true in order to force SSL only cookies.
|
122
|
+
# config.cookie_options = {}
|
123
|
+
|
124
|
+
# ==> Configuration for :validatable
|
125
|
+
# Range for password length. Default is 6..128.
|
126
|
+
config.password_length = 4..128
|
127
|
+
|
128
|
+
# Email regex used to validate email formats. It simply asserts that
|
129
|
+
# an one (and only one) @ exists in the given string. This is mainly
|
130
|
+
# to give user feedback and not to assert the e-mail validity.
|
131
|
+
# config.email_regexp = /\A[^@]+@[^@]+\z/
|
132
|
+
|
133
|
+
# ==> Configuration for :timeoutable
|
134
|
+
# The time you want to timeout the user session without activity. After this
|
135
|
+
# time the user will be asked for credentials again. Default is 30 minutes.
|
136
|
+
# config.timeout_in = 30.minutes
|
137
|
+
|
138
|
+
# ==> Configuration for :lockable
|
139
|
+
# Defines which strategy will be used to lock an account.
|
140
|
+
# :failed_attempts = Locks an account after a number of failed attempts to sign in.
|
141
|
+
# :none = No lock strategy. You should handle locking by yourself.
|
142
|
+
# config.lock_strategy = :failed_attempts
|
143
|
+
|
144
|
+
# Defines which key will be used when locking and unlocking an account
|
145
|
+
# config.unlock_keys = [ :email ]
|
146
|
+
|
147
|
+
# Defines which strategy will be used to unlock an account.
|
148
|
+
# :email = Sends an unlock link to the user email
|
149
|
+
# :time = Re-enables login after a certain amount of time (see :unlock_in below)
|
150
|
+
# :both = Enables both strategies
|
151
|
+
# :none = No unlock strategy. You should handle unlocking by yourself.
|
152
|
+
# config.unlock_strategy = :both
|
153
|
+
|
154
|
+
# Number of authentication tries before locking an account if lock_strategy
|
155
|
+
# is failed attempts.
|
156
|
+
# config.maximum_attempts = 20
|
157
|
+
|
158
|
+
# Time interval to unlock the account if :time is enabled as unlock_strategy.
|
159
|
+
# config.unlock_in = 1.hour
|
160
|
+
|
161
|
+
# ==> Configuration for :recoverable
|
162
|
+
#
|
163
|
+
# Defines which key will be used when recovering the password for an account
|
164
|
+
# config.reset_password_keys = [ :email ]
|
165
|
+
|
166
|
+
# Time interval you can reset your password with a reset password key.
|
167
|
+
# Don't put a too small interval or your users won't have the time to
|
168
|
+
# change their passwords.
|
169
|
+
config.reset_password_within = 6.hours
|
170
|
+
|
171
|
+
# ==> Configuration for :encryptable
|
172
|
+
# Allow you to use another encryption algorithm besides bcrypt (default). You can use
|
173
|
+
# :sha1, :sha512 or encryptors from others authentication tools as :clearance_sha1,
|
174
|
+
# :authlogic_sha512 (then you should set stretches above to 20 for default behavior)
|
175
|
+
# and :restful_authentication_sha1 (then you should set stretches to 10, and copy
|
176
|
+
# REST_AUTH_SITE_KEY to pepper)
|
177
|
+
# config.encryptor = :sha512
|
178
|
+
|
179
|
+
# ==> Configuration for :token_authenticatable
|
180
|
+
# Defines name of the authentication token params key
|
181
|
+
# config.token_authentication_key = :auth_token
|
182
|
+
|
183
|
+
# ==> Scopes configuration
|
184
|
+
# Turn scoped views on. Before rendering "sessions/new", it will first check for
|
185
|
+
# "users/sessions/new". It's turned off by default because it's slower if you
|
186
|
+
# are using only default views.
|
187
|
+
# config.scoped_views = false
|
188
|
+
|
189
|
+
# Configure the default scope given to Warden. By default it's the first
|
190
|
+
# devise role declared in your routes (usually :user).
|
191
|
+
# config.default_scope = :user
|
192
|
+
|
193
|
+
# Configure sign_out behavior.
|
194
|
+
# Sign_out action can be scoped (i.e. /users/sign_out affects only :user scope).
|
195
|
+
# The default is true, which means any logout action will sign out all active scopes.
|
196
|
+
# config.sign_out_all_scopes = true
|
197
|
+
|
198
|
+
# ==> Navigation configuration
|
199
|
+
# Lists the formats that should be treated as navigational. Formats like
|
200
|
+
# :html, should redirect to the sign in page when the user does not have
|
201
|
+
# access, but formats like :xml or :json, should return 401.
|
202
|
+
#
|
203
|
+
# If you have any extra navigational formats, like :iphone or :mobile, you
|
204
|
+
# should add them to the navigational formats lists.
|
205
|
+
#
|
206
|
+
# The "*/*" below is required to match Internet Explorer requests.
|
207
|
+
# config.navigational_formats = ["*/*", :html]
|
208
|
+
|
209
|
+
# The default HTTP method used to sign out a resource. Default is :delete.
|
210
|
+
config.sign_out_via = :delete
|
211
|
+
|
212
|
+
# ==> OmniAuth
|
213
|
+
# Add a new OmniAuth provider. Check the wiki for more information on setting
|
214
|
+
# up on your models and hooks.
|
215
|
+
# config.omniauth :github, 'APP_ID', 'APP_SECRET', :scope => 'user,public_repo'
|
216
|
+
|
217
|
+
# ==> Warden configuration
|
218
|
+
# If you want to use other strategies, that are not supported by Devise, or
|
219
|
+
# change the failure app, you can configure them inside the config.warden block.
|
220
|
+
#
|
221
|
+
# config.warden do |manager|
|
222
|
+
# manager.intercept_401 = false
|
223
|
+
# manager.default_strategies(:scope => :user).unshift :some_external_strategy
|
224
|
+
# end
|
225
|
+
|
226
|
+
# Please do not change the router_name away from :refinery
|
227
|
+
# otherwise Refinery may not function properly. Thanks!
|
228
|
+
config.router_name = :refinery
|
229
|
+
end
|
@@ -0,0 +1,9 @@
|
|
1
|
+
module Refinery
|
2
|
+
class CoreGenerator < Rails::Generators::Base
|
3
|
+
source_root File.expand_path('../templates', __FILE__)
|
4
|
+
|
5
|
+
def generate_refinery_initializer
|
6
|
+
template "config/initializers/refinery/core.rb.erb", File.join(destination_root, "config", "initializers", "refinery", "core.rb")
|
7
|
+
end
|
8
|
+
end
|
9
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
Refinery::Core.configure do |config|
|
2
|
+
# When true will rescue all not found errors and display a friendly error page
|
3
|
+
config.rescue_not_found = Rails.env.production?
|
4
|
+
|
5
|
+
# When true will use Amazon's Simple Storage Service instead of
|
6
|
+
# the default file system for storing resources and images
|
7
|
+
config.s3_backend = !(ENV['S3_KEY'].nil? || ENV['S3_SECRET'].nil?)
|
8
|
+
|
9
|
+
# Whenever Refinery caches anything and can set a cache key, it will add
|
10
|
+
# a prefix to the cache key containing the string you set here.
|
11
|
+
# config.base_cache_key = <%= Refinery::Core.base_cache_key.inspect %>
|
12
|
+
|
13
|
+
# Site name
|
14
|
+
# config.site_name = <%= Refinery::Core.site_name.inspect %>
|
15
|
+
|
16
|
+
# This activates Google Analytics tracking within your website. If this
|
17
|
+
# config is left blank or set to UA-xxxxxx-x then no remote calls to
|
18
|
+
# Google Analytics are made.
|
19
|
+
# config.google_analytics_page_code = <%= Refinery::Core.google_analytics_page_code.inspect %>
|
20
|
+
|
21
|
+
# Enable/disable authenticity token on frontend
|
22
|
+
# config.authenticity_token_on_frontend = <%= Refinery::Core.authenticity_token_on_frontend.inspect %>
|
23
|
+
|
24
|
+
# Hide/show child pages in menu
|
25
|
+
# config.menu_hide_children = <%= Refinery::Core.menu_hide_children.inspect %>
|
26
|
+
|
27
|
+
# CSS class selectors for menu helper
|
28
|
+
# config.menu_css = <%= Refinery::Core.menu_css.inspect %>
|
29
|
+
|
30
|
+
# Should set this if concerned about DOS attacks. See
|
31
|
+
# http://markevans.github.com/dragonfly/file.Configuration.html#Configuration
|
32
|
+
# config.dragonfly_secret = <%= Refinery::Core.dragonfly_secret.inspect %>
|
33
|
+
|
34
|
+
# Show/hide IE6 upgrade message in the backend
|
35
|
+
# config.ie6_upgrade_message_enabled = <%= Refinery::Core.ie6_upgrade_message_enabled.inspect %>
|
36
|
+
|
37
|
+
# Show/hide browser update message in the backend
|
38
|
+
# config.show_internet_explorer_upgrade_message = <%= Refinery::Core.show_internet_explorer_upgrade_message.inspect %>
|
39
|
+
|
40
|
+
# Add extra tags to the wymeditor whitelist e.g. = {'tag' => {'attributes' => {'1' => 'href'}}} or just {'tag' => {}}
|
41
|
+
# config.wymeditor_whitelist_tags = <%= Refinery::Core.wymeditor_whitelist_tags.inspect %>
|
42
|
+
|
43
|
+
# Register extra javascript for backend
|
44
|
+
# config.register_javascript "prototype-rails"
|
45
|
+
|
46
|
+
# Register extra stylesheet for backend (optional options)
|
47
|
+
# config.register_stylesheet "custom", :media => 'screen'
|
48
|
+
end
|