refinerycms 0.9.9 → 0.9.9.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -1
- data/Gemfile +8 -24
- data/Gemfile.lock +94 -69
- data/Rakefile +1 -1
- data/bin/refinerycms +118 -109
- data/changelog.md +13 -2
- data/config/cucumber.yml +3 -7
- data/config/settings.rb +0 -1
- data/lib/refinery.rb +14 -1
- data/lib/refinerycms.rb +2 -9
- data/refinerycms.gemspec +15 -855
- data/spec/spec_helper.rb +3 -2
- metadata +27 -907
- data/authentication/app/controllers/admin/users_controller.rb +0 -90
- data/authentication/app/controllers/passwords_controller.rb +0 -43
- data/authentication/app/controllers/registrations_controller.rb +0 -67
- data/authentication/app/controllers/sessions_controller.rb +0 -23
- data/authentication/app/helpers/sessions_helper.rb +0 -2
- data/authentication/app/helpers/users_helper.rb +0 -2
- data/authentication/app/mailers/user_mailer.rb +0 -20
- data/authentication/app/models/role.rb +0 -16
- data/authentication/app/models/roles_users.rb +0 -6
- data/authentication/app/models/user.rb +0 -58
- data/authentication/app/models/user_plugin.rb +0 -5
- data/authentication/app/views/admin/users/_form.html.erb +0 -92
- data/authentication/app/views/admin/users/_user.html.erb +0 -19
- data/authentication/app/views/admin/users/_users.html.erb +0 -4
- data/authentication/app/views/admin/users/edit.html.erb +0 -1
- data/authentication/app/views/admin/users/index.html.erb +0 -12
- data/authentication/app/views/admin/users/new.html.erb +0 -1
- data/authentication/app/views/layouts/login.html.erb +0 -21
- data/authentication/app/views/passwords/edit.html.erb +0 -31
- data/authentication/app/views/passwords/new.html.erb +0 -18
- data/authentication/app/views/registrations/new.html.erb +0 -41
- data/authentication/app/views/sessions/new.html.erb +0 -29
- data/authentication/app/views/user_mailer/reset_notification.html.erb +0 -12
- data/authentication/app/views/user_mailer/reset_notification.text.plain.erb +0 -7
- data/authentication/config/locales/cs.yml +0 -75
- data/authentication/config/locales/da.yml +0 -72
- data/authentication/config/locales/de.yml +0 -72
- data/authentication/config/locales/el.yml +0 -72
- data/authentication/config/locales/en.yml +0 -72
- data/authentication/config/locales/es.yml +0 -100
- data/authentication/config/locales/fr.yml +0 -72
- data/authentication/config/locales/it.yml +0 -97
- data/authentication/config/locales/lolcat.yml +0 -55
- data/authentication/config/locales/lt.yml +0 -55
- data/authentication/config/locales/lv.yml +0 -72
- data/authentication/config/locales/nb.yml +0 -72
- data/authentication/config/locales/nl.yml +0 -70
- data/authentication/config/locales/pl.yml +0 -100
- data/authentication/config/locales/pt-BR.yml +0 -68
- data/authentication/config/locales/rs.yml +0 -72
- data/authentication/config/locales/ru.yml +0 -97
- data/authentication/config/locales/sl.yml +0 -61
- data/authentication/config/locales/sv.yml +0 -64
- data/authentication/config/locales/zh-CN.yml +0 -72
- data/authentication/config/locales/zh-TW.yml +0 -72
- data/authentication/config/routes.rb +0 -31
- data/authentication/db/migrate/20100913234705_create_refinerycms_authentication_schema.rb +0 -43
- data/authentication/db/migrate/20100929035252_add_missing_indexes_to_roles_users.rb +0 -11
- data/authentication/db/migrate/20101206013505_change_to_devise_users_table.rb +0 -27
- data/authentication/db/migrate/20110106184757_add_remember_created_at_to_users.rb +0 -9
- data/authentication/features/lost_password.feature +0 -49
- data/authentication/features/manage_users.feature +0 -61
- data/authentication/features/step_definitions/lost_password.rb +0 -8
- data/authentication/features/step_definitions/user_steps.rb +0 -36
- data/authentication/features/support/factories.rb +0 -18
- data/authentication/features/support/paths.rb +0 -24
- data/authentication/lib/authenticated_system.rb +0 -29
- data/authentication/lib/authentication.rb +0 -30
- data/authentication/lib/generators/refinerycms_authentication_generator.rb +0 -8
- data/authentication/license.md +0 -21
- data/authentication/readme.md +0 -17
- data/authentication/refinerycms-authentication.gemspec +0 -20
- data/authentication/spec/models/user_spec.rb +0 -159
- data/base/db/migrate/20100913234706_create_refinerycms_core_schema.rb +0 -23
- data/base/db/migrate/20101217113424_add_locale_to_slugs.rb +0 -13
- data/base/features/step_definitions/web_steps.rb +0 -219
- data/base/features/support/env.rb +0 -84
- data/base/features/support/factories.rb +0 -1
- data/base/features/support/negative_expectations_helper.rb +0 -57
- data/base/features/support/paths.rb +0 -91
- data/base/lib/base.rb +0 -32
- data/base/lib/generators/refinerycms_base_generator.rb +0 -8
- data/base/lib/refinery.rb +0 -32
- data/base/lib/refinery/version.rb +0 -16
- data/base/license.md +0 -21
- data/base/refinerycms-base.gemspec +0 -18
- data/core/app/controllers/admin/base_controller.rb +0 -10
- data/core/app/controllers/admin/dialogs_controller.rb +0 -26
- data/core/app/controllers/admin/refinery_core_controller.rb +0 -12
- data/core/app/controllers/application_controller.rb +0 -6
- data/core/app/controllers/refinery/fast_controller.rb +0 -9
- data/core/app/controllers/sitemap_controller.rb +0 -14
- data/core/app/helpers/application_helper.rb +0 -5
- data/core/app/views/admin/_head.html.erb +0 -43
- data/core/app/views/admin/_javascripts.html.erb +0 -32
- data/core/app/views/admin/_menu.html.erb +0 -17
- data/core/app/views/admin/dialogs/show.html.erb +0 -19
- data/core/app/views/layouts/admin.html.erb +0 -24
- data/core/app/views/layouts/admin_dialog.html.erb +0 -14
- data/core/app/views/layouts/application.html.erb +0 -21
- data/core/app/views/shared/_content_page.html.erb +0 -63
- data/core/app/views/shared/_draft_page_message.html.erb +0 -3
- data/core/app/views/shared/_footer.html.erb +0 -4
- data/core/app/views/shared/_google_analytics.html.erb +0 -8
- data/core/app/views/shared/_head.html.erb +0 -42
- data/core/app/views/shared/_header.html.erb +0 -8
- data/core/app/views/shared/_html_tag.html.erb +0 -6
- data/core/app/views/shared/_ie6check.html.erb +0 -63
- data/core/app/views/shared/_javascripts.html.erb +0 -10
- data/core/app/views/shared/_menu.html.erb +0 -30
- data/core/app/views/shared/_menu_branch.html.erb +0 -26
- data/core/app/views/shared/_message.html.erb +0 -10
- data/core/app/views/shared/_no_script.html.erb +0 -9
- data/core/app/views/shared/_site_bar.html.erb +0 -25
- data/core/app/views/shared/admin/_continue_editing.html.erb +0 -3
- data/core/app/views/shared/admin/_error_messages.html.erb +0 -16
- data/core/app/views/shared/admin/_form_actions.html.erb +0 -77
- data/core/app/views/shared/admin/_image_picker.html.erb +0 -60
- data/core/app/views/shared/admin/_make_sortable.html.erb +0 -13
- data/core/app/views/shared/admin/_resource_picker.html.erb +0 -66
- data/core/app/views/shared/admin/_search.html.erb +0 -6
- data/core/app/views/shared/admin/_sortable_list.html.erb +0 -7
- data/core/app/views/shared/admin/_tabbed_fields.html.erb +0 -42
- data/core/app/views/welcome.html.erb +0 -17
- data/core/app/views/wymiframe.html.erb +0 -15
- data/core/config/locales/cs.yml +0 -77
- data/core/config/locales/da.yml +0 -75
- data/core/config/locales/de.yml +0 -75
- data/core/config/locales/el.yml +0 -75
- data/core/config/locales/en.yml +0 -75
- data/core/config/locales/es.yml +0 -68
- data/core/config/locales/fr.yml +0 -72
- data/core/config/locales/it.yml +0 -96
- data/core/config/locales/lolcat.yml +0 -68
- data/core/config/locales/lt.yml +0 -75
- data/core/config/locales/lv.yml +0 -72
- data/core/config/locales/nb.yml +0 -75
- data/core/config/locales/nl.yml +0 -75
- data/core/config/locales/pl.yml +0 -75
- data/core/config/locales/pt-BR.yml +0 -72
- data/core/config/locales/rs.yml +0 -76
- data/core/config/locales/ru.yml +0 -71
- data/core/config/locales/sl.yml +0 -72
- data/core/config/locales/sv.yml +0 -75
- data/core/config/locales/zh-CN.yml +0 -75
- data/core/config/locales/zh-TW.yml +0 -75
- data/core/config/routes.rb +0 -19
- data/core/crud.md +0 -197
- data/core/doc/included-jquery-ui-packages.jpg +0 -0
- data/core/engines.md +0 -179
- data/core/features/search.feature +0 -55
- data/core/features/site_bar.feature +0 -24
- data/core/features/step_definitions/core_steps.rb +0 -61
- data/core/features/support/paths.rb +0 -14
- data/core/features/uploads/beach.jpeg +0 -0
- data/core/features/uploads/refinery_is_awesome.txt +0 -1
- data/core/lib/core.rb +0 -143
- data/core/lib/generators/refinerycms_generator.rb +0 -107
- data/core/lib/generators/templates/.gitignore +0 -83
- data/core/lib/generators/templates/.rspec +0 -2
- data/core/lib/generators/templates/app/views/sitemap/index.xml.builder +0 -22
- data/core/lib/generators/templates/autotest/autotest.rb +0 -17
- data/core/lib/generators/templates/autotest/discover.rb +0 -2
- data/core/lib/generators/templates/config/cucumber.yml +0 -15
- data/core/lib/generators/templates/config/database.yml.mysql +0 -20
- data/core/lib/generators/templates/config/database.yml.postgresql +0 -57
- data/core/lib/generators/templates/config/database.yml.sqlite3 +0 -26
- data/core/lib/generators/templates/config/i18n-js.yml +0 -6
- data/core/lib/generators/templates/config/initializers/devise.rb +0 -142
- data/core/lib/generators/templates/config/settings.rb +0 -3
- data/core/lib/generators/templates/db/seeds.rb +0 -5
- data/core/lib/generators/templates/spec/rcov.opts +0 -2
- data/core/lib/generators/templates/spec/spec_helper.rb +0 -76
- data/core/lib/refinery/activity.rb +0 -45
- data/core/lib/refinery/admin/base_controller.rb +0 -111
- data/core/lib/refinery/admin_base_controller.rb +0 -5
- data/core/lib/refinery/application.rb +0 -76
- data/core/lib/refinery/application_controller.rb +0 -116
- data/core/lib/refinery/application_helper.rb +0 -19
- data/core/lib/refinery/base_presenter.rb +0 -27
- data/core/lib/refinery/catch_all_routes.rb +0 -11
- data/core/lib/refinery/crud.rb +0 -295
- data/core/lib/refinery/helpers/form_helper.rb +0 -66
- data/core/lib/refinery/helpers/head_helper.rb +0 -17
- data/core/lib/refinery/helpers/html_truncation_helper.rb +0 -25
- data/core/lib/refinery/helpers/image_helper.rb +0 -49
- data/core/lib/refinery/helpers/menu_helper.rb +0 -68
- data/core/lib/refinery/helpers/meta_helper.rb +0 -67
- data/core/lib/refinery/helpers/pagination_helper.rb +0 -16
- data/core/lib/refinery/helpers/script_helper.rb +0 -36
- data/core/lib/refinery/helpers/site_bar_helper.rb +0 -24
- data/core/lib/refinery/helpers/tag_helper.rb +0 -21
- data/core/lib/refinery/helpers/translation_helper.rb +0 -17
- data/core/lib/refinery/link_renderer.rb +0 -55
- data/core/lib/refinery/plugin.rb +0 -134
- data/core/lib/refinery/plugins.rb +0 -75
- data/core/lib/tasks/cucumber.rake +0 -53
- data/core/lib/tasks/doc.rake +0 -29
- data/core/lib/tasks/refinery.rake +0 -231
- data/core/lib/tasks/yard.rake +0 -30
- data/core/license.md +0 -21
- data/core/public/404.html +0 -26
- data/core/public/422.html +0 -26
- data/core/public/500.html +0 -26
- data/core/public/favicon.ico +0 -0
- data/core/public/images/refinery/add.png +0 -0
- data/core/public/images/refinery/admin_bg.png +0 -0
- data/core/public/images/refinery/ajax-loader.gif +0 -0
- data/core/public/images/refinery/branch-end.gif +0 -0
- data/core/public/images/refinery/branch-start.gif +0 -0
- data/core/public/images/refinery/branch.gif +0 -0
- data/core/public/images/refinery/carousel-left.png +0 -0
- data/core/public/images/refinery/carousel-right.png +0 -0
- data/core/public/images/refinery/cross.png +0 -0
- data/core/public/images/refinery/dialogLoadingAnimation.gif +0 -0
- data/core/public/images/refinery/header_background.png +0 -0
- data/core/public/images/refinery/hover-gradient.jpg +0 -0
- data/core/public/images/refinery/icons/accept.png +0 -0
- data/core/public/images/refinery/icons/add.png +0 -0
- data/core/public/images/refinery/icons/ajax-loader.gif +0 -0
- data/core/public/images/refinery/icons/application_edit.png +0 -0
- data/core/public/images/refinery/icons/application_go.png +0 -0
- data/core/public/images/refinery/icons/arrow_left.png +0 -0
- data/core/public/images/refinery/icons/arrow_switch.png +0 -0
- data/core/public/images/refinery/icons/arrow_up.png +0 -0
- data/core/public/images/refinery/icons/bin.png +0 -0
- data/core/public/images/refinery/icons/bin_closed.png +0 -0
- data/core/public/images/refinery/icons/cancel.png +0 -0
- data/core/public/images/refinery/icons/cog_add.png +0 -0
- data/core/public/images/refinery/icons/cog_edit.png +0 -0
- data/core/public/images/refinery/icons/cross.png +0 -0
- data/core/public/images/refinery/icons/delete.png +0 -0
- data/core/public/images/refinery/icons/doc.png +0 -0
- data/core/public/images/refinery/icons/down.gif +0 -0
- data/core/public/images/refinery/icons/edit.png +0 -0
- data/core/public/images/refinery/icons/email.png +0 -0
- data/core/public/images/refinery/icons/email_edit.png +0 -0
- data/core/public/images/refinery/icons/email_go.png +0 -0
- data/core/public/images/refinery/icons/email_open.png +0 -0
- data/core/public/images/refinery/icons/eye.png +0 -0
- data/core/public/images/refinery/icons/folder_page_white.png +0 -0
- data/core/public/images/refinery/icons/image_add.png +0 -0
- data/core/public/images/refinery/icons/image_edit.png +0 -0
- data/core/public/images/refinery/icons/img.png +0 -0
- data/core/public/images/refinery/icons/information.png +0 -0
- data/core/public/images/refinery/icons/layout_add.png +0 -0
- data/core/public/images/refinery/icons/layout_edit.png +0 -0
- data/core/public/images/refinery/icons/music.png +0 -0
- data/core/public/images/refinery/icons/page_add.png +0 -0
- data/core/public/images/refinery/icons/page_edit.png +0 -0
- data/core/public/images/refinery/icons/page_white_edit.png +0 -0
- data/core/public/images/refinery/icons/page_white_gear.png +0 -0
- data/core/public/images/refinery/icons/page_white_put.png +0 -0
- data/core/public/images/refinery/icons/pdf.png +0 -0
- data/core/public/images/refinery/icons/ppt.png +0 -0
- data/core/public/images/refinery/icons/star.png +0 -0
- data/core/public/images/refinery/icons/tick.png +0 -0
- data/core/public/images/refinery/icons/up.gif +0 -0
- data/core/public/images/refinery/icons/user_add.png +0 -0
- data/core/public/images/refinery/icons/user_comment.png +0 -0
- data/core/public/images/refinery/icons/user_edit.png +0 -0
- data/core/public/images/refinery/icons/xls.png +0 -0
- data/core/public/images/refinery/icons/zip.png +0 -0
- data/core/public/images/refinery/icons/zoom.png +0 -0
- data/core/public/images/refinery/logo-large.png +0 -0
- data/core/public/images/refinery/logo-medium.png +0 -0
- data/core/public/images/refinery/logo-site-bar.png +0 -0
- data/core/public/images/refinery/logo-small-medium.png +0 -0
- data/core/public/images/refinery/logo-small.png +0 -0
- data/core/public/images/refinery/logo-tiny.png +0 -0
- data/core/public/images/refinery/logo.png +0 -0
- data/core/public/images/refinery/nav-3-background.gif +0 -0
- data/core/public/images/refinery/nav_inactive_background.png +0 -0
- data/core/public/images/refinery/orange_button.png +0 -0
- data/core/public/images/refinery/page_bg.png +0 -0
- data/core/public/images/refinery/resolve_digital_footer_logo.png +0 -0
- data/core/public/images/refinery/text_field_background.png +0 -0
- data/core/public/images/refinery/tooltip-nib.gif +0 -0
- data/core/public/images/refinery/tooltip-nib.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/arrow_redo.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/arrow_undo.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/eye.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/iframe/lbl-blockquote.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/iframe/lbl-h1.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/iframe/lbl-h2.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/iframe/lbl-h3.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/iframe/lbl-h4.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/iframe/lbl-h5.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/iframe/lbl-h6.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/iframe/lbl-p.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/iframe/lbl-pre.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/link_add.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/link_break.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/page_code.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/page_paste.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/photo_add.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/right.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/style.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/table_add.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/text_align_center.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/text_align_justify.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/text_align_left.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/text_align_right.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/text_bold.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/text_heading_1.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/text_heading_2.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/text_heading_3.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/text_heading_4.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/text_heading_5.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/text_heading_6.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/text_indent.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/text_indent_remove.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/text_italic.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/text_list_bullets.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/text_list_numbers.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/text_paragraph.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/text_strikethrough.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/text_subscript.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/text_superscript.png +0 -0
- data/core/public/images/wymeditor/skins/refinery/text_underline.png +0 -0
- data/core/public/images/wymeditor/skins/wymeditor_icon.png +0 -0
- data/core/public/javascripts/admin.js +0 -7
- data/core/public/javascripts/application.js +0 -1
- data/core/public/javascripts/dd_belatedpng.js +0 -13
- data/core/public/javascripts/i18n-messages.js +0 -2
- data/core/public/javascripts/jquery-min.js +0 -154
- data/core/public/javascripts/jquery-ui-custom-min.js +0 -249
- data/core/public/javascripts/jquery.js +0 -6240
- data/core/public/javascripts/jquery/GPL-LICENSE.txt +0 -278
- data/core/public/javascripts/jquery/MIT-LICENSE.txt +0 -20
- data/core/public/javascripts/jquery/jquery.corner.js +0 -345
- data/core/public/javascripts/jquery/jquery.html5-placeholder-shim.js +0 -88
- data/core/public/javascripts/jquery/jquery.jcarousel.js +0 -900
- data/core/public/javascripts/jquery/jquery.textTruncate.js +0 -174
- data/core/public/javascripts/jquery/jquery.timers.js +0 -138
- data/core/public/javascripts/modernizr-min.js +0 -30
- data/core/public/javascripts/rails.js +0 -152
- data/core/public/javascripts/refinery/admin.js +0 -1114
- data/core/public/javascripts/refinery/boot_wym.js +0 -285
- data/core/public/javascripts/refinery/core.js +0 -18
- data/core/public/javascripts/refinery/i18n.js +0 -340
- data/core/public/javascripts/refinery/nestedsortables.js +0 -164
- data/core/public/javascripts/refinery/serializelist.js +0 -66
- data/core/public/javascripts/refinery/site_bar.js +0 -16
- data/core/public/javascripts/refinery/submenu.js +0 -49
- data/core/public/javascripts/wymeditor/jquery.refinery.wymeditor.js +0 -5142
- data/core/public/javascripts/wymeditor/lang/ca.js +0 -45
- data/core/public/javascripts/wymeditor/lang/cs.js +0 -45
- data/core/public/javascripts/wymeditor/lang/da.js +0 -48
- data/core/public/javascripts/wymeditor/lang/de.js +0 -45
- data/core/public/javascripts/wymeditor/lang/en.js +0 -47
- data/core/public/javascripts/wymeditor/lang/es.js +0 -45
- data/core/public/javascripts/wymeditor/lang/fa.js +0 -46
- data/core/public/javascripts/wymeditor/lang/fr.js +0 -45
- data/core/public/javascripts/wymeditor/lang/he.js +0 -45
- data/core/public/javascripts/wymeditor/lang/hu.js +0 -45
- data/core/public/javascripts/wymeditor/lang/it.js +0 -45
- data/core/public/javascripts/wymeditor/lang/lv.js +0 -47
- data/core/public/javascripts/wymeditor/lang/nb.js +0 -48
- data/core/public/javascripts/wymeditor/lang/nl.js +0 -47
- data/core/public/javascripts/wymeditor/lang/nn.js +0 -45
- data/core/public/javascripts/wymeditor/lang/pl.js +0 -45
- data/core/public/javascripts/wymeditor/lang/pt-BR.js +0 -47
- data/core/public/javascripts/wymeditor/lang/pt.js +0 -45
- data/core/public/javascripts/wymeditor/lang/rs.js +0 -47
- data/core/public/javascripts/wymeditor/lang/ru.js +0 -45
- data/core/public/javascripts/wymeditor/lang/sl.js +0 -47
- data/core/public/javascripts/wymeditor/lang/sv.js +0 -45
- data/core/public/javascripts/wymeditor/lang/tr.js +0 -45
- data/core/public/javascripts/wymeditor/lang/zh_cn.js +0 -47
- data/core/public/javascripts/wymeditor/skins/refinery/skin.js +0 -48
- data/core/public/robots.txt +0 -3
- data/core/public/stylesheets/application.css +0 -4
- data/core/public/stylesheets/formatting.css +0 -4
- data/core/public/stylesheets/home.css +0 -4
- data/core/public/stylesheets/refinery/application.css +0 -72
- data/core/public/stylesheets/refinery/formatting.css +0 -57
- data/core/public/stylesheets/refinery/home.css +0 -0
- data/core/public/stylesheets/refinery/refinery.css +0 -1572
- data/core/public/stylesheets/refinery/site_bar.css +0 -87
- data/core/public/stylesheets/refinery/submenu.css +0 -22
- data/core/public/stylesheets/refinery/theme.css +0 -36
- data/core/public/stylesheets/refinery/tooltips.css +0 -34
- data/core/public/stylesheets/refinery/ui.css +0 -107
- data/core/public/stylesheets/theme.css +0 -4
- data/core/public/stylesheets/wymeditor/skins/refinery/skin.css +0 -528
- data/core/public/stylesheets/wymeditor/skins/refinery/wymiframe.css +0 -96
- data/core/public/wymeditor/GPL-license.txt +0 -278
- data/core/public/wymeditor/MIT-license.txt +0 -20
- data/core/public/wymeditor/README +0 -35
- data/core/refinerycms-core.gemspec +0 -20
- data/core/spec/lib/refinery/plugins_spec.rb +0 -90
- data/dashboard/app/controllers/admin/dashboard_controller.rb +0 -38
- data/dashboard/app/helpers/admin/dashboard_helper.rb +0 -24
- data/dashboard/app/views/admin/dashboard/_additional_dashboard_menu_items.html.erb +0 -1
- data/dashboard/app/views/admin/dashboard/_recent_activity.html.erb +0 -14
- data/dashboard/app/views/admin/dashboard/_recent_inquiries.html.erb +0 -11
- data/dashboard/app/views/admin/dashboard/index.html.erb +0 -70
- data/dashboard/app/views/admin/dashboard/index.rss.builder +0 -26
- data/dashboard/config/locales/cs.yml +0 -25
- data/dashboard/config/locales/da.yml +0 -25
- data/dashboard/config/locales/de.yml +0 -25
- data/dashboard/config/locales/el.yml +0 -25
- data/dashboard/config/locales/en.yml +0 -25
- data/dashboard/config/locales/es.yml +0 -28
- data/dashboard/config/locales/fr.yml +0 -25
- data/dashboard/config/locales/it.yml +0 -27
- data/dashboard/config/locales/lolcat.yml +0 -24
- data/dashboard/config/locales/lt.yml +0 -25
- data/dashboard/config/locales/lv.yml +0 -27
- data/dashboard/config/locales/nb.yml +0 -25
- data/dashboard/config/locales/nl.yml +0 -25
- data/dashboard/config/locales/pl.yml +0 -29
- data/dashboard/config/locales/pt-BR.yml +0 -29
- data/dashboard/config/locales/rs.yml +0 -26
- data/dashboard/config/locales/ru.yml +0 -29
- data/dashboard/config/locales/sl.yml +0 -24
- data/dashboard/config/locales/sv.yml +0 -25
- data/dashboard/config/locales/zh-CN.yml +0 -25
- data/dashboard/config/locales/zh-TW.yml +0 -25
- data/dashboard/config/routes.rb +0 -11
- data/dashboard/features/dashboard.feature +0 -35
- data/dashboard/features/support/paths.rb +0 -14
- data/dashboard/lib/dashboard.rb +0 -19
- data/dashboard/license.md +0 -21
- data/dashboard/readme.md +0 -22
- data/dashboard/refinerycms-dashboard.gemspec +0 -20
- data/images/app/controllers/admin/images_controller.rb +0 -108
- data/images/app/helpers/admin/images_helper.rb +0 -27
- data/images/app/models/image.rb +0 -72
- data/images/app/views/admin/images/_existing_image.html.erb +0 -73
- data/images/app/views/admin/images/_form.html.erb +0 -54
- data/images/app/views/admin/images/_grid_view.html.erb +0 -19
- data/images/app/views/admin/images/_images.html.erb +0 -2
- data/images/app/views/admin/images/_list_view.html.erb +0 -10
- data/images/app/views/admin/images/_list_view_image.html.erb +0 -17
- data/images/app/views/admin/images/edit.html.erb +0 -1
- data/images/app/views/admin/images/index.html.erb +0 -38
- data/images/app/views/admin/images/insert.html.erb +0 -47
- data/images/app/views/admin/images/new.html.erb +0 -1
- data/images/config/locales/cs.yml +0 -41
- data/images/config/locales/da.yml +0 -41
- data/images/config/locales/de.yml +0 -41
- data/images/config/locales/el.yml +0 -41
- data/images/config/locales/en.yml +0 -41
- data/images/config/locales/es.yml +0 -40
- data/images/config/locales/fr.yml +0 -41
- data/images/config/locales/it.yml +0 -47
- data/images/config/locales/lolcat.yml +0 -41
- data/images/config/locales/lt.yml +0 -41
- data/images/config/locales/lv.yml +0 -41
- data/images/config/locales/nb.yml +0 -42
- data/images/config/locales/nl.yml +0 -40
- data/images/config/locales/pl.yml +0 -42
- data/images/config/locales/pt-BR.yml +0 -42
- data/images/config/locales/rs.yml +0 -42
- data/images/config/locales/ru.yml +0 -41
- data/images/config/locales/sl.yml +0 -40
- data/images/config/locales/sv.yml +0 -41
- data/images/config/locales/zh-CN.yml +0 -41
- data/images/config/locales/zh-TW.yml +0 -41
- data/images/config/routes.rb +0 -11
- data/images/db/migrate/20100913234707_create_refinerycms_images_schema.rb +0 -23
- data/images/features/manage_images.feature +0 -49
- data/images/features/step_definitions/image_steps.rb +0 -40
- data/images/features/support/factories.rb +0 -5
- data/images/features/support/paths.rb +0 -17
- data/images/features/uploads/beach.jpeg +0 -0
- data/images/features/uploads/id-rather-be-here.jpg +0 -0
- data/images/features/uploads/refinery_is_awesome.txt +0 -1
- data/images/lib/generators/refinerycms_images_generator.rb +0 -8
- data/images/lib/images.rb +0 -59
- data/images/license.md +0 -21
- data/images/readme.md +0 -34
- data/images/refinerycms-images.gemspec +0 -20
- data/images/spec/models/image_spec.rb +0 -87
- data/images/spec/uploads/beach.jpeg +0 -0
- data/pages/app/controllers/admin/page_parts_controller.rb +0 -24
- data/pages/app/controllers/admin/pages_controller.rb +0 -37
- data/pages/app/controllers/admin/pages_dialogs_controller.rb +0 -87
- data/pages/app/controllers/pages_controller.rb +0 -32
- data/pages/app/helpers/pages_helper.rb +0 -2
- data/pages/app/models/page.rb +0 -290
- data/pages/app/models/page_part.rb +0 -23
- data/pages/app/presenters/page_presenter.rb +0 -7
- data/pages/app/views/admin/pages/_form.html.erb +0 -61
- data/pages/app/views/admin/pages/_form_advanced_options.html.erb +0 -79
- data/pages/app/views/admin/pages/_form_advanced_options_seo.html.erb +0 -24
- data/pages/app/views/admin/pages/_form_fields_after_title.html.erb +0 -1
- data/pages/app/views/admin/pages/_form_new_page_parts.html.erb +0 -14
- data/pages/app/views/admin/pages/_form_page_parts.html.erb +0 -47
- data/pages/app/views/admin/pages/_locale_picker.html.erb +0 -11
- data/pages/app/views/admin/pages/_page.html.erb +0 -33
- data/pages/app/views/admin/pages/_page_part_field.html.erb +0 -5
- data/pages/app/views/admin/pages/_sortable_list.html.erb +0 -5
- data/pages/app/views/admin/pages/edit.html.erb +0 -1
- data/pages/app/views/admin/pages/index.html.erb +0 -40
- data/pages/app/views/admin/pages/new.html.erb +0 -1
- data/pages/app/views/admin/pages_dialogs/_page_link.html.erb +0 -13
- data/pages/app/views/admin/pages_dialogs/link_to.html.erb +0 -141
- data/pages/app/views/pages/home.html.erb +0 -1
- data/pages/app/views/pages/show.html.erb +0 -1
- data/pages/config/locales/cs.yml +0 -84
- data/pages/config/locales/da.yml +0 -84
- data/pages/config/locales/de.yml +0 -84
- data/pages/config/locales/el.yml +0 -84
- data/pages/config/locales/en.yml +0 -84
- data/pages/config/locales/es.yml +0 -83
- data/pages/config/locales/fr.yml +0 -84
- data/pages/config/locales/it.yml +0 -98
- data/pages/config/locales/lolcat.yml +0 -83
- data/pages/config/locales/lt.yml +0 -85
- data/pages/config/locales/lv.yml +0 -86
- data/pages/config/locales/nb.yml +0 -85
- data/pages/config/locales/nl.yml +0 -81
- data/pages/config/locales/pl.yml +0 -85
- data/pages/config/locales/pt-BR.yml +0 -85
- data/pages/config/locales/rs.yml +0 -84
- data/pages/config/locales/ru.yml +0 -108
- data/pages/config/locales/sl.yml +0 -83
- data/pages/config/locales/sv.yml +0 -84
- data/pages/config/locales/zh-CN.yml +0 -84
- data/pages/config/locales/zh-TW.yml +0 -84
- data/pages/config/routes.rb +0 -21
- data/pages/db/migrate/20100913234708_create_refinerycms_pages_schema.rb +0 -53
- data/pages/db/migrate/20101214040815_translate_page_plugin.rb +0 -29
- data/pages/db/migrate/20101216194133_remove_cached_slug_from_pages.rb +0 -9
- data/pages/db/seeds/pages.rb +0 -43
- data/pages/features/manage_pages.feature +0 -47
- data/pages/features/step_definitions/page_steps.rb +0 -53
- data/pages/features/support/paths.rb +0 -26
- data/pages/features/visit_pages.feature +0 -47
- data/pages/lib/generators/refinerycms_pages_generator.rb +0 -8
- data/pages/lib/pages.rb +0 -36
- data/pages/lib/pages/marketable_routes.rb +0 -3
- data/pages/lib/pages/tabs.rb +0 -30
- data/pages/license.md +0 -21
- data/pages/readme.md +0 -156
- data/pages/refinerycms-pages.gemspec +0 -21
- data/pages/spec/models/page_spec.rb +0 -155
- data/resources/app/controllers/admin/resources_controller.rb +0 -89
- data/resources/app/models/resource.rb +0 -53
- data/resources/app/views/admin/resources/_existing_resource.html.erb +0 -32
- data/resources/app/views/admin/resources/_form.html.erb +0 -55
- data/resources/app/views/admin/resources/_resource.html.erb +0 -17
- data/resources/app/views/admin/resources/_resources.html.erb +0 -10
- data/resources/app/views/admin/resources/edit.html.erb +0 -1
- data/resources/app/views/admin/resources/index.html.erb +0 -31
- data/resources/app/views/admin/resources/insert.html.erb +0 -54
- data/resources/app/views/admin/resources/new.html.erb +0 -1
- data/resources/config/locales/cs.yml +0 -34
- data/resources/config/locales/da.yml +0 -34
- data/resources/config/locales/de.yml +0 -34
- data/resources/config/locales/el.yml +0 -34
- data/resources/config/locales/en.yml +0 -34
- data/resources/config/locales/es.yml +0 -33
- data/resources/config/locales/fr.yml +0 -34
- data/resources/config/locales/it.yml +0 -43
- data/resources/config/locales/lolcat.yml +0 -34
- data/resources/config/locales/lt.yml +0 -34
- data/resources/config/locales/lv.yml +0 -34
- data/resources/config/locales/nb.yml +0 -34
- data/resources/config/locales/nl.yml +0 -33
- data/resources/config/locales/pl.yml +0 -35
- data/resources/config/locales/pt-BR.yml +0 -34
- data/resources/config/locales/rs.yml +0 -35
- data/resources/config/locales/ru.yml +0 -34
- data/resources/config/locales/sl.yml +0 -33
- data/resources/config/locales/sv.yml +0 -34
- data/resources/config/locales/zh-CN.yml +0 -34
- data/resources/config/locales/zh-TW.yml +0 -34
- data/resources/config/routes.rb +0 -11
- data/resources/db/migrate/20100913234709_create_refinerycms_resources_schema.rb +0 -21
- data/resources/features/manage_files.feature +0 -43
- data/resources/features/step_definitions/file_steps.rb +0 -21
- data/resources/features/support/paths.rb +0 -17
- data/resources/features/uploads/beach.jpeg +0 -0
- data/resources/features/uploads/refinery_is_awesome.txt +0 -1
- data/resources/lib/generators/refinerycms_resources_generator.rb +0 -8
- data/resources/lib/resources.rb +0 -58
- data/resources/license.md +0 -21
- data/resources/readme.md +0 -9
- data/resources/refinerycms-resources.gemspec +0 -20
- data/resources/spec/models/resource_spec.rb +0 -91
- data/resources/spec/uploads/refinery_is_awesome.txt +0 -1
- data/settings/app/controllers/admin/refinery_settings_controller.rb +0 -77
- data/settings/app/helpers/refinery_settings_helper.rb +0 -25
- data/settings/app/models/refinery_setting.rb +0 -212
- data/settings/app/views/admin/refinery_settings/_form.html.erb +0 -62
- data/settings/app/views/admin/refinery_settings/_refinery_setting.html.erb +0 -23
- data/settings/app/views/admin/refinery_settings/_refinery_settings.html.erb +0 -5
- data/settings/app/views/admin/refinery_settings/edit.html.erb +0 -1
- data/settings/app/views/admin/refinery_settings/index.html.erb +0 -49
- data/settings/app/views/admin/refinery_settings/new.html.erb +0 -1
- data/settings/config/locales/cs.yml +0 -45
- data/settings/config/locales/da.yml +0 -46
- data/settings/config/locales/de.yml +0 -46
- data/settings/config/locales/el.yml +0 -46
- data/settings/config/locales/en.yml +0 -46
- data/settings/config/locales/es.yml +0 -43
- data/settings/config/locales/fr.yml +0 -44
- data/settings/config/locales/it.yml +0 -36
- data/settings/config/locales/lolcat.yml +0 -43
- data/settings/config/locales/lt.yml +0 -46
- data/settings/config/locales/lv.yml +0 -46
- data/settings/config/locales/nb.yml +0 -47
- data/settings/config/locales/nl.yml +0 -46
- data/settings/config/locales/pl.yml +0 -46
- data/settings/config/locales/pt-BR.yml +0 -44
- data/settings/config/locales/rs.yml +0 -46
- data/settings/config/locales/ru.yml +0 -43
- data/settings/config/locales/sl.yml +0 -25
- data/settings/config/locales/sv.yml +0 -45
- data/settings/config/locales/zh-CN.yml +0 -46
- data/settings/config/locales/zh-TW.yml +0 -46
- data/settings/config/routes.rb +0 -8
- data/settings/db/migrate/20100913234710_create_refinerycms_settings_schema.rb +0 -24
- data/settings/db/migrate/20100926142529_add_value_type_to_refinery_settings.rb +0 -9
- data/settings/features/manage_refinery_settings.feature +0 -5
- data/settings/features/step_definitions/setting_steps.rb +0 -9
- data/settings/features/support/paths.rb +0 -14
- data/settings/lib/generators/refinerycms_settings_generator.rb +0 -8
- data/settings/lib/settings.rb +0 -16
- data/settings/license.md +0 -21
- data/settings/readme.md +0 -55
- data/settings/refinerycms-settings.gemspec +0 -20
- data/settings/spec/models/refinery_setting_spec.rb +0 -101
@@ -1,107 +0,0 @@
|
|
1
|
-
require 'refinery/generators'
|
2
|
-
|
3
|
-
class RefinerycmsGenerator < ::Refinery::Generators::EngineInstaller
|
4
|
-
|
5
|
-
engine_name :refinerycms
|
6
|
-
source_root Pathname.new(File.expand_path('../templates', __FILE__))
|
7
|
-
|
8
|
-
class_option :update, :type => :boolean, :aliases => nil, :group => :runtime,
|
9
|
-
:desc => "Update an existing Refinery CMS based application"
|
10
|
-
|
11
|
-
def generate
|
12
|
-
# Ensure the generator doesn't output anything using 'puts'
|
13
|
-
self.silence_puts = true
|
14
|
-
|
15
|
-
# Only pretend to do the next actions if this is Refinery to stay DRY
|
16
|
-
if Rails.root == Refinery.root
|
17
|
-
say_status :'-- pretending to make changes that happen in an actual installation --', nil, :yellow
|
18
|
-
old_pretend = self.options[:pretend]
|
19
|
-
new_options = self.options.dup
|
20
|
-
new_options[:pretend] = true
|
21
|
-
self.options = new_options
|
22
|
-
end
|
23
|
-
|
24
|
-
# First, effectively move / rename files that get in the way of Refinery CMS
|
25
|
-
%w(public/index.html config/cucumber.yml app/views/layouts/application.html.erb).each do |roadblock|
|
26
|
-
if (roadblock_path = Rails.root.join(roadblock)).file?
|
27
|
-
create_file "#{roadblock}.backup",
|
28
|
-
:verbose => true do roadblock_path.read end
|
29
|
-
remove_file roadblock_path, :verbose => true
|
30
|
-
end
|
31
|
-
end
|
32
|
-
|
33
|
-
unless self.options[:update]
|
34
|
-
# Copy asset files (JS, CSS) so they're ready to use.
|
35
|
-
%w(application.css formatting.css home.css theme.css).map{ |ss|
|
36
|
-
Refinery.root.join('core', 'public', 'stylesheets', ss)
|
37
|
-
}.reject{|ss| !ss.file?}.each do |stylesheet|
|
38
|
-
copy_file stylesheet,
|
39
|
-
Rails.root.join('public', 'stylesheets', stylesheet.split.last),
|
40
|
-
:verbose => true
|
41
|
-
end
|
42
|
-
copy_file Refinery.root.join('core', 'public', 'javascripts', 'admin.js'),
|
43
|
-
Rails.root.join('public', 'javascripts', 'admin.js'),
|
44
|
-
:verbose => true
|
45
|
-
end
|
46
|
-
|
47
|
-
# Ensure the config.serve_static_assets setting is present and enabled
|
48
|
-
%w(development test production).map{|e| "config/environments/#{e}.rb"}.each do |env|
|
49
|
-
gsub_file env, %r{#.*config.serve_static_assets}, 'config.serve_static_assets', :verbose => false
|
50
|
-
|
51
|
-
gsub_file env, "serve_static_assets = false", "serve_static_assets = true # Refinery CMS requires this to be true", :verbose => false
|
52
|
-
|
53
|
-
unless Rails.root.join(env).read =~ %r{Refinery.rescue_not_found}
|
54
|
-
append_file env, "Refinery.rescue_not_found = #{env.split('/').last.split('.rb').first == 'production'}"
|
55
|
-
end
|
56
|
-
end
|
57
|
-
|
58
|
-
# Stop pretending
|
59
|
-
if Rails.root == Refinery.root
|
60
|
-
say_status :'-- finished pretending --', nil, :yellow
|
61
|
-
new_options = self.options.dup
|
62
|
-
new_options[:pretend] = old_pretend
|
63
|
-
self.options = new_options
|
64
|
-
end
|
65
|
-
|
66
|
-
# Ensure .gitignore exists and append our rules to it.
|
67
|
-
create_file ".gitignore" unless Rails.root.join('.gitignore').file?
|
68
|
-
our_ignore_rules = self.class.source_root.join('.gitignore').read
|
69
|
-
our_ignore_rules = our_ignore_rules.split('# REFINERY CMS DEVELOPMENT').first if Rails.root != Refinery.root
|
70
|
-
append_file ".gitignore", our_ignore_rules
|
71
|
-
|
72
|
-
# If the admin/base_controller.rb file exists, ensure it does not do the old inheritance
|
73
|
-
if (admin_base = Rails.root.join('app', 'controllers', 'admin', 'base_controller.rb')).file?
|
74
|
-
gsub_file admin_base,
|
75
|
-
"# You can extend refinery backend with your own functions here and they will likely not get overriden in an update.",
|
76
|
-
"",
|
77
|
-
:verbose => self.options[:update]
|
78
|
-
|
79
|
-
gsub_file admin_base, "< Refinery::AdminBaseController", "< ActionController::Base",
|
80
|
-
:verbose => self.options[:update]
|
81
|
-
end
|
82
|
-
|
83
|
-
|
84
|
-
# Append seeds.
|
85
|
-
append_file 'db/seeds.rb', :verbose => true do
|
86
|
-
self.class.source_root.join('db', 'seeds.rb').read
|
87
|
-
end
|
88
|
-
|
89
|
-
# Seeds and migrations now need to be copied from their various engines.
|
90
|
-
existing_source_root = self.class.source_root
|
91
|
-
::Refinery::Plugins.registered.pathnames.reject{|p| !p.join('db').directory?}.sort.each do |pathname|
|
92
|
-
self.class.source_root pathname
|
93
|
-
super
|
94
|
-
end
|
95
|
-
self.class.source_root existing_source_root
|
96
|
-
|
97
|
-
super
|
98
|
-
|
99
|
-
# The engine installer only installs database templates.
|
100
|
-
Pathname.glob(self.class.source_root.join('**', '*')).reject{|f|
|
101
|
-
f.directory? or f.to_s =~ /\/db\//
|
102
|
-
}.sort.each do |path|
|
103
|
-
copy_file path, path.to_s.gsub(self.class.source_root.to_s, Rails.root.to_s)
|
104
|
-
end
|
105
|
-
end
|
106
|
-
|
107
|
-
end
|
@@ -1,83 +0,0 @@
|
|
1
|
-
# Rails
|
2
|
-
.bundle
|
3
|
-
db/*.sqlite3
|
4
|
-
db/*.sqlite3-journal
|
5
|
-
*.log
|
6
|
-
tmp/**/*
|
7
|
-
|
8
|
-
# Documentation
|
9
|
-
doc/api
|
10
|
-
doc/app
|
11
|
-
doc/*
|
12
|
-
.yardoc
|
13
|
-
.yardopts
|
14
|
-
|
15
|
-
# Public Uploads
|
16
|
-
public/system/*
|
17
|
-
public/themes/*
|
18
|
-
|
19
|
-
# Public Cache
|
20
|
-
public/javascripts/cache
|
21
|
-
public/stylesheets/cache
|
22
|
-
|
23
|
-
# Vendor Cache
|
24
|
-
vendor/cache
|
25
|
-
|
26
|
-
# Acts as Indexed
|
27
|
-
index/**/*
|
28
|
-
|
29
|
-
# Refinery Specific
|
30
|
-
*.tmproj
|
31
|
-
*.autobackupbyrefinery.*
|
32
|
-
/refinerycms-*.gem
|
33
|
-
.autotest
|
34
|
-
|
35
|
-
# Mac
|
36
|
-
.DS_Store
|
37
|
-
|
38
|
-
# Windows
|
39
|
-
Thumbs.db
|
40
|
-
|
41
|
-
# NetBeans
|
42
|
-
nbproject
|
43
|
-
|
44
|
-
# Eclipse
|
45
|
-
.project
|
46
|
-
|
47
|
-
# Redcar
|
48
|
-
.redcar
|
49
|
-
|
50
|
-
# Rubinius
|
51
|
-
*.rbc
|
52
|
-
|
53
|
-
# Vim
|
54
|
-
*.swp
|
55
|
-
*.swo
|
56
|
-
|
57
|
-
# RubyMine
|
58
|
-
.idea
|
59
|
-
|
60
|
-
# Backup
|
61
|
-
*~
|
62
|
-
|
63
|
-
# Capybara Bug
|
64
|
-
capybara-*html
|
65
|
-
|
66
|
-
# sass
|
67
|
-
.sass-cache
|
68
|
-
.sass-cache/*
|
69
|
-
|
70
|
-
#rvm
|
71
|
-
.rvmrc
|
72
|
-
.rvmrc.*
|
73
|
-
|
74
|
-
# REFINERY CMS DEVELOPMENT ====================================================
|
75
|
-
# Always keep this section at the bottom.
|
76
|
-
|
77
|
-
config/database.yml
|
78
|
-
config/amazon_s3.yml
|
79
|
-
config/rackspace_cloudfiles.yml
|
80
|
-
your_*.*
|
81
|
-
db/schema.rb
|
82
|
-
|
83
|
-
# END REFINERY CMS DEVELOPMENT =================================================
|
@@ -1,22 +0,0 @@
|
|
1
|
-
xml.instruct!
|
2
|
-
|
3
|
-
xml.urlset "xmlns" => "http://www.sitemaps.org/schemas/sitemap/0.9" do
|
4
|
-
|
5
|
-
@pages.each do |page|
|
6
|
-
# exclude sites that are external to our own domain.
|
7
|
-
page_url = if page.url.is_a?(Hash)
|
8
|
-
# This is how most pages work without being overriden by link_url
|
9
|
-
page.url.merge({:only_path => false})
|
10
|
-
elsif page.url.to_s !~ /^http/
|
11
|
-
# handle relative link_url addresses.
|
12
|
-
"#{request.protocol}#{request.host_with_port}#{page.url}"
|
13
|
-
end
|
14
|
-
|
15
|
-
# Add XML entry only if there is a valid page_url found above.
|
16
|
-
xml.url do
|
17
|
-
xml.loc url_for(page_url)
|
18
|
-
xml.lastmod page.updated_at.to_date
|
19
|
-
end if page_url.present?
|
20
|
-
end
|
21
|
-
|
22
|
-
end
|
@@ -1,17 +0,0 @@
|
|
1
|
-
### uncomment any of the following requires applicable for your system
|
2
|
-
### and then copy this to .autotest if you are using the ZenTest autotest.
|
3
|
-
# require "autotest/restart"
|
4
|
-
# require "test_notifier/runner/autotest"
|
5
|
-
# require "redgreen/autotest"
|
6
|
-
# require "autotest/timestamp"
|
7
|
-
|
8
|
-
# adds exceptions from .gitignore file, please modify exceptions there!
|
9
|
-
imported_exceptions = IO.readlines('.gitignore').inject([]) do |acc, line|
|
10
|
-
acc << line.strip if line.to_s[0] != '#' && line.strip != ''; acc
|
11
|
-
end
|
12
|
-
|
13
|
-
Autotest.add_hook :initialize do |autotest|
|
14
|
-
imported_exceptions.each do |exception|
|
15
|
-
autotest.add_exception(exception)
|
16
|
-
end
|
17
|
-
end
|
@@ -1,15 +0,0 @@
|
|
1
|
-
<%
|
2
|
-
ENV["RAILS_ENV"] ||= "test"
|
3
|
-
require ::File.expand_path('../config/environment', __FILE__)
|
4
|
-
rerun = File.file?('rerun.txt') ? IO.read('rerun.txt') : ""
|
5
|
-
rerun_opts = rerun.to_s.strip.empty? ? "--format #{ENV['CUCUMBER_FORMAT'] || 'progress'} features" : "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} #{rerun}"
|
6
|
-
std_opts = "--format #{ENV['CUCUMBER_FORMAT'] || 'progress'} --strict --tags ~@wip "
|
7
|
-
features_globs = []
|
8
|
-
(::Refinery::Plugins.registered.pathnames << Rails.root).map{|p| p.join('features')}.reject{|d| !d.directory?}.each do |features|
|
9
|
-
features_globs << Dir[features.to_s].flatten.join(' ')
|
10
|
-
end
|
11
|
-
std_opts << features_globs.join(' ')
|
12
|
-
%>
|
13
|
-
default: <%= std_opts %>
|
14
|
-
wip: --tags @wip:3 --wip features
|
15
|
-
rerun: <%= rerun_opts %> --format rerun --out rerun.txt --strict --tags ~@wip
|
@@ -1,20 +0,0 @@
|
|
1
|
-
login: &login
|
2
|
-
adapter: mysql
|
3
|
-
host: localhost
|
4
|
-
username: root
|
5
|
-
password:
|
6
|
-
|
7
|
-
development: &development
|
8
|
-
database: your_local_database
|
9
|
-
<<: *login
|
10
|
-
|
11
|
-
test: &test
|
12
|
-
database: your_test_database
|
13
|
-
<<: *login
|
14
|
-
|
15
|
-
production: &production
|
16
|
-
adapter: mysql
|
17
|
-
host: localhost
|
18
|
-
database: your_production_database
|
19
|
-
username: your_production_database_login
|
20
|
-
password: your_production_database_password
|
@@ -1,57 +0,0 @@
|
|
1
|
-
# PostgreSQL. Versions 7.4 and 8.x are supported.
|
2
|
-
#
|
3
|
-
# Install the ruby-postgres driver:
|
4
|
-
# gem install ruby-postgres
|
5
|
-
# On Mac OS X:
|
6
|
-
# gem install ruby-postgres -- --include=/usr/local/pgsql
|
7
|
-
# On Windows:
|
8
|
-
# gem install ruby-postgres
|
9
|
-
# Choose the win32 build.
|
10
|
-
# Install PostgreSQL and put its /bin directory on your path.
|
11
|
-
login: &login
|
12
|
-
adapter: postgresql
|
13
|
-
encoding: unicode
|
14
|
-
username: postgres
|
15
|
-
password: postgres
|
16
|
-
pool: 5
|
17
|
-
|
18
|
-
development: &development
|
19
|
-
database: your_local_database
|
20
|
-
<<: *login
|
21
|
-
|
22
|
-
# Connect on a TCP socket. Omitted by default since the client uses a
|
23
|
-
# domain socket that doesn't need configuration. Windows does not have
|
24
|
-
# domain sockets, so uncomment these lines.
|
25
|
-
#host: localhost
|
26
|
-
#port: 5432
|
27
|
-
|
28
|
-
# Schema search path. The server defaults to $user,public
|
29
|
-
#schema_search_path: myapp,sharedapp,public
|
30
|
-
|
31
|
-
# Minimum log levels, in increasing order:
|
32
|
-
# debug5, debug4, debug3, debug2, debug1,
|
33
|
-
# log, notice, warning, error, fatal, and panic
|
34
|
-
# The server defaults to notice.
|
35
|
-
#min_messages: warning
|
36
|
-
|
37
|
-
# Warning: The database defined as "test" will be erased and
|
38
|
-
# re-generated from your development database when you run "rake".
|
39
|
-
# Do not set this db to the same as development or production.
|
40
|
-
test: &test
|
41
|
-
database: your_test_database
|
42
|
-
<<: *login
|
43
|
-
|
44
|
-
# Warning: The database defined as "cucumber" will be erased and
|
45
|
-
# re-generated from your development database when you run "rake".
|
46
|
-
# Do not set this db to the same as development or production.
|
47
|
-
cucumber: &cucumber
|
48
|
-
database: your_cucumber_database
|
49
|
-
<<: *login
|
50
|
-
|
51
|
-
production: &production
|
52
|
-
adapter: postgresql
|
53
|
-
encoding: unicode
|
54
|
-
pool: 5
|
55
|
-
database: your_production_database
|
56
|
-
username: your_production_database_login
|
57
|
-
password: your_production_database_password
|
@@ -1,26 +0,0 @@
|
|
1
|
-
# SQLite version 3.x
|
2
|
-
development:
|
3
|
-
adapter: <%= "jdbc" if defined?(JRUBY_PLATFORM) %>sqlite3
|
4
|
-
database: db/development.sqlite3
|
5
|
-
timeout: 5000
|
6
|
-
|
7
|
-
# Warning: The database defined as 'test' will be erased and
|
8
|
-
# re-generated from your development database when you run 'rake'.
|
9
|
-
# Do not set this db to the same as development or production.
|
10
|
-
test:
|
11
|
-
adapter: <%= "jdbc" if defined?(JRUBY_PLATFORM) %>sqlite3
|
12
|
-
database: db/test.sqlite3
|
13
|
-
timeout: 5000
|
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
|
-
production:
|
24
|
-
adapter: <%= "jdbc" if defined?(JRUBY_PLATFORM) %>sqlite3
|
25
|
-
database: db/production.sqlite3
|
26
|
-
timeout: 5000
|
@@ -1,142 +0,0 @@
|
|
1
|
-
# Use this hook to configure devise mailer, warden hooks and so forth. The first
|
2
|
-
# four configuration values can also be set straight in your models.
|
3
|
-
Devise.setup do |config|
|
4
|
-
# ==> Mailer Configuration
|
5
|
-
# Configure the e-mail address which will be shown in DeviseMailer.
|
6
|
-
config.mailer_sender = "please-change-me@config-initializers-devise.com"
|
7
|
-
|
8
|
-
# Configure the class responsible to send e-mails.
|
9
|
-
# config.mailer = "Devise::Mailer"
|
10
|
-
|
11
|
-
# ==> ORM configuration
|
12
|
-
# Load and configure the ORM. Supports :active_record (default) and
|
13
|
-
# :mongoid (bson_ext recommended) by default. Other ORMs may be
|
14
|
-
# available as additional gems.
|
15
|
-
require 'devise/orm/active_record'
|
16
|
-
|
17
|
-
# ==> Configuration for any authentication mechanism
|
18
|
-
# Configure which keys are used when authenticating an user. By default is
|
19
|
-
# just :email. You can configure it to use [:username, :subdomain], so for
|
20
|
-
# authenticating an user, both parameters are required. Remember that those
|
21
|
-
# parameters are used only when authenticating and not when retrieving from
|
22
|
-
# session. If you need permissions, you should implement that in a before filter.
|
23
|
-
config.authentication_keys = [ :login ] # Required to login using username or email
|
24
|
-
|
25
|
-
# Tell if authentication through request.params is enabled. True by default.
|
26
|
-
# config.params_authenticatable = true
|
27
|
-
|
28
|
-
# Tell if authentication through HTTP Basic Auth is enabled. False by default.
|
29
|
-
# config.http_authenticatable = false
|
30
|
-
|
31
|
-
# Set this to true to use Basic Auth for AJAX requests. True by default.
|
32
|
-
# config.http_authenticatable_on_xhr = true
|
33
|
-
|
34
|
-
# The realm used in Http Basic Authentication
|
35
|
-
# config.http_authentication_realm = "Application"
|
36
|
-
|
37
|
-
# ==> Configuration for :database_authenticatable
|
38
|
-
# For bcrypt, this is the cost for hashing the password and defaults to 10. If
|
39
|
-
# using other encryptors, it sets how many times you want the password re-encrypted.
|
40
|
-
# config.stretches = 20
|
41
|
-
|
42
|
-
# Define which will be the encryption algorithm. Devise also supports encryptors
|
43
|
-
# from others authentication tools as :clearance_sha1, :authlogic_sha512 (then
|
44
|
-
# you should set stretches above to 20 for default behavior) and :restful_authentication_sha1
|
45
|
-
# (then you should set stretches to 10, and copy REST_AUTH_SITE_KEY to pepper)
|
46
|
-
config.encryptor = :bcrypt
|
47
|
-
|
48
|
-
# Setup a pepper to generate the encrypted password.
|
49
|
-
config.pepper = "2e20a8abdd34d729ba6d05f679e513cfea9fbb1e83c81f84b29e9e4fdbd4ee59b56a32200064082a15a72b05a4d4a6a2c3784a09c0554b3a47a67cc8333ccbc7"
|
50
|
-
|
51
|
-
# ==> Configuration for :confirmable
|
52
|
-
# The time you want to give your user to confirm his account. During this time
|
53
|
-
# he will be able to access your application without confirming. Default is nil.
|
54
|
-
# When confirm_within is zero, the user won't be able to sign in without confirming.
|
55
|
-
# You can use this to let your user access some features of your application
|
56
|
-
# without confirming the account, but blocking it after a certain period
|
57
|
-
# (ie 2 days).
|
58
|
-
# config.confirm_within = 2.days
|
59
|
-
|
60
|
-
# ==> Configuration for :rememberable
|
61
|
-
# The time the user will be remembered without asking for credentials again.
|
62
|
-
# config.remember_for = 2.weeks
|
63
|
-
|
64
|
-
# If true, a valid remember token can be re-used between multiple browsers.
|
65
|
-
# config.remember_across_browsers = true
|
66
|
-
|
67
|
-
# If true, extends the user's remember period when remembered via cookie.
|
68
|
-
# config.extend_remember_period = false
|
69
|
-
|
70
|
-
# ==> Configuration for :validatable
|
71
|
-
# Range for password length
|
72
|
-
config.password_length = 4..20
|
73
|
-
|
74
|
-
# Regex to use to validate the email address
|
75
|
-
# config.email_regexp = /^([\w\.%\+\-]+)@([\w\-]+\.)+([\w]{2,})$/i
|
76
|
-
|
77
|
-
# ==> Configuration for :timeoutable
|
78
|
-
# The time you want to timeout the user session without activity. After this
|
79
|
-
# time the user will be asked for credentials again.
|
80
|
-
# config.timeout_in = 10.minutes
|
81
|
-
|
82
|
-
# ==> Configuration for :lockable
|
83
|
-
# Defines which strategy will be used to lock an account.
|
84
|
-
# :failed_attempts = Locks an account after a number of failed attempts to sign in.
|
85
|
-
# :none = No lock strategy. You should handle locking by yourself.
|
86
|
-
# config.lock_strategy = :failed_attempts
|
87
|
-
|
88
|
-
# Defines which strategy will be used to unlock an account.
|
89
|
-
# :email = Sends an unlock link to the user email
|
90
|
-
# :time = Re-enables login after a certain amount of time (see :unlock_in below)
|
91
|
-
# :both = Enables both strategies
|
92
|
-
# :none = No unlock strategy. You should handle unlocking by yourself.
|
93
|
-
# config.unlock_strategy = :both
|
94
|
-
|
95
|
-
# Number of authentication tries before locking an account if lock_strategy
|
96
|
-
# is failed attempts.
|
97
|
-
# config.maximum_attempts = 20
|
98
|
-
|
99
|
-
# Time interval to unlock the account if :time is enabled as unlock_strategy.
|
100
|
-
# config.unlock_in = 1.hour
|
101
|
-
|
102
|
-
# ==> Configuration for :token_authenticatable
|
103
|
-
# Defines name of the authentication token params key
|
104
|
-
# config.token_authentication_key = :auth_token
|
105
|
-
|
106
|
-
# ==> Scopes configuration
|
107
|
-
# Turn scoped views on. Before rendering "sessions/new", it will first check for
|
108
|
-
# "users/sessions/new". It's turned off by default because it's slower if you
|
109
|
-
# are using only default views.
|
110
|
-
# config.scoped_views = true
|
111
|
-
|
112
|
-
# Configure the default scope given to Warden. By default it's the first
|
113
|
-
# devise role declared in your routes.
|
114
|
-
# config.default_scope = :user
|
115
|
-
|
116
|
-
# Configure sign_out behavior.
|
117
|
-
# By default sign_out is scoped (i.e. /users/sign_out affects only :user scope).
|
118
|
-
# In case of sign_out_all_scopes set to true any logout action will sign out all active scopes.
|
119
|
-
# config.sign_out_all_scopes = false
|
120
|
-
|
121
|
-
# ==> Navigation configuration
|
122
|
-
# Lists the formats that should be treated as navigational. Formats like
|
123
|
-
# :html, should redirect to the sign in page when the user does not have
|
124
|
-
# access, but formats like :xml or :json, should return 401.
|
125
|
-
# If you have any extra navigational formats, like :iphone or :mobile, you
|
126
|
-
# should add them to the navigational formats lists. Default is [:html]
|
127
|
-
# config.navigational_formats = [:html, :iphone]
|
128
|
-
|
129
|
-
# ==> Warden configuration
|
130
|
-
# If you want to use other strategies, that are not (yet) supported by Devise,
|
131
|
-
# you can configure them inside the config.warden block. The example below
|
132
|
-
# allows you to setup OAuth, using http://github.com/roman/warden_oauth
|
133
|
-
#
|
134
|
-
# config.warden do |manager|
|
135
|
-
# manager.oauth(:twitter) do |twitter|
|
136
|
-
# twitter.consumer_secret = <YOUR CONSUMER SECRET>
|
137
|
-
# twitter.consumer_key = <YOUR CONSUMER KEY>
|
138
|
-
# twitter.options :site => 'http://twitter.com'
|
139
|
-
# end
|
140
|
-
# manager.default_strategies(:scope => :user).unshift :twitter_oauth
|
141
|
-
# end
|
142
|
-
end
|