refinerycms 0.9.7.15 → 0.9.8
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +5 -4
- data/Gemfile +61 -34
- data/app/controllers/application_controller.rb +1 -0
- data/bin/refinerycms +236 -143
- data/config/environments/development.rb +18 -24
- data/config/environments/production.rb +46 -16
- data/config/environments/test.rb +30 -17
- data/config/initializers/acts_as_indexed_config.rb +5 -0
- data/config/initializers/field_with_error_fix.rb +1 -1
- data/config/initializers/fix_rack.rb +17 -0
- data/config/routes.rb +64 -15
- data/db/migrate/20100305023037_remove_unused_users_columns.rb +0 -1
- data/db/migrate/20100605132138_convert_resource_to_dragonfly.rb +41 -0
- data/db/migrate/20100605132208_convert_image_to_dragonfly.rb +51 -0
- data/db/migrate/20100606135207_change_thumbnail_sizes_for_dragonfly.rb +17 -0
- data/db/migrate/20100701053151_remove_superuser_from_users.rb +1 -1
- data/db/migrate/20100826232810_move_inquiry_settings_to_refinery_settings.rb +23 -0
- data/db/schema.rb +21 -22
- data/db/seeds.rb +0 -3
- data/db/seeds/refinery_settings.rb +3 -4
- data/vendor/refinerycms/authentication/app/controllers/admin/users_controller.rb +58 -0
- data/vendor/refinerycms/authentication/app/controllers/sessions_controller.rb +40 -0
- data/vendor/refinerycms/authentication/app/controllers/users_controller.rb +116 -0
- data/vendor/{plugins → refinerycms}/authentication/app/helpers/sessions_helper.rb +0 -0
- data/vendor/{plugins → refinerycms}/authentication/app/helpers/users_helper.rb +0 -0
- data/vendor/refinerycms/authentication/app/mailers/user_mailer.rb +22 -0
- data/vendor/refinerycms/authentication/app/models/role.rb +16 -0
- data/vendor/refinerycms/authentication/app/models/user.rb +71 -0
- data/vendor/{plugins → refinerycms}/authentication/app/models/user_plugin.rb +0 -0
- data/vendor/{plugins → refinerycms}/authentication/app/models/user_session.rb +0 -0
- data/vendor/refinerycms/authentication/app/views/admin/users/_form.html.erb +70 -0
- data/vendor/refinerycms/authentication/app/views/admin/users/_user.html.erb +18 -0
- data/vendor/{plugins → refinerycms}/authentication/app/views/admin/users/edit.html.erb +0 -0
- data/vendor/{plugins → refinerycms}/authentication/app/views/admin/users/index.html.erb +0 -0
- data/vendor/{plugins → refinerycms}/authentication/app/views/admin/users/new.html.erb +0 -0
- data/vendor/refinerycms/authentication/app/views/layouts/login.html.erb +20 -0
- data/vendor/refinerycms/authentication/app/views/sessions/new.html.erb +28 -0
- data/vendor/{plugins → refinerycms}/authentication/app/views/user_mailer/reset_notification.html.erb +0 -0
- data/vendor/refinerycms/authentication/app/views/users/forgot.html.erb +18 -0
- data/vendor/refinerycms/authentication/app/views/users/new.html.erb +41 -0
- data/vendor/refinerycms/authentication/app/views/users/reset.html.erb +29 -0
- data/vendor/refinerycms/authentication/config/locales/da.yml +83 -0
- data/vendor/{plugins → refinerycms}/authentication/config/locales/de.yml +0 -0
- data/vendor/refinerycms/authentication/config/locales/en.yml +67 -0
- data/vendor/refinerycms/authentication/config/locales/es.yml +66 -0
- data/vendor/{plugins → refinerycms}/authentication/config/locales/fr.yml +0 -0
- data/vendor/refinerycms/authentication/config/locales/it.yml +80 -0
- data/vendor/refinerycms/authentication/config/locales/lv.yml +66 -0
- data/vendor/refinerycms/authentication/config/locales/nb.yml +80 -0
- data/vendor/refinerycms/authentication/config/locales/nl.yml +66 -0
- data/vendor/{plugins → refinerycms}/authentication/config/locales/pt-BR.yml +0 -0
- data/vendor/refinerycms/authentication/config/locales/ru.yml +80 -0
- data/vendor/refinerycms/authentication/config/locales/sl.yml +90 -0
- data/vendor/refinerycms/authentication/config/locales/zh-CN.yml +80 -0
- data/vendor/refinerycms/authentication/config/routes.rb +26 -0
- data/vendor/refinerycms/authentication/lib/authenticated_system.rb +129 -0
- data/vendor/{plugins → refinerycms}/authentication/lib/authenticated_test_helper.rb +0 -0
- data/vendor/refinerycms/authentication/lib/authentication.rb +31 -0
- data/vendor/{plugins → refinerycms}/authentication/readme.md +0 -0
- data/vendor/{plugins → refinerycms}/authentication/test/unit/user_mailer_test.rb +0 -0
- data/vendor/refinerycms/authentication/test/unit/user_test.rb +164 -0
- data/vendor/refinerycms/core/app/controllers/admin/dialogs_controller.rb +24 -0
- data/vendor/{plugins/refinery → refinerycms/core}/app/controllers/admin/refinery_core_controller.rb +0 -0
- data/vendor/{plugins/refinery → refinerycms/core}/app/controllers/refinery/fast_controller.rb +0 -0
- data/vendor/refinerycms/core/app/views/admin/_head.html.erb +56 -0
- data/vendor/refinerycms/core/app/views/admin/_menu.html.erb +17 -0
- data/vendor/{plugins/refinery → refinerycms/core}/app/views/admin/_menu_tab.html.erb +0 -0
- data/vendor/refinerycms/core/app/views/admin/dialogs/show.html.erb +19 -0
- data/vendor/refinerycms/core/app/views/layouts/admin.html.erb +22 -0
- data/vendor/{plugins/refinery_dialogs → refinerycms/core}/app/views/layouts/admin_dialog.html.erb +0 -0
- data/vendor/refinerycms/core/app/views/layouts/application.html.erb +22 -0
- data/vendor/refinerycms/core/app/views/shared/_content_page.html.erb +41 -0
- data/vendor/refinerycms/core/app/views/shared/_draft_page_message.html.erb +3 -0
- data/vendor/refinerycms/core/app/views/shared/_footer.html.erb +5 -0
- data/vendor/{plugins/refinery → refinerycms/core}/app/views/shared/_google_analytics.html.erb +0 -0
- data/vendor/refinerycms/core/app/views/shared/_head.html.erb +17 -0
- data/vendor/refinerycms/core/app/views/shared/_header.html.erb +8 -0
- data/vendor/refinerycms/core/app/views/shared/_html5_for_ie.js.erb +7 -0
- data/vendor/{plugins/refinery → refinerycms/core}/app/views/shared/_ie6check.html.erb +0 -0
- data/vendor/{plugins/refinery → refinerycms/core}/app/views/shared/_menu.html.erb +0 -0
- data/vendor/refinerycms/core/app/views/shared/_menu_branch.html.erb +20 -0
- data/vendor/refinerycms/core/app/views/shared/_message.html.erb +10 -0
- data/vendor/refinerycms/core/app/views/shared/_no_script.html.erb +9 -0
- data/vendor/refinerycms/core/app/views/shared/_site_bar.html.erb +37 -0
- data/vendor/refinerycms/core/app/views/shared/admin/_continue_editing.html.erb +3 -0
- data/vendor/refinerycms/core/app/views/shared/admin/_error_messages.html.erb +16 -0
- data/vendor/refinerycms/core/app/views/shared/admin/_form_actions.html.erb +73 -0
- data/vendor/{plugins/refinery → refinerycms/core}/app/views/shared/admin/_image_picker.html.erb +0 -0
- data/vendor/{plugins/refinery → refinerycms/core}/app/views/shared/admin/_make_sortable.html.erb +0 -0
- data/vendor/refinerycms/core/app/views/shared/admin/_resource_picker.html.erb +59 -0
- data/vendor/refinerycms/core/app/views/shared/admin/_search.html.erb +5 -0
- data/vendor/refinerycms/core/app/views/shared/admin/_sortable_list.html.erb +8 -0
- data/vendor/refinerycms/core/app/views/welcome.html.erb +17 -0
- data/vendor/refinerycms/core/app/views/wymiframe.html.erb +17 -0
- data/vendor/refinerycms/core/config/locales/da.yml +71 -0
- data/vendor/refinerycms/core/config/locales/de.yml +68 -0
- data/vendor/refinerycms/core/config/locales/en.yml +67 -0
- data/vendor/refinerycms/core/config/locales/es.yml +60 -0
- data/vendor/refinerycms/core/config/locales/fr.yml +66 -0
- data/vendor/refinerycms/core/config/locales/it.yml +65 -0
- data/vendor/refinerycms/core/config/locales/lv.yml +60 -0
- data/vendor/refinerycms/core/config/locales/nb.yml +61 -0
- data/vendor/refinerycms/core/config/locales/nl.yml +62 -0
- data/vendor/refinerycms/core/config/locales/pt-BR.yml +71 -0
- data/vendor/refinerycms/core/config/locales/ru.yml +61 -0
- data/vendor/refinerycms/core/config/locales/sl.yml +68 -0
- data/vendor/refinerycms/core/config/locales/zh-CN.yml +65 -0
- data/vendor/refinerycms/core/config/routes.rb +15 -0
- data/vendor/{plugins/refinery → refinerycms/core}/crud.md +0 -0
- data/vendor/refinerycms/core/engines.md +213 -0
- data/vendor/refinerycms/core/lib/core.rb +77 -0
- data/vendor/refinerycms/core/lib/crud.rb +265 -0
- data/vendor/refinerycms/core/lib/generators/refinery_engine/USAGE +23 -0
- data/vendor/refinerycms/core/lib/generators/refinery_engine/refinery_engine_generator.rb +83 -0
- data/vendor/{plugins/refinery/lib/generators/refinery_plugin/templates/controller.rb → refinerycms/core/lib/generators/refinery_engine/templates/app/controllers/admin/plural_name_controller.rb} +0 -0
- data/vendor/{plugins/refinery/lib/generators/refinery_plugin/templates/public_controller.rb → refinerycms/core/lib/generators/refinery_engine/templates/app/controllers/plural_name_controller.rb} +0 -0
- data/vendor/{plugins/refinery/lib/generators/refinery_plugin/templates/model.rb → refinerycms/core/lib/generators/refinery_engine/templates/app/models/singular_name.rb} +0 -0
- data/vendor/refinerycms/core/lib/generators/refinery_engine/templates/app/views/admin/plural_name/_form.html.erb +35 -0
- data/vendor/refinerycms/core/lib/generators/refinery_engine/templates/app/views/admin/plural_name/_singular_name.html.erb +16 -0
- data/vendor/{plugins/refinery/lib/generators/refinery_plugin/templates/views/admin → refinerycms/core/lib/generators/refinery_engine/templates/app/views/admin/plural_name}/_sortable_list.html.erb +0 -0
- data/vendor/{plugins/refinery/lib/generators/refinery_plugin/templates/views/admin → refinerycms/core/lib/generators/refinery_engine/templates/app/views/admin/plural_name}/edit.html.erb +0 -0
- data/vendor/refinerycms/core/lib/generators/refinery_engine/templates/app/views/admin/plural_name/index.html.erb +65 -0
- data/vendor/{plugins/refinery/lib/generators/refinery_plugin/templates/views/admin → refinerycms/core/lib/generators/refinery_engine/templates/app/views/admin/plural_name}/new.html.erb +0 -0
- data/vendor/{plugins/refinery/lib/generators/refinery_plugin/templates/views → refinerycms/core/lib/generators/refinery_engine/templates/app/views/plural_name}/index.html.erb +0 -0
- data/vendor/refinerycms/core/lib/generators/refinery_engine/templates/app/views/plural_name/show.html.erb +31 -0
- data/vendor/refinerycms/core/lib/generators/refinery_engine/templates/config/locales/en.yml +19 -0
- data/vendor/refinerycms/core/lib/generators/refinery_engine/templates/config/locales/nb.yml +19 -0
- data/vendor/refinerycms/core/lib/generators/refinery_engine/templates/config/locales/nl.yml +19 -0
- data/vendor/refinerycms/core/lib/generators/refinery_engine/templates/config/routes.rb +11 -0
- data/vendor/refinerycms/core/lib/generators/refinery_engine/templates/db/migrate/migration_number_create_plural_name.rb +33 -0
- data/vendor/refinerycms/core/lib/generators/refinery_engine/templates/db/seeds/plural_name.rb +15 -0
- data/vendor/refinerycms/core/lib/generators/refinery_engine/templates/lib/plural_name.rb +16 -0
- data/vendor/refinerycms/core/lib/generators/refinery_engine/templates/refinerycms-plural_name.gemspec +12 -0
- data/vendor/refinerycms/core/lib/refinery/activity.rb +45 -0
- data/vendor/refinerycms/core/lib/refinery/admin_base_controller.rb +95 -0
- data/vendor/refinerycms/core/lib/refinery/application_controller.rb +101 -0
- data/vendor/refinerycms/core/lib/refinery/application_helper.rb +195 -0
- data/vendor/{plugins/refinery → refinerycms/core}/lib/refinery/attachment_fu_patch.rb +0 -0
- data/vendor/{plugins/refinery → refinerycms/core}/lib/refinery/base_presenter.rb +0 -0
- data/vendor/refinerycms/core/lib/refinery/catch_all_routes.rb +5 -0
- data/vendor/{plugins/refinery → refinerycms/core}/lib/refinery/form_helpers.rb +0 -0
- data/vendor/{plugins/refinery → refinerycms/core}/lib/refinery/html_truncation_helper.rb +0 -0
- data/vendor/refinerycms/core/lib/refinery/link_renderer.rb +55 -0
- data/vendor/refinerycms/core/lib/refinery/plugin.rb +134 -0
- data/vendor/refinerycms/core/lib/refinery/plugins.rb +66 -0
- data/vendor/refinerycms/core/lib/tasks/doc.rake +29 -0
- data/vendor/refinerycms/core/lib/tasks/refinery.rake +128 -0
- data/vendor/refinerycms/core/lib/tasks/yard.rake +30 -0
- data/vendor/refinerycms/core/public/404.html +26 -0
- data/vendor/refinerycms/core/public/422.html +26 -0
- data/vendor/refinerycms/core/public/500.html +26 -0
- data/{public → vendor/refinerycms/core/public}/favicon.ico +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/add.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/admin_bg.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/ajax-loader.gif +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/branch-end.gif +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/branch-start.gif +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/branch.gif +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/carousel-left.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/carousel-right.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/cross.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/dialogLoadingAnimation.gif +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/header_background.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/hover-gradient.jpg +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/accept.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/add.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/ajax-loader.gif +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/application_edit.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/application_go.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/arrow_left.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/arrow_switch.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/arrow_up.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/bin.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/bin_closed.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/cancel.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/cog_add.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/cog_edit.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/cross.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/delete.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/doc.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/edit.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/email.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/email_edit.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/email_go.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/email_open.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/eye.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/ad.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/ae.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/af.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/ag.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/ai.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/al.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/am.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/an.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/ao.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/ar.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/as.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/at.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/au.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/aw.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/ax.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/az.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/ba.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/bb.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/bd.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/be.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/bf.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/bg.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/bh.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/bi.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/bj.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/bm.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/bn.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/bo.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/bs.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/bt.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/bv.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/bw.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/by.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/bz.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/ca.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/catalonia.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/cc.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/cd.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/cf.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/cg.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/ch.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/ci.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/ck.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/cl.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/cm.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/cn.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/co.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/cr.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/cs.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/cu.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/cv.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/cx.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/cy.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/cz.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/da.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/de.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/dj.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/dm.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/do.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/dz.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/ec.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/ee.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/eg.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/eh.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/en.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/england.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/er.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/es.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/et.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/europeanunion.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/fam.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/fi.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/fj.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/fk.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/fm.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/fo.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/fr.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/ga.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/gb.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/gd.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/ge.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/gf.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/gh.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/gi.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/gl.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/gm.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/gn.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/gp.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/gq.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/gr.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/gs.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/gt.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/gu.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/gw.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/gy.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/hk.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/hm.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/hn.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/hr.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/ht.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/hu.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/id.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/ie.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/il.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/in.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/io.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/iq.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/ir.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/is.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/it.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/jm.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/jo.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/jp.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/ke.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/kg.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/kh.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/ki.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/km.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/kn.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/kp.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/kr.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/kw.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/ky.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/kz.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/la.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/lb.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/lc.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/li.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/lk.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/lr.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/ls.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/lt.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/lu.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/lv.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/ly.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/ma.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/mc.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/md.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/me.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/mg.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/mh.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/mk.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/ml.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/mm.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/mn.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/mo.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/mp.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/mq.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/mr.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/ms.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/mt.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/mu.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/mv.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/mw.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/mx.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/my.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/mz.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/na.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/nb.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/nc.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/ne.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/nf.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/ng.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/ni.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/nl.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/nn.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/np.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/nr.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/nu.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/nz.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/om.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/pa.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/pe.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/pf.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/pg.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/ph.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/pk.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/pl.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/pm.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/pn.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/pr.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/ps.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/pt-BR.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/pt.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/pw.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/py.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/qa.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/re.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/ro.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/rs.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/ru.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/rw.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/sa.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/sb.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/sc.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/scotland.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/sd.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/se.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/sg.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/sh.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/si.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/sj.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/sk.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/sl.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/sm.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/sn.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/so.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/sr.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/st.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/sv.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/sy.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/sz.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/tc.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/td.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/tf.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/tg.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/th.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/tj.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/tk.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/tl.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/tm.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/tn.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/to.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/tr.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/tt.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/tv.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/tw.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/tz.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/ua.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/ug.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/um.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/us.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/uy.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/uz.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/va.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/vc.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/ve.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/vg.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/vi.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/vn.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/vu.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/wales.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/wf.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/ws.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/ye.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/yt.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/za.png +0 -0
- data/vendor/refinerycms/core/public/images/refinery/icons/flags/zh-CN.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/zm.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/flags/zw.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/folder_page_white.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/image_add.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/image_edit.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/img.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/layout_add.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/layout_edit.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/music.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/page_add.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/page_edit.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/page_white_edit.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/page_white_gear.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/page_white_put.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/pdf.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/ppt.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/star.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/tick.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/user_add.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/user_comment.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/user_edit.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/xls.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/zip.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/icons/zoom.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/logo-large.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/logo-medium.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/logo-site-bar.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/logo-small-medium.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/logo-small.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/logo-tiny.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/logo.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/nav-3-background.gif +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/nav_inactive_background.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/orange_button.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/page_bg.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/resolve_digital_footer_logo.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/text_field_background.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/refinery/tooltip-nib.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/wymeditor/skins/refinery/arrow_redo.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/wymeditor/skins/refinery/arrow_undo.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/wymeditor/skins/refinery/eye.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/wymeditor/skins/refinery/iframe/lbl-blockquote.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/wymeditor/skins/refinery/iframe/lbl-h1.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/wymeditor/skins/refinery/iframe/lbl-h2.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/wymeditor/skins/refinery/iframe/lbl-h3.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/wymeditor/skins/refinery/iframe/lbl-h4.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/wymeditor/skins/refinery/iframe/lbl-h5.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/wymeditor/skins/refinery/iframe/lbl-h6.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/wymeditor/skins/refinery/iframe/lbl-p.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/wymeditor/skins/refinery/iframe/lbl-pre.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/wymeditor/skins/refinery/link_add.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/wymeditor/skins/refinery/link_break.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/wymeditor/skins/refinery/page_code.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/wymeditor/skins/refinery/page_paste.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/wymeditor/skins/refinery/photo_add.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/wymeditor/skins/refinery/right.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/wymeditor/skins/refinery/style.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/wymeditor/skins/refinery/table_add.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/wymeditor/skins/refinery/text_align_center.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/wymeditor/skins/refinery/text_align_justify.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/wymeditor/skins/refinery/text_align_left.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/wymeditor/skins/refinery/text_align_right.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/wymeditor/skins/refinery/text_bold.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/wymeditor/skins/refinery/text_heading_1.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/wymeditor/skins/refinery/text_heading_2.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/wymeditor/skins/refinery/text_heading_3.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/wymeditor/skins/refinery/text_heading_4.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/wymeditor/skins/refinery/text_heading_5.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/wymeditor/skins/refinery/text_heading_6.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/wymeditor/skins/refinery/text_indent.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/wymeditor/skins/refinery/text_indent_remove.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/wymeditor/skins/refinery/text_italic.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/wymeditor/skins/refinery/text_list_bullets.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/wymeditor/skins/refinery/text_list_numbers.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/wymeditor/skins/refinery/text_paragraph.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/wymeditor/skins/refinery/text_strikethrough.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/wymeditor/skins/refinery/text_subscript.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/wymeditor/skins/refinery/text_superscript.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/wymeditor/skins/refinery/text_underline.png +0 -0
- data/{public → vendor/refinerycms/core/public}/images/wymeditor/skins/wymeditor_icon.png +0 -0
- data/{public → vendor/refinerycms/core/public}/javascripts/admin.js +0 -0
- data/{public → vendor/refinerycms/core/public}/javascripts/application.js +0 -0
- data/{public → vendor/refinerycms/core/public}/javascripts/i18n-messages.js +0 -0
- data/{public → vendor/refinerycms/core/public}/javascripts/jquery-min.js +0 -0
- data/{public → vendor/refinerycms/core/public}/javascripts/jquery-ui-custom-min.js +0 -0
- data/{public → vendor/refinerycms/core/public}/javascripts/jquery.js +0 -0
- data/{public → vendor/refinerycms/core/public}/javascripts/jquery/GPL-LICENSE.txt +0 -0
- data/{public → vendor/refinerycms/core/public}/javascripts/jquery/MIT-LICENSE.txt +0 -0
- data/{public → vendor/refinerycms/core/public}/javascripts/jquery/jquery.corner.js +0 -0
- data/{public → vendor/refinerycms/core/public}/javascripts/jquery/jquery.html5-placeholder-shim.js +0 -0
- data/{public → vendor/refinerycms/core/public}/javascripts/jquery/jquery.jcarousel.js +0 -0
- data/{public → vendor/refinerycms/core/public}/javascripts/jquery/jquery.nestedsortables.js +0 -0
- data/{public → vendor/refinerycms/core/public}/javascripts/jquery/jquery.textTruncate.js +0 -0
- data/{public → vendor/refinerycms/core/public}/javascripts/jquery/jquery.timers.js +0 -0
- data/vendor/refinerycms/core/public/javascripts/refinery/admin.js +989 -0
- data/{public → vendor/refinerycms/core/public}/javascripts/refinery/boot_wym.js +0 -0
- data/vendor/refinerycms/core/public/javascripts/refinery/core.js +12 -0
- data/{public → vendor/refinerycms/core/public}/javascripts/refinery/i18n.js +0 -0
- data/vendor/refinerycms/core/public/javascripts/refinery/site_bar.js +15 -0
- data/vendor/refinerycms/core/public/javascripts/wymeditor/jquery.refinery.wymeditor.js +5077 -0
- data/{public → vendor/refinerycms/core/public}/javascripts/wymeditor/lang/ca.js +0 -0
- data/{public → vendor/refinerycms/core/public}/javascripts/wymeditor/lang/cs.js +0 -0
- data/{public → vendor/refinerycms/core/public}/javascripts/wymeditor/lang/da.js +0 -0
- data/{public → vendor/refinerycms/core/public}/javascripts/wymeditor/lang/de.js +0 -0
- data/{public → vendor/refinerycms/core/public}/javascripts/wymeditor/lang/en.js +0 -0
- data/{public → vendor/refinerycms/core/public}/javascripts/wymeditor/lang/es.js +0 -0
- data/{public → vendor/refinerycms/core/public}/javascripts/wymeditor/lang/fa.js +0 -0
- data/{public → vendor/refinerycms/core/public}/javascripts/wymeditor/lang/fr.js +0 -0
- data/{public → vendor/refinerycms/core/public}/javascripts/wymeditor/lang/he.js +0 -0
- data/{public → vendor/refinerycms/core/public}/javascripts/wymeditor/lang/hu.js +0 -0
- data/{public → vendor/refinerycms/core/public}/javascripts/wymeditor/lang/it.js +0 -0
- data/{public → vendor/refinerycms/core/public}/javascripts/wymeditor/lang/nb.js +0 -0
- data/{public → vendor/refinerycms/core/public}/javascripts/wymeditor/lang/nl.js +0 -0
- data/{public → vendor/refinerycms/core/public}/javascripts/wymeditor/lang/nn.js +0 -0
- data/{public → vendor/refinerycms/core/public}/javascripts/wymeditor/lang/pl.js +0 -0
- data/{public → vendor/refinerycms/core/public}/javascripts/wymeditor/lang/pt-br.js +0 -0
- data/{public → vendor/refinerycms/core/public}/javascripts/wymeditor/lang/pt.js +0 -0
- data/{public → vendor/refinerycms/core/public}/javascripts/wymeditor/lang/ru.js +0 -0
- data/{public → vendor/refinerycms/core/public}/javascripts/wymeditor/lang/sl.js +0 -0
- data/{public → vendor/refinerycms/core/public}/javascripts/wymeditor/lang/sv.js +0 -0
- data/{public → vendor/refinerycms/core/public}/javascripts/wymeditor/lang/tr.js +0 -0
- data/{public → vendor/refinerycms/core/public}/javascripts/wymeditor/lang/zh_cn.js +0 -0
- data/{public → vendor/refinerycms/core/public}/javascripts/wymeditor/skins/refinery/skin.js +0 -0
- data/{public → vendor/refinerycms/core/public}/robots.txt +0 -0
- data/{public → vendor/refinerycms/core/public}/stylesheets/application.css +0 -0
- data/{public → vendor/refinerycms/core/public}/stylesheets/formatting.css +0 -0
- data/{public → vendor/refinerycms/core/public}/stylesheets/home.css +0 -0
- data/{themes/demolicious → vendor/refinerycms/core/public}/stylesheets/ie6.css +0 -0
- data/{public → vendor/refinerycms/core/public}/stylesheets/ie7.css +0 -0
- data/{public → vendor/refinerycms/core/public}/stylesheets/refinery/application.css +0 -0
- data/{public → vendor/refinerycms/core/public}/stylesheets/refinery/formatting.css +0 -0
- data/{public → vendor/refinerycms/core/public}/stylesheets/refinery/home.css +0 -0
- data/{public → vendor/refinerycms/core/public}/stylesheets/refinery/ie-less-than-8.css +0 -0
- data/{public → vendor/refinerycms/core/public}/stylesheets/refinery/ie-less-than-9.css +0 -0
- data/vendor/refinerycms/core/public/stylesheets/refinery/refinery.css +1494 -0
- data/{public → vendor/refinerycms/core/public}/stylesheets/refinery/site_bar.css +0 -0
- data/{public → vendor/refinerycms/core/public}/stylesheets/refinery/theme.css +0 -0
- data/{public → vendor/refinerycms/core/public}/stylesheets/refinery/tooltips.css +0 -0
- data/{public → vendor/refinerycms/core/public}/stylesheets/refinery/ui.css +0 -0
- data/{public → vendor/refinerycms/core/public}/stylesheets/theme.css +0 -0
- data/{public → vendor/refinerycms/core/public}/stylesheets/wymeditor/skins/refinery/skin.css +0 -0
- data/{public → vendor/refinerycms/core/public}/stylesheets/wymeditor/skins/refinery/wymiframe.css +0 -0
- data/{public → vendor/refinerycms/core/public}/wymeditor/GPL-license.txt +0 -0
- data/{public → vendor/refinerycms/core/public}/wymeditor/MIT-license.txt +0 -0
- data/{public → vendor/refinerycms/core/public}/wymeditor/README +0 -0
- data/vendor/refinerycms/dashboard/app/controllers/admin/dashboard_controller.rb +38 -0
- data/vendor/refinerycms/dashboard/app/helpers/admin/dashboard_helper.rb +20 -0
- data/vendor/refinerycms/dashboard/app/views/admin/dashboard/_recent_activity.html.erb +12 -0
- data/vendor/{plugins → refinerycms}/dashboard/app/views/admin/dashboard/_recent_inquiries.html.erb +0 -0
- data/vendor/refinerycms/dashboard/app/views/admin/dashboard/index.html.erb +72 -0
- data/vendor/{plugins → refinerycms}/dashboard/app/views/admin/dashboard/index.rss.builder +0 -0
- data/vendor/{plugins → refinerycms}/dashboard/config/locales/da.yml +0 -0
- data/vendor/{plugins → refinerycms}/dashboard/config/locales/de.yml +0 -0
- data/vendor/refinerycms/dashboard/config/locales/en.yml +24 -0
- data/vendor/refinerycms/dashboard/config/locales/es.yml +27 -0
- data/vendor/{plugins → refinerycms}/dashboard/config/locales/fr.yml +0 -0
- data/vendor/{plugins → refinerycms}/dashboard/config/locales/it.yml +0 -0
- data/vendor/refinerycms/dashboard/config/locales/lv.yml +25 -0
- data/vendor/refinerycms/dashboard/config/locales/nb.yml +27 -0
- data/vendor/refinerycms/dashboard/config/locales/nl.yml +23 -0
- data/vendor/{plugins → refinerycms}/dashboard/config/locales/pt-BR.yml +0 -0
- data/vendor/refinerycms/dashboard/config/locales/ru.yml +27 -0
- data/vendor/refinerycms/dashboard/config/locales/sl.yml +23 -0
- data/vendor/refinerycms/dashboard/config/locales/zh-CN.yml +23 -0
- data/vendor/refinerycms/dashboard/config/routes.rb +11 -0
- data/vendor/refinerycms/dashboard/lib/dashboard.rb +19 -0
- data/vendor/refinerycms/dashboard/readme.md +22 -0
- data/vendor/refinerycms/images/app/controllers/admin/images_controller.rb +118 -0
- data/vendor/{plugins → refinerycms}/images/app/helpers/admin/images_helper.rb +0 -0
- data/vendor/refinerycms/images/app/models/image.rb +66 -0
- data/vendor/refinerycms/images/app/views/admin/images/_existing_image.html.erb +52 -0
- data/vendor/refinerycms/images/app/views/admin/images/_form.html.erb +51 -0
- data/vendor/refinerycms/images/app/views/admin/images/_grid_view.html.erb +19 -0
- data/vendor/{plugins → refinerycms}/images/app/views/admin/images/_list_view.html.erb +0 -0
- data/vendor/refinerycms/images/app/views/admin/images/_list_view_image.html.erb +17 -0
- data/vendor/{plugins → refinerycms}/images/app/views/admin/images/edit.html.erb +0 -0
- data/vendor/refinerycms/images/app/views/admin/images/index.html.erb +43 -0
- data/vendor/refinerycms/images/app/views/admin/images/insert.html.erb +47 -0
- data/vendor/{plugins → refinerycms}/images/app/views/admin/images/new.html.erb +0 -0
- data/vendor/refinerycms/images/config/locales/da.yml +42 -0
- data/vendor/refinerycms/images/config/locales/de.yml +42 -0
- data/vendor/refinerycms/images/config/locales/en.yml +38 -0
- data/vendor/refinerycms/images/config/locales/es.yml +37 -0
- data/vendor/refinerycms/images/config/locales/fr.yml +42 -0
- data/vendor/refinerycms/images/config/locales/it.yml +40 -0
- data/vendor/refinerycms/images/config/locales/lv.yml +38 -0
- data/vendor/refinerycms/images/config/locales/nb.yml +46 -0
- data/vendor/refinerycms/images/config/locales/nl.yml +37 -0
- data/vendor/refinerycms/images/config/locales/pt-BR.yml +48 -0
- data/vendor/refinerycms/images/config/locales/ru.yml +46 -0
- data/vendor/refinerycms/images/config/locales/sl.yml +37 -0
- data/vendor/refinerycms/images/config/locales/zh-CN.yml +35 -0
- data/vendor/refinerycms/images/config/routes.rb +12 -0
- data/vendor/refinerycms/images/lib/images.rb +59 -0
- data/vendor/refinerycms/images/lib/tasks/images.rake +50 -0
- data/vendor/refinerycms/images/readme.md +58 -0
- data/vendor/{plugins → refinerycms}/pages/app/controllers/admin/page_parts_controller.rb +0 -0
- data/vendor/refinerycms/pages/app/controllers/admin/pages_controller.rb +71 -0
- data/vendor/{plugins → refinerycms}/pages/app/controllers/admin/pages_dialogs_controller.rb +0 -0
- data/vendor/refinerycms/pages/app/controllers/pages_controller.rb +45 -0
- data/vendor/{plugins → refinerycms}/pages/app/helpers/pages_helper.rb +0 -0
- data/vendor/refinerycms/pages/app/models/page.rb +255 -0
- data/vendor/refinerycms/pages/app/models/page_part.rb +21 -0
- data/vendor/{plugins → refinerycms}/pages/app/presenters/page_presenter.rb +0 -0
- data/vendor/refinerycms/pages/app/views/admin/pages/_form.html.erb +50 -0
- data/vendor/refinerycms/pages/app/views/admin/pages/_form_advanced_options.html.erb +62 -0
- data/vendor/{plugins → refinerycms}/pages/app/views/admin/pages/_form_advanced_options_seo.html.erb +0 -0
- data/vendor/refinerycms/pages/app/views/admin/pages/_form_new_page_parts.html.erb +14 -0
- data/vendor/refinerycms/pages/app/views/admin/pages/_form_page_parts.html.erb +37 -0
- data/vendor/refinerycms/pages/app/views/admin/pages/_page.html.erb +34 -0
- data/vendor/{plugins → refinerycms}/pages/app/views/admin/pages/_page_part_field.html.erb +0 -0
- data/vendor/{plugins → refinerycms}/pages/app/views/admin/pages/_sortable_list.html.erb +0 -0
- data/vendor/{plugins → refinerycms}/pages/app/views/admin/pages/edit.html.erb +0 -0
- data/vendor/refinerycms/pages/app/views/admin/pages/index.html.erb +35 -0
- data/vendor/{plugins → refinerycms}/pages/app/views/admin/pages/new.html.erb +0 -0
- data/vendor/refinerycms/pages/app/views/admin/pages_dialogs/_page_link.html.erb +5 -0
- data/vendor/refinerycms/pages/app/views/admin/pages_dialogs/link_to.html.erb +134 -0
- data/{themes/demolicious → vendor/refinerycms/pages/app}/views/pages/home.html.erb +0 -0
- data/{themes/demolicious → vendor/refinerycms/pages/app}/views/pages/show.html.erb +0 -0
- data/vendor/refinerycms/pages/config/locales/da.yml +53 -0
- data/vendor/{plugins → refinerycms}/pages/config/locales/de.yml +0 -0
- data/vendor/refinerycms/pages/config/locales/en.yml +83 -0
- data/vendor/refinerycms/pages/config/locales/es.yml +82 -0
- data/vendor/refinerycms/pages/config/locales/fr.yml +53 -0
- data/vendor/refinerycms/pages/config/locales/it.yml +53 -0
- data/vendor/refinerycms/pages/config/locales/lv.yml +85 -0
- data/vendor/refinerycms/pages/config/locales/nb.yml +95 -0
- data/vendor/refinerycms/pages/config/locales/nl.yml +77 -0
- data/vendor/{plugins → refinerycms}/pages/config/locales/pt-BR.yml +0 -0
- data/vendor/refinerycms/pages/config/locales/ru.yml +97 -0
- data/vendor/refinerycms/pages/config/locales/sl.yml +82 -0
- data/vendor/refinerycms/pages/config/locales/zh-CN.yml +75 -0
- data/vendor/refinerycms/pages/config/routes.rb +24 -0
- data/vendor/refinerycms/pages/lib/pages.rb +29 -0
- data/vendor/refinerycms/pages/lib/pages/marketable_routes.rb +3 -0
- data/vendor/refinerycms/pages/readme.md +156 -0
- data/vendor/refinerycms/refinery.rb +40 -0
- data/vendor/refinerycms/refinerycms.rb +12 -0
- data/vendor/{plugins → refinerycms}/resources/app/controllers/admin/resources_controller.rb +0 -0
- data/vendor/refinerycms/resources/app/models/resource.rb +40 -0
- data/vendor/refinerycms/resources/app/views/admin/resources/_existing_resource.html.erb +32 -0
- data/vendor/refinerycms/resources/app/views/admin/resources/_form.html.erb +52 -0
- data/vendor/refinerycms/resources/app/views/admin/resources/_resource.html.erb +17 -0
- data/vendor/{plugins → refinerycms}/resources/app/views/admin/resources/edit.html.erb +0 -0
- data/vendor/refinerycms/resources/app/views/admin/resources/index.html.erb +45 -0
- data/vendor/refinerycms/resources/app/views/admin/resources/insert.html.erb +54 -0
- data/vendor/{plugins → refinerycms}/resources/app/views/admin/resources/new.html.erb +0 -0
- data/vendor/{plugins → refinerycms}/resources/config/locales/da.yml +0 -0
- data/vendor/{plugins → refinerycms}/resources/config/locales/de.yml +0 -0
- data/vendor/refinerycms/resources/config/locales/en.yml +31 -0
- data/vendor/refinerycms/resources/config/locales/es.yml +30 -0
- data/vendor/{plugins → refinerycms}/resources/config/locales/fr.yml +0 -0
- data/vendor/{plugins → refinerycms}/resources/config/locales/it.yml +0 -0
- data/vendor/refinerycms/resources/config/locales/lv.yml +30 -0
- data/vendor/{plugins → refinerycms}/resources/config/locales/nb.yml +0 -0
- data/vendor/refinerycms/resources/config/locales/nl.yml +30 -0
- data/vendor/{plugins → refinerycms}/resources/config/locales/pt-BR.yml +0 -0
- data/vendor/refinerycms/resources/config/locales/ru.yml +33 -0
- data/vendor/refinerycms/resources/config/locales/sl.yml +30 -0
- data/vendor/refinerycms/resources/config/locales/zh-CN.yml +29 -0
- data/vendor/refinerycms/resources/config/routes.rb +11 -0
- data/vendor/refinerycms/resources/lib/resources.rb +48 -0
- data/vendor/refinerycms/resources/readme.md +9 -0
- data/vendor/{plugins/refinery_settings → refinerycms/settings}/app/controllers/admin/refinery_settings_controller.rb +0 -0
- data/vendor/refinerycms/settings/app/models/refinery_setting.rb +175 -0
- data/vendor/refinerycms/settings/app/views/admin/refinery_settings/_form.html.erb +51 -0
- data/vendor/refinerycms/settings/app/views/admin/refinery_settings/_refinery_setting.html.erb +17 -0
- data/vendor/{plugins/refinery_settings → refinerycms/settings}/app/views/admin/refinery_settings/edit.html.erb +0 -0
- data/vendor/refinerycms/settings/app/views/admin/refinery_settings/index.html.erb +32 -0
- data/vendor/{plugins/refinery_settings → refinerycms/settings}/app/views/admin/refinery_settings/new.html.erb +0 -0
- data/vendor/{plugins/refinery_settings → refinerycms/settings}/config/locales/da.yml +0 -0
- data/vendor/{plugins/refinery_settings → refinerycms/settings}/config/locales/de.yml +0 -0
- data/vendor/refinerycms/settings/config/locales/en.yml +43 -0
- data/vendor/refinerycms/settings/config/locales/es.yml +42 -0
- data/vendor/{plugins/refinery_settings → refinerycms/settings}/config/locales/fr.yml +0 -0
- data/vendor/{plugins/refinery_settings → refinerycms/settings}/config/locales/it.yml +0 -0
- data/vendor/refinerycms/settings/config/locales/lv.yml +42 -0
- data/vendor/refinerycms/settings/config/locales/nb.yml +45 -0
- data/vendor/refinerycms/settings/config/locales/nl.yml +42 -0
- data/vendor/refinerycms/settings/config/locales/pt-BR.yml +45 -0
- data/vendor/refinerycms/settings/config/locales/ru.yml +45 -0
- data/vendor/refinerycms/settings/config/locales/sl.yml +24 -0
- data/vendor/refinerycms/settings/config/locales/zh-CN.yml +40 -0
- data/vendor/refinerycms/settings/config/routes.rb +5 -0
- data/vendor/refinerycms/settings/lib/settings.rb +16 -0
- data/vendor/{plugins/refinery_settings → refinerycms/settings}/readme.md +0 -0
- metadata +893 -1045
- data/Rakefile +0 -18
- data/bin/refinery +0 -4
- data/bin/refinery-upgrade-096-to-097 +0 -140
- data/changelog.md +0 -473
- data/config.ru +0 -7
- data/config/acts_as_indexed_config.rb +0 -10
- data/config/amazon_s3.yml.example +0 -18
- data/config/application.rb +0 -35
- data/config/boot.rb +0 -124
- data/config/cucumber.yml +0 -8
- data/config/environment.rb +0 -2
- data/config/environments/cucumber.rb +0 -23
- data/config/i18n-js.yml +0 -6
- data/config/initializers/inflections.rb +0 -10
- data/config/initializers/mime_types.rb +0 -5
- data/config/preinitializer.rb +0 -25
- data/config/rackspace_cloudfiles.yml.example +0 -15
- data/features/refinery/create_inquiries.feature +0 -38
- data/features/refinery/dashboard.feature +0 -50
- data/features/refinery/manage_files.feature +0 -40
- data/features/refinery/manage_images.feature +0 -48
- data/features/refinery/manage_inquiries.feature +0 -54
- data/features/refinery/manage_pages.feature +0 -45
- data/features/refinery/manage_refinery_settings.feature +0 -5
- data/features/refinery/manage_users.feature +0 -55
- data/features/refinery/plugin_generator.feature +0 -27
- data/features/refinery/search.feature +0 -37
- data/features/refinery/site_bar.feature +0 -24
- data/features/refinery/theme_generator.feature +0 -16
- data/features/step_definitions/refinery/core_steps.rb +0 -55
- data/features/step_definitions/refinery/file_steps.rb +0 -26
- data/features/step_definitions/refinery/generator_steps.rb +0 -11
- data/features/step_definitions/refinery/image_steps.rb +0 -47
- data/features/step_definitions/refinery/inquiry_steps.rb +0 -25
- data/features/step_definitions/refinery/page_steps.rb +0 -29
- data/features/step_definitions/refinery/plugin_generator_steps.rb +0 -16
- data/features/step_definitions/refinery/theme_generator_steps.rb +0 -15
- data/features/step_definitions/refinery/user_steps.rb +0 -33
- data/features/step_definitions/web_steps.rb +0 -219
- data/features/support/env.rb +0 -86
- data/features/support/factories.rb +0 -19
- data/features/support/negative_expectations_helper.rb +0 -57
- data/features/support/paths.rb +0 -72
- data/features/uploads/beach.INVALID +0 -0
- data/features/uploads/beach.jpeg +0 -0
- data/features/uploads/id-rather-be-here.jpg +0 -0
- data/features/uploads/refinery_is_awesome.txt +0 -1
- data/lib/gemspec.rb +0 -32
- data/lib/refinery_initializer.rb +0 -23
- data/lib/tasks/cucumber.rake +0 -53
- data/lib/tasks/rspec.rake +0 -143
- data/license.md +0 -21
- data/public/.htaccess +0 -40
- data/public/404.html +0 -29
- data/public/422.html +0 -30
- data/public/500.html +0 -29
- data/public/javascripts/refinery/admin.js +0 -1007
- data/public/javascripts/wymeditor/jquery.refinery.wymeditor.js +0 -5107
- data/public/stylesheets/refinery/refinery.css +0 -1483
- data/readme.md +0 -111
- data/script/about +0 -3
- data/script/autospec +0 -6
- data/script/console +0 -3
- data/script/cucumber +0 -10
- data/script/dbconsole +0 -3
- data/script/destroy +0 -3
- data/script/generate +0 -3
- data/script/performance/benchmarker +0 -3
- data/script/performance/profiler +0 -3
- data/script/performance/request +0 -3
- data/script/plugin +0 -3
- data/script/process/inspector +0 -3
- data/script/process/reaper +0 -3
- data/script/process/spawner +0 -3
- data/script/runner +0 -3
- data/script/server +0 -3
- data/script/spec +0 -10
- data/test/files/The world!.gif +0 -0
- data/test/files/car-wallpapers19.jpg +0 -0
- data/test/files/teng.pdf +0 -0
- data/test/fixtures/images.yml +0 -13
- data/test/fixtures/inquiries.yml +0 -22
- data/test/fixtures/page_parts.yml +0 -9
- data/test/fixtures/pages.yml +0 -94
- data/test/fixtures/refinery_settings.yml +0 -3
- data/test/fixtures/resources.yml +0 -4
- data/test/fixtures/user_plugins.yml +0 -32
- data/test/fixtures/users.yml +0 -15
- data/test/functional/dashboard_controller_test.rb +0 -41
- data/test/functional/images_controller_test.rb +0 -83
- data/test/performance/browsing_test.rb +0 -9
- data/test/test_helper.rb +0 -53
- data/test/unit/image_test.rb +0 -31
- data/test/unit/inquiry_test.rb +0 -33
- data/test/unit/page_part_test.rb +0 -19
- data/test/unit/page_test.rb +0 -163
- data/test/unit/refinery_setting_test.rb +0 -57
- data/test/unit/resource_test.rb +0 -33
- data/themes/demolicious/LICENSE +0 -21
- data/themes/demolicious/README +0 -1
- data/themes/demolicious/images/footer_background.png +0 -0
- data/themes/demolicious/images/header_background.png +0 -0
- data/themes/demolicious/stylesheets/application.css +0 -105
- data/themes/demolicious/stylesheets/formatting.css +0 -36
- data/themes/demolicious/stylesheets/home.css +0 -5
- data/themes/demolicious/stylesheets/ie7.css +0 -0
- data/themes/demolicious/views/layouts/application.html.erb +0 -27
- data/themes/hemingway/LICENSE +0 -7
- data/themes/hemingway/README +0 -3
- data/themes/hemingway/images/archives.gif +0 -0
- data/themes/hemingway/images/footer_black.gif +0 -0
- data/themes/hemingway/images/kyle-header.jpg +0 -0
- data/themes/hemingway/images/readon_black.gif +0 -0
- data/themes/hemingway/images/search.gif +0 -0
- data/themes/hemingway/images/spinner.gif +0 -0
- data/themes/hemingway/images/trackback_pingback.gif +0 -0
- data/themes/hemingway/stylesheets/application.css +0 -713
- data/themes/hemingway/stylesheets/formatting.css +0 -1
- data/themes/hemingway/stylesheets/home.css +0 -1
- data/themes/hemingway/views/layouts/application.html.erb +0 -45
- data/todo.md +0 -38
- data/vendor/plugins/acts_as_tree/README +0 -26
- data/vendor/plugins/acts_as_tree/Rakefile +0 -22
- data/vendor/plugins/acts_as_tree/init.rb +0 -1
- data/vendor/plugins/acts_as_tree/lib/active_record/acts/tree.rb +0 -141
- data/vendor/plugins/acts_as_tree/test/abstract_unit.rb +0 -0
- data/vendor/plugins/acts_as_tree/test/acts_as_tree_test.rb +0 -219
- data/vendor/plugins/acts_as_tree/test/database.yml +0 -0
- data/vendor/plugins/acts_as_tree/test/fixtures/mixin.rb +0 -0
- data/vendor/plugins/acts_as_tree/test/fixtures/mixins.yml +0 -0
- data/vendor/plugins/acts_as_tree/test/schema.rb +0 -0
- data/vendor/plugins/attachment_fu/CHANGELOG +0 -35
- data/vendor/plugins/attachment_fu/LICENSE +0 -20
- data/vendor/plugins/attachment_fu/README +0 -193
- data/vendor/plugins/attachment_fu/Rakefile +0 -22
- data/vendor/plugins/attachment_fu/amazon_s3.yml.tpl +0 -17
- data/vendor/plugins/attachment_fu/init.rb +0 -16
- data/vendor/plugins/attachment_fu/install.rb +0 -7
- data/vendor/plugins/attachment_fu/lib/geometry.rb +0 -93
- data/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu.rb +0 -514
- data/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/backends/cloud_file_backend.rb +0 -211
- data/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/backends/db_file_backend.rb +0 -39
- data/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/backends/file_system_backend.rb +0 -126
- data/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/backends/s3_backend.rb +0 -394
- data/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/processors/core_image_processor.rb +0 -59
- data/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/processors/gd2_processor.rb +0 -54
- data/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/processors/image_science_processor.rb +0 -61
- data/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/processors/mini_magick_processor.rb +0 -132
- data/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/processors/rmagick_processor.rb +0 -57
- data/vendor/plugins/attachment_fu/rackspace_cloudfiles.yml.tpl +0 -14
- data/vendor/plugins/attachment_fu/test/backends/db_file_test.rb +0 -16
- data/vendor/plugins/attachment_fu/test/backends/file_system_test.rb +0 -143
- data/vendor/plugins/attachment_fu/test/backends/remote/cloudfiles_test.rb +0 -102
- data/vendor/plugins/attachment_fu/test/backends/remote/s3_test.rb +0 -119
- data/vendor/plugins/attachment_fu/test/base_attachment_tests.rb +0 -77
- data/vendor/plugins/attachment_fu/test/basic_test.rb +0 -70
- data/vendor/plugins/attachment_fu/test/database.yml +0 -18
- data/vendor/plugins/attachment_fu/test/extra_attachment_test.rb +0 -67
- data/vendor/plugins/attachment_fu/test/fixtures/attachment.rb +0 -226
- data/vendor/plugins/attachment_fu/test/fixtures/files/fake/rails.png +0 -0
- data/vendor/plugins/attachment_fu/test/fixtures/files/foo.txt +0 -1
- data/vendor/plugins/attachment_fu/test/fixtures/files/rails.png +0 -0
- data/vendor/plugins/attachment_fu/test/geometry_test.rb +0 -108
- data/vendor/plugins/attachment_fu/test/processors/core_image_test.rb +0 -37
- data/vendor/plugins/attachment_fu/test/processors/gd2_test.rb +0 -31
- data/vendor/plugins/attachment_fu/test/processors/image_science_test.rb +0 -31
- data/vendor/plugins/attachment_fu/test/processors/mini_magick_test.rb +0 -103
- data/vendor/plugins/attachment_fu/test/processors/rmagick_test.rb +0 -255
- data/vendor/plugins/attachment_fu/test/schema.rb +0 -134
- data/vendor/plugins/attachment_fu/test/test_helper.rb +0 -150
- data/vendor/plugins/attachment_fu/test/validation_test.rb +0 -55
- data/vendor/plugins/attachment_fu/vendor/red_artisan/core_image/filters/color.rb +0 -27
- data/vendor/plugins/attachment_fu/vendor/red_artisan/core_image/filters/effects.rb +0 -31
- data/vendor/plugins/attachment_fu/vendor/red_artisan/core_image/filters/perspective.rb +0 -25
- data/vendor/plugins/attachment_fu/vendor/red_artisan/core_image/filters/quality.rb +0 -25
- data/vendor/plugins/attachment_fu/vendor/red_artisan/core_image/filters/scale.rb +0 -47
- data/vendor/plugins/attachment_fu/vendor/red_artisan/core_image/filters/watermark.rb +0 -32
- data/vendor/plugins/attachment_fu/vendor/red_artisan/core_image/processor.rb +0 -123
- data/vendor/plugins/authentication/README +0 -0
- data/vendor/plugins/authentication/Rakefile +0 -0
- data/vendor/plugins/authentication/app/controllers/admin/users_controller.rb +0 -60
- data/vendor/plugins/authentication/app/controllers/sessions_controller.rb +0 -40
- data/vendor/plugins/authentication/app/controllers/users_controller.rb +0 -112
- data/vendor/plugins/authentication/app/models/role.rb +0 -16
- data/vendor/plugins/authentication/app/models/user.rb +0 -71
- data/vendor/plugins/authentication/app/models/user_mailer.rb +0 -22
- data/vendor/plugins/authentication/app/views/admin/users/_form.html.erb +0 -64
- data/vendor/plugins/authentication/app/views/admin/users/_user.html.erb +0 -18
- data/vendor/plugins/authentication/app/views/sessions/new.html.erb +0 -22
- data/vendor/plugins/authentication/app/views/users/forgot.html.erb +0 -18
- data/vendor/plugins/authentication/app/views/users/new.html.erb +0 -35
- data/vendor/plugins/authentication/app/views/users/reset.html.erb +0 -23
- data/vendor/plugins/authentication/config/locales/da.yml +0 -83
- data/vendor/plugins/authentication/config/locales/en.yml +0 -80
- data/vendor/plugins/authentication/config/locales/es.yml +0 -91
- data/vendor/plugins/authentication/config/locales/it.yml +0 -80
- data/vendor/plugins/authentication/config/locales/nb.yml +0 -80
- data/vendor/plugins/authentication/config/locales/nl.yml +0 -99
- data/vendor/plugins/authentication/config/locales/ru.yml +0 -80
- data/vendor/plugins/authentication/config/locales/sl.yml +0 -79
- data/vendor/plugins/authentication/config/routes.rb +0 -14
- data/vendor/plugins/authentication/lib/authenticated_system.rb +0 -129
- data/vendor/plugins/authentication/rails/init.rb +0 -26
- data/vendor/plugins/dashboard/app/controllers/admin/dashboard_controller.rb +0 -38
- data/vendor/plugins/dashboard/app/helpers/admin/dashboard_helper.rb +0 -21
- data/vendor/plugins/dashboard/app/views/admin/dashboard/_recent_activity.html.erb +0 -12
- data/vendor/plugins/dashboard/app/views/admin/dashboard/index.html.erb +0 -72
- data/vendor/plugins/dashboard/config/locales/en.yml +0 -27
- data/vendor/plugins/dashboard/config/locales/es.yml +0 -28
- data/vendor/plugins/dashboard/config/locales/nb.yml +0 -27
- data/vendor/plugins/dashboard/config/locales/nl.yml +0 -26
- data/vendor/plugins/dashboard/config/locales/ru.yml +0 -27
- data/vendor/plugins/dashboard/config/locales/sl.yml +0 -24
- data/vendor/plugins/dashboard/config/routes.rb +0 -6
- data/vendor/plugins/dashboard/rails/init.rb +0 -12
- data/vendor/plugins/dashboard/readme.md +0 -22
- data/vendor/plugins/i18n-js/README.rdoc +0 -249
- data/vendor/plugins/i18n-js/Rakefile +0 -23
- data/vendor/plugins/i18n-js/init.rb +0 -1
- data/vendor/plugins/i18n-js/install.rb +0 -7
- data/vendor/plugins/i18n-js/lib/i18n-js.rb +0 -132
- data/vendor/plugins/i18n-js/lib/i18n-js.yml +0 -4
- data/vendor/plugins/i18n-js/lib/i18n.js +0 -339
- data/vendor/plugins/i18n-js/lib/tasks/i18n-js_tasks.rake +0 -16
- data/vendor/plugins/i18n-js/test/i18n-test.html +0 -50
- data/vendor/plugins/i18n-js/test/i18n-test.js +0 -661
- data/vendor/plugins/i18n-js/test/i18n_js_test.rb +0 -168
- data/vendor/plugins/i18n-js/test/jsunittest/jsunittest.js +0 -1017
- data/vendor/plugins/i18n-js/test/jsunittest/unittest.css +0 -54
- data/vendor/plugins/i18n-js/test/resources/custom_path.yml +0 -4
- data/vendor/plugins/i18n-js/test/resources/default.yml +0 -4
- data/vendor/plugins/i18n-js/test/resources/locales.yml +0 -76
- data/vendor/plugins/i18n-js/test/resources/multiple_files.yml +0 -6
- data/vendor/plugins/i18n-js/test/resources/no_scope.yml +0 -3
- data/vendor/plugins/i18n-js/test/resources/simple_scope.yml +0 -4
- data/vendor/plugins/i18n-js/test/test_helper.rb +0 -24
- data/vendor/plugins/i18n/config/locales/ar.yml +0 -121
- data/vendor/plugins/i18n/config/locales/bg.yml +0 -198
- data/vendor/plugins/i18n/config/locales/bn-IN.yml +0 -180
- data/vendor/plugins/i18n/config/locales/bs.yml +0 -114
- data/vendor/plugins/i18n/config/locales/ca-ES.yml +0 -155
- data/vendor/plugins/i18n/config/locales/cz.rb +0 -166
- data/vendor/plugins/i18n/config/locales/da.yml +0 -167
- data/vendor/plugins/i18n/config/locales/de-AT.yml +0 -140
- data/vendor/plugins/i18n/config/locales/de.yml +0 -141
- data/vendor/plugins/i18n/config/locales/dsb.yml +0 -182
- data/vendor/plugins/i18n/config/locales/el.yml +0 -191
- data/vendor/plugins/i18n/config/locales/es-AR.yml +0 -168
- data/vendor/plugins/i18n/config/locales/es-CO.yml +0 -146
- data/vendor/plugins/i18n/config/locales/es-MX.yml +0 -118
- data/vendor/plugins/i18n/config/locales/es.yml +0 -186
- data/vendor/plugins/i18n/config/locales/et.yml +0 -109
- data/vendor/plugins/i18n/config/locales/fa.yml +0 -119
- data/vendor/plugins/i18n/config/locales/fi.yml +0 -154
- data/vendor/plugins/i18n/config/locales/fr-CH.yml +0 -123
- data/vendor/plugins/i18n/config/locales/fr.yml +0 -140
- data/vendor/plugins/i18n/config/locales/fun/en-AU.rb +0 -105
- data/vendor/plugins/i18n/config/locales/fun/gibberish.rb +0 -109
- data/vendor/plugins/i18n/config/locales/fur.yml +0 -141
- data/vendor/plugins/i18n/config/locales/gl-ES.yml +0 -193
- data/vendor/plugins/i18n/config/locales/he.yml +0 -103
- data/vendor/plugins/i18n/config/locales/hr.yml +0 -116
- data/vendor/plugins/i18n/config/locales/hsb.yml +0 -190
- data/vendor/plugins/i18n/config/locales/hu.yml +0 -144
- data/vendor/plugins/i18n/config/locales/id.yml +0 -122
- data/vendor/plugins/i18n/config/locales/is.yml +0 -142
- data/vendor/plugins/i18n/config/locales/it.yml +0 -146
- data/vendor/plugins/i18n/config/locales/ja.yml +0 -139
- data/vendor/plugins/i18n/config/locales/ko.yml +0 -153
- data/vendor/plugins/i18n/config/locales/lo.yml +0 -201
- data/vendor/plugins/i18n/config/locales/lt.yml +0 -141
- data/vendor/plugins/i18n/config/locales/lv.yml +0 -132
- data/vendor/plugins/i18n/config/locales/mk.yml +0 -115
- data/vendor/plugins/i18n/config/locales/nb.yml +0 -103
- data/vendor/plugins/i18n/config/locales/nl.yml +0 -173
- data/vendor/plugins/i18n/config/locales/nn.yml +0 -96
- data/vendor/plugins/i18n/config/locales/pl.yml +0 -127
- data/vendor/plugins/i18n/config/locales/pt-BR.yml +0 -148
- data/vendor/plugins/i18n/config/locales/pt-PT.yml +0 -220
- data/vendor/plugins/i18n/config/locales/rm.yml +0 -134
- data/vendor/plugins/i18n/config/locales/ro.yml +0 -152
- data/vendor/plugins/i18n/config/locales/ru.yml +0 -210
- data/vendor/plugins/i18n/config/locales/sk.yml +0 -139
- data/vendor/plugins/i18n/config/locales/sl.yml +0 -190
- data/vendor/plugins/i18n/config/locales/sr-Latn.yml +0 -116
- data/vendor/plugins/i18n/config/locales/sr.yml +0 -116
- data/vendor/plugins/i18n/config/locales/sv-SE.yml +0 -191
- data/vendor/plugins/i18n/config/locales/sw.yml +0 -123
- data/vendor/plugins/i18n/config/locales/th.rb +0 -222
- data/vendor/plugins/i18n/config/locales/tr.yml +0 -139
- data/vendor/plugins/i18n/config/locales/uk.yml +0 -237
- data/vendor/plugins/i18n/config/locales/vi.yml +0 -198
- data/vendor/plugins/i18n/config/locales/zh-CN.yml +0 -131
- data/vendor/plugins/i18n/config/locales/zh-TW.yml +0 -132
- data/vendor/plugins/i18n/lib/i18n.rb +0 -141
- data/vendor/plugins/i18n/lib/i18n_filter.rb +0 -48
- data/vendor/plugins/i18n/lib/routing_filter/MIT-LICENSE +0 -20
- data/vendor/plugins/i18n/lib/routing_filter/README.markdown +0 -123
- data/vendor/plugins/i18n/lib/routing_filter/VERSION +0 -1
- data/vendor/plugins/i18n/lib/routing_filter/routing_filter.rb +0 -96
- data/vendor/plugins/i18n/lib/routing_filter/routing_filter/base.rb +0 -31
- data/vendor/plugins/i18n/lib/routing_filter/routing_filter/force_extension.rb +0 -57
- data/vendor/plugins/i18n/lib/routing_filter/routing_filter/pagination.rb +0 -33
- data/vendor/plugins/i18n/lib/routing_filter/routing_filter/uuid_token.rb +0 -78
- data/vendor/plugins/i18n/rails/init.rb +0 -4
- data/vendor/plugins/images/app/controllers/admin/images_controller.rb +0 -101
- data/vendor/plugins/images/app/models/image.rb +0 -87
- data/vendor/plugins/images/app/views/admin/images/_existing_image.html.erb +0 -50
- data/vendor/plugins/images/app/views/admin/images/_form.html.erb +0 -46
- data/vendor/plugins/images/app/views/admin/images/_grid_view.html.erb +0 -19
- data/vendor/plugins/images/app/views/admin/images/_list_view_image.html.erb +0 -19
- data/vendor/plugins/images/app/views/admin/images/index.html.erb +0 -43
- data/vendor/plugins/images/app/views/admin/images/insert.html.erb +0 -47
- data/vendor/plugins/images/config/locales/da.yml +0 -42
- data/vendor/plugins/images/config/locales/de.yml +0 -43
- data/vendor/plugins/images/config/locales/en.yml +0 -46
- data/vendor/plugins/images/config/locales/es.yml +0 -40
- data/vendor/plugins/images/config/locales/fr.yml +0 -42
- data/vendor/plugins/images/config/locales/it.yml +0 -40
- data/vendor/plugins/images/config/locales/nb.yml +0 -46
- data/vendor/plugins/images/config/locales/nl.yml +0 -46
- data/vendor/plugins/images/config/locales/pt-BR.yml +0 -48
- data/vendor/plugins/images/config/locales/ru.yml +0 -46
- data/vendor/plugins/images/config/locales/sl.yml +0 -42
- data/vendor/plugins/images/config/routes.rb +0 -5
- data/vendor/plugins/images/lib/tasks/images.rake +0 -45
- data/vendor/plugins/images/rails/init.rb +0 -18
- data/vendor/plugins/images/readme.md +0 -58
- data/vendor/plugins/inquiries/app/controllers/admin/inquiries_controller.rb +0 -32
- data/vendor/plugins/inquiries/app/controllers/admin/inquiry_settings_controller.rb +0 -17
- data/vendor/plugins/inquiries/app/controllers/inquiries_controller.rb +0 -47
- data/vendor/plugins/inquiries/app/helpers/inquiries_helper.rb +0 -2
- data/vendor/plugins/inquiries/app/models/inquiry.rb +0 -144
- data/vendor/plugins/inquiries/app/models/inquiry_mailer.rb +0 -20
- data/vendor/plugins/inquiries/app/models/inquiry_setting.rb +0 -60
- data/vendor/plugins/inquiries/app/views/admin/inquiries/_inquiry.html.erb +0 -24
- data/vendor/plugins/inquiries/app/views/admin/inquiries/_submenu.html.erb +0 -27
- data/vendor/plugins/inquiries/app/views/admin/inquiries/index.html.erb +0 -24
- data/vendor/plugins/inquiries/app/views/admin/inquiries/show.html.erb +0 -74
- data/vendor/plugins/inquiries/app/views/admin/inquiries/spam.html.erb +0 -24
- data/vendor/plugins/inquiries/app/views/admin/inquiry_settings/_confirmation_email_form.html.erb +0 -57
- data/vendor/plugins/inquiries/app/views/admin/inquiry_settings/_notification_recipients_form.html.erb +0 -25
- data/vendor/plugins/inquiries/app/views/admin/inquiry_settings/_subject_form.html.erb +0 -9
- data/vendor/plugins/inquiries/app/views/admin/inquiry_settings/edit.html.erb +0 -7
- data/vendor/plugins/inquiries/app/views/inquiries/new.html.erb +0 -30
- data/vendor/plugins/inquiries/app/views/inquiries/thank_you.html.erb +0 -1
- data/vendor/plugins/inquiries/app/views/inquiry_mailer/confirmation.html.erb +0 -1
- data/vendor/plugins/inquiries/app/views/inquiry_mailer/notification.html.erb +0 -18
- data/vendor/plugins/inquiries/config/locales/da.yml +0 -68
- data/vendor/plugins/inquiries/config/locales/de.yml +0 -72
- data/vendor/plugins/inquiries/config/locales/en.yml +0 -79
- data/vendor/plugins/inquiries/config/locales/es.yml +0 -69
- data/vendor/plugins/inquiries/config/locales/fr.yml +0 -66
- data/vendor/plugins/inquiries/config/locales/it.yml +0 -67
- data/vendor/plugins/inquiries/config/locales/nb.yml +0 -77
- data/vendor/plugins/inquiries/config/locales/nl.yml +0 -84
- data/vendor/plugins/inquiries/config/locales/pt-BR.yml +0 -86
- data/vendor/plugins/inquiries/config/locales/ru.yml +0 -79
- data/vendor/plugins/inquiries/config/locales/sl.yml +0 -69
- data/vendor/plugins/inquiries/config/routes.rb +0 -20
- data/vendor/plugins/inquiries/rails/init.rb +0 -13
- data/vendor/plugins/inquiries/readme.md +0 -31
- data/vendor/plugins/model_translations/MIT-LICENSE +0 -20
- data/vendor/plugins/model_translations/README.rdoc +0 -90
- data/vendor/plugins/model_translations/Rakefile +0 -23
- data/vendor/plugins/model_translations/init.rb +0 -1
- data/vendor/plugins/model_translations/lib/active_record/model_translations.rb +0 -55
- data/vendor/plugins/model_translations/test/model_translations_test.rb +0 -88
- data/vendor/plugins/model_translations/test/test_helper.rb +0 -3
- data/vendor/plugins/pages/app/controllers/admin/pages_controller.rb +0 -71
- data/vendor/plugins/pages/app/controllers/pages_controller.rb +0 -45
- data/vendor/plugins/pages/app/models/page.rb +0 -246
- data/vendor/plugins/pages/app/models/page_part.rb +0 -21
- data/vendor/plugins/pages/app/views/admin/pages/_form.html.erb +0 -44
- data/vendor/plugins/pages/app/views/admin/pages/_form_advanced_options.html.erb +0 -62
- data/vendor/plugins/pages/app/views/admin/pages/_form_new_page_parts.html.erb +0 -13
- data/vendor/plugins/pages/app/views/admin/pages/_form_page_parts.html.erb +0 -37
- data/vendor/plugins/pages/app/views/admin/pages/_page.html.erb +0 -33
- data/vendor/plugins/pages/app/views/admin/pages/index.html.erb +0 -35
- data/vendor/plugins/pages/app/views/admin/pages_dialogs/_page_link.html.erb +0 -5
- data/vendor/plugins/pages/app/views/admin/pages_dialogs/link_to.html.erb +0 -134
- data/vendor/plugins/pages/app/views/pages/home.html.erb +0 -1
- data/vendor/plugins/pages/app/views/pages/show.html.erb +0 -1
- data/vendor/plugins/pages/config/locales/da.yml +0 -53
- data/vendor/plugins/pages/config/locales/en.yml +0 -97
- data/vendor/plugins/pages/config/locales/es.yml +0 -53
- data/vendor/plugins/pages/config/locales/fr.yml +0 -53
- data/vendor/plugins/pages/config/locales/it.yml +0 -53
- data/vendor/plugins/pages/config/locales/nb.yml +0 -95
- data/vendor/plugins/pages/config/locales/nl.yml +0 -104
- data/vendor/plugins/pages/config/locales/ru.yml +0 -97
- data/vendor/plugins/pages/config/locales/sl.yml +0 -96
- data/vendor/plugins/pages/config/routes.rb +0 -13
- data/vendor/plugins/pages/rails/init.rb +0 -17
- data/vendor/plugins/pages/readme.md +0 -156
- data/vendor/plugins/refinery/app/views/admin/_head.html.erb +0 -52
- data/vendor/plugins/refinery/app/views/admin/_menu.html.erb +0 -18
- data/vendor/plugins/refinery/app/views/layouts/admin.html.erb +0 -25
- data/vendor/plugins/refinery/app/views/layouts/application.html.erb +0 -21
- data/vendor/plugins/refinery/app/views/shared/_content_page.html.erb +0 -35
- data/vendor/plugins/refinery/app/views/shared/_draft_page_message.html.erb +0 -3
- data/vendor/plugins/refinery/app/views/shared/_footer.html.erb +0 -5
- data/vendor/plugins/refinery/app/views/shared/_head.html.erb +0 -17
- data/vendor/plugins/refinery/app/views/shared/_header.html.erb +0 -4
- data/vendor/plugins/refinery/app/views/shared/_html5_for_ie.js.erb +0 -5
- data/vendor/plugins/refinery/app/views/shared/_language_switcher.html.erb +0 -5
- data/vendor/plugins/refinery/app/views/shared/_menu_branch.html.erb +0 -23
- data/vendor/plugins/refinery/app/views/shared/_message.html.erb +0 -10
- data/vendor/plugins/refinery/app/views/shared/_site_bar.html.erb +0 -50
- data/vendor/plugins/refinery/app/views/shared/admin/_continue_editing.html.erb +0 -3
- data/vendor/plugins/refinery/app/views/shared/admin/_error_messages_for.html.erb +0 -2
- data/vendor/plugins/refinery/app/views/shared/admin/_form_actions.html.erb +0 -74
- data/vendor/plugins/refinery/app/views/shared/admin/_head_before_javascript_libraries.html.erb +0 -0
- data/vendor/plugins/refinery/app/views/shared/admin/_resource_picker.html.erb +0 -59
- data/vendor/plugins/refinery/app/views/shared/admin/_search.html.erb +0 -5
- data/vendor/plugins/refinery/app/views/shared/admin/_sortable_list.html.erb +0 -9
- data/vendor/plugins/refinery/app/views/welcome.html.erb +0 -16
- data/vendor/plugins/refinery/app/views/wymiframe.html.erb +0 -17
- data/vendor/plugins/refinery/config/locales/da.yml +0 -71
- data/vendor/plugins/refinery/config/locales/de.yml +0 -68
- data/vendor/plugins/refinery/config/locales/en.yml +0 -61
- data/vendor/plugins/refinery/config/locales/es.yml +0 -64
- data/vendor/plugins/refinery/config/locales/fr.yml +0 -66
- data/vendor/plugins/refinery/config/locales/it.yml +0 -65
- data/vendor/plugins/refinery/config/locales/nb.yml +0 -61
- data/vendor/plugins/refinery/config/locales/nl.yml +0 -69
- data/vendor/plugins/refinery/config/locales/pt-BR.yml +0 -71
- data/vendor/plugins/refinery/config/locales/ru.yml +0 -61
- data/vendor/plugins/refinery/config/locales/sl.yml +0 -59
- data/vendor/plugins/refinery/config/routes.rb +0 -10
- data/vendor/plugins/refinery/lib/crud.rb +0 -265
- data/vendor/plugins/refinery/lib/generators/refinery/refinery_generator.rb +0 -13
- data/vendor/plugins/refinery/lib/generators/refinery_plugin/README +0 -36
- data/vendor/plugins/refinery/lib/generators/refinery_plugin/Rakefile +0 -11
- data/vendor/plugins/refinery/lib/generators/refinery_plugin/USAGE +0 -2
- data/vendor/plugins/refinery/lib/generators/refinery_plugin/install.rb +0 -2
- data/vendor/plugins/refinery/lib/generators/refinery_plugin/refinery_plugin_generator.rb +0 -76
- data/vendor/plugins/refinery/lib/generators/refinery_plugin/templates/MIGRATE +0 -4
- data/vendor/plugins/refinery/lib/generators/refinery_plugin/templates/config/locales/en.yml +0 -19
- data/vendor/plugins/refinery/lib/generators/refinery_plugin/templates/config/locales/nb.yml +0 -19
- data/vendor/plugins/refinery/lib/generators/refinery_plugin/templates/config/locales/nl.yml +0 -19
- data/vendor/plugins/refinery/lib/generators/refinery_plugin/templates/config/routes.rb +0 -7
- data/vendor/plugins/refinery/lib/generators/refinery_plugin/templates/migration.rb +0 -38
- data/vendor/plugins/refinery/lib/generators/refinery_plugin/templates/rails/init.rb +0 -9
- data/vendor/plugins/refinery/lib/generators/refinery_plugin/templates/seed.rb +0 -15
- data/vendor/plugins/refinery/lib/generators/refinery_plugin/templates/views/admin/_form.html.erb +0 -32
- data/vendor/plugins/refinery/lib/generators/refinery_plugin/templates/views/admin/_singular_name.html.erb +0 -16
- data/vendor/plugins/refinery/lib/generators/refinery_plugin/templates/views/admin/index.html.erb +0 -43
- data/vendor/plugins/refinery/lib/generators/refinery_plugin/templates/views/show.html.erb +0 -31
- data/vendor/plugins/refinery/lib/refinery.rb +0 -41
- data/vendor/plugins/refinery/lib/refinery/activity.rb +0 -37
- data/vendor/plugins/refinery/lib/refinery/admin_base_controller.rb +0 -107
- data/vendor/plugins/refinery/lib/refinery/application_controller.rb +0 -119
- data/vendor/plugins/refinery/lib/refinery/application_helper.rb +0 -191
- data/vendor/plugins/refinery/lib/refinery/deprecations.rb +0 -46
- data/vendor/plugins/refinery/lib/refinery/initializer.rb +0 -75
- data/vendor/plugins/refinery/lib/refinery/link_renderer.rb +0 -49
- data/vendor/plugins/refinery/lib/refinery/plugin.rb +0 -59
- data/vendor/plugins/refinery/lib/refinery/plugins.rb +0 -66
- data/vendor/plugins/refinery/lib/tasks/doc.rake +0 -29
- data/vendor/plugins/refinery/lib/tasks/refinery.rake +0 -403
- data/vendor/plugins/refinery/lib/tasks/refinery.rb +0 -18
- data/vendor/plugins/refinery/lib/tasks/yard.rake +0 -32
- data/vendor/plugins/refinery/plugins.md +0 -205
- data/vendor/plugins/refinery/rails/init.rb +0 -23
- data/vendor/plugins/refinery_dialogs/app/controllers/admin/dialogs_controller.rb +0 -29
- data/vendor/plugins/refinery_dialogs/app/views/admin/dialogs/show.html.erb +0 -19
- data/vendor/plugins/refinery_dialogs/config/routes.rb +0 -5
- data/vendor/plugins/refinery_dialogs/rails/init.rb +0 -11
- data/vendor/plugins/refinery_settings/app/models/refinery_setting.rb +0 -165
- data/vendor/plugins/refinery_settings/app/views/admin/refinery_settings/_form.html.erb +0 -42
- data/vendor/plugins/refinery_settings/app/views/admin/refinery_settings/_refinery_setting.html.erb +0 -15
- data/vendor/plugins/refinery_settings/app/views/admin/refinery_settings/index.html.erb +0 -36
- data/vendor/plugins/refinery_settings/config/locales/en.yml +0 -45
- data/vendor/plugins/refinery_settings/config/locales/es.yml +0 -23
- data/vendor/plugins/refinery_settings/config/locales/nb.yml +0 -45
- data/vendor/plugins/refinery_settings/config/locales/nl.yml +0 -49
- data/vendor/plugins/refinery_settings/config/locales/pt-BR.yml +0 -45
- data/vendor/plugins/refinery_settings/config/locales/ru.yml +0 -45
- data/vendor/plugins/refinery_settings/config/locales/sl.yml +0 -23
- data/vendor/plugins/refinery_settings/config/routes.rb +0 -5
- data/vendor/plugins/refinery_settings/rails/init.rb +0 -10
- data/vendor/plugins/resources/app/models/resource.rb +0 -55
- data/vendor/plugins/resources/app/views/admin/resources/_existing_resource.html.erb +0 -32
- data/vendor/plugins/resources/app/views/admin/resources/_form.html.erb +0 -48
- data/vendor/plugins/resources/app/views/admin/resources/_resource.html.erb +0 -17
- data/vendor/plugins/resources/app/views/admin/resources/index.html.erb +0 -43
- data/vendor/plugins/resources/app/views/admin/resources/insert.html.erb +0 -54
- data/vendor/plugins/resources/config/locales/en.yml +0 -33
- data/vendor/plugins/resources/config/locales/es.yml +0 -32
- data/vendor/plugins/resources/config/locales/nl.yml +0 -35
- data/vendor/plugins/resources/config/locales/ru.yml +0 -33
- data/vendor/plugins/resources/config/locales/sl.yml +0 -32
- data/vendor/plugins/resources/config/routes.rb +0 -7
- data/vendor/plugins/resources/rails/init.rb +0 -16
- data/vendor/plugins/resources/readme.md +0 -9
- data/vendor/plugins/themes/app/helpers/themes_helper.rb +0 -34
- data/vendor/plugins/themes/generators/refinery_theme/README +0 -17
- data/vendor/plugins/themes/generators/refinery_theme/Rakefile +0 -11
- data/vendor/plugins/themes/generators/refinery_theme/USAGE +0 -2
- data/vendor/plugins/themes/generators/refinery_theme/install.rb +0 -2
- data/vendor/plugins/themes/generators/refinery_theme/refinery_theme_generator.rb +0 -46
- data/vendor/plugins/themes/generators/refinery_theme/templates/stylesheets/application.css +0 -5
- data/vendor/plugins/themes/generators/refinery_theme/templates/stylesheets/formatting.css +0 -7
- data/vendor/plugins/themes/generators/refinery_theme/templates/stylesheets/home.css +0 -5
- data/vendor/plugins/themes/generators/refinery_theme/templates/views/layouts/application.html.erb +0 -21
- data/vendor/plugins/themes/generators/refinery_theme/templates/views/pages/home.html.erb +0 -4
- data/vendor/plugins/themes/generators/refinery_theme/templates/views/pages/show.html.erb +0 -4
- data/vendor/plugins/themes/lib/theme.rb +0 -7
- data/vendor/plugins/themes/lib/theme_server.rb +0 -30
- data/vendor/plugins/themes/rails/init.rb +0 -36
- data/vendor/plugins/themes/readme.md +0 -118
- data/vendor/plugins/translate/MIT-LICENSE +0 -20
- data/vendor/plugins/translate/README +0 -61
- data/vendor/plugins/translate/REFINERY_README +0 -8
- data/vendor/plugins/translate/Rakefile +0 -11
- data/vendor/plugins/translate/init.rb +0 -8
- data/vendor/plugins/translate/lib/tasks/translate.rake +0 -193
- data/vendor/plugins/translate/lib/translate.rb +0 -13
- data/vendor/plugins/translate/lib/translate/file.rb +0 -35
- data/vendor/plugins/translate/lib/translate/keys.rb +0 -123
- data/vendor/plugins/translate/lib/translate/log.rb +0 -39
- data/vendor/plugins/translate/lib/translate/storage.rb +0 -20
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,35 +0,0 @@
|
|
1
|
-
* Apr 17 2008 *
|
2
|
-
* amazon_s3.yml is now passed through ERB before being passed to AWS::S3 [François Beausoleil]
|
3
|
-
|
4
|
-
* Mar 22 2008 *
|
5
|
-
* Some tweaks to support Rails 2.0 and Rails 2.1 due to ActiveSupport::Callback changes.
|
6
|
-
Thanks to http://blog.methodmissing.com/2008/1/19/edge-callback-refactorings-attachment_fu/
|
7
|
-
|
8
|
-
* Feb. 26, 2008 *
|
9
|
-
* remove breakpoint from test_helper, makes test suite crazy (at least Rails 2+) [Rob Sanheim]
|
10
|
-
* make S3 test really optional [Rob Sanheim]
|
11
|
-
|
12
|
-
* Nov 27, 2007 *
|
13
|
-
* Handle properly ImageScience thumbnails resized from a gif file [Matt Aimonetti]
|
14
|
-
* Save thumbnails file size properly when using ImageScience [Matt Aimonetti]
|
15
|
-
* fixed s3 config file loading with latest versions of Rails [Matt Aimonetti]
|
16
|
-
|
17
|
-
* April 2, 2007 *
|
18
|
-
|
19
|
-
* don't copy the #full_filename to the default #temp_paths array if it doesn't exist
|
20
|
-
* add default ID partitioning for attachments
|
21
|
-
* add #binmode call to Tempfile (note: ruby should be doing this!) [Eric Beland]
|
22
|
-
* Check for current type of :thumbnails option.
|
23
|
-
* allow customization of the S3 configuration file path with the :s3_config_path option.
|
24
|
-
* Don't try to remove thumbnails if there aren't any. Closes #3 [ben stiglitz]
|
25
|
-
|
26
|
-
* BC * (before changelog)
|
27
|
-
|
28
|
-
* add default #temp_paths entry [mattly]
|
29
|
-
* add MiniMagick support to attachment_fu [Isacc]
|
30
|
-
* update #destroy_file to clear out any empty directories too [carlivar]
|
31
|
-
* fix references to S3Backend module [Hunter Hillegas]
|
32
|
-
* make #current_data public with db_file and s3 backends [ebryn]
|
33
|
-
* oops, actually svn add the files for s3 backend. [Jeffrey Hardy]
|
34
|
-
* experimental s3 support, egad, no tests.... [Jeffrey Hardy]
|
35
|
-
* doh, fix a few bad references to ActsAsAttachment [sixty4bit]
|
@@ -1,20 +0,0 @@
|
|
1
|
-
Copyright (c) 2009 rick olson
|
2
|
-
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
-
a copy of this software and associated documentation files (the
|
5
|
-
"Software"), to deal in the Software without restriction, including
|
6
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
-
permit persons to whom the Software is furnished to do so, subject to
|
9
|
-
the following conditions:
|
10
|
-
|
11
|
-
The above copyright notice and this permission notice shall be
|
12
|
-
included in all copies or substantial portions of the Software.
|
13
|
-
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@@ -1,193 +0,0 @@
|
|
1
|
-
attachment-fu
|
2
|
-
=============
|
3
|
-
|
4
|
-
attachment_fu is a plugin by Rick Olson (aka technoweenie <http://techno-weenie.net>) and is the successor to acts_as_attachment. To get a basic run-through of its capabilities, check out Mike Clark's tutorial <http://clarkware.com/cgi/blosxom/2007/02/24#FileUploadFu>.
|
5
|
-
|
6
|
-
|
7
|
-
attachment_fu functionality
|
8
|
-
===========================
|
9
|
-
|
10
|
-
attachment_fu facilitates file uploads in Ruby on Rails. There are a few storage options for the actual file data, but the plugin always at a minimum stores metadata for each file in the database.
|
11
|
-
|
12
|
-
There are four storage options for files uploaded through attachment_fu:
|
13
|
-
File system
|
14
|
-
Database file
|
15
|
-
Amazon S3
|
16
|
-
Rackspace (Mosso) Cloud Files
|
17
|
-
|
18
|
-
Each method of storage many options associated with it that will be covered in the following section. Something to note, however, is that the Amazon S3 storage requires you to modify config/amazon_s3.yml, the Rackspace Cloud Files storage requires you to modify config/rackspace_cloudfiles.yml, and the Database file storage requires an extra table.
|
19
|
-
|
20
|
-
|
21
|
-
attachment_fu models
|
22
|
-
====================
|
23
|
-
|
24
|
-
For all three of these storage options a table of metadata is required. This table will contain information about the file (hence the 'meta') and its location. This table has no restrictions on naming, unlike the extra table required for database storage, which must have a table name of db_files (and by convention a model of DbFile).
|
25
|
-
|
26
|
-
In the model there are two methods made available by this plugins: has_attachment and validates_as_attachment.
|
27
|
-
|
28
|
-
has_attachment(options = {})
|
29
|
-
This method accepts the options in a hash:
|
30
|
-
:content_type # Allowed content types.
|
31
|
-
# Allows all by default. Use :image to allow all standard image types.
|
32
|
-
:min_size # Minimum size allowed.
|
33
|
-
# 1 byte is the default.
|
34
|
-
:max_size # Maximum size allowed.
|
35
|
-
# 1.megabyte is the default.
|
36
|
-
:size # Range of sizes allowed.
|
37
|
-
# (1..1.megabyte) is the default. This overrides the :min_size and :max_size options.
|
38
|
-
:resize_to # Used by RMagick to resize images.
|
39
|
-
# Pass either an array of width/height, or a geometry string.
|
40
|
-
:thumbnails # Specifies a set of thumbnails to generate.
|
41
|
-
# This accepts a hash of filename suffixes and RMagick resizing options.
|
42
|
-
# This option need only be included if you want thumbnailing.
|
43
|
-
:thumbnail_class # Set which model class to use for thumbnails.
|
44
|
-
# This current attachment class is used by default.
|
45
|
-
:path_prefix # Path to store the uploaded files in.
|
46
|
-
# Uses public/#{table_name} by default for the filesystem, and just #{table_name} for the S3 and Cloud Files backend.
|
47
|
-
# Setting this sets the :storage to :file_system.
|
48
|
-
:partition # Whether to partiton files in directories like /0000/0001/image.jpg. Default is true. Only applicable to the :file_system backend.
|
49
|
-
:storage # Specifies the storage system to use..
|
50
|
-
# Defaults to :db_file. Options are :file_system, :db_file, :s3, and :cloud_files.
|
51
|
-
:cloudfront # If using S3 for storage, this option allows for serving the files via Amazon CloudFront.
|
52
|
-
# Defaults to false.
|
53
|
-
:processor # Sets the image processor to use for resizing of the attached image.
|
54
|
-
# Options include ImageScience, Rmagick, and MiniMagick. Default is whatever is installed.
|
55
|
-
:uuid_primary_key # If your model's primary key is a 128-bit UUID in hexadecimal format, then set this to true.
|
56
|
-
:association_options # attachment_fu automatically defines associations with thumbnails with has_many and belongs_to. If there are any additional options that you want to pass to these methods, then specify them here.
|
57
|
-
|
58
|
-
|
59
|
-
Examples:
|
60
|
-
has_attachment :max_size => 1.kilobyte
|
61
|
-
has_attachment :size => 1.megabyte..2.megabytes
|
62
|
-
has_attachment :content_type => 'application/pdf'
|
63
|
-
has_attachment :content_type => ['application/pdf', 'application/msword', 'text/plain']
|
64
|
-
has_attachment :content_type => :image, :resize_to => [50,50]
|
65
|
-
has_attachment :content_type => ['application/pdf', :image], :resize_to => 'x50'
|
66
|
-
has_attachment :thumbnails => { :thumb => [50, 50], :geometry => 'x50' }
|
67
|
-
has_attachment :storage => :file_system, :path_prefix => 'public/files'
|
68
|
-
has_attachment :storage => :file_system, :path_prefix => 'public/files',
|
69
|
-
:content_type => :image, :resize_to => [50,50], :partition => false
|
70
|
-
has_attachment :storage => :file_system, :path_prefix => 'public/files',
|
71
|
-
:thumbnails => { :thumb => [50, 50], :geometry => 'x50' }
|
72
|
-
has_attachment :storage => :s3
|
73
|
-
has_attachment :store => :s3, :cloudfront => true
|
74
|
-
has_attachment :storage => :cloud_files
|
75
|
-
|
76
|
-
validates_as_attachment
|
77
|
-
This method prevents files outside of the valid range (:min_size to :max_size, or the :size range) from being saved. It does not however, halt the upload of such files. They will be uploaded into memory regardless of size before validation.
|
78
|
-
|
79
|
-
Example:
|
80
|
-
validates_as_attachment
|
81
|
-
|
82
|
-
|
83
|
-
attachment_fu migrations
|
84
|
-
========================
|
85
|
-
|
86
|
-
Fields for attachment_fu metadata tables...
|
87
|
-
in general:
|
88
|
-
size, :integer # file size in bytes
|
89
|
-
content_type, :string # mime type, ex: application/mp3
|
90
|
-
filename, :string # sanitized filename
|
91
|
-
that reference images:
|
92
|
-
height, :integer # in pixels
|
93
|
-
width, :integer # in pixels
|
94
|
-
that reference images that will be thumbnailed:
|
95
|
-
parent_id, :integer # id of parent image (on the same table, a self-referencing foreign-key).
|
96
|
-
# Only populated if the current object is a thumbnail.
|
97
|
-
thumbnail, :string # the 'type' of thumbnail this attachment record describes.
|
98
|
-
# Only populated if the current object is a thumbnail.
|
99
|
-
# Usage:
|
100
|
-
# [ In Model 'Avatar' ]
|
101
|
-
# has_attachment :content_type => :image,
|
102
|
-
# :storage => :file_system,
|
103
|
-
# :max_size => 500.kilobytes,
|
104
|
-
# :resize_to => '320x200>',
|
105
|
-
# :thumbnails => { :small => '10x10>',
|
106
|
-
# :thumb => '100x100>' }
|
107
|
-
# [ Elsewhere ]
|
108
|
-
# @user.avatar.thumbnails.first.thumbnail #=> 'small'
|
109
|
-
that reference files stored in the database (:db_file):
|
110
|
-
db_file_id, :integer # id of the file in the database (foreign key)
|
111
|
-
|
112
|
-
Field for attachment_fu db_files table:
|
113
|
-
data, :binary # binary file data, for use in database file storage
|
114
|
-
|
115
|
-
|
116
|
-
attachment_fu views
|
117
|
-
===================
|
118
|
-
|
119
|
-
There are two main views tasks that will be directly affected by attachment_fu: upload forms and displaying uploaded images.
|
120
|
-
|
121
|
-
There are two parts of the upload form that differ from typical usage.
|
122
|
-
1. Include ':multipart => true' in the html options of the form_for tag.
|
123
|
-
Example:
|
124
|
-
<% form_for(:attachment_metadata, :url => { :action => "create" }, :html => { :multipart => true }) do |form| %>
|
125
|
-
|
126
|
-
2. Use the file_field helper with :uploaded_data as the field name.
|
127
|
-
Example:
|
128
|
-
<%= form.file_field :uploaded_data %>
|
129
|
-
|
130
|
-
Displaying uploaded images is made easy by the public_filename method of the ActiveRecord attachment objects using file system, s3, and Cloud Files storage.
|
131
|
-
|
132
|
-
public_filename(thumbnail = nil)
|
133
|
-
Returns the public path to the file. If a thumbnail prefix is specified it will return the public file path to the corresponding thumbnail.
|
134
|
-
Examples:
|
135
|
-
attachment_obj.public_filename #=> /attachments/2/file.jpg
|
136
|
-
attachment_obj.public_filename(:thumb) #=> /attachments/2/file_thumb.jpg
|
137
|
-
attachment_obj.public_filename(:small) #=> /attachments/2/file_small.jpg
|
138
|
-
|
139
|
-
When serving files from database storage, doing more than simply downloading the file is beyond the scope of this document.
|
140
|
-
|
141
|
-
|
142
|
-
attachment_fu controllers
|
143
|
-
=========================
|
144
|
-
|
145
|
-
There are two considerations to take into account when using attachment_fu in controllers.
|
146
|
-
|
147
|
-
The first is when the files have no publicly accessible path and need to be downloaded through an action.
|
148
|
-
|
149
|
-
Example:
|
150
|
-
def readme
|
151
|
-
send_file '/path/to/readme.txt', :type => 'plain/text', :disposition => 'inline'
|
152
|
-
end
|
153
|
-
|
154
|
-
See the possible values for send_file for reference.
|
155
|
-
|
156
|
-
|
157
|
-
The second is when saving the file when submitted from a form.
|
158
|
-
Example in view:
|
159
|
-
<%= form.file_field :attachable, :uploaded_data %>
|
160
|
-
|
161
|
-
Example in controller:
|
162
|
-
def create
|
163
|
-
@attachable_file = AttachmentMetadataModel.new(params[:attachable])
|
164
|
-
if @attachable_file.save
|
165
|
-
flash[:notice] = 'Attachment was successfully created.'
|
166
|
-
redirect_to attachable_url(@attachable_file)
|
167
|
-
else
|
168
|
-
render :action => :new
|
169
|
-
end
|
170
|
-
end
|
171
|
-
|
172
|
-
attachement_fu scripting
|
173
|
-
====================================
|
174
|
-
|
175
|
-
You may wish to import a large number of images or attachments.
|
176
|
-
The following example shows how to upload a file from a script.
|
177
|
-
|
178
|
-
#!/usr/bin/env ./script/runner
|
179
|
-
|
180
|
-
# required to use ActionController::TestUploadedFile
|
181
|
-
require 'action_controller'
|
182
|
-
require 'action_controller/test_process.rb'
|
183
|
-
|
184
|
-
path = "./public/images/x.jpg"
|
185
|
-
|
186
|
-
# mimetype is a string like "image/jpeg". One way to get the mimetype for a given file on a UNIX system
|
187
|
-
# mimetype = `file -ib #{path}`.gsub(/\n/,"")
|
188
|
-
|
189
|
-
mimetype = "image/jpeg"
|
190
|
-
|
191
|
-
# This will "upload" the file at path and create the new model.
|
192
|
-
@attachable = AttachmentMetadataModel.new(:uploaded_data => ActionController::TestUploadedFile.new(path, mimetype))
|
193
|
-
@attachable.save
|
@@ -1,22 +0,0 @@
|
|
1
|
-
require 'rake'
|
2
|
-
require 'rake/testtask'
|
3
|
-
require 'rake/rdoctask'
|
4
|
-
|
5
|
-
desc 'Default: run unit tests.'
|
6
|
-
task :default => :test
|
7
|
-
|
8
|
-
desc 'Test the attachment_fu plugin.'
|
9
|
-
Rake::TestTask.new(:test) do |t|
|
10
|
-
t.libs << 'lib'
|
11
|
-
t.pattern = 'test/**/*_test.rb'
|
12
|
-
t.verbose = true
|
13
|
-
end
|
14
|
-
|
15
|
-
desc 'Generate documentation for the attachment_fu plugin.'
|
16
|
-
Rake::RDocTask.new(:rdoc) do |rdoc|
|
17
|
-
rdoc.rdoc_dir = 'rdoc'
|
18
|
-
rdoc.title = 'ActsAsAttachment'
|
19
|
-
rdoc.options << '--line-numbers --inline-source'
|
20
|
-
rdoc.rdoc_files.include('README')
|
21
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
22
|
-
end
|
@@ -1,17 +0,0 @@
|
|
1
|
-
development:
|
2
|
-
bucket_name: appname_development
|
3
|
-
access_key_id:
|
4
|
-
secret_access_key:
|
5
|
-
distribution_domain: XXXX.cloudfront.net
|
6
|
-
|
7
|
-
test:
|
8
|
-
bucket_name: appname_test
|
9
|
-
access_key_id:
|
10
|
-
secret_access_key:
|
11
|
-
distribution_domain: XXXX.cloudfront.net
|
12
|
-
|
13
|
-
production:
|
14
|
-
bucket_name: appname
|
15
|
-
access_key_id:
|
16
|
-
secret_access_key:
|
17
|
-
distribution_domain: XXXX.cloudfront.net
|
@@ -1,16 +0,0 @@
|
|
1
|
-
require 'tempfile'
|
2
|
-
|
3
|
-
Tempfile.class_eval do
|
4
|
-
# overwrite so tempfiles use the extension of the basename. important for rmagick and image science
|
5
|
-
def make_tmpname(basename, n)
|
6
|
-
ext = nil
|
7
|
-
sprintf("%s%d-%d%s", basename.to_s.gsub(/\.\w+$/) { |s| ext = s; '' }, $$, n.to_i, ext)
|
8
|
-
end
|
9
|
-
end
|
10
|
-
|
11
|
-
require 'geometry'
|
12
|
-
ActiveRecord::Base.send(:extend, Technoweenie::AttachmentFu::ActMethods)
|
13
|
-
Technoweenie::AttachmentFu.tempfile_path = ATTACHMENT_FU_TEMPFILE_PATH if Object.const_defined?(:ATTACHMENT_FU_TEMPFILE_PATH)
|
14
|
-
FileUtils.mkdir_p Technoweenie::AttachmentFu.tempfile_path
|
15
|
-
|
16
|
-
$:.unshift(File.dirname(__FILE__) + '/vendor')
|
@@ -1,7 +0,0 @@
|
|
1
|
-
require 'fileutils'
|
2
|
-
|
3
|
-
s3_config = File.dirname(__FILE__) + '/../../../config/amazon_s3.yml'
|
4
|
-
FileUtils.cp File.dirname(__FILE__) + '/amazon_s3.yml.tpl', s3_config unless File.exist?(s3_config)
|
5
|
-
cloudfiles_config = File.dirname(__FILE__) + '/../../../config/rackspace_cloudfiles.yml'
|
6
|
-
FileUtils.cp File.dirname(__FILE__) + '/rackspace_cloudfiles.yml.tpl', cloudfiles_config unless File.exist?(cloudfiles_config)
|
7
|
-
puts IO.read(File.join(File.dirname(__FILE__), 'README'))
|
@@ -1,93 +0,0 @@
|
|
1
|
-
# This Geometry class was yanked from RMagick. However, it lets ImageMagick handle the actual change_geometry.
|
2
|
-
# Use #new_dimensions_for to get new dimensons
|
3
|
-
# Used so I can use spiffy RMagick geometry strings with ImageScience
|
4
|
-
class Geometry
|
5
|
-
# ! and @ are removed until support for them is added
|
6
|
-
FLAGS = ['', '%', '<', '>']#, '!', '@']
|
7
|
-
RFLAGS = { '%' => :percent,
|
8
|
-
'!' => :aspect,
|
9
|
-
'<' => :>,
|
10
|
-
'>' => :<,
|
11
|
-
'@' => :area }
|
12
|
-
|
13
|
-
attr_accessor :width, :height, :x, :y, :flag
|
14
|
-
|
15
|
-
def initialize(width=nil, height=nil, x=nil, y=nil, flag=nil)
|
16
|
-
# Support floating-point width and height arguments so Geometry
|
17
|
-
# objects can be used to specify Image#density= arguments.
|
18
|
-
raise ArgumentError, "width must be >= 0: #{width}" if width < 0
|
19
|
-
raise ArgumentError, "height must be >= 0: #{height}" if height < 0
|
20
|
-
@width = width.to_f
|
21
|
-
@height = height.to_f
|
22
|
-
@x = x.to_i
|
23
|
-
@y = y.to_i
|
24
|
-
@flag = flag
|
25
|
-
end
|
26
|
-
|
27
|
-
# Construct an object from a geometry string
|
28
|
-
RE = /\A(\d*)(?:x(\d+)?)?([-+]\d+)?([-+]\d+)?([%!<>@]?)\Z/
|
29
|
-
|
30
|
-
def self.from_s(str)
|
31
|
-
raise(ArgumentError, "no geometry string specified") unless str
|
32
|
-
|
33
|
-
if m = RE.match(str)
|
34
|
-
new(m[1].to_i, m[2].to_i, m[3].to_i, m[4].to_i, RFLAGS[m[5]])
|
35
|
-
else
|
36
|
-
raise ArgumentError, "invalid geometry format"
|
37
|
-
end
|
38
|
-
end
|
39
|
-
|
40
|
-
# Convert object to a geometry string
|
41
|
-
def to_s
|
42
|
-
str = ''
|
43
|
-
str << "%g" % @width if @width > 0
|
44
|
-
str << 'x' if (@width > 0 || @height > 0)
|
45
|
-
str << "%g" % @height if @height > 0
|
46
|
-
str << "%+d%+d" % [@x, @y] if (@x != 0 || @y != 0)
|
47
|
-
str << FLAGS[@flag.to_i]
|
48
|
-
end
|
49
|
-
|
50
|
-
# attempts to get new dimensions for the current geometry string given these old dimensions.
|
51
|
-
# This doesn't implement the aspect flag (!) or the area flag (@). PDI
|
52
|
-
def new_dimensions_for(orig_width, orig_height)
|
53
|
-
new_width = orig_width
|
54
|
-
new_height = orig_height
|
55
|
-
|
56
|
-
case @flag
|
57
|
-
when :percent
|
58
|
-
scale_x = @width.zero? ? 100 : @width
|
59
|
-
scale_y = @height.zero? ? @width : @height
|
60
|
-
new_width = scale_x.to_f * (orig_width.to_f / 100.0)
|
61
|
-
new_height = scale_y.to_f * (orig_height.to_f / 100.0)
|
62
|
-
when :<, :>, nil
|
63
|
-
scale_factor =
|
64
|
-
if new_width.zero? || new_height.zero?
|
65
|
-
1.0
|
66
|
-
else
|
67
|
-
if @width.nonzero? && @height.nonzero?
|
68
|
-
[@width.to_f / new_width.to_f, @height.to_f / new_height.to_f].min
|
69
|
-
else
|
70
|
-
@width.nonzero? ? (@width.to_f / new_width.to_f) : (@height.to_f / new_height.to_f)
|
71
|
-
end
|
72
|
-
end
|
73
|
-
new_width = scale_factor * new_width.to_f
|
74
|
-
new_height = scale_factor * new_height.to_f
|
75
|
-
new_width = orig_width if @flag && orig_width.send(@flag, new_width)
|
76
|
-
new_height = orig_height if @flag && orig_height.send(@flag, new_height)
|
77
|
-
end
|
78
|
-
|
79
|
-
[new_width, new_height].collect! { |v| [v.round, 1].max }
|
80
|
-
end
|
81
|
-
end
|
82
|
-
|
83
|
-
class Array
|
84
|
-
# allows you to get new dimensions for the current array of dimensions with a given geometry string
|
85
|
-
#
|
86
|
-
# [50, 64] / '40>' # => [40, 51]
|
87
|
-
def /(geometry)
|
88
|
-
raise ArgumentError, "Only works with a [width, height] pair" if size != 2
|
89
|
-
raise ArgumentError, "Must pass a valid geometry string or object" unless geometry.is_a?(String) || geometry.is_a?(Geometry)
|
90
|
-
geometry = Geometry.from_s(geometry) if geometry.is_a?(String)
|
91
|
-
geometry.new_dimensions_for first, last
|
92
|
-
end
|
93
|
-
end
|
@@ -1,514 +0,0 @@
|
|
1
|
-
module Technoweenie # :nodoc:
|
2
|
-
module AttachmentFu # :nodoc:
|
3
|
-
@@default_processors = %w(ImageScience Rmagick MiniMagick Gd2 CoreImage)
|
4
|
-
@@tempfile_path = File.join(RAILS_ROOT, 'tmp', 'attachment_fu')
|
5
|
-
@@content_types = [
|
6
|
-
'image/jpeg',
|
7
|
-
'image/pjpeg',
|
8
|
-
'image/jpg',
|
9
|
-
'image/gif',
|
10
|
-
'image/png',
|
11
|
-
'image/x-png',
|
12
|
-
'image/jpg',
|
13
|
-
'image/x-ms-bmp',
|
14
|
-
'image/bmp',
|
15
|
-
'image/x-bmp',
|
16
|
-
'image/x-bitmap',
|
17
|
-
'image/x-xbitmap',
|
18
|
-
'image/x-win-bitmap',
|
19
|
-
'image/x-windows-bmp',
|
20
|
-
'image/ms-bmp',
|
21
|
-
'application/bmp',
|
22
|
-
'application/x-bmp',
|
23
|
-
'application/x-win-bitmap',
|
24
|
-
'application/preview',
|
25
|
-
'image/jp_',
|
26
|
-
'application/jpg',
|
27
|
-
'application/x-jpg',
|
28
|
-
'image/pipeg',
|
29
|
-
'image/vnd.swiftview-jpeg',
|
30
|
-
'image/x-xbitmap',
|
31
|
-
'application/png',
|
32
|
-
'application/x-png',
|
33
|
-
'image/gi_',
|
34
|
-
'image/x-citrix-pjpeg'
|
35
|
-
]
|
36
|
-
mattr_reader :content_types, :tempfile_path, :default_processors
|
37
|
-
mattr_writer :tempfile_path
|
38
|
-
|
39
|
-
class ThumbnailError < StandardError; end
|
40
|
-
class AttachmentError < StandardError; end
|
41
|
-
|
42
|
-
module ActMethods
|
43
|
-
# Options:
|
44
|
-
# * <tt>:content_type</tt> - Allowed content types. Allows all by default. Use :image to allow all standard image types.
|
45
|
-
# * <tt>:min_size</tt> - Minimum size allowed. 1 byte is the default.
|
46
|
-
# * <tt>:max_size</tt> - Maximum size allowed. 1.megabyte is the default.
|
47
|
-
# * <tt>:size</tt> - Range of sizes allowed. (1..1.megabyte) is the default. This overrides the :min_size and :max_size options.
|
48
|
-
# * <tt>:resize_to</tt> - Used by RMagick to resize images. Pass either an array of width/height, or a geometry string.
|
49
|
-
# * <tt>:thumbnails</tt> - Specifies a set of thumbnails to generate. This accepts a hash of filename suffixes and RMagick resizing options.
|
50
|
-
# * <tt>:thumbnail_class</tt> - Set what class to use for thumbnails. This attachment class is used by default.
|
51
|
-
# * <tt>:path_prefix</tt> - path to store the uploaded files. Uses public/#{table_name} by default for the filesystem, and just #{table_name}
|
52
|
-
# for the S3 backend. Setting this sets the :storage to :file_system.
|
53
|
-
|
54
|
-
# * <tt>:storage</tt> - Use :file_system to specify the attachment data is stored with the file system. Defaults to :db_system.
|
55
|
-
# * <tt>:cloundfront</tt> - Set to true if you are using S3 storage and want to serve the files through CloudFront. You will need to
|
56
|
-
# set a distribution domain in the amazon_s3.yml config file. Defaults to false
|
57
|
-
# * <tt>:bucket_key</tt> - Use this to specify a different bucket key other than :bucket_name in the amazon_s3.yml file. This allows you to use
|
58
|
-
# different buckets for different models. An example setting would be :image_bucket and the you would need to define the name of the corresponding
|
59
|
-
# bucket in the amazon_s3.yml file.
|
60
|
-
|
61
|
-
# * <tt>:keep_profile</tt> By default image EXIF data will be stripped to minimize image size. For small thumbnails this proivides important savings. Picture quality is not affected. Set to false if you want to keep the image profile as is. ImageScience will allways keep EXIF data.
|
62
|
-
#
|
63
|
-
# Examples:
|
64
|
-
# has_attachment :max_size => 1.kilobyte
|
65
|
-
# has_attachment :size => 1.megabyte..2.megabytes
|
66
|
-
# has_attachment :content_type => 'application/pdf'
|
67
|
-
# has_attachment :content_type => ['application/pdf', 'application/msword', 'text/plain']
|
68
|
-
# has_attachment :content_type => :image, :resize_to => [50,50]
|
69
|
-
# has_attachment :content_type => ['application/pdf', :image], :resize_to => 'x50'
|
70
|
-
# has_attachment :thumbnails => { :thumb => [50, 50], :geometry => 'x50' }
|
71
|
-
# has_attachment :storage => :file_system, :path_prefix => 'public/files'
|
72
|
-
# has_attachment :storage => :file_system, :path_prefix => 'public/files',
|
73
|
-
# :content_type => :image, :resize_to => [50,50]
|
74
|
-
# has_attachment :storage => :file_system, :path_prefix => 'public/files',
|
75
|
-
# :thumbnails => { :thumb => [50, 50], :geometry => 'x50' }
|
76
|
-
# has_attachment :storage => :s3
|
77
|
-
def has_attachment(options = {})
|
78
|
-
# this allows you to redefine the acts' options for each subclass, however
|
79
|
-
options[:min_size] ||= 1
|
80
|
-
options[:max_size] ||= 1.megabyte
|
81
|
-
options[:size] ||= (options[:min_size]..options[:max_size])
|
82
|
-
options[:thumbnails] ||= {}
|
83
|
-
options[:thumbnail_class] ||= self
|
84
|
-
options[:s3_access] ||= :public_read
|
85
|
-
options[:cloudfront] ||= false
|
86
|
-
options[:content_type] = [options[:content_type]].flatten.collect! { |t| t == :image ? Technoweenie::AttachmentFu.content_types : t }.flatten unless options[:content_type].nil?
|
87
|
-
|
88
|
-
unless options[:thumbnails].is_a?(Hash)
|
89
|
-
raise ArgumentError, ":thumbnails option should be a hash: e.g. :thumbnails => { :foo => '50x50' }"
|
90
|
-
end
|
91
|
-
|
92
|
-
extend ClassMethods unless (class << self; included_modules; end).include?(ClassMethods)
|
93
|
-
include InstanceMethods unless included_modules.include?(InstanceMethods)
|
94
|
-
|
95
|
-
parent_options = attachment_options || {}
|
96
|
-
# doing these shenanigans so that #attachment_options is available to processors and backends
|
97
|
-
self.attachment_options = options
|
98
|
-
|
99
|
-
attr_accessor :thumbnail_resize_options
|
100
|
-
|
101
|
-
attachment_options[:storage] ||= (attachment_options[:file_system_path] || attachment_options[:path_prefix]) ? :file_system : :db_file
|
102
|
-
attachment_options[:storage] ||= parent_options[:storage]
|
103
|
-
attachment_options[:path_prefix] ||= attachment_options[:file_system_path]
|
104
|
-
if attachment_options[:path_prefix].nil?
|
105
|
-
attachment_options[:path_prefix] = case attachment_options[:storage]
|
106
|
-
when :s3 then table_name
|
107
|
-
when :cloud_files then table_name
|
108
|
-
else File.join("public", table_name)
|
109
|
-
end
|
110
|
-
end
|
111
|
-
attachment_options[:path_prefix] = attachment_options[:path_prefix][1..-1] if options[:path_prefix].first == '/'
|
112
|
-
|
113
|
-
association_options = { :foreign_key => 'parent_id' }
|
114
|
-
if attachment_options[:association_options]
|
115
|
-
association_options.merge!(attachment_options[:association_options])
|
116
|
-
end
|
117
|
-
with_options(association_options) do |m|
|
118
|
-
m.has_many :thumbnails, :class_name => "::#{attachment_options[:thumbnail_class]}"
|
119
|
-
m.belongs_to :parent, :class_name => "::#{base_class}" unless options[:thumbnails].empty?
|
120
|
-
end
|
121
|
-
|
122
|
-
storage_mod = Technoweenie::AttachmentFu::Backends.const_get("#{options[:storage].to_s.classify}Backend")
|
123
|
-
include storage_mod unless included_modules.include?(storage_mod)
|
124
|
-
|
125
|
-
case attachment_options[:processor]
|
126
|
-
when :none, nil
|
127
|
-
processors = Technoweenie::AttachmentFu.default_processors.dup
|
128
|
-
begin
|
129
|
-
if processors.any?
|
130
|
-
attachment_options[:processor] = processors.first
|
131
|
-
processor_mod = Technoweenie::AttachmentFu::Processors.const_get("#{attachment_options[:processor].to_s.classify}Processor")
|
132
|
-
include processor_mod unless included_modules.include?(processor_mod)
|
133
|
-
end
|
134
|
-
rescue Object, Exception
|
135
|
-
raise unless load_related_exception?($!)
|
136
|
-
|
137
|
-
processors.shift
|
138
|
-
retry
|
139
|
-
end
|
140
|
-
else
|
141
|
-
begin
|
142
|
-
processor_mod = Technoweenie::AttachmentFu::Processors.const_get("#{attachment_options[:processor].to_s.classify}Processor")
|
143
|
-
include processor_mod unless included_modules.include?(processor_mod)
|
144
|
-
rescue Object, Exception
|
145
|
-
raise unless load_related_exception?($!)
|
146
|
-
|
147
|
-
puts "Problems loading #{options[:processor]}Processor: #{$!}"
|
148
|
-
end
|
149
|
-
end unless parent_options[:processor] # Don't let child override processor
|
150
|
-
end
|
151
|
-
|
152
|
-
def load_related_exception?(e) #:nodoc: implementation specific
|
153
|
-
case
|
154
|
-
when e.kind_of?(LoadError), e.kind_of?(MissingSourceFile), $!.class.name == "CompilationError"
|
155
|
-
# We can't rescue CompilationError directly, as it is part of the RubyInline library.
|
156
|
-
# We must instead rescue RuntimeError, and check the class' name.
|
157
|
-
true
|
158
|
-
else
|
159
|
-
false
|
160
|
-
end
|
161
|
-
end
|
162
|
-
private :load_related_exception?
|
163
|
-
end
|
164
|
-
|
165
|
-
module ClassMethods
|
166
|
-
delegate :content_types, :to => Technoweenie::AttachmentFu
|
167
|
-
|
168
|
-
# Performs common validations for attachment models.
|
169
|
-
def validates_as_attachment
|
170
|
-
validates_presence_of :size, :content_type, :filename
|
171
|
-
validate :attachment_attributes_valid?
|
172
|
-
end
|
173
|
-
|
174
|
-
# Returns true or false if the given content type is recognized as an image.
|
175
|
-
def image?(content_type)
|
176
|
-
content_types.include?(content_type)
|
177
|
-
end
|
178
|
-
|
179
|
-
def self.extended(base)
|
180
|
-
base.class_inheritable_accessor :attachment_options
|
181
|
-
base.before_destroy :destroy_thumbnails
|
182
|
-
base.before_validation :set_size_from_temp_path
|
183
|
-
base.after_save :after_process_attachment
|
184
|
-
base.after_destroy :destroy_file
|
185
|
-
base.after_validation :process_attachment
|
186
|
-
if defined?(::ActiveSupport::Callbacks)
|
187
|
-
base.define_callbacks :after_resize, :after_attachment_saved, :before_thumbnail_saved
|
188
|
-
end
|
189
|
-
end
|
190
|
-
|
191
|
-
unless defined?(::ActiveSupport::Callbacks)
|
192
|
-
# Callback after an image has been resized.
|
193
|
-
#
|
194
|
-
# class Foo < ActiveRecord::Base
|
195
|
-
# acts_as_attachment
|
196
|
-
# after_resize do |record, img|
|
197
|
-
# record.aspect_ratio = img.columns.to_f / img.rows.to_f
|
198
|
-
# end
|
199
|
-
# end
|
200
|
-
def after_resize(&block)
|
201
|
-
write_inheritable_array(:after_resize, [block])
|
202
|
-
end
|
203
|
-
|
204
|
-
# Callback after an attachment has been saved either to the file system or the DB.
|
205
|
-
# Only called if the file has been changed, not necessarily if the record is updated.
|
206
|
-
#
|
207
|
-
# class Foo < ActiveRecord::Base
|
208
|
-
# acts_as_attachment
|
209
|
-
# after_attachment_saved do |record|
|
210
|
-
# ...
|
211
|
-
# end
|
212
|
-
# end
|
213
|
-
def after_attachment_saved(&block)
|
214
|
-
write_inheritable_array(:after_attachment_saved, [block])
|
215
|
-
end
|
216
|
-
|
217
|
-
# Callback before a thumbnail is saved. Use this to pass any necessary extra attributes that may be required.
|
218
|
-
#
|
219
|
-
# class Foo < ActiveRecord::Base
|
220
|
-
# acts_as_attachment
|
221
|
-
# before_thumbnail_saved do |thumbnail|
|
222
|
-
# record = thumbnail.parent
|
223
|
-
# ...
|
224
|
-
# end
|
225
|
-
# end
|
226
|
-
def before_thumbnail_saved(&block)
|
227
|
-
write_inheritable_array(:before_thumbnail_saved, [block])
|
228
|
-
end
|
229
|
-
end
|
230
|
-
|
231
|
-
# Get the thumbnail class, which is the current attachment class by default.
|
232
|
-
# Configure this with the :thumbnail_class option.
|
233
|
-
def thumbnail_class
|
234
|
-
attachment_options[:thumbnail_class] = attachment_options[:thumbnail_class].constantize unless attachment_options[:thumbnail_class].is_a?(Class)
|
235
|
-
attachment_options[:thumbnail_class]
|
236
|
-
end
|
237
|
-
|
238
|
-
# Copies the given file path to a new tempfile, returning the closed tempfile.
|
239
|
-
def copy_to_temp_file(file, temp_base_name)
|
240
|
-
Tempfile.new(temp_base_name, Technoweenie::AttachmentFu.tempfile_path).tap do |tmp|
|
241
|
-
tmp.close
|
242
|
-
FileUtils.cp file, tmp.path
|
243
|
-
end
|
244
|
-
end
|
245
|
-
|
246
|
-
# Writes the given data to a new tempfile, returning the closed tempfile.
|
247
|
-
def write_to_temp_file(data, temp_base_name)
|
248
|
-
Tempfile.new(temp_base_name, Technoweenie::AttachmentFu.tempfile_path).tap do |tmp|
|
249
|
-
tmp.binmode
|
250
|
-
tmp.write data
|
251
|
-
tmp.close
|
252
|
-
end
|
253
|
-
end
|
254
|
-
end
|
255
|
-
|
256
|
-
module InstanceMethods
|
257
|
-
def self.included(base)
|
258
|
-
base.define_callbacks *[:after_resize, :after_attachment_saved, :before_thumbnail_saved] if base.respond_to?(:define_callbacks)
|
259
|
-
end
|
260
|
-
|
261
|
-
# Checks whether the attachment's content type is an image content type
|
262
|
-
def image?
|
263
|
-
self.class.image?(content_type)
|
264
|
-
end
|
265
|
-
|
266
|
-
# Returns true/false if an attachment is thumbnailable. A thumbnailable attachment has an image content type and the parent_id attribute.
|
267
|
-
def thumbnailable?
|
268
|
-
image? && respond_to?(:parent_id) && parent_id.nil?
|
269
|
-
end
|
270
|
-
|
271
|
-
# Returns the class used to create new thumbnails for this attachment.
|
272
|
-
def thumbnail_class
|
273
|
-
self.class.thumbnail_class
|
274
|
-
end
|
275
|
-
|
276
|
-
# Gets the thumbnail name for a filename. 'foo.jpg' becomes 'foo_thumbnail.jpg'
|
277
|
-
def thumbnail_name_for(thumbnail = nil)
|
278
|
-
return filename if thumbnail.blank?
|
279
|
-
ext = nil
|
280
|
-
basename = filename.gsub /\.\w+$/ do |s|
|
281
|
-
ext = s; ''
|
282
|
-
end
|
283
|
-
# ImageScience doesn't create gif thumbnails, only pngs
|
284
|
-
ext.sub!(/gif$/, 'png') if attachment_options[:processor] == "ImageScience"
|
285
|
-
"#{basename}_#{thumbnail}#{ext}"
|
286
|
-
end
|
287
|
-
|
288
|
-
# Creates or updates the thumbnail for the current attachment.
|
289
|
-
def create_or_update_thumbnail(temp_file, file_name_suffix, *size)
|
290
|
-
thumbnailable? || raise(ThumbnailError.new("Can't create a thumbnail if the content type is not an image or there is no parent_id column"))
|
291
|
-
find_or_initialize_thumbnail(file_name_suffix).tap do |thumb|
|
292
|
-
thumb.temp_paths.unshift temp_file
|
293
|
-
thumb.send(:'attributes=', {
|
294
|
-
:content_type => content_type,
|
295
|
-
:filename => thumbnail_name_for(file_name_suffix),
|
296
|
-
:thumbnail_resize_options => size
|
297
|
-
}, false)
|
298
|
-
callback_with_args :before_thumbnail_saved, thumb
|
299
|
-
thumb.save!
|
300
|
-
end
|
301
|
-
end
|
302
|
-
|
303
|
-
# Sets the content type.
|
304
|
-
def content_type=(new_type)
|
305
|
-
write_attribute :content_type, new_type.to_s.strip
|
306
|
-
end
|
307
|
-
|
308
|
-
# Sanitizes a filename.
|
309
|
-
def filename=(new_name)
|
310
|
-
write_attribute :filename, sanitize_filename(new_name)
|
311
|
-
end
|
312
|
-
|
313
|
-
# Returns the width/height in a suitable format for the image_tag helper: (100x100)
|
314
|
-
def image_size
|
315
|
-
[width.to_s, height.to_s] * 'x'
|
316
|
-
end
|
317
|
-
|
318
|
-
# Returns true if the attachment data will be written to the storage system on the next save
|
319
|
-
def save_attachment?
|
320
|
-
File.file?(temp_path.to_s)
|
321
|
-
end
|
322
|
-
|
323
|
-
# nil placeholder in case this field is used in a form.
|
324
|
-
def uploaded_data() nil; end
|
325
|
-
|
326
|
-
# This method handles the uploaded file object. If you set the field name to uploaded_data, you don't need
|
327
|
-
# any special code in your controller.
|
328
|
-
#
|
329
|
-
# <% form_for :attachment, :html => { :multipart => true } do |f| -%>
|
330
|
-
# <p><%= f.file_field :uploaded_data %></p>
|
331
|
-
# <p><%= submit_tag :Save %>
|
332
|
-
# <% end -%>
|
333
|
-
#
|
334
|
-
# @attachment = Attachment.create! params[:attachment]
|
335
|
-
#
|
336
|
-
# TODO: Allow it to work with Merb tempfiles too.
|
337
|
-
def uploaded_data=(file_data)
|
338
|
-
if file_data.respond_to?(:content_type)
|
339
|
-
return nil if file_data.size == 0
|
340
|
-
self.content_type = file_data.content_type
|
341
|
-
self.filename = file_data.original_filename if respond_to?(:filename)
|
342
|
-
else
|
343
|
-
return nil if file_data.blank? || file_data['size'] == 0
|
344
|
-
self.content_type = file_data['content_type']
|
345
|
-
self.filename = file_data['filename']
|
346
|
-
file_data = file_data['tempfile']
|
347
|
-
end
|
348
|
-
if file_data.is_a?(StringIO)
|
349
|
-
file_data.rewind
|
350
|
-
set_temp_data file_data.read
|
351
|
-
else
|
352
|
-
self.temp_paths.unshift file_data
|
353
|
-
end
|
354
|
-
end
|
355
|
-
|
356
|
-
# Gets the latest temp path from the collection of temp paths. While working with an attachment,
|
357
|
-
# multiple Tempfile objects may be created for various processing purposes (resizing, for example).
|
358
|
-
# An array of all the tempfile objects is stored so that the Tempfile instance is held on to until
|
359
|
-
# it's not needed anymore. The collection is cleared after saving the attachment.
|
360
|
-
def temp_path
|
361
|
-
p = temp_paths.first
|
362
|
-
p.respond_to?(:path) ? p.path : p.to_s
|
363
|
-
end
|
364
|
-
|
365
|
-
# Gets an array of the currently used temp paths. Defaults to a copy of #full_filename.
|
366
|
-
def temp_paths
|
367
|
-
@temp_paths ||= (new_record? || !respond_to?(:full_filename) || !File.exist?(full_filename) ?
|
368
|
-
[] : [copy_to_temp_file(full_filename)])
|
369
|
-
end
|
370
|
-
|
371
|
-
# Gets the data from the latest temp file. This will read the file into memory.
|
372
|
-
def temp_data
|
373
|
-
save_attachment? ? File.read(temp_path) : nil
|
374
|
-
end
|
375
|
-
|
376
|
-
# Writes the given data to a Tempfile and adds it to the collection of temp files.
|
377
|
-
def set_temp_data(data)
|
378
|
-
temp_paths.unshift write_to_temp_file data unless data.nil?
|
379
|
-
end
|
380
|
-
|
381
|
-
# Copies the given file to a randomly named Tempfile.
|
382
|
-
def copy_to_temp_file(file)
|
383
|
-
self.class.copy_to_temp_file file, random_tempfile_filename
|
384
|
-
end
|
385
|
-
|
386
|
-
# Writes the given file to a randomly named Tempfile.
|
387
|
-
def write_to_temp_file(data)
|
388
|
-
self.class.write_to_temp_file data, random_tempfile_filename
|
389
|
-
end
|
390
|
-
|
391
|
-
# Stub for creating a temp file from the attachment data. This should be defined in the backend module.
|
392
|
-
def create_temp_file() end
|
393
|
-
|
394
|
-
# Allows you to work with a processed representation (RMagick, ImageScience, etc) of the attachment in a block.
|
395
|
-
#
|
396
|
-
# @attachment.with_image do |img|
|
397
|
-
# self.data = img.thumbnail(100, 100).to_blob
|
398
|
-
# end
|
399
|
-
#
|
400
|
-
def with_image(&block)
|
401
|
-
self.class.with_image(temp_path, &block)
|
402
|
-
end
|
403
|
-
|
404
|
-
protected
|
405
|
-
# Generates a unique filename for a Tempfile.
|
406
|
-
def random_tempfile_filename
|
407
|
-
"#{rand Time.now.to_i}#{filename || 'attachment'}"
|
408
|
-
end
|
409
|
-
|
410
|
-
def sanitize_filename(filename)
|
411
|
-
return unless filename
|
412
|
-
filename.strip.tap do |name|
|
413
|
-
# NOTE: File.basename doesn't work right with Windows paths on Unix
|
414
|
-
# get only the filename, not the whole path
|
415
|
-
name.gsub! /^.*(\\|\/)/, ''
|
416
|
-
|
417
|
-
# Finally, replace all non alphanumeric, underscore or periods with underscore
|
418
|
-
name.gsub! /[^A-Za-z0-9\.\-]/, '_'
|
419
|
-
end
|
420
|
-
end
|
421
|
-
|
422
|
-
# before_validation callback.
|
423
|
-
def set_size_from_temp_path
|
424
|
-
self.size = File.size(temp_path) if save_attachment?
|
425
|
-
end
|
426
|
-
|
427
|
-
# validates the size and content_type attributes according to the current model's options
|
428
|
-
def attachment_attributes_valid?
|
429
|
-
[:size, :content_type].each do |attr_name|
|
430
|
-
enum = attachment_options[attr_name]
|
431
|
-
if Object.const_defined?(:I18n) # Rails >= 2.2
|
432
|
-
errors.add attr_name, I18n.translate("activerecord.errors.messages.inclusion", attr_name => enum) unless enum.nil? || enum.include?(send(attr_name))
|
433
|
-
else
|
434
|
-
errors.add attr_name, ActiveRecord::Errors.default_error_messages[:inclusion] unless enum.nil? || enum.include?(send(attr_name))
|
435
|
-
end
|
436
|
-
end
|
437
|
-
end
|
438
|
-
|
439
|
-
# Initializes a new thumbnail with the given suffix.
|
440
|
-
def find_or_initialize_thumbnail(file_name_suffix)
|
441
|
-
respond_to?(:parent_id) ?
|
442
|
-
thumbnail_class.find_or_initialize_by_thumbnail_and_parent_id(file_name_suffix.to_s, id) :
|
443
|
-
thumbnail_class.find_or_initialize_by_thumbnail(file_name_suffix.to_s)
|
444
|
-
end
|
445
|
-
|
446
|
-
# Stub for a #process_attachment method in a processor
|
447
|
-
def process_attachment
|
448
|
-
@saved_attachment = save_attachment?
|
449
|
-
end
|
450
|
-
|
451
|
-
# Cleans up after processing. Thumbnails are created, the attachment is stored to the backend, and the temp_paths are cleared.
|
452
|
-
def after_process_attachment
|
453
|
-
if @saved_attachment
|
454
|
-
if respond_to?(:process_attachment_with_processing) && thumbnailable? && !attachment_options[:thumbnails].blank? && parent_id.nil?
|
455
|
-
temp_file = temp_path || create_temp_file
|
456
|
-
attachment_options[:thumbnails].each { |suffix, size| create_or_update_thumbnail(temp_file, suffix, *size) }
|
457
|
-
end
|
458
|
-
save_to_storage
|
459
|
-
@temp_paths.clear
|
460
|
-
@saved_attachment = nil
|
461
|
-
callback :after_attachment_saved
|
462
|
-
end
|
463
|
-
end
|
464
|
-
|
465
|
-
# Resizes the given processed img object with either the attachment resize options or the thumbnail resize options.
|
466
|
-
def resize_image_or_thumbnail!(img)
|
467
|
-
if (!respond_to?(:parent_id) || parent_id.nil?) && attachment_options[:resize_to] # parent image
|
468
|
-
resize_image(img, attachment_options[:resize_to])
|
469
|
-
elsif thumbnail_resize_options # thumbnail
|
470
|
-
resize_image(img, thumbnail_resize_options)
|
471
|
-
end
|
472
|
-
end
|
473
|
-
|
474
|
-
# Yanked from ActiveRecord::Callbacks, modified so I can pass args to the callbacks besides self.
|
475
|
-
# Only accept blocks, however
|
476
|
-
if ActiveSupport.const_defined?(:Callbacks)
|
477
|
-
# Rails 2.1 and beyond!
|
478
|
-
def callback_with_args(method, arg = self)
|
479
|
-
notify(method)
|
480
|
-
|
481
|
-
result = run_callbacks(method, { :object => arg }) { |result, object| result == false }
|
482
|
-
|
483
|
-
if result != false && respond_to_without_attributes?(method)
|
484
|
-
result = send(method)
|
485
|
-
end
|
486
|
-
|
487
|
-
result
|
488
|
-
end
|
489
|
-
|
490
|
-
def run_callbacks(kind, options = {}, &block)
|
491
|
-
options.reverse_merge!( :object => self )
|
492
|
-
self.class.send("#{kind}_callback_chain").run(options[:object], options, &block)
|
493
|
-
end
|
494
|
-
else
|
495
|
-
# Rails 2.0
|
496
|
-
def callback_with_args(method, arg = self)
|
497
|
-
notify(method)
|
498
|
-
|
499
|
-
result = nil
|
500
|
-
callbacks_for(method).each do |callback|
|
501
|
-
result = callback.call(self, arg)
|
502
|
-
return false if result == false
|
503
|
-
end
|
504
|
-
result
|
505
|
-
end
|
506
|
-
end
|
507
|
-
|
508
|
-
# Removes the thumbnails for the attachment, if it has any
|
509
|
-
def destroy_thumbnails
|
510
|
-
self.thumbnails.each { |thumbnail| thumbnail.destroy } if thumbnailable?
|
511
|
-
end
|
512
|
-
end
|
513
|
-
end
|
514
|
-
end
|