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,11 +0,0 @@
|
|
1
|
-
class AddMissingIndexesToRolesUsers < ActiveRecord::Migration
|
2
|
-
def self.up
|
3
|
-
add_index ::RolesUsers.table_name, [:role_id, :user_id]
|
4
|
-
add_index ::RolesUsers.table_name, [:user_id, :role_id]
|
5
|
-
end
|
6
|
-
|
7
|
-
def self.down
|
8
|
-
remove_index ::RolesUsers.table_name, :column => [:role_id, :user_id]
|
9
|
-
remove_index ::RolesUsers.table_name, :column => [:user_id, :role_id]
|
10
|
-
end
|
11
|
-
end
|
@@ -1,27 +0,0 @@
|
|
1
|
-
class ChangeToDeviseUsersTable < ActiveRecord::Migration
|
2
|
-
def self.up
|
3
|
-
add_column ::User.table_name, :current_sign_in_at, :datetime
|
4
|
-
add_column ::User.table_name, :last_sign_in_at, :datetime
|
5
|
-
add_column ::User.table_name, :current_sign_in_ip, :string
|
6
|
-
add_column ::User.table_name, :last_sign_in_ip, :string
|
7
|
-
add_column ::User.table_name, :sign_in_count, :integer
|
8
|
-
add_column ::User.table_name, :remember_token, :string
|
9
|
-
add_column ::User.table_name, :reset_password_token, :string
|
10
|
-
|
11
|
-
rename_column ::User.table_name, :crypted_password, :encrypted_password
|
12
|
-
rename_column ::User.table_name, :login, :username
|
13
|
-
end
|
14
|
-
|
15
|
-
def self.down
|
16
|
-
remove_column ::User.table_name, :current_sign_in_at
|
17
|
-
remove_column ::User.table_name, :last_sign_in_at
|
18
|
-
remove_column ::User.table_name, :current_sign_in_ip
|
19
|
-
remove_column ::User.table_name, :last_sign_in_ip
|
20
|
-
remove_column ::User.table_name, :sign_in_count
|
21
|
-
remove_column ::User.table_name, :remember_token
|
22
|
-
remove_column ::User.table_name, :reset_password_token
|
23
|
-
|
24
|
-
rename_column ::User.table_name, :encrypted_password, :crypted_password
|
25
|
-
rename_column ::User.table_name, :username, :login
|
26
|
-
end
|
27
|
-
end
|
@@ -1,49 +0,0 @@
|
|
1
|
-
@refinerycms @users @users-password
|
2
|
-
Feature: Lost Password
|
3
|
-
In order to restore my password
|
4
|
-
As a lost soul
|
5
|
-
I want to reset my password
|
6
|
-
|
7
|
-
Background:
|
8
|
-
Given A Refinery user exists
|
9
|
-
|
10
|
-
@users-password-forgot
|
11
|
-
Scenario: Forgot Password page (no email entered)
|
12
|
-
And I am on the forgot password page
|
13
|
-
When I press "Reset password"
|
14
|
-
Then I should see "You did not enter an email address."
|
15
|
-
|
16
|
-
@users-password-forgot
|
17
|
-
Scenario: Forgot Password page (non existing email entered)
|
18
|
-
Given I am on the forgot password page
|
19
|
-
And I have a user with email "green@cukes.com"
|
20
|
-
When I fill in "user_email" with "none@cukes.com"
|
21
|
-
And I press "Reset password"
|
22
|
-
Then I should see "Sorry, 'none@cukes.com' isn't associated with any accounts."
|
23
|
-
And I should see "Are you sure you typed the correct email address?"
|
24
|
-
|
25
|
-
@users-password-forgot
|
26
|
-
Scenario: Forgot Password page (existing email entered)
|
27
|
-
Given I am on the forgot password page
|
28
|
-
And I have a user with email "green@cukes.com"
|
29
|
-
When I fill in "user_email" with "green@cukes.com"
|
30
|
-
And I press "Reset password"
|
31
|
-
Then I should see "An email has been sent to you with a link to reset your password."
|
32
|
-
|
33
|
-
@users-password-reset
|
34
|
-
Scenario: Reset password page (invalid reset_code)
|
35
|
-
Given I am not requesting password reset
|
36
|
-
When I go to the reset password page
|
37
|
-
Then I should be on the forgot password page
|
38
|
-
And I should see "We're sorry, but this reset code has expired or is invalid."
|
39
|
-
And I should see "If you are having issues try copying and pasting the URL from your email into your browser or restarting the reset password process."
|
40
|
-
|
41
|
-
@users-password-reset
|
42
|
-
Scenario: Reset password page (valid reset_code)
|
43
|
-
Given I am requesting password reset
|
44
|
-
When I go to the reset password page
|
45
|
-
And I fill in "Password" with "cukes"
|
46
|
-
And I fill in "Password confirmation" with "cukes"
|
47
|
-
And I press "Reset password"
|
48
|
-
Then I should be on the admin root
|
49
|
-
And I should see "Password reset successfully for"
|
@@ -1,61 +0,0 @@
|
|
1
|
-
@refinerycms @users @users-manage
|
2
|
-
Feature: Manage Users
|
3
|
-
In order to control who can access my website's backend
|
4
|
-
As an administrator
|
5
|
-
I want to create and manage users
|
6
|
-
|
7
|
-
Background:
|
8
|
-
Given I have no users
|
9
|
-
|
10
|
-
Scenario: When there are no users, you are invited to create a user
|
11
|
-
When I go to the home page
|
12
|
-
Then I should see "There are no users yet, so we'll set you up first."
|
13
|
-
|
14
|
-
@users-add @add
|
15
|
-
Scenario: When there are no users, you can create a user
|
16
|
-
When I go to the home page
|
17
|
-
And I follow "Continue..."
|
18
|
-
And I should see "Fill out your details below so that we can get you started."
|
19
|
-
And I fill in "Username" with "cucumber"
|
20
|
-
And I fill in "Email" with "green@cucumber.com"
|
21
|
-
And I fill in "Password" with "greenandjuicy"
|
22
|
-
And I fill in "Password confirmation" with "greenandjuicy"
|
23
|
-
And I press "Sign up"
|
24
|
-
Then I should see "Welcome to Refinery, cucumber."
|
25
|
-
And I should see "Latest Activity"
|
26
|
-
And I should have 1 user
|
27
|
-
|
28
|
-
@users-list @list
|
29
|
-
Scenario: User List
|
30
|
-
Given I have a user named "steven"
|
31
|
-
And I am a logged in refinery user
|
32
|
-
When I go to the list of users
|
33
|
-
Then I should see "steven"
|
34
|
-
|
35
|
-
@users-add @add
|
36
|
-
Scenario: Create User
|
37
|
-
Given I have a user named "steven"
|
38
|
-
And I am a logged in refinery user
|
39
|
-
When I go to the list of users
|
40
|
-
And I follow "Add new user"
|
41
|
-
And I fill in "Username" with "cucumber"
|
42
|
-
And I fill in "Email" with "green@cucumber.com"
|
43
|
-
And I fill in "Password" with "greenandjuicy"
|
44
|
-
And I fill in "Password confirmation" with "greenandjuicy"
|
45
|
-
And I press "Save"
|
46
|
-
Then I should be on the list of users
|
47
|
-
And I should see "cucumber was successfully added."
|
48
|
-
And I should see "cucumber (green@cucumber.com)"
|
49
|
-
|
50
|
-
@users-edit @edit
|
51
|
-
Scenario: Edit User
|
52
|
-
Given I have a user named "steven"
|
53
|
-
And I am a logged in refinery user
|
54
|
-
When I go to the list of users
|
55
|
-
And I follow "Edit this user"
|
56
|
-
And I fill in "Username" with "cucumber"
|
57
|
-
And I fill in "Email" with "green@cucumber.com"
|
58
|
-
And I press "Save"
|
59
|
-
Then I should be on the list of users
|
60
|
-
And I should see "cucumber was successfully updated."
|
61
|
-
And I should see "cucumber (green@cucumber.com)"
|
@@ -1,8 +0,0 @@
|
|
1
|
-
Given /^I have a user with email "(.*)"$/ do |email|
|
2
|
-
Factory(:refinery_user, :email => email)
|
3
|
-
end
|
4
|
-
|
5
|
-
Given /^I am (not )?requesting password reset$/ do |action|
|
6
|
-
@user = Factory(:refinery_user, :updated_at => 11.minutes.ago)
|
7
|
-
@user.send(:generate_reset_password_token!) if action.nil?
|
8
|
-
end
|
@@ -1,36 +0,0 @@
|
|
1
|
-
def login
|
2
|
-
visit new_user_session_path
|
3
|
-
fill_in("user_login", :with => @user.email)
|
4
|
-
fill_in("user_password", :with => 'greenandjuicy')
|
5
|
-
click_button("submit_button")
|
6
|
-
end
|
7
|
-
|
8
|
-
Given /^I am a logged in refinery user$/ do
|
9
|
-
@user ||= Factory(:refinery_user)
|
10
|
-
login
|
11
|
-
end
|
12
|
-
|
13
|
-
Given /^I am a logged in customer$/ do
|
14
|
-
@user ||= Factory(:user)
|
15
|
-
login
|
16
|
-
end
|
17
|
-
|
18
|
-
Given /^A Refinery user exists$/ do
|
19
|
-
@refinery_user ||= Factory(:refinery_user)
|
20
|
-
end
|
21
|
-
|
22
|
-
Given /^I have a user named "(.*)"$/ do |name|
|
23
|
-
Factory(:user, :username => name)
|
24
|
-
end
|
25
|
-
|
26
|
-
Given /^I have a R|refinery user named "(.*)"$/ do |name|
|
27
|
-
Factory(:refinery_user, :username => name)
|
28
|
-
end
|
29
|
-
|
30
|
-
Given /^I have no users$/ do
|
31
|
-
User.delete_all
|
32
|
-
end
|
33
|
-
|
34
|
-
Then /^I should have ([0-9]+) users?$/ do |count|
|
35
|
-
User.count.should == count.to_i
|
36
|
-
end
|
@@ -1,18 +0,0 @@
|
|
1
|
-
require 'factory_girl'
|
2
|
-
|
3
|
-
Factory.define :user do |u|
|
4
|
-
u.sequence(:username) { |n| "person#{n}" }
|
5
|
-
u.sequence(:email) { |n| "person#{n}@cucumber.com" }
|
6
|
-
u.password "greenandjuicy"
|
7
|
-
u.password_confirmation "greenandjuicy"
|
8
|
-
end
|
9
|
-
|
10
|
-
Factory.define :refinery_user, :parent => :user do |u|
|
11
|
-
u.roles { [ Role[:refinery] ] }
|
12
|
-
|
13
|
-
u.after_create do |user|
|
14
|
-
Refinery::Plugins.registered.each_with_index do |plugin, index|
|
15
|
-
user.plugins.create(:name => plugin.name, :position => index)
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
@@ -1,24 +0,0 @@
|
|
1
|
-
module NavigationHelpers
|
2
|
-
module Refinery
|
3
|
-
module Authentication
|
4
|
-
def path_to(page_name)
|
5
|
-
case page_name
|
6
|
-
|
7
|
-
when /the list of users/
|
8
|
-
admin_users_path
|
9
|
-
|
10
|
-
when /the login page/
|
11
|
-
new_user_session_path
|
12
|
-
|
13
|
-
when /the forgot password page/
|
14
|
-
new_user_password_path
|
15
|
-
|
16
|
-
when /the reset password page/
|
17
|
-
edit_user_password_path(:reset_password_token => @user.reset_password_token)
|
18
|
-
else
|
19
|
-
nil
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
@@ -1,29 +0,0 @@
|
|
1
|
-
module AuthenticatedSystem
|
2
|
-
protected
|
3
|
-
# Store the URI of the current request in the session.
|
4
|
-
#
|
5
|
-
# We can return to this location by calling #redirect_back_or_default.
|
6
|
-
def store_location
|
7
|
-
session[:return_to] = request.fullpath
|
8
|
-
end
|
9
|
-
|
10
|
-
# Redirect to the URI stored by the most recent store_location call or
|
11
|
-
# to the passed default.
|
12
|
-
def redirect_back_or_default(default)
|
13
|
-
redirect_to(session[:return_to] || default)
|
14
|
-
session[:return_to] = nil
|
15
|
-
end
|
16
|
-
|
17
|
-
#def current_user
|
18
|
-
#current_user
|
19
|
-
#end
|
20
|
-
|
21
|
-
def refinery_user?
|
22
|
-
user_signed_in? && current_user.has_role?(:refinery)
|
23
|
-
end
|
24
|
-
|
25
|
-
def self.included(base)
|
26
|
-
base.send :helper_method, :current_user, :current_user_session, :user_signed_in?, :refinery_user? if base.respond_to? :helper_method
|
27
|
-
end
|
28
|
-
|
29
|
-
end
|
@@ -1,30 +0,0 @@
|
|
1
|
-
require 'refinery'
|
2
|
-
|
3
|
-
module Refinery
|
4
|
-
module Authentication
|
5
|
-
|
6
|
-
class Engine < Rails::Engine
|
7
|
-
config.autoload_paths += %W( #{config.root}/lib )
|
8
|
-
|
9
|
-
config.after_initialize do
|
10
|
-
Refinery::Plugin.register do |plugin|
|
11
|
-
plugin.name = "refinery_users"
|
12
|
-
plugin.version = %q{0.9.9}
|
13
|
-
plugin.menu_match = /(refinery|admin)\/users$/
|
14
|
-
plugin.activity = {
|
15
|
-
:class => User,
|
16
|
-
:title => 'login'
|
17
|
-
}
|
18
|
-
plugin.url = {:controller => "/admin/users"}
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
|
-
class << self
|
25
|
-
attr_accessor :authentication_login_field
|
26
|
-
def authentication_login_field
|
27
|
-
@authentication_login_field ||= 'login'
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|
data/authentication/license.md
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
# MIT License
|
2
|
-
|
3
|
-
Copyright (c) 2005-2010 [Resolve Digital](http://www.resolvedigital.com)
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
13
|
-
copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
-
SOFTWARE.
|
data/authentication/readme.md
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
# Authentication
|
2
|
-
|
3
|
-
## About
|
4
|
-
|
5
|
-
At the heart of Refinery's user management is the authentication plugin located in ``vendor/plugins/authentication``
|
6
|
-
|
7
|
-
What this really is is just a standard [authlogic](http://github.com/binarylogic/authlogic) install extended with a few extra features like "I forgot my password" and hooked directly into the heart of Refinery's plugin system.
|
8
|
-
|
9
|
-
Authlogic allows you to easily integrate with other systems too. So you could be logged in into another system using authlogic and easily stay logged in between the two systems without having to login twice.
|
10
|
-
|
11
|
-
## Adding New Users
|
12
|
-
|
13
|
-
New users can be easily added by going to the 'Users' area admin and clicking on "Add new user".
|
14
|
-
|
15
|
-
## Limiting and Granting Access
|
16
|
-
|
17
|
-
Each user has a set of plugins they're allowed to see. You can control which plugins each user can see by checking and unchecking the checkboxes next to the plugin name when editing or adding a new user.
|
@@ -1,20 +0,0 @@
|
|
1
|
-
require File.expand_path(File.join(*%w[.. .. lib refinery.rb]), __FILE__)
|
2
|
-
version = Refinery.version
|
3
|
-
|
4
|
-
Gem::Specification.new do |s|
|
5
|
-
s.platform = Gem::Platform::RUBY
|
6
|
-
s.name = 'refinerycms-authentication'
|
7
|
-
s.version = version
|
8
|
-
s.summary = 'Authentication engine for Refinery CMS'
|
9
|
-
s.description = 'Ruby on Rails Authentication engine for Refinery CMS'
|
10
|
-
s.required_ruby_version = '>= 1.8.7'
|
11
|
-
|
12
|
-
s.email = %q{info@refinerycms.com}
|
13
|
-
s.homepage = %q{http://refinerycms.com}
|
14
|
-
s.authors = ['Resolve Digital', 'David Jones', 'Philip Arndt']
|
15
|
-
|
16
|
-
s.files = Dir['**/*'] - Dir['*.gemspec']
|
17
|
-
s.require_path = 'lib'
|
18
|
-
|
19
|
-
s.add_dependency('refinerycms-core', version)
|
20
|
-
end
|
@@ -1,159 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
Dir[File.expand_path('../../../features/support/factories.rb', __FILE__)].each {|f| require f}
|
4
|
-
|
5
|
-
describe User do
|
6
|
-
context "Roles" do
|
7
|
-
context "add_role" do
|
8
|
-
it "raises Exception when Role object is passed" do
|
9
|
-
user = Factory(:user)
|
10
|
-
lambda{ user.add_role(Role.new)}.should raise_exception
|
11
|
-
end
|
12
|
-
|
13
|
-
it "adds a Role to the User when role not yet assigned to User" do
|
14
|
-
user = Factory(:user)
|
15
|
-
lambda {
|
16
|
-
user.add_role(:new_role)
|
17
|
-
}.should change(user.roles, :count).by(1)
|
18
|
-
user.roles.collect(&:title).should include("NewRole")
|
19
|
-
end
|
20
|
-
|
21
|
-
it "does not add a Role to the User when this Role is already assigned to User" do
|
22
|
-
user = Factory(:refinery_user)
|
23
|
-
lambda {
|
24
|
-
user.add_role(:refinery)
|
25
|
-
}.should_not change(user.roles, :count).by(1)
|
26
|
-
user.roles.collect(&:title).should include("Refinery")
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|
30
|
-
context "has_role" do
|
31
|
-
it "raises Exception when Role object is passed" do
|
32
|
-
user = Factory(:user)
|
33
|
-
lambda{ user.has_role?(Role.new)}.should raise_exception
|
34
|
-
end
|
35
|
-
|
36
|
-
it "returns the true if user has Role" do
|
37
|
-
user = Factory(:refinery_user)
|
38
|
-
user.has_role?(:refinery).should be_true
|
39
|
-
end
|
40
|
-
|
41
|
-
it "returns false if user hasn't the Role" do
|
42
|
-
user = Factory(:refinery_user)
|
43
|
-
user.has_role?(:refinery_fail).should be_false
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
|
-
describe "role association" do
|
48
|
-
it "have a roles attribute" do
|
49
|
-
Factory(:user).should respond_to(:roles)
|
50
|
-
end
|
51
|
-
end
|
52
|
-
end
|
53
|
-
|
54
|
-
context "validations" do
|
55
|
-
# email and password validations are done by including devises validatable
|
56
|
-
# module so those validations are not tested here
|
57
|
-
before(:each) do
|
58
|
-
@attr = {
|
59
|
-
:username => "RefineryCMS",
|
60
|
-
:email => "refinery@cms.com",
|
61
|
-
:password => "123456",
|
62
|
-
:password_confirmation => "123456"
|
63
|
-
}
|
64
|
-
end
|
65
|
-
|
66
|
-
it "requires username" do
|
67
|
-
User.new(@attr.merge(:username => "")).should_not be_valid
|
68
|
-
end
|
69
|
-
|
70
|
-
it "rejects duplicate usernames" do
|
71
|
-
User.create!(@attr)
|
72
|
-
User.new(@attr.merge(:email => "another@email.com")).should_not be_valid
|
73
|
-
end
|
74
|
-
end
|
75
|
-
|
76
|
-
describe ".find_for_database_authentication" do
|
77
|
-
it "finds user either by username or email" do
|
78
|
-
user = Factory(:user)
|
79
|
-
User.find_for_database_authentication(:login => user.username).should == user
|
80
|
-
User.find_for_database_authentication(:login => user.email).should == user
|
81
|
-
end
|
82
|
-
end
|
83
|
-
|
84
|
-
describe "#can_delete?" do
|
85
|
-
before(:each) do
|
86
|
-
@user = Factory(:refinery_user)
|
87
|
-
@user_not_persisted = Factory.build(:refinery_user)
|
88
|
-
@super_user = Factory(:refinery_user)
|
89
|
-
@super_user.add_role(:superuser)
|
90
|
-
end
|
91
|
-
|
92
|
-
context "won't allow to delete" do
|
93
|
-
it "not persisted user record" do
|
94
|
-
@user.can_delete?(@user_not_persisted).should be_false
|
95
|
-
end
|
96
|
-
|
97
|
-
it "user with superuser role" do
|
98
|
-
@user.can_delete?(@super_user).should be_false
|
99
|
-
end
|
100
|
-
|
101
|
-
it "if user count with refinery role <= 1" do
|
102
|
-
Role[:refinery].users.delete(@user)
|
103
|
-
@super_user.can_delete?(@user).should be_false
|
104
|
-
end
|
105
|
-
|
106
|
-
it "user himself" do
|
107
|
-
@user.can_delete?(@user).should be_false
|
108
|
-
end
|
109
|
-
end
|
110
|
-
|
111
|
-
context "allow to delete" do
|
112
|
-
it "if all conditions return true" do
|
113
|
-
@super_user.can_delete?(@user).should be_true
|
114
|
-
end
|
115
|
-
end
|
116
|
-
end
|
117
|
-
|
118
|
-
describe "#plugins=" do
|
119
|
-
it "assigns plugins to user" do
|
120
|
-
user = Factory(:user)
|
121
|
-
plugin_list = ["refinery_one", "refinery_two", "refinery_three"]
|
122
|
-
user.plugins = plugin_list
|
123
|
-
user.plugins.collect { |p| p.name }.should == plugin_list
|
124
|
-
end
|
125
|
-
end
|
126
|
-
|
127
|
-
describe "#authorized_plugins" do
|
128
|
-
it "returns array of user and always allowd plugins" do
|
129
|
-
user = Factory(:user)
|
130
|
-
["refinery_one", "refinery_two", "refinery_three"].each_with_index do |name, index|
|
131
|
-
user.plugins.create!(:name => name, :position => index)
|
132
|
-
end
|
133
|
-
user.authorized_plugins.should == user.plugins.collect { |p| p.name } | Refinery::Plugins.always_allowed.names
|
134
|
-
end
|
135
|
-
end
|
136
|
-
|
137
|
-
describe "plugins association" do
|
138
|
-
before(:each) do
|
139
|
-
@user = Factory(:user)
|
140
|
-
@plugin_list = ["refinery_one", "refinery_two", "refinery_three"]
|
141
|
-
@user.plugins = @plugin_list
|
142
|
-
end
|
143
|
-
|
144
|
-
it "have a plugins attribute" do
|
145
|
-
@user.should respond_to(:plugins)
|
146
|
-
end
|
147
|
-
|
148
|
-
it "returns plugins in ASC order" do
|
149
|
-
@user.plugins[0].name.should == @plugin_list[0]
|
150
|
-
@user.plugins[1].name.should == @plugin_list[1]
|
151
|
-
@user.plugins[2].name.should == @plugin_list[2]
|
152
|
-
end
|
153
|
-
|
154
|
-
it "deletes associated plugins" do
|
155
|
-
@user.destroy
|
156
|
-
UserPlugin.find_by_user_id(@user.id).should be_nil
|
157
|
-
end
|
158
|
-
end
|
159
|
-
end
|