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,23 +0,0 @@
|
|
1
|
-
class CreateRefinerycmsCoreSchema < ActiveRecord::Migration
|
2
|
-
def self.up
|
3
|
-
create_table ::Slug.table_name, :force => true do |t|
|
4
|
-
t.string "name"
|
5
|
-
t.integer "sluggable_id"
|
6
|
-
t.integer "sequence", :default => 1, :null => false
|
7
|
-
t.string "sluggable_type", :limit => 40
|
8
|
-
t.string "scope", :limit => 40
|
9
|
-
t.datetime "created_at"
|
10
|
-
end
|
11
|
-
|
12
|
-
add_index ::Slug.table_name, ["name", "sluggable_type", "scope", "sequence"], :name => "index_#{::Slug.table_name}_on_name_sluggable_type_scope_and_sequence", :unique => true
|
13
|
-
add_index ::Slug.table_name, ["sluggable_id"], :name => "index_#{::Slug.table_name}_on_sluggable_id"
|
14
|
-
end
|
15
|
-
|
16
|
-
def self.down
|
17
|
-
[::Slug].reject{|m|
|
18
|
-
!(defined?(m) and m.respond_to?(:table_name))
|
19
|
-
}.each do |model|
|
20
|
-
drop_table model.table_name
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
@@ -1,219 +0,0 @@
|
|
1
|
-
# IMPORTANT: This file is generated by cucumber-rails - edit at your own peril.
|
2
|
-
# It is recommended to regenerate this file in the future when you upgrade to a
|
3
|
-
# newer version of cucumber-rails. Consider adding your own code to a new file
|
4
|
-
# instead of editing this one. Cucumber will automatically load all features/**/*.rb
|
5
|
-
# files.
|
6
|
-
|
7
|
-
|
8
|
-
require 'uri'
|
9
|
-
require 'cgi'
|
10
|
-
require File.expand_path(File.join(File.dirname(__FILE__), "..", "support", "paths"))
|
11
|
-
|
12
|
-
module WithinHelpers
|
13
|
-
def with_scope(locator)
|
14
|
-
locator ? within(locator) { yield } : yield
|
15
|
-
end
|
16
|
-
end
|
17
|
-
World(WithinHelpers)
|
18
|
-
|
19
|
-
Given /^(?:|I )am on (.+)$/ do |page_name|
|
20
|
-
visit path_to(page_name)
|
21
|
-
end
|
22
|
-
|
23
|
-
When /^(?:|I )go to (.+)$/ do |page_name|
|
24
|
-
visit path_to(page_name)
|
25
|
-
end
|
26
|
-
|
27
|
-
When /^(?:|I )press "([^\"]*)"(?: within "([^\"]*)")?$/ do |button, selector|
|
28
|
-
with_scope(selector) do
|
29
|
-
click_button(button)
|
30
|
-
end
|
31
|
-
end
|
32
|
-
|
33
|
-
When /^(?:|I )follow "([^\"]*)"(?: within "([^\"]*)")?$/ do |link, selector|
|
34
|
-
with_scope(selector) do
|
35
|
-
click_link(link)
|
36
|
-
end
|
37
|
-
end
|
38
|
-
|
39
|
-
When /^(?:|I )fill in "([^\"]*)" with "([^\"]*)"(?: within "([^\"]*)")?$/ do |field, value, selector|
|
40
|
-
with_scope(selector) do
|
41
|
-
fill_in(field, :with => value)
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
When /^(?:|I )fill in "([^\"]*)" for "([^\"]*)"(?: within "([^\"]*)")?$/ do |value, field, selector|
|
46
|
-
with_scope(selector) do
|
47
|
-
fill_in(field, :with => value)
|
48
|
-
end
|
49
|
-
end
|
50
|
-
|
51
|
-
# Use this to fill in an entire form with data from a table. Example:
|
52
|
-
#
|
53
|
-
# When I fill in the following:
|
54
|
-
# | Account Number | 5002 |
|
55
|
-
# | Expiry date | 2009-11-01 |
|
56
|
-
# | Note | Nice guy |
|
57
|
-
# | Wants Email? | |
|
58
|
-
#
|
59
|
-
# TODO: Add support for checkbox, select og option
|
60
|
-
# based on naming conventions.
|
61
|
-
#
|
62
|
-
When /^(?:|I )fill in the following(?: within "([^\"]*)")?:$/ do |selector, fields|
|
63
|
-
with_scope(selector) do
|
64
|
-
fields.rows_hash.each do |name, value|
|
65
|
-
When %{I fill in "#{name}" with "#{value}"}
|
66
|
-
end
|
67
|
-
end
|
68
|
-
end
|
69
|
-
|
70
|
-
When /^(?:|I )select "([^\"]*)" from "([^\"]*)"(?: within "([^\"]*)")?$/ do |value, field, selector|
|
71
|
-
with_scope(selector) do
|
72
|
-
select(value, :from => field)
|
73
|
-
end
|
74
|
-
end
|
75
|
-
|
76
|
-
When /^(?:|I )check "([^\"]*)"(?: within "([^\"]*)")?$/ do |field, selector|
|
77
|
-
with_scope(selector) do
|
78
|
-
check(field)
|
79
|
-
end
|
80
|
-
end
|
81
|
-
|
82
|
-
When /^(?:|I )uncheck "([^\"]*)"(?: within "([^\"]*)")?$/ do |field, selector|
|
83
|
-
with_scope(selector) do
|
84
|
-
uncheck(field)
|
85
|
-
end
|
86
|
-
end
|
87
|
-
|
88
|
-
When /^(?:|I )choose "([^\"]*)"(?: within "([^\"]*)")?$/ do |field, selector|
|
89
|
-
with_scope(selector) do
|
90
|
-
choose(field)
|
91
|
-
end
|
92
|
-
end
|
93
|
-
|
94
|
-
When /^(?:|I )attach the file "([^\"]*)" to "([^\"]*)"(?: within "([^\"]*)")?$/ do |path, field, selector|
|
95
|
-
with_scope(selector) do
|
96
|
-
attach_file(field, path)
|
97
|
-
end
|
98
|
-
end
|
99
|
-
|
100
|
-
Then /^(?:|I )should see JSON:$/ do |expected_json|
|
101
|
-
require 'json'
|
102
|
-
expected = JSON.pretty_generate(JSON.parse(expected_json))
|
103
|
-
actual = JSON.pretty_generate(JSON.parse(response.body))
|
104
|
-
expected.should == actual
|
105
|
-
end
|
106
|
-
|
107
|
-
Then /^(?:|I )should see "([^\"]*)"(?: within "([^\"]*)")?$/ do |text, selector|
|
108
|
-
with_scope(selector) do
|
109
|
-
if page.respond_to? :should
|
110
|
-
page.should have_content(text)
|
111
|
-
else
|
112
|
-
assert page.has_content?(text)
|
113
|
-
end
|
114
|
-
end
|
115
|
-
end
|
116
|
-
|
117
|
-
Then /^(?:|I )should see \/([^\/]*)\/(?: within "([^\"]*)")?$/ do |regexp, selector|
|
118
|
-
regexp = Regexp.new(regexp)
|
119
|
-
with_scope(selector) do
|
120
|
-
if page.respond_to? :should
|
121
|
-
page.should have_xpath('//*', :text => regexp)
|
122
|
-
else
|
123
|
-
assert page.has_xpath?('//*', :text => regexp)
|
124
|
-
end
|
125
|
-
end
|
126
|
-
end
|
127
|
-
|
128
|
-
Then /^(?:|I )should not see "([^\"]*)"(?: within "([^\"]*)")?$/ do |text, selector|
|
129
|
-
with_scope(selector) do
|
130
|
-
if page.respond_to? :should
|
131
|
-
page.should have_no_content(text)
|
132
|
-
else
|
133
|
-
assert page.has_no_content?(text)
|
134
|
-
end
|
135
|
-
end
|
136
|
-
end
|
137
|
-
|
138
|
-
Then /^(?:|I )should not see \/([^\/]*)\/(?: within "([^\"]*)")?$/ do |regexp, selector|
|
139
|
-
regexp = Regexp.new(regexp)
|
140
|
-
with_scope(selector) do
|
141
|
-
if page.respond_to? :should
|
142
|
-
page.should have_no_xpath('//*', :text => regexp)
|
143
|
-
else
|
144
|
-
assert page.has_no_xpath?('//*', :text => regexp)
|
145
|
-
end
|
146
|
-
end
|
147
|
-
end
|
148
|
-
|
149
|
-
Then /^the "([^\"]*)" field(?: within "([^\"]*)")? should contain "([^\"]*)"$/ do |field, selector, value|
|
150
|
-
with_scope(selector) do
|
151
|
-
field = find_field(field)
|
152
|
-
field_value = (field.tag_name == 'textarea') ? field.text : field.value
|
153
|
-
if field_value.respond_to? :should
|
154
|
-
field_value.should =~ /#{value}/
|
155
|
-
else
|
156
|
-
assert_match(/#{value}/, field_value)
|
157
|
-
end
|
158
|
-
end
|
159
|
-
end
|
160
|
-
|
161
|
-
Then /^the "([^\"]*)" field(?: within "([^\"]*)")? should not contain "([^\"]*)"$/ do |field, selector, value|
|
162
|
-
with_scope(selector) do
|
163
|
-
field = find_field(field)
|
164
|
-
field_value = (field.tag_name == 'textarea') ? field.text : field.value
|
165
|
-
if field_value.respond_to? :should_not
|
166
|
-
field_value.should_not =~ /#{value}/
|
167
|
-
else
|
168
|
-
assert_no_match(/#{value}/, field_value)
|
169
|
-
end
|
170
|
-
end
|
171
|
-
end
|
172
|
-
|
173
|
-
Then /^the "([^\"]*)" checkbox(?: within "([^\"]*)")? should be checked$/ do |label, selector|
|
174
|
-
with_scope(selector) do
|
175
|
-
field_checked = find_field(label)['checked']
|
176
|
-
if field_checked.respond_to? :should
|
177
|
-
field_checked.should be_true
|
178
|
-
else
|
179
|
-
assert field_checked
|
180
|
-
end
|
181
|
-
end
|
182
|
-
end
|
183
|
-
|
184
|
-
Then /^the "([^\"]*)" checkbox(?: within "([^\"]*)")? should not be checked$/ do |label, selector|
|
185
|
-
with_scope(selector) do
|
186
|
-
field_checked = find_field(label)['checked']
|
187
|
-
if field_checked.respond_to? :should
|
188
|
-
field_checked.should be_false
|
189
|
-
else
|
190
|
-
assert !field_checked
|
191
|
-
end
|
192
|
-
end
|
193
|
-
end
|
194
|
-
|
195
|
-
Then /^(?:|I )should be on (.+)$/ do |page_name|
|
196
|
-
current_path = URI.parse(current_url).path
|
197
|
-
if current_path.respond_to? :should
|
198
|
-
current_path.should == path_to(page_name)
|
199
|
-
else
|
200
|
-
assert_equal path_to(page_name), current_path
|
201
|
-
end
|
202
|
-
end
|
203
|
-
|
204
|
-
Then /^(?:|I )should have the following query string:$/ do |expected_pairs|
|
205
|
-
query = URI.parse(current_url).query
|
206
|
-
actual_params = query ? CGI.parse(query) : {}
|
207
|
-
expected_params = {}
|
208
|
-
expected_pairs.rows_hash.each_pair{|k,v| expected_params[k] = v.split(',')}
|
209
|
-
|
210
|
-
if actual_params.respond_to? :should
|
211
|
-
actual_params.should == expected_params
|
212
|
-
else
|
213
|
-
assert_equal expected_params, actual_params
|
214
|
-
end
|
215
|
-
end
|
216
|
-
|
217
|
-
Then /^show me the page$/ do
|
218
|
-
save_and_open_page
|
219
|
-
end
|
@@ -1,84 +0,0 @@
|
|
1
|
-
require 'refinery'
|
2
|
-
# IMPORTANT: This file is generated by cucumber-rails - edit at your own peril.
|
3
|
-
# It is recommended to regenerate this file in the future when you upgrade to a
|
4
|
-
# newer version of cucumber-rails. Consider adding your own code to a new file
|
5
|
-
# instead of editing this one. Cucumber will automatically load all features/**/*.rb
|
6
|
-
# files.
|
7
|
-
|
8
|
-
## This is custom functionality written by Refinery CMS.
|
9
|
-
require 'rbconfig'
|
10
|
-
def setup_environment
|
11
|
-
ENV["RAILS_ENV"] ||= "test"
|
12
|
-
|
13
|
-
if RbConfig::CONFIG["host_os"] =~ %r!(msdos|mswin|djgpp|mingw)!
|
14
|
-
puts "Win32 users may experience cucumber/formatter/unicode errors. Requirement ommited, see: /features/support/env.rb to re-add."
|
15
|
-
else
|
16
|
-
require 'cucumber/formatter/unicode' # Remove this line if you don't want Cucumber Unicode support
|
17
|
-
end
|
18
|
-
require 'cucumber/rails/world'
|
19
|
-
require 'cucumber/rails/active_record'
|
20
|
-
require 'cucumber/web/tableish'
|
21
|
-
|
22
|
-
|
23
|
-
require 'capybara/rails'
|
24
|
-
require 'capybara/cucumber'
|
25
|
-
require 'capybara/session'
|
26
|
-
|
27
|
-
include Devise::Controllers::UrlHelpers
|
28
|
-
|
29
|
-
# Capybara defaults to XPath selectors rather than Webrat's default of CSS3. In
|
30
|
-
# order to ease the transition to Capybara we set the default here. If you'd
|
31
|
-
# prefer to use XPath just remove this line and adjust any selectors in your
|
32
|
-
# steps to use the XPath syntax.
|
33
|
-
Capybara.default_selector = :css
|
34
|
-
end
|
35
|
-
|
36
|
-
def each_run
|
37
|
-
# If you set this to false, any error raised from within your app will bubble
|
38
|
-
# up to your step definition and out to cucumber unless you catch it somewhere
|
39
|
-
# on the way. You can make Rails rescue errors and render error pages on a
|
40
|
-
# per-scenario basis by tagging a scenario or feature with the @allow-rescue tag.
|
41
|
-
#
|
42
|
-
# If you set this to true, Rails will rescue all errors and render error
|
43
|
-
# pages, more or less in the same way your application would behave in the
|
44
|
-
# default production environment. It's not recommended to do this for all
|
45
|
-
# of your scenarios, as this makes it hard to discover errors in your application.
|
46
|
-
ActionController::Base.allow_rescue = false
|
47
|
-
|
48
|
-
# If you set this to true, each scenario will run in a database transaction.
|
49
|
-
# You can still turn off transactions on a per-scenario basis, simply tagging
|
50
|
-
# a feature or scenario with the @no-txn tag. If you are using Capybara,
|
51
|
-
# tagging with @culerity or @javascript will also turn transactions off.
|
52
|
-
#
|
53
|
-
# If you set this to false, transactions will be off for all scenarios,
|
54
|
-
# regardless of whether you use @no-txn or not.
|
55
|
-
#
|
56
|
-
# Beware that turning transactions off will leave data in your database
|
57
|
-
# after each scenario, which can lead to hard-to-debug failures in
|
58
|
-
# subsequent scenarios. If you do this, we recommend you create a Before
|
59
|
-
# block that will explicitly put your database in a known state.
|
60
|
-
Cucumber::Rails::World.use_transactional_fixtures = true
|
61
|
-
# How to clean your database when transactions are turned off. See
|
62
|
-
# http://github.com/bmabey/database_cleaner for more info.
|
63
|
-
require 'database_cleaner'
|
64
|
-
DatabaseCleaner.strategy = :truncation
|
65
|
-
|
66
|
-
require 'fileutils'
|
67
|
-
require 'rails/generators'
|
68
|
-
#require 'rails/generators/scripts/generate'
|
69
|
-
end
|
70
|
-
|
71
|
-
unless RbConfig::CONFIG["host_os"] =~ %r!(msdos|mswin|djgpp|mingw)!
|
72
|
-
require 'spork'
|
73
|
-
|
74
|
-
Spork.prefork do
|
75
|
-
setup_environment
|
76
|
-
end
|
77
|
-
|
78
|
-
Spork.each_run do
|
79
|
-
each_run
|
80
|
-
end
|
81
|
-
else
|
82
|
-
setup_environment
|
83
|
-
each_run
|
84
|
-
end
|
@@ -1 +0,0 @@
|
|
1
|
-
require 'factory_girl'
|
@@ -1,57 +0,0 @@
|
|
1
|
-
# https://rspec.lighthouseapp.com/projects/16211/tickets/305
|
2
|
-
require 'singleton'
|
3
|
-
|
4
|
-
module NegativeExpectationsHelper
|
5
|
-
|
6
|
-
class State
|
7
|
-
include Singleton
|
8
|
-
|
9
|
-
def is_negative?
|
10
|
-
@negative === true
|
11
|
-
end
|
12
|
-
|
13
|
-
def is_negative!
|
14
|
-
@negative = true
|
15
|
-
end
|
16
|
-
|
17
|
-
def restore!
|
18
|
-
@negative = false
|
19
|
-
end
|
20
|
-
end
|
21
|
-
|
22
|
-
module ObjectExpectations
|
23
|
-
def self.included(base)
|
24
|
-
base.class_eval do
|
25
|
-
alias_method :original_should, :should
|
26
|
-
alias_method :original_should_not, :should_not
|
27
|
-
|
28
|
-
def should(*args, &block)
|
29
|
-
should_if_true(!State.instance.is_negative?, *args, &block)
|
30
|
-
end
|
31
|
-
|
32
|
-
def should_not(*args, &block)
|
33
|
-
should_if_true(State.instance.is_negative?, *args, &block)
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|
37
|
-
|
38
|
-
private # ----------------------------------------------------------------
|
39
|
-
|
40
|
-
def should_if_true(cond, *args, &block)
|
41
|
-
cond ? self.send(:original_should, *args, &block) : self.send(:original_should_not, *args, &block)
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
def expect_opposite_if(cond)
|
46
|
-
raise "expected block" unless block_given?
|
47
|
-
State.instance.is_negative! if cond
|
48
|
-
yield
|
49
|
-
State.instance.restore! if cond
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
|
-
class Object
|
54
|
-
include NegativeExpectationsHelper::ObjectExpectations
|
55
|
-
end
|
56
|
-
|
57
|
-
World(NegativeExpectationsHelper)
|
@@ -1,91 +0,0 @@
|
|
1
|
-
::Refinery::Plugins.registered.collect{|p|
|
2
|
-
p.pathname.join('features', 'support', 'paths.rb')
|
3
|
-
}.reject{|p| !p.exist?}.each do |paths|
|
4
|
-
require paths
|
5
|
-
end
|
6
|
-
|
7
|
-
module NavigationHelpers
|
8
|
-
# Loads in path_to functions from the engines that Refinery is using.
|
9
|
-
# They should look like this:
|
10
|
-
# module NavigationHelpers
|
11
|
-
# module Refinery
|
12
|
-
# module EngineName
|
13
|
-
# def path_to(page_name)
|
14
|
-
# case page_name
|
15
|
-
# when /regexp/
|
16
|
-
# some_path
|
17
|
-
# else
|
18
|
-
# nil
|
19
|
-
# end
|
20
|
-
# end
|
21
|
-
# end
|
22
|
-
# end
|
23
|
-
# end
|
24
|
-
NavigationHelpers::Refinery.constants.each do |name|
|
25
|
-
begin
|
26
|
-
if (mod = "NavigationHelpers::Refinery::#{name}".constantize)
|
27
|
-
mod.module_eval %{alias :#{name.downcase}_path_to :path_to}
|
28
|
-
include mod
|
29
|
-
end
|
30
|
-
rescue
|
31
|
-
$stdout.puts $!.message
|
32
|
-
end
|
33
|
-
end if defined?(NavigationHelpers::Refinery)
|
34
|
-
# Maps a name to a path. Used by the
|
35
|
-
#
|
36
|
-
# When /^I go to (.+)$/ do |page_name|
|
37
|
-
#
|
38
|
-
# step definition in web_steps.rb
|
39
|
-
#
|
40
|
-
def path_to(page_name)
|
41
|
-
case page_name
|
42
|
-
|
43
|
-
when /the admin root/
|
44
|
-
admin_root_path
|
45
|
-
|
46
|
-
# Add more mappings here.
|
47
|
-
# Here is an example that pulls values out of the Regexp:
|
48
|
-
#
|
49
|
-
# when /^(.*)'s profile page$/i
|
50
|
-
# user_profile_path(User.find_by_username($1))
|
51
|
-
|
52
|
-
else
|
53
|
-
# Loads in path_to functions from the engines that Refinery is using.
|
54
|
-
# They should look like this:
|
55
|
-
# module NavigationHelpers
|
56
|
-
# module Refinery
|
57
|
-
# module EngineName
|
58
|
-
# def path_to(page_name)
|
59
|
-
# case page_name
|
60
|
-
# when /regexp/
|
61
|
-
# some_path
|
62
|
-
# else
|
63
|
-
# nil
|
64
|
-
# end
|
65
|
-
# end
|
66
|
-
# end
|
67
|
-
# end
|
68
|
-
# end
|
69
|
-
NavigationHelpers::Refinery.constants.each do |name|
|
70
|
-
begin
|
71
|
-
if (path = self.send(:"#{name.downcase}_path_to", page_name)).present?
|
72
|
-
return path
|
73
|
-
end
|
74
|
-
rescue
|
75
|
-
$stdout.puts $!.message
|
76
|
-
end
|
77
|
-
end if defined?(NavigationHelpers::Refinery)
|
78
|
-
|
79
|
-
begin
|
80
|
-
page_name =~ /the (.*) page/
|
81
|
-
path_components = $1.split(/\s+/)
|
82
|
-
self.send(path_components.push('path').join('_').to_sym)
|
83
|
-
rescue Object => e
|
84
|
-
raise "Can't find mapping from \"#{page_name}\" to a path.\n" +
|
85
|
-
"Now, go and add a mapping in #{__FILE__}"
|
86
|
-
end
|
87
|
-
end
|
88
|
-
end
|
89
|
-
end
|
90
|
-
|
91
|
-
World(NavigationHelpers)
|