radiantcms-couchrest_model 0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +544 -0
- data/CONTRIBUTORS +219 -0
- data/INSTALL +35 -0
- data/LICENSE +21 -0
- data/README +3 -0
- data/Rakefile +11 -0
- data/app/controllers/admin/extensions_controller.rb +11 -0
- data/app/controllers/admin/layouts_controller.rb +8 -0
- data/app/controllers/admin/page_parts_controller.rb +9 -0
- data/app/controllers/admin/pages_controller.rb +52 -0
- data/app/controllers/admin/preferences_controller.rb +46 -0
- data/app/controllers/admin/references_controller.rb +7 -0
- data/app/controllers/admin/resource_controller.rb +233 -0
- data/app/controllers/admin/snippets_controller.rb +8 -0
- data/app/controllers/admin/users_controller.rb +40 -0
- data/app/controllers/admin/welcome_controller.rb +43 -0
- data/app/controllers/application_controller.rb +88 -0
- data/app/controllers/site_controller.rb +77 -0
- data/app/helpers/admin/abstract_model_helper.rb +2 -0
- data/app/helpers/admin/export_helper.rb +2 -0
- data/app/helpers/admin/extensions_helper.rb +2 -0
- data/app/helpers/admin/layouts_helper.rb +21 -0
- data/app/helpers/admin/node_helper.rb +87 -0
- data/app/helpers/admin/pages_helper.rb +117 -0
- data/app/helpers/admin/preferences_helper.rb +3 -0
- data/app/helpers/admin/references_helper.rb +44 -0
- data/app/helpers/admin/regions_helper.rb +28 -0
- data/app/helpers/admin/snippets_helper.rb +41 -0
- data/app/helpers/admin/users_helper.rb +8 -0
- data/app/helpers/admin/welcome_helper.rb +2 -0
- data/app/helpers/application_helper.rb +249 -0
- data/app/helpers/site_helper.rb +2 -0
- data/app/models/file_not_found_page.rb +32 -0
- data/app/models/layout.rb +15 -0
- data/app/models/page.rb +353 -0
- data/app/models/page_context.rb +46 -0
- data/app/models/page_part.rb +21 -0
- data/app/models/radiant/config.rb +292 -0
- data/app/models/snippet.rb +19 -0
- data/app/models/standard_tags.rb +1321 -0
- data/app/models/status.rb +41 -0
- data/app/models/text_filter.rb +36 -0
- data/app/models/user.rb +97 -0
- data/app/models/user_action_observer.rb +13 -0
- data/app/views/admin/extensions/index.html.haml +41 -0
- data/app/views/admin/layouts/_form.html.haml +39 -0
- data/app/views/admin/layouts/edit.html.haml +9 -0
- data/app/views/admin/layouts/index.html.haml +36 -0
- data/app/views/admin/layouts/new.html.haml +7 -0
- data/app/views/admin/layouts/remove.html.haml +16 -0
- data/app/views/admin/page_parts/_page_part.html.haml +18 -0
- data/app/views/admin/pages/_fields.html.haml +61 -0
- data/app/views/admin/pages/_meta_row.html.haml +8 -0
- data/app/views/admin/pages/_node.html.haml +25 -0
- data/app/views/admin/pages/_popups.html.haml +27 -0
- data/app/views/admin/pages/children.html.haml +2 -0
- data/app/views/admin/pages/edit.html.haml +12 -0
- data/app/views/admin/pages/index.html.haml +26 -0
- data/app/views/admin/pages/new.html.haml +10 -0
- data/app/views/admin/pages/remove.html.haml +18 -0
- data/app/views/admin/preferences/edit.html.haml +44 -0
- data/app/views/admin/references/_tag_reference.haml +3 -0
- data/app/views/admin/references/filters.haml +6 -0
- data/app/views/admin/references/tags.haml +30 -0
- data/app/views/admin/snippets/_form.html.haml +33 -0
- data/app/views/admin/snippets/edit.html.haml +9 -0
- data/app/views/admin/snippets/index.html.haml +34 -0
- data/app/views/admin/snippets/new.html.haml +7 -0
- data/app/views/admin/snippets/remove.html.haml +17 -0
- data/app/views/admin/users/_avatar.html.haml +5 -0
- data/app/views/admin/users/_form.html.haml +53 -0
- data/app/views/admin/users/_password_fields.html.haml +18 -0
- data/app/views/admin/users/edit.html.haml +9 -0
- data/app/views/admin/users/index.html.haml +39 -0
- data/app/views/admin/users/new.html.haml +6 -0
- data/app/views/admin/users/remove.html.haml +16 -0
- data/app/views/admin/welcome/login.html.haml +23 -0
- data/app/views/layouts/application.html.haml +55 -0
- data/app/views/site/not_found.html.haml +3 -0
- data/bin/radiant +53 -0
- data/config/boot.rb +162 -0
- data/config/cucumber.yml +7 -0
- data/config/database.db2.yml +23 -0
- data/config/database.mysql.yml +28 -0
- data/config/database.postgresql.yml +28 -0
- data/config/database.sqlite.yml +19 -0
- data/config/database.sqlserver.yml +23 -0
- data/config/environment.rb +92 -0
- data/config/environments/cucumber.rb +29 -0
- data/config/environments/development.rb +17 -0
- data/config/environments/production.rb +24 -0
- data/config/environments/test.rb +38 -0
- data/config/initializers/haml.rb +2 -0
- data/config/locales/en.yml +227 -0
- data/config/locales/en_available_tags.yml +621 -0
- data/config/routes.rb +41 -0
- data/db/migrate/001_create_radiant_tables.rb +75 -0
- data/db/migrate/002_insert_initial_data.rb +12 -0
- data/db/migrate/003_rename_behavior_column.rb +9 -0
- data/db/migrate/004_rename_filter_column.rb +11 -0
- data/db/migrate/005_add_virtual_column_to_page.rb +9 -0
- data/db/migrate/006_integer_columns_to_boolean.rb +36 -0
- data/db/migrate/007_remove_virtual_column_from_page.rb +9 -0
- data/db/migrate/008_add_virtual_column_to_page_again.rb +9 -0
- data/db/migrate/009_add_content_type_field_to_layout.rb +9 -0
- data/db/migrate/010_merge_behaviors_and_pages.rb +57 -0
- data/db/migrate/011_rename_type_column_on_page_to_class_name.rb +9 -0
- data/db/migrate/012_create_extension_meta.rb +13 -0
- data/db/migrate/013_add_notes_field_to_user.rb +9 -0
- data/db/migrate/014_rename_config_default_parts_key.rb +17 -0
- data/db/migrate/015_add_optimistic_locking.rb +15 -0
- data/db/migrate/016_add_sessions.rb +16 -0
- data/db/migrate/017_rename_created_by_updated_by_columns.rb +15 -0
- data/db/migrate/018_add_description_and_keywords_to_pages.rb +11 -0
- data/db/migrate/019_add_salt_to_users.rb +11 -0
- data/db/migrate/020_add_session_info_to_users.rb +11 -0
- data/db/migrate/021_remove_session_expire_from_users.rb +9 -0
- data/db/migrate/20081203140407_add_indexes.rb +19 -0
- data/db/migrate/20090226140109_add_user_language.rb +9 -0
- data/db/migrate/20090929164633_rename_developer_role_to_designer.rb +9 -0
- data/db/migrate/20091003095744_change_user_language_to_locale.rb +9 -0
- data/db/schema.rb +119 -0
- data/features/admin/content_negotiation.feature +24 -0
- data/features/admin/layouts_management.feature +10 -0
- data/features/admin/pages_management.feature +78 -0
- data/features/admin/resource_pagination.feature +27 -0
- data/features/admin/snippets_management.feature +57 -0
- data/features/admin/user_permissions.feature +156 -0
- data/features/admin/user_preferences.feature +35 -0
- data/features/admin/users_management.feature +62 -0
- data/features/page_serving.feature +42 -0
- data/features/step_definitions/admin/admin_steps.rb +37 -0
- data/features/step_definitions/admin/content_negotiation_steps.rb +50 -0
- data/features/step_definitions/admin/pages_management_steps.rb +14 -0
- data/features/step_definitions/admin/pagination_steps.rb +44 -0
- data/features/step_definitions/admin/users_management_steps.rb +15 -0
- data/features/step_definitions/page_serving_steps.rb +46 -0
- data/features/step_definitions/web_steps.rb +273 -0
- data/features/support/dataset.rb +9 -0
- data/features/support/env.rb +58 -0
- data/features/support/paths.rb +61 -0
- data/lib/annotatable.rb +68 -0
- data/lib/autotest/discover.rb +3 -0
- data/lib/autotest/radiant_rails_rspec.rb +111 -0
- data/lib/generators/extension/USAGE +30 -0
- data/lib/generators/extension/extension_generator.rb +99 -0
- data/lib/generators/extension/templates/README +6 -0
- data/lib/generators/extension/templates/RSpecRakefile +117 -0
- data/lib/generators/extension/templates/Rakefile +25 -0
- data/lib/generators/extension/templates/cucumber.yml +1 -0
- data/lib/generators/extension/templates/cucumber_env.rb +16 -0
- data/lib/generators/extension/templates/cucumber_paths.rb +14 -0
- data/lib/generators/extension/templates/en.yml +3 -0
- data/lib/generators/extension/templates/extension.rb +23 -0
- data/lib/generators/extension/templates/functional_test.rb +15 -0
- data/lib/generators/extension/templates/migration.rb +9 -0
- data/lib/generators/extension/templates/routes.rb +5 -0
- data/lib/generators/extension/templates/spec.opts +6 -0
- data/lib/generators/extension/templates/spec_helper.rb +36 -0
- data/lib/generators/extension/templates/tasks.rake +55 -0
- data/lib/generators/extension/templates/test_helper.rb +26 -0
- data/lib/generators/extension_controller/USAGE +36 -0
- data/lib/generators/extension_controller/extension_controller_generator.rb +84 -0
- data/lib/generators/extension_controller/templates/controller.rb +10 -0
- data/lib/generators/extension_controller/templates/controller_spec.rb +23 -0
- data/lib/generators/extension_controller/templates/functional_test.rb +11 -0
- data/lib/generators/extension_controller/templates/helper.rb +2 -0
- data/lib/generators/extension_controller/templates/helper_spec.rb +11 -0
- data/lib/generators/extension_controller/templates/helper_test.rb +4 -0
- data/lib/generators/extension_controller/templates/view.html.erb +2 -0
- data/lib/generators/extension_controller/templates/view_spec.rb +12 -0
- data/lib/generators/extension_mailer/USAGE +17 -0
- data/lib/generators/extension_mailer/extension_mailer_generator.rb +68 -0
- data/lib/generators/extension_mailer/templates/fixture.erb +3 -0
- data/lib/generators/extension_mailer/templates/mailer.rb +15 -0
- data/lib/generators/extension_mailer/templates/unit_test.rb +21 -0
- data/lib/generators/extension_mailer/templates/view.erb +3 -0
- data/lib/generators/extension_migration/USAGE +34 -0
- data/lib/generators/extension_migration/extension_migration_generator.rb +25 -0
- data/lib/generators/extension_migration/templates/migration.rb +11 -0
- data/lib/generators/extension_model/USAGE +35 -0
- data/lib/generators/extension_model/extension_model_generator.rb +68 -0
- data/lib/generators/extension_model/templates/fixtures.yml +19 -0
- data/lib/generators/extension_model/templates/migration.rb +16 -0
- data/lib/generators/extension_model/templates/model.rb +2 -0
- data/lib/generators/extension_model/templates/model_spec.rb +11 -0
- data/lib/generators/extension_model/templates/unit_test.rb +8 -0
- data/lib/generators/generator_base_extension.rb +16 -0
- data/lib/generators/instance/instance_generator.rb +119 -0
- data/lib/generators/instance/templates/databases/db2.yml +40 -0
- data/lib/generators/instance/templates/databases/mysql.yml +47 -0
- data/lib/generators/instance/templates/databases/postgresql.yml +44 -0
- data/lib/generators/instance/templates/databases/sqlite3.yml +16 -0
- data/lib/generators/instance/templates/databases/sqlserver.yml +21 -0
- data/lib/generators/instance/templates/instance_boot.rb +161 -0
- data/lib/generators/instance/templates/instance_environment.rb +86 -0
- data/lib/generators/instance/templates/instance_generate +18 -0
- data/lib/generators/instance/templates/instance_rakefile +3 -0
- data/lib/generators/instance/templates/instance_routes.rb +1 -0
- data/lib/generators/language_extension/USAGE +27 -0
- data/lib/generators/language_extension/language_extension_generator.rb +49 -0
- data/lib/generators/language_extension/templates/README +3 -0
- data/lib/generators/language_extension/templates/RSpecRakefile +123 -0
- data/lib/generators/language_extension/templates/Rakefile +25 -0
- data/lib/generators/language_extension/templates/available_tags.yml +553 -0
- data/lib/generators/language_extension/templates/cucumber.yml +1 -0
- data/lib/generators/language_extension/templates/cucumber_env.rb +16 -0
- data/lib/generators/language_extension/templates/cucumber_paths.rb +14 -0
- data/lib/generators/language_extension/templates/extension.rb +8 -0
- data/lib/generators/language_extension/templates/functional_test.rb +15 -0
- data/lib/generators/language_extension/templates/lang.yml +181 -0
- data/lib/generators/language_extension/templates/spec.opts +6 -0
- data/lib/generators/language_extension/templates/spec_helper.rb +36 -0
- data/lib/generators/language_extension/templates/tasks.rake +28 -0
- data/lib/generators/language_extension/templates/test_helper.rb +26 -0
- data/lib/inheritable_class_attributes.rb +65 -0
- data/lib/local_time.rb +6 -0
- data/lib/login_system.rb +128 -0
- data/lib/method_observer.rb +50 -0
- data/lib/plugins/active_record_extensions/init.rb +1 -0
- data/lib/plugins/active_record_extensions/lib/active_record_extensions.rb +18 -0
- data/lib/plugins/extension_patches/init.rb +1 -0
- data/lib/plugins/extension_patches/lib/routing_extension.rb +31 -0
- data/lib/plugins/object_extensions/init.rb +1 -0
- data/lib/plugins/object_extensions/lib/object_extensions.rb +5 -0
- data/lib/plugins/response_cache_timeout/init.rb +3 -0
- data/lib/plugins/string_extensions/init.rb +1 -0
- data/lib/plugins/string_extensions/lib/string_extensions.rb +23 -0
- data/lib/plugins/symbol_extensions/init.rb +1 -0
- data/lib/plugins/symbol_extensions/lib/symbol_extensions.rb +5 -0
- data/lib/radiant.rb +19 -0
- data/lib/radiant/admin_ui.rb +257 -0
- data/lib/radiant/admin_ui/region_partials.rb +18 -0
- data/lib/radiant/admin_ui/region_set.rb +35 -0
- data/lib/radiant/available_locales.rb +31 -0
- data/lib/radiant/cache.rb +98 -0
- data/lib/radiant/extension.rb +132 -0
- data/lib/radiant/extension/script.rb +393 -0
- data/lib/radiant/extension_loader.rb +171 -0
- data/lib/radiant/extension_migrator.rb +86 -0
- data/lib/radiant/initializer.rb +296 -0
- data/lib/radiant/legacy_routes.rb +72 -0
- data/lib/radiant/pagination/controller.rb +34 -0
- data/lib/radiant/pagination/link_renderer.rb +34 -0
- data/lib/radiant/resource_responses.rb +115 -0
- data/lib/radiant/setup.rb +223 -0
- data/lib/radiant/taggable.rb +92 -0
- data/lib/simpleton.rb +21 -0
- data/lib/task_support.rb +64 -0
- data/lib/tasks/ci.rake +17 -0
- data/lib/tasks/cucumber.rake +47 -0
- data/lib/tasks/database.rake +31 -0
- data/lib/tasks/environments.rake +11 -0
- data/lib/tasks/extensions.rake +97 -0
- data/lib/tasks/framework.rake +213 -0
- data/lib/tasks/instance.rake +23 -0
- data/lib/tasks/prototype.rake +34 -0
- data/lib/tasks/radiant_config.rake +18 -0
- data/lib/tasks/release.rake +130 -0
- data/lib/tasks/rspec.rake +221 -0
- data/lib/tasks/translate.rake +59 -0
- data/lib/tasks/undefine.rake +28 -0
- data/lib/translation_support.rb +54 -0
- data/log/.keep +0 -0
- data/public/.htaccess +40 -0
- data/public/404.html +8 -0
- data/public/500.html +8 -0
- data/public/dispatch.cgi +10 -0
- data/public/dispatch.fcgi +24 -0
- data/public/dispatch.rb +10 -0
- data/public/favicon.ico +0 -0
- data/public/images/admin/add_tab.png +0 -0
- data/public/images/admin/avatar_32x32.png +0 -0
- data/public/images/admin/avatar_96x96.png +0 -0
- data/public/images/admin/brown_bottom_line.gif +0 -0
- data/public/images/admin/buttons_background.png +0 -0
- data/public/images/admin/calendar_down.gif +0 -0
- data/public/images/admin/collapse.png +0 -0
- data/public/images/admin/draft_page.png +0 -0
- data/public/images/admin/expand.png +0 -0
- data/public/images/admin/layout.png +0 -0
- data/public/images/admin/login_shadow.png +0 -0
- data/public/images/admin/metadata_toggle.png +0 -0
- data/public/images/admin/minus.png +0 -0
- data/public/images/admin/minus_disabled.png +0 -0
- data/public/images/admin/minus_grey.png +0 -0
- data/public/images/admin/navigation_background.gif +0 -0
- data/public/images/admin/navigation_secondary_background.png +0 -0
- data/public/images/admin/navigation_secondary_separator.gif +0 -0
- data/public/images/admin/navigation_shadow.png +0 -0
- data/public/images/admin/navigation_tabs.png +0 -0
- data/public/images/admin/new_homepage.png +0 -0
- data/public/images/admin/new_layout.png +0 -0
- data/public/images/admin/new_snippet.png +0 -0
- data/public/images/admin/new_user.png +0 -0
- data/public/images/admin/page.png +0 -0
- data/public/images/admin/plus.png +0 -0
- data/public/images/admin/plus_grey.png +0 -0
- data/public/images/admin/popup_border_background.png +0 -0
- data/public/images/admin/popup_border_bottom_left.png +0 -0
- data/public/images/admin/popup_border_bottom_right.png +0 -0
- data/public/images/admin/popup_border_top_left.png +0 -0
- data/public/images/admin/popup_border_top_right.png +0 -0
- data/public/images/admin/shadow.png +0 -0
- data/public/images/admin/shadow_grey.png +0 -0
- data/public/images/admin/single_form_shadow.png +0 -0
- data/public/images/admin/snippet.png +0 -0
- data/public/images/admin/spacer.gif +0 -0
- data/public/images/admin/spinner.gif +0 -0
- data/public/images/admin/status_background.png +0 -0
- data/public/images/admin/status_bottom_left.png +0 -0
- data/public/images/admin/status_bottom_right.png +0 -0
- data/public/images/admin/status_spinner.gif +0 -0
- data/public/images/admin/status_top_left.png +0 -0
- data/public/images/admin/status_top_right.png +0 -0
- data/public/images/admin/tab_close.png +0 -0
- data/public/images/admin/vertical_tan_gradient.png +0 -0
- data/public/images/admin/view_site.png +0 -0
- data/public/images/admin/virtual_page.png +0 -0
- data/public/images/radiant-badge-color.png +0 -0
- data/public/javascripts/admin/application.js +85 -0
- data/public/javascripts/admin/codearea.js +165 -0
- data/public/javascripts/admin/controls.js +965 -0
- data/public/javascripts/admin/cookie.js +80 -0
- data/public/javascripts/admin/dateinput.js +402 -0
- data/public/javascripts/admin/dragdrop.js +974 -0
- data/public/javascripts/admin/effects.js +1122 -0
- data/public/javascripts/admin/lowpro.js +340 -0
- data/public/javascripts/admin/overrides.js +1 -0
- data/public/javascripts/admin/pagestatus.js +17 -0
- data/public/javascripts/admin/popup.js +216 -0
- data/public/javascripts/admin/prototype.js +4874 -0
- data/public/javascripts/admin/ruledtable.js +13 -0
- data/public/javascripts/admin/shortcuts.js +27 -0
- data/public/javascripts/admin/sitemap.js +149 -0
- data/public/javascripts/admin/status.js +233 -0
- data/public/javascripts/admin/tabcontrol.js +122 -0
- data/public/javascripts/admin/toggle.js +430 -0
- data/public/javascripts/admin/utility.js +53 -0
- data/public/javascripts/admin/validationerror.js +18 -0
- data/public/robots.txt +1 -0
- data/public/stylesheets/admin/main.css +1 -0
- data/public/stylesheets/admin/overrides.css +0 -0
- data/public/stylesheets/sass/admin/main.sass +31 -0
- data/public/stylesheets/sass/admin/modules/_grid.sass +56 -0
- data/public/stylesheets/sass/admin/modules/_links.sass +18 -0
- data/public/stylesheets/sass/admin/modules/_opacity.sass +7 -0
- data/public/stylesheets/sass/admin/modules/_rounded.sass +41 -0
- data/public/stylesheets/sass/admin/modules/_shadow.sass +12 -0
- data/public/stylesheets/sass/admin/overrides.sass +2 -0
- data/public/stylesheets/sass/admin/partials/_actions.sass +98 -0
- data/public/stylesheets/sass/admin/partials/_avatars.sass +10 -0
- data/public/stylesheets/sass/admin/partials/_base.sass +7 -0
- data/public/stylesheets/sass/admin/partials/_content.sass +27 -0
- data/public/stylesheets/sass/admin/partials/_dateinput.sass +62 -0
- data/public/stylesheets/sass/admin/partials/_deprecated.sass +26 -0
- data/public/stylesheets/sass/admin/partials/_footer.sass +12 -0
- data/public/stylesheets/sass/admin/partials/_forms.sass +310 -0
- data/public/stylesheets/sass/admin/partials/_header.sass +112 -0
- data/public/stylesheets/sass/admin/partials/_layout.sass +10 -0
- data/public/stylesheets/sass/admin/partials/_messages.sass +10 -0
- data/public/stylesheets/sass/admin/partials/_popup.sass +117 -0
- data/public/stylesheets/sass/admin/partials/_reset.sass +36 -0
- data/public/stylesheets/sass/admin/partials/_tabcontrol.sass +71 -0
- data/public/stylesheets/sass/admin/partials/_toolbar.sass +31 -0
- data/public/stylesheets/sass/admin/partials/_validations.sass +21 -0
- data/script/about +3 -0
- data/script/autospec +5 -0
- data/script/breakpointer +3 -0
- data/script/console +3 -0
- data/script/cucumber +10 -0
- data/script/dbconsole +3 -0
- data/script/destroy +3 -0
- data/script/extension +5 -0
- data/script/generate +4 -0
- data/script/performance/benchmarker +3 -0
- data/script/performance/profiler +3 -0
- data/script/performance/request +3 -0
- data/script/plugin +3 -0
- data/script/process/inspector +3 -0
- data/script/process/reaper +3 -0
- data/script/process/spawner +3 -0
- data/script/process/spinner +3 -0
- data/script/runner +3 -0
- data/script/server +3 -0
- data/script/spec +5 -0
- data/script/spec_server +116 -0
- data/script/version +5 -0
- data/spec/controllers/admin/extensions_controller_spec.rb +36 -0
- data/spec/controllers/admin/layouts_controller_spec.rb +102 -0
- data/spec/controllers/admin/pages_controller_spec.rb +289 -0
- data/spec/controllers/admin/paginated_controller_spec.rb +26 -0
- data/spec/controllers/admin/preferences_controller_spec.rb +57 -0
- data/spec/controllers/admin/references_controller_spec.rb +15 -0
- data/spec/controllers/admin/snippets_controller_spec.rb +110 -0
- data/spec/controllers/admin/users_controller_spec.rb +101 -0
- data/spec/controllers/admin/welcome_controller_spec.rb +98 -0
- data/spec/controllers/application_controller_spec.rb +88 -0
- data/spec/controllers/site_controller_spec.rb +182 -0
- data/spec/datasets/config_dataset.rb +12 -0
- data/spec/datasets/file_not_found_dataset.rb +22 -0
- data/spec/datasets/home_page_dataset.rb +62 -0
- data/spec/datasets/layouts_dataset.rb +58 -0
- data/spec/datasets/markup_pages_dataset.rb +13 -0
- data/spec/datasets/pages_dataset.rb +65 -0
- data/spec/datasets/pages_with_layouts_dataset.rb +10 -0
- data/spec/datasets/snippets_dataset.rb +38 -0
- data/spec/datasets/users_and_pages_dataset.rb +9 -0
- data/spec/datasets/users_dataset.rb +56 -0
- data/spec/fixtures/example_extension/README +3 -0
- data/spec/fixtures/example_extension/Rakefile +120 -0
- data/spec/fixtures/example_extension/example_extension.rb +21 -0
- data/spec/fixtures/example_extension/lib/tasks/example_extension_tasks.rake +28 -0
- data/spec/fixtures/example_extension/spec/spec.opts +6 -0
- data/spec/fixtures/example_extension/spec/spec_helper.rb +36 -0
- data/spec/fixtures/radiant_config.yml +10 -0
- data/spec/fixtures/sample.txt +1 -0
- data/spec/generators/extension_controller_generator_spec.rb +95 -0
- data/spec/generators/extension_generator_spec.rb +235 -0
- data/spec/generators/extension_generators_spec_helper.rb +166 -0
- data/spec/generators/extension_mailer_generator_spec.rb +60 -0
- data/spec/generators/extension_migration_generator_spec.rb +21 -0
- data/spec/generators/extension_model_generator_spec.rb +61 -0
- data/spec/generators/instance_generator_spec.rb +159 -0
- data/spec/helpers/admin/abstract_model_helper_spec.rb +4 -0
- data/spec/helpers/admin/export_helper_spec.rb +4 -0
- data/spec/helpers/admin/extensions_helper_spec.rb +4 -0
- data/spec/helpers/admin/layouts_helper_spec.rb +4 -0
- data/spec/helpers/admin/node_helper_spec.rb +106 -0
- data/spec/helpers/admin/pages_helper_spec.rb +63 -0
- data/spec/helpers/admin/preferences_helper_spec.rb +11 -0
- data/spec/helpers/admin/references_helper_spec.rb +124 -0
- data/spec/helpers/admin/regions_helper_spec.rb +47 -0
- data/spec/helpers/admin/snippets_helper_spec.rb +4 -0
- data/spec/helpers/admin/users_helper_spec.rb +11 -0
- data/spec/helpers/admin/welcome_helper_spec.rb +4 -0
- data/spec/helpers/application_helper_spec.rb +263 -0
- data/spec/helpers/site_helper_spec.rb +4 -0
- data/spec/lib/annotatable_spec.rb +86 -0
- data/spec/lib/autotest_spec.rb +81 -0
- data/spec/lib/core_ext/string_ext_spec.rb +11 -0
- data/spec/lib/inheritable_class_attributes_spec.rb +90 -0
- data/spec/lib/login_system_spec.rb +195 -0
- data/spec/lib/method_observer_spec.rb +48 -0
- data/spec/lib/radiant/admin_ui/nav_tabs_spec.rb +139 -0
- data/spec/lib/radiant/admin_ui/region_partials_spec.rb +35 -0
- data/spec/lib/radiant/admin_ui/region_set_spec.rb +61 -0
- data/spec/lib/radiant/admin_ui_spec.rb +121 -0
- data/spec/lib/radiant/available_locales_spec.rb +13 -0
- data/spec/lib/radiant/extension/script_spec.rb +473 -0
- data/spec/lib/radiant/extension_loader_spec.rb +248 -0
- data/spec/lib/radiant/extension_migrator_spec.rb +46 -0
- data/spec/lib/radiant/extension_spec.rb +132 -0
- data/spec/lib/radiant/initializer_spec.rb +168 -0
- data/spec/lib/radiant/legacy_routes_spec.rb +14 -0
- data/spec/lib/radiant/resource_responses_spec.rb +207 -0
- data/spec/lib/radiant/taggable_spec.rb +188 -0
- data/spec/lib/radiant_spec.rb +30 -0
- data/spec/lib/simpleton_spec.rb +45 -0
- data/spec/lib/task_support_spec.rb +93 -0
- data/spec/lib/translation_support_spec.rb +16 -0
- data/spec/matchers/autotest_matchers.rb +47 -0
- data/spec/matchers/generator_matchers.rb +235 -0
- data/spec/matchers/login_system_matcher.rb +79 -0
- data/spec/matchers/render_form_errors_matcher.rb +62 -0
- data/spec/matchers/render_matcher.rb +133 -0
- data/spec/models/file_not_found_page_spec.rb +35 -0
- data/spec/models/layout_spec.rb +29 -0
- data/spec/models/page_context_spec.rb +66 -0
- data/spec/models/page_part_spec.rb +67 -0
- data/spec/models/page_spec.rb +687 -0
- data/spec/models/radiant/config_spec.rb +149 -0
- data/spec/models/snippet_spec.rb +41 -0
- data/spec/models/standard_tags_spec.rb +1146 -0
- data/spec/models/status_spec.rb +64 -0
- data/spec/models/text_filter_spec.rb +44 -0
- data/spec/models/user_action_observer_spec.rb +34 -0
- data/spec/models/user_spec.rb +209 -0
- data/spec/rcov.opts +2 -0
- data/spec/spec.opts +4 -0
- data/spec/spec_helper.rb +74 -0
- data/test/fixtures/extensions/basic/app/controllers/basic_extension_controller.rb +7 -0
- data/test/fixtures/extensions/basic/app/metal/basic_metal.rb +9 -0
- data/test/fixtures/extensions/basic/app/models/basic_extension_mailer.rb +4 -0
- data/test/fixtures/extensions/basic/app/models/basic_extension_model.rb +2 -0
- data/test/fixtures/extensions/basic/app/views/basic_extension/index.html.erb +1 -0
- data/test/fixtures/extensions/basic/app/views/basic_extension/override.html.erb +1 -0
- data/test/fixtures/extensions/basic/app/views/basic_extension_mailer/message.text.html.erb +1 -0
- data/test/fixtures/extensions/basic/basic_extension.rb +11 -0
- data/test/fixtures/extensions/basic/db/migrate/200812131420_create_initial_schema.rb +10 -0
- data/test/fixtures/extensions/basic/db/migrate/200812131421_modify_initial_schema.rb +10 -0
- data/test/fixtures/extensions/basic/lib/new_module.rb +2 -0
- data/test/fixtures/extensions/basic/vendor/plugins/multiple/init.rb +1 -0
- data/test/fixtures/extensions/basic/vendor/plugins/multiple/lib/multiple.rb +2 -0
- data/test/fixtures/extensions/basic/vendor/plugins/plugin_normal/init.rb +1 -0
- data/test/fixtures/extensions/basic/vendor/plugins/plugin_normal/lib/normal_plugin.rb +2 -0
- data/test/fixtures/extensions/load_order_blue/load_order_blue_extension.rb +8 -0
- data/test/fixtures/extensions/load_order_green/load_order_green_extension.rb +8 -0
- data/test/fixtures/extensions/load_order_red/load_order_red_extension.rb +8 -0
- data/test/fixtures/extensions/locale/config/locales/en-uk.yml +3 -0
- data/test/fixtures/extensions/locale/config/locales/en.yml +3 -0
- data/test/fixtures/extensions/locale/locale_extension.rb +5 -0
- data/test/fixtures/extensions/overriding/app/metal/basic_metal.rb +9 -0
- data/test/fixtures/extensions/overriding/app/views/basic_extension/override.html.erb +1 -0
- data/test/fixtures/extensions/overriding/overriding_extension.rb +8 -0
- data/test/fixtures/extensions/overriding/vendor/plugins/multiple/init.rb +1 -0
- data/test/fixtures/extensions/overriding/vendor/plugins/multiple/lib/multiple.rb +2 -0
- data/test/fixtures/extensions/routed/config/routes.rb +1 -0
- data/test/fixtures/extensions/routed/routed_extension.rb +2 -0
- data/test/fixtures/extensions/special_characters/db/migrate/001_create_initial_schema.rb +10 -0
- data/test/fixtures/extensions/special_characters/special_characters_extension.rb +3 -0
- data/test/fixtures/extensions/upgrading/db/migrate/01_first.rb +7 -0
- data/test/fixtures/extensions/upgrading/db/migrate/02_second.rb +7 -0
- data/test/fixtures/extensions/upgrading/db/migrate/03_pending.rb +7 -0
- data/test/fixtures/extensions/upgrading/db/migrate/04_dont_run.rb +7 -0
- data/test/fixtures/extensions/upgrading/upgrading_extension.rb +2 -0
- data/test/fixtures/gems/misnamed_ext-0.0.0/misnamed_ext_extension.rb +2 -0
- data/test/fixtures/gems/radiant-gem_ext-extension-0.0.0/gem_ext_extension.rb +2 -0
- data/test/fixtures/gems/radiant-gem_ext-extension-0.0.0/lib/gem_ext.rb +3 -0
- data/test/helpers/page_test_helper.rb +79 -0
- data/test/helpers/render_test_helper.rb +60 -0
- data/test/helpers/user_test_helper.rb +35 -0
- data/test/helpers/validation_test_helper.rb +42 -0
- data/test/test_helper.rb +64 -0
- data/vendor/highline/CHANGELOG +222 -0
- data/vendor/highline/INSTALL +35 -0
- data/vendor/highline/LICENSE +7 -0
- data/vendor/highline/README +63 -0
- data/vendor/highline/Rakefile +82 -0
- data/vendor/highline/TODO +6 -0
- data/vendor/highline/examples/ansi_colors.rb +38 -0
- data/vendor/highline/examples/asking_for_arrays.rb +18 -0
- data/vendor/highline/examples/basic_usage.rb +75 -0
- data/vendor/highline/examples/color_scheme.rb +32 -0
- data/vendor/highline/examples/limit.rb +12 -0
- data/vendor/highline/examples/menus.rb +65 -0
- data/vendor/highline/examples/overwrite.rb +19 -0
- data/vendor/highline/examples/page_and_wrap.rb +322 -0
- data/vendor/highline/examples/password.rb +7 -0
- data/vendor/highline/examples/trapping_eof.rb +22 -0
- data/vendor/highline/examples/using_readline.rb +17 -0
- data/vendor/highline/lib/highline.rb +758 -0
- data/vendor/highline/lib/highline/color_scheme.rb +120 -0
- data/vendor/highline/lib/highline/compatibility.rb +17 -0
- data/vendor/highline/lib/highline/import.rb +43 -0
- data/vendor/highline/lib/highline/menu.rb +395 -0
- data/vendor/highline/lib/highline/question.rb +463 -0
- data/vendor/highline/lib/highline/system_extensions.rb +193 -0
- data/vendor/highline/setup.rb +1360 -0
- data/vendor/highline/test/tc_color_scheme.rb +56 -0
- data/vendor/highline/test/tc_highline.rb +823 -0
- data/vendor/highline/test/tc_import.rb +54 -0
- data/vendor/highline/test/tc_menu.rb +429 -0
- data/vendor/highline/test/ts_all.rb +15 -0
- data/vendor/plugins/acts_as_tree/README +26 -0
- data/vendor/plugins/acts_as_tree/Rakefile +22 -0
- data/vendor/plugins/acts_as_tree/init.rb +1 -0
- data/vendor/plugins/acts_as_tree/lib/active_record/acts/tree.rb +96 -0
- data/vendor/plugins/acts_as_tree/test/abstract_unit.rb +0 -0
- data/vendor/plugins/acts_as_tree/test/acts_as_tree_test.rb +219 -0
- 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/dataset/CHANGELOG +59 -0
- data/vendor/plugins/dataset/LICENSE +19 -0
- data/vendor/plugins/dataset/README +111 -0
- data/vendor/plugins/dataset/Rakefile +31 -0
- data/vendor/plugins/dataset/TODO +15 -0
- data/vendor/plugins/dataset/VERSION.yml +4 -0
- data/vendor/plugins/dataset/dataset.gemspec +33 -0
- data/vendor/plugins/dataset/lib/dataset.rb +128 -0
- data/vendor/plugins/dataset/lib/dataset/base.rb +157 -0
- data/vendor/plugins/dataset/lib/dataset/collection.rb +19 -0
- data/vendor/plugins/dataset/lib/dataset/database/base.rb +30 -0
- data/vendor/plugins/dataset/lib/dataset/database/mysql.rb +34 -0
- data/vendor/plugins/dataset/lib/dataset/database/postgresql.rb +34 -0
- data/vendor/plugins/dataset/lib/dataset/database/sqlite3.rb +32 -0
- data/vendor/plugins/dataset/lib/dataset/extensions/cucumber.rb +21 -0
- data/vendor/plugins/dataset/lib/dataset/extensions/rspec.rb +21 -0
- data/vendor/plugins/dataset/lib/dataset/extensions/test_unit.rb +60 -0
- data/vendor/plugins/dataset/lib/dataset/instance_methods.rb +10 -0
- data/vendor/plugins/dataset/lib/dataset/load.rb +37 -0
- data/vendor/plugins/dataset/lib/dataset/record/fixture.rb +73 -0
- data/vendor/plugins/dataset/lib/dataset/record/meta.rb +66 -0
- data/vendor/plugins/dataset/lib/dataset/record/model.rb +50 -0
- data/vendor/plugins/dataset/lib/dataset/resolver.rb +110 -0
- data/vendor/plugins/dataset/lib/dataset/session.rb +35 -0
- data/vendor/plugins/dataset/lib/dataset/session_binding.rb +307 -0
- data/vendor/plugins/dataset/lib/dataset/version.rb +9 -0
- data/vendor/plugins/dataset/spec/dataset/cucumber_spec.rb +54 -0
- data/vendor/plugins/dataset/spec/dataset/database/base_spec.rb +21 -0
- data/vendor/plugins/dataset/spec/dataset/record/meta_spec.rb +14 -0
- data/vendor/plugins/dataset/spec/dataset/resolver_spec.rb +110 -0
- data/vendor/plugins/dataset/spec/dataset/rspec_spec.rb +133 -0
- data/vendor/plugins/dataset/spec/dataset/session_binding_spec.rb +198 -0
- data/vendor/plugins/dataset/spec/dataset/session_spec.rb +299 -0
- data/vendor/plugins/dataset/spec/dataset/test_unit_spec.rb +210 -0
- data/vendor/plugins/dataset/spec/fixtures/datasets/constant_not_defined.rb +0 -0
- data/vendor/plugins/dataset/spec/fixtures/datasets/ending_with_dataset.rb +2 -0
- data/vendor/plugins/dataset/spec/fixtures/datasets/exact_name.rb +2 -0
- data/vendor/plugins/dataset/spec/fixtures/datasets/not_a_dataset_base.rb +2 -0
- data/vendor/plugins/dataset/spec/fixtures/more_datasets/in_another_directory.rb +2 -0
- data/vendor/plugins/dataset/spec/models.rb +18 -0
- data/vendor/plugins/dataset/spec/schema.rb +26 -0
- data/vendor/plugins/dataset/spec/spec.opts +7 -0
- data/vendor/plugins/dataset/spec/spec_helper.rb +47 -0
- data/vendor/plugins/dataset/spec/stubs/mini_rails.rb +18 -0
- data/vendor/plugins/dataset/spec/stubs/test_help.rb +1 -0
- data/vendor/plugins/dataset/tasks/dataset.rake +19 -0
- data/vendor/plugins/haml/CONTRIBUTING +4 -0
- data/vendor/plugins/haml/MIT-LICENSE +20 -0
- data/vendor/plugins/haml/README.md +298 -0
- data/vendor/plugins/haml/Rakefile +436 -0
- data/vendor/plugins/haml/TODO +53 -0
- data/vendor/plugins/haml/VERSION +1 -0
- data/vendor/plugins/haml/VERSION_NAME +1 -0
- data/vendor/plugins/haml/bin/css2sass +13 -0
- data/vendor/plugins/haml/bin/haml +9 -0
- data/vendor/plugins/haml/bin/html2haml +7 -0
- data/vendor/plugins/haml/bin/sass +8 -0
- data/vendor/plugins/haml/doc-src/FAQ.md +187 -0
- data/vendor/plugins/haml/doc-src/HAML_CHANGELOG.md +1091 -0
- data/vendor/plugins/haml/doc-src/HAML_REFERENCE.md +1344 -0
- data/vendor/plugins/haml/doc-src/SASS_CHANGELOG.md +1914 -0
- data/vendor/plugins/haml/doc-src/SASS_REFERENCE.md +1680 -0
- data/vendor/plugins/haml/extra/haml-mode.el +753 -0
- data/vendor/plugins/haml/extra/sass-mode.el +207 -0
- data/vendor/plugins/haml/extra/update_watch.rb +13 -0
- data/vendor/plugins/haml/haml.gemspec +35 -0
- data/vendor/plugins/haml/init.rb +18 -0
- data/vendor/plugins/haml/lib/haml.rb +44 -0
- data/vendor/plugins/haml/lib/haml/buffer.rb +320 -0
- data/vendor/plugins/haml/lib/haml/engine.rb +308 -0
- data/vendor/plugins/haml/lib/haml/error.rb +22 -0
- data/vendor/plugins/haml/lib/haml/exec.rb +862 -0
- data/vendor/plugins/haml/lib/haml/filters.rb +371 -0
- data/vendor/plugins/haml/lib/haml/helpers.rb +605 -0
- data/vendor/plugins/haml/lib/haml/helpers/action_view_extensions.rb +57 -0
- data/vendor/plugins/haml/lib/haml/helpers/action_view_mods.rb +244 -0
- data/vendor/plugins/haml/lib/haml/helpers/xss_mods.rb +165 -0
- data/vendor/plugins/haml/lib/haml/html.rb +428 -0
- data/vendor/plugins/haml/lib/haml/precompiler.rb +1104 -0
- data/vendor/plugins/haml/lib/haml/railtie.rb +21 -0
- data/vendor/plugins/haml/lib/haml/shared.rb +78 -0
- data/vendor/plugins/haml/lib/haml/template.rb +97 -0
- data/vendor/plugins/haml/lib/haml/template/patch.rb +58 -0
- data/vendor/plugins/haml/lib/haml/template/plugin.rb +122 -0
- data/vendor/plugins/haml/lib/haml/util.rb +809 -0
- data/vendor/plugins/haml/lib/haml/version.rb +102 -0
- data/vendor/plugins/haml/lib/sass.rb +29 -0
- data/vendor/plugins/haml/lib/sass/css.rb +294 -0
- data/vendor/plugins/haml/lib/sass/engine.rb +720 -0
- data/vendor/plugins/haml/lib/sass/environment.rb +143 -0
- data/vendor/plugins/haml/lib/sass/error.rb +198 -0
- data/vendor/plugins/haml/lib/sass/files.rb +160 -0
- data/vendor/plugins/haml/lib/sass/plugin.rb +276 -0
- data/vendor/plugins/haml/lib/sass/plugin/merb.rb +37 -0
- data/vendor/plugins/haml/lib/sass/plugin/rack.rb +47 -0
- data/vendor/plugins/haml/lib/sass/plugin/rails.rb +32 -0
- data/vendor/plugins/haml/lib/sass/repl.rb +58 -0
- data/vendor/plugins/haml/lib/sass/script.rb +63 -0
- data/vendor/plugins/haml/lib/sass/script/bool.rb +18 -0
- data/vendor/plugins/haml/lib/sass/script/color.rb +491 -0
- data/vendor/plugins/haml/lib/sass/script/funcall.rb +77 -0
- data/vendor/plugins/haml/lib/sass/script/functions.rb +861 -0
- data/vendor/plugins/haml/lib/sass/script/lexer.rb +337 -0
- data/vendor/plugins/haml/lib/sass/script/literal.rb +236 -0
- data/vendor/plugins/haml/lib/sass/script/node.rb +112 -0
- data/vendor/plugins/haml/lib/sass/script/number.rb +423 -0
- data/vendor/plugins/haml/lib/sass/script/operation.rb +95 -0
- data/vendor/plugins/haml/lib/sass/script/parser.rb +401 -0
- data/vendor/plugins/haml/lib/sass/script/string.rb +67 -0
- data/vendor/plugins/haml/lib/sass/script/unary_operation.rb +57 -0
- data/vendor/plugins/haml/lib/sass/script/variable.rb +48 -0
- data/vendor/plugins/haml/lib/sass/tree/comment_node.rb +128 -0
- data/vendor/plugins/haml/lib/sass/tree/debug_node.rb +36 -0
- data/vendor/plugins/haml/lib/sass/tree/directive_node.rb +75 -0
- data/vendor/plugins/haml/lib/sass/tree/for_node.rb +67 -0
- data/vendor/plugins/haml/lib/sass/tree/if_node.rb +81 -0
- data/vendor/plugins/haml/lib/sass/tree/import_node.rb +102 -0
- data/vendor/plugins/haml/lib/sass/tree/mixin_def_node.rb +60 -0
- data/vendor/plugins/haml/lib/sass/tree/mixin_node.rb +123 -0
- data/vendor/plugins/haml/lib/sass/tree/node.rb +465 -0
- data/vendor/plugins/haml/lib/sass/tree/prop_node.rb +220 -0
- data/vendor/plugins/haml/lib/sass/tree/rule_node.rb +273 -0
- data/vendor/plugins/haml/lib/sass/tree/variable_node.rb +39 -0
- data/vendor/plugins/haml/lib/sass/tree/while_node.rb +48 -0
- data/vendor/plugins/haml/rails/init.rb +1 -0
- data/vendor/plugins/haml/test/benchmark.rb +99 -0
- data/vendor/plugins/haml/test/haml/engine_test.rb +1805 -0
- data/vendor/plugins/haml/test/haml/helper_test.rb +450 -0
- data/vendor/plugins/haml/test/haml/html2haml_test.rb +336 -0
- data/vendor/plugins/haml/test/haml/markaby/standard.mab +52 -0
- data/vendor/plugins/haml/test/haml/mocks/article.rb +6 -0
- data/vendor/plugins/haml/test/haml/results/content_for_layout.xhtml +12 -0
- data/vendor/plugins/haml/test/haml/results/eval_suppressed.xhtml +9 -0
- data/vendor/plugins/haml/test/haml/results/filters.xhtml +62 -0
- data/vendor/plugins/haml/test/haml/results/helpers.xhtml +70 -0
- data/vendor/plugins/haml/test/haml/results/helpful.xhtml +10 -0
- data/vendor/plugins/haml/test/haml/results/just_stuff.xhtml +70 -0
- data/vendor/plugins/haml/test/haml/results/list.xhtml +12 -0
- data/vendor/plugins/haml/test/haml/results/nuke_inner_whitespace.xhtml +40 -0
- data/vendor/plugins/haml/test/haml/results/nuke_outer_whitespace.xhtml +148 -0
- data/vendor/plugins/haml/test/haml/results/original_engine.xhtml +20 -0
- data/vendor/plugins/haml/test/haml/results/partial_layout.xhtml +5 -0
- data/vendor/plugins/haml/test/haml/results/partials.xhtml +21 -0
- data/vendor/plugins/haml/test/haml/results/render_layout.xhtml +3 -0
- data/vendor/plugins/haml/test/haml/results/silent_script.xhtml +74 -0
- data/vendor/plugins/haml/test/haml/results/standard.xhtml +162 -0
- data/vendor/plugins/haml/test/haml/results/tag_parsing.xhtml +23 -0
- data/vendor/plugins/haml/test/haml/results/very_basic.xhtml +5 -0
- data/vendor/plugins/haml/test/haml/results/whitespace_handling.xhtml +89 -0
- data/vendor/plugins/haml/test/haml/template_test.rb +417 -0
- data/vendor/plugins/haml/test/haml/templates/_av_partial_1.haml +9 -0
- data/vendor/plugins/haml/test/haml/templates/_av_partial_1_ugly.haml +9 -0
- data/vendor/plugins/haml/test/haml/templates/_av_partial_2.haml +5 -0
- data/vendor/plugins/haml/test/haml/templates/_av_partial_2_ugly.haml +5 -0
- data/vendor/plugins/haml/test/haml/templates/_layout.erb +3 -0
- data/vendor/plugins/haml/test/haml/templates/_layout_for_partial.haml +3 -0
- data/vendor/plugins/haml/test/haml/templates/_partial.haml +8 -0
- data/vendor/plugins/haml/test/haml/templates/_text_area.haml +3 -0
- data/vendor/plugins/haml/test/haml/templates/action_view.haml +47 -0
- data/vendor/plugins/haml/test/haml/templates/action_view_ugly.haml +47 -0
- data/vendor/plugins/haml/test/haml/templates/breakage.haml +8 -0
- data/vendor/plugins/haml/test/haml/templates/content_for_layout.haml +8 -0
- data/vendor/plugins/haml/test/haml/templates/eval_suppressed.haml +11 -0
- data/vendor/plugins/haml/test/haml/templates/filters.haml +66 -0
- data/vendor/plugins/haml/test/haml/templates/helpers.haml +55 -0
- data/vendor/plugins/haml/test/haml/templates/helpful.haml +11 -0
- data/vendor/plugins/haml/test/haml/templates/just_stuff.haml +85 -0
- data/vendor/plugins/haml/test/haml/templates/list.haml +12 -0
- data/vendor/plugins/haml/test/haml/templates/nuke_inner_whitespace.haml +32 -0
- data/vendor/plugins/haml/test/haml/templates/nuke_outer_whitespace.haml +144 -0
- data/vendor/plugins/haml/test/haml/templates/original_engine.haml +17 -0
- data/vendor/plugins/haml/test/haml/templates/partial_layout.haml +7 -0
- data/vendor/plugins/haml/test/haml/templates/partialize.haml +1 -0
- data/vendor/plugins/haml/test/haml/templates/partials.haml +12 -0
- data/vendor/plugins/haml/test/haml/templates/render_layout.haml +2 -0
- data/vendor/plugins/haml/test/haml/templates/silent_script.haml +40 -0
- data/vendor/plugins/haml/test/haml/templates/standard.haml +42 -0
- data/vendor/plugins/haml/test/haml/templates/standard_ugly.haml +42 -0
- data/vendor/plugins/haml/test/haml/templates/tag_parsing.haml +21 -0
- data/vendor/plugins/haml/test/haml/templates/very_basic.haml +4 -0
- data/vendor/plugins/haml/test/haml/templates/whitespace_handling.haml +87 -0
- data/vendor/plugins/haml/test/haml/util_test.rb +268 -0
- data/vendor/plugins/haml/test/linked_rails.rb +42 -0
- data/vendor/plugins/haml/test/sass/css2sass_test.rb +364 -0
- data/vendor/plugins/haml/test/sass/engine_test.rb +2263 -0
- data/vendor/plugins/haml/test/sass/functions_test.rb +556 -0
- data/vendor/plugins/haml/test/sass/more_results/more1.css +9 -0
- data/vendor/plugins/haml/test/sass/more_results/more1_with_line_comments.css +26 -0
- data/vendor/plugins/haml/test/sass/more_results/more_import.css +29 -0
- data/vendor/plugins/haml/test/sass/more_templates/_more_partial.sass +2 -0
- data/vendor/plugins/haml/test/sass/more_templates/more1.sass +23 -0
- data/vendor/plugins/haml/test/sass/more_templates/more_import.sass +11 -0
- data/vendor/plugins/haml/test/sass/plugin_test.rb +433 -0
- data/vendor/plugins/haml/test/sass/results/alt.css +4 -0
- data/vendor/plugins/haml/test/sass/results/basic.css +9 -0
- data/vendor/plugins/haml/test/sass/results/compact.css +5 -0
- data/vendor/plugins/haml/test/sass/results/complex.css +86 -0
- data/vendor/plugins/haml/test/sass/results/compressed.css +1 -0
- data/vendor/plugins/haml/test/sass/results/expanded.css +19 -0
- data/vendor/plugins/haml/test/sass/results/import.css +31 -0
- data/vendor/plugins/haml/test/sass/results/line_numbers.css +49 -0
- data/vendor/plugins/haml/test/sass/results/mixins.css +95 -0
- data/vendor/plugins/haml/test/sass/results/multiline.css +24 -0
- data/vendor/plugins/haml/test/sass/results/nested.css +22 -0
- data/vendor/plugins/haml/test/sass/results/parent_ref.css +13 -0
- data/vendor/plugins/haml/test/sass/results/script.css +16 -0
- data/vendor/plugins/haml/test/sass/results/subdir/nested_subdir/nested_subdir.css +1 -0
- data/vendor/plugins/haml/test/sass/results/subdir/subdir.css +3 -0
- data/vendor/plugins/haml/test/sass/results/units.css +11 -0
- data/vendor/plugins/haml/test/sass/script_test.rb +470 -0
- data/vendor/plugins/haml/test/sass/templates/_partial.sass +2 -0
- data/vendor/plugins/haml/test/sass/templates/alt.sass +16 -0
- data/vendor/plugins/haml/test/sass/templates/basic.sass +23 -0
- data/vendor/plugins/haml/test/sass/templates/bork2.sass +2 -0
- data/vendor/plugins/haml/test/sass/templates/compact.sass +17 -0
- data/vendor/plugins/haml/test/sass/templates/complex.sass +305 -0
- data/vendor/plugins/haml/test/sass/templates/compressed.sass +15 -0
- data/vendor/plugins/haml/test/sass/templates/expanded.sass +17 -0
- data/vendor/plugins/haml/test/sass/templates/import.sass +12 -0
- data/vendor/plugins/haml/test/sass/templates/importee.sass +19 -0
- data/vendor/plugins/haml/test/sass/templates/line_numbers.sass +13 -0
- data/vendor/plugins/haml/test/sass/templates/mixins.sass +76 -0
- data/vendor/plugins/haml/test/sass/templates/multiline.sass +20 -0
- data/vendor/plugins/haml/test/sass/templates/nested.sass +25 -0
- data/vendor/plugins/haml/test/sass/templates/parent_ref.sass +25 -0
- data/vendor/plugins/haml/test/sass/templates/script.sass +101 -0
- data/vendor/plugins/haml/test/sass/templates/subdir/nested_subdir/_nested_partial.sass +2 -0
- data/vendor/plugins/haml/test/sass/templates/subdir/nested_subdir/nested_subdir.sass +3 -0
- data/vendor/plugins/haml/test/sass/templates/subdir/subdir.sass +6 -0
- data/vendor/plugins/haml/test/sass/templates/units.sass +11 -0
- data/vendor/plugins/haml/test/test_helper.rb +98 -0
- data/vendor/plugins/haml/yard/default/fulldoc/html/css/common.sass +26 -0
- data/vendor/plugins/haml/yard/default/layout/html/footer.erb +12 -0
- data/vendor/plugins/haml/yard/inherited_hash.rb +41 -0
- data/vendor/rack-cache/CHANGES +128 -0
- data/vendor/rack-cache/COPYING +18 -0
- data/vendor/rack-cache/README +110 -0
- data/vendor/rack-cache/Rakefile +137 -0
- data/vendor/rack-cache/TODO +31 -0
- data/vendor/rack-cache/doc/configuration.markdown +86 -0
- data/vendor/rack-cache/doc/faq.markdown +141 -0
- data/vendor/rack-cache/doc/index.markdown +118 -0
- data/vendor/rack-cache/doc/layout.html.erb +34 -0
- data/vendor/rack-cache/doc/license.markdown +24 -0
- data/vendor/rack-cache/doc/rack-cache.css +362 -0
- data/vendor/rack-cache/doc/server.ru +34 -0
- data/vendor/rack-cache/doc/storage.markdown +162 -0
- data/vendor/rack-cache/example/sinatra/app.rb +25 -0
- data/vendor/rack-cache/example/sinatra/views/index.erb +44 -0
- data/vendor/rack-cache/lib/rack/cache.rb +45 -0
- data/vendor/rack-cache/lib/rack/cache/cachecontrol.rb +193 -0
- data/vendor/rack-cache/lib/rack/cache/context.rb +233 -0
- data/vendor/rack-cache/lib/rack/cache/entitystore.rb +253 -0
- data/vendor/rack-cache/lib/rack/cache/key.rb +52 -0
- data/vendor/rack-cache/lib/rack/cache/metastore.rb +328 -0
- data/vendor/rack-cache/lib/rack/cache/options.rb +150 -0
- data/vendor/rack-cache/lib/rack/cache/request.rb +33 -0
- data/vendor/rack-cache/lib/rack/cache/response.rb +267 -0
- data/vendor/rack-cache/lib/rack/cache/storage.rb +49 -0
- data/vendor/rack-cache/rack-cache.gemspec +69 -0
- data/vendor/rack-cache/test/cache_test.rb +38 -0
- data/vendor/rack-cache/test/cachecontrol_test.rb +139 -0
- data/vendor/rack-cache/test/context_test.rb +727 -0
- data/vendor/rack-cache/test/entitystore_test.rb +189 -0
- data/vendor/rack-cache/test/key_test.rb +50 -0
- data/vendor/rack-cache/test/metastore_test.rb +263 -0
- data/vendor/rack-cache/test/options_test.rb +78 -0
- data/vendor/rack-cache/test/pony.jpg +0 -0
- data/vendor/rack-cache/test/request_test.rb +19 -0
- data/vendor/rack-cache/test/response_test.rb +178 -0
- data/vendor/rack-cache/test/spec_setup.rb +202 -0
- data/vendor/rack-cache/test/storage_test.rb +94 -0
- data/vendor/radius/CHANGELOG +33 -0
- data/vendor/radius/LICENSE +19 -0
- data/vendor/radius/QUICKSTART.rdoc +322 -0
- data/vendor/radius/README.rdoc +102 -0
- data/vendor/radius/Rakefile +8 -0
- data/vendor/radius/VERSION +1 -0
- data/vendor/radius/lib/radius.rb +10 -0
- data/vendor/radius/lib/radius/context.rb +139 -0
- data/vendor/radius/lib/radius/delegating_open_struct.rb +31 -0
- data/vendor/radius/lib/radius/error.rb +43 -0
- data/vendor/radius/lib/radius/parse_tag.rb +24 -0
- data/vendor/radius/lib/radius/parser.rb +65 -0
- data/vendor/radius/lib/radius/parser/scan.rb +678 -0
- data/vendor/radius/lib/radius/parser/scan.rl +124 -0
- data/vendor/radius/lib/radius/tag_binding.rb +71 -0
- data/vendor/radius/lib/radius/tag_definitions.rb +78 -0
- data/vendor/radius/lib/radius/utility.rb +30 -0
- data/vendor/radius/lib/radius/version.rb +8 -0
- data/vendor/radius/radius.gemspec +71 -0
- data/vendor/radius/tasks/jeweler.rake +21 -0
- data/vendor/radius/tasks/rdoc.rake +13 -0
- data/vendor/radius/tasks/scan.rake +27 -0
- data/vendor/radius/tasks/test.rake +7 -0
- data/vendor/radius/test/context_test.rb +61 -0
- data/vendor/radius/test/parser_test.rb +295 -0
- data/vendor/radius/test/quickstart_test.rb +153 -0
- data/vendor/radius/test/test_helper.rb +29 -0
- data/vendor/rails/actionmailer/CHANGELOG +388 -0
- data/vendor/rails/actionmailer/MIT-LICENSE +21 -0
- data/vendor/rails/actionmailer/README +149 -0
- data/vendor/rails/actionmailer/Rakefile +99 -0
- data/vendor/rails/actionmailer/install.rb +30 -0
- data/vendor/rails/actionmailer/lib/action_mailer.rb +62 -0
- data/vendor/rails/actionmailer/lib/action_mailer/adv_attr_accessor.rb +30 -0
- data/vendor/rails/actionmailer/lib/action_mailer/base.rb +706 -0
- data/vendor/rails/actionmailer/lib/action_mailer/helpers.rb +113 -0
- data/vendor/rails/actionmailer/lib/action_mailer/mail_helper.rb +17 -0
- data/vendor/rails/actionmailer/lib/action_mailer/part.rb +107 -0
- data/vendor/rails/actionmailer/lib/action_mailer/part_container.rb +55 -0
- data/vendor/rails/actionmailer/lib/action_mailer/quoting.rb +62 -0
- data/vendor/rails/actionmailer/lib/action_mailer/test_case.rb +64 -0
- data/vendor/rails/actionmailer/lib/action_mailer/test_helper.rb +68 -0
- data/vendor/rails/actionmailer/lib/action_mailer/utils.rb +7 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/text-format-0.6.3/text/format.rb +1466 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/text_format.rb +10 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail.rb +6 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/Makefile +18 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/address.rb +392 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/attachments.rb +65 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/base64.rb +46 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/compat.rb +41 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/config.rb +67 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/core_extensions.rb +63 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/encode.rb +590 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/header.rb +962 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/index.rb +9 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/interface.rb +1162 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/loader.rb +3 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/mail.rb +578 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/mailbox.rb +496 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/main.rb +6 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/mbox.rb +3 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/net.rb +250 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/obsolete.rb +132 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/parser.rb +1060 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/parser.y +416 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/port.rb +379 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/quoting.rb +164 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/require_arch.rb +58 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/scanner.rb +49 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/scanner_r.rb +262 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/stringio.rb +280 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/utils.rb +362 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/COPYING +504 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/README +12 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet.rb +67 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/big5freq.rb +927 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/big5prober.rb +42 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/chardistribution.rb +238 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/charsetgroupprober.rb +112 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/charsetprober.rb +75 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/codingstatemachine.rb +64 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/constants.rb +42 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/escprober.rb +89 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/escsm.rb +244 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/eucjpprober.rb +88 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/euckrfreq.rb +596 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/euckrprober.rb +42 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/euctwfreq.rb +430 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/euctwprober.rb +42 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/gb2312freq.rb +474 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/gb2312prober.rb +42 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/hebrewprober.rb +289 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/jisfreq.rb +570 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/jpcntx.rb +229 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/langbulgarianmodel.rb +229 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/langcyrillicmodel.rb +330 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/langgreekmodel.rb +227 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/langhebrewmodel.rb +202 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/langhungarianmodel.rb +226 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/langthaimodel.rb +201 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/latin1prober.rb +147 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/mbcharsetprober.rb +89 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/mbcsgroupprober.rb +45 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/mbcssm.rb +542 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/sbcharsetprober.rb +124 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/sbcsgroupprober.rb +56 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/sjisprober.rb +88 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/universaldetector.rb +168 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/utf8prober.rb +87 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/version.rb +39 -0
- data/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail.rb +17 -0
- data/vendor/rails/actionmailer/lib/action_mailer/version.rb +9 -0
- data/vendor/rails/actionmailer/lib/actionmailer.rb +2 -0
- data/vendor/rails/actionmailer/test/abstract_unit.rb +62 -0
- data/vendor/rails/actionmailer/test/asset_host_test.rb +54 -0
- data/vendor/rails/actionmailer/test/delivery_method_test.rb +51 -0
- data/vendor/rails/actionmailer/test/fixtures/asset_host_mailer/email_with_asset.html.erb +1 -0
- data/vendor/rails/actionmailer/test/fixtures/auto_layout_mailer/hello.html.erb +1 -0
- data/vendor/rails/actionmailer/test/fixtures/auto_layout_mailer/multipart.text.html.erb +1 -0
- data/vendor/rails/actionmailer/test/fixtures/auto_layout_mailer/multipart.text.plain.erb +1 -0
- data/vendor/rails/actionmailer/test/fixtures/explicit_layout_mailer/logout.html.erb +1 -0
- data/vendor/rails/actionmailer/test/fixtures/explicit_layout_mailer/signup.html.erb +1 -0
- data/vendor/rails/actionmailer/test/fixtures/first_mailer/share.erb +1 -0
- data/vendor/rails/actionmailer/test/fixtures/helper_mailer/use_example_helper.erb +1 -0
- data/vendor/rails/actionmailer/test/fixtures/helper_mailer/use_helper.erb +1 -0
- data/vendor/rails/actionmailer/test/fixtures/helper_mailer/use_helper_method.erb +1 -0
- data/vendor/rails/actionmailer/test/fixtures/helper_mailer/use_mail_helper.erb +5 -0
- data/vendor/rails/actionmailer/test/fixtures/helpers/example_helper.rb +5 -0
- data/vendor/rails/actionmailer/test/fixtures/layouts/auto_layout_mailer.html.erb +1 -0
- data/vendor/rails/actionmailer/test/fixtures/layouts/auto_layout_mailer.text.erb +1 -0
- data/vendor/rails/actionmailer/test/fixtures/layouts/spam.html.erb +1 -0
- data/vendor/rails/actionmailer/test/fixtures/path.with.dots/funky_path_mailer/multipart_with_template_path_with_dots.erb +1 -0
- data/vendor/rails/actionmailer/test/fixtures/raw_email +14 -0
- data/vendor/rails/actionmailer/test/fixtures/raw_email10 +20 -0
- data/vendor/rails/actionmailer/test/fixtures/raw_email12 +32 -0
- data/vendor/rails/actionmailer/test/fixtures/raw_email13 +29 -0
- data/vendor/rails/actionmailer/test/fixtures/raw_email2 +114 -0
- data/vendor/rails/actionmailer/test/fixtures/raw_email3 +70 -0
- data/vendor/rails/actionmailer/test/fixtures/raw_email4 +59 -0
- data/vendor/rails/actionmailer/test/fixtures/raw_email5 +19 -0
- data/vendor/rails/actionmailer/test/fixtures/raw_email6 +20 -0
- data/vendor/rails/actionmailer/test/fixtures/raw_email7 +66 -0
- data/vendor/rails/actionmailer/test/fixtures/raw_email8 +47 -0
- data/vendor/rails/actionmailer/test/fixtures/raw_email9 +28 -0
- data/vendor/rails/actionmailer/test/fixtures/raw_email_quoted_with_0d0a +14 -0
- data/vendor/rails/actionmailer/test/fixtures/raw_email_with_invalid_characters_in_content_type +104 -0
- data/vendor/rails/actionmailer/test/fixtures/raw_email_with_nested_attachment +100 -0
- data/vendor/rails/actionmailer/test/fixtures/raw_email_with_partially_quoted_subject +14 -0
- data/vendor/rails/actionmailer/test/fixtures/second_mailer/share.erb +1 -0
- data/vendor/rails/actionmailer/test/fixtures/templates/signed_up.erb +3 -0
- data/vendor/rails/actionmailer/test/fixtures/test_mailer/_subtemplate.text.plain.erb +1 -0
- data/vendor/rails/actionmailer/test/fixtures/test_mailer/body_ivar.erb +2 -0
- data/vendor/rails/actionmailer/test/fixtures/test_mailer/custom_templating_extension.text.html.haml +6 -0
- data/vendor/rails/actionmailer/test/fixtures/test_mailer/custom_templating_extension.text.plain.haml +6 -0
- data/vendor/rails/actionmailer/test/fixtures/test_mailer/implicitly_multipart_example.ignored.erb +1 -0
- data/vendor/rails/actionmailer/test/fixtures/test_mailer/implicitly_multipart_example.text.html.erb +10 -0
- data/vendor/rails/actionmailer/test/fixtures/test_mailer/implicitly_multipart_example.text.plain.erb +2 -0
- data/vendor/rails/actionmailer/test/fixtures/test_mailer/implicitly_multipart_example.text.yaml.erb +1 -0
- data/vendor/rails/actionmailer/test/fixtures/test_mailer/included_subtemplate.text.plain.erb +1 -0
- data/vendor/rails/actionmailer/test/fixtures/test_mailer/rxml_template.builder +2 -0
- data/vendor/rails/actionmailer/test/fixtures/test_mailer/rxml_template.rxml +2 -0
- data/vendor/rails/actionmailer/test/fixtures/test_mailer/signed_up.html.erb +3 -0
- data/vendor/rails/actionmailer/test/fixtures/test_mailer/signed_up_with_url.erb +5 -0
- data/vendor/rails/actionmailer/test/mail_helper_test.rb +95 -0
- data/vendor/rails/actionmailer/test/mail_layout_test.rb +123 -0
- data/vendor/rails/actionmailer/test/mail_render_test.rb +116 -0
- data/vendor/rails/actionmailer/test/mail_service_test.rb +1145 -0
- data/vendor/rails/actionmailer/test/quoting_test.rb +105 -0
- data/vendor/rails/actionmailer/test/test_helper_test.rb +129 -0
- data/vendor/rails/actionmailer/test/tmail_test.rb +22 -0
- data/vendor/rails/actionmailer/test/url_test.rb +76 -0
- data/vendor/rails/actionpack/CHANGELOG +5239 -0
- data/vendor/rails/actionpack/MIT-LICENSE +21 -0
- data/vendor/rails/actionpack/README +409 -0
- data/vendor/rails/actionpack/RUNNING_UNIT_TESTS +24 -0
- data/vendor/rails/actionpack/Rakefile +160 -0
- data/vendor/rails/actionpack/install.rb +30 -0
- data/vendor/rails/actionpack/lib/action_controller.rb +113 -0
- data/vendor/rails/actionpack/lib/action_controller/assertions/dom_assertions.rb +55 -0
- data/vendor/rails/actionpack/lib/action_controller/assertions/model_assertions.rb +21 -0
- data/vendor/rails/actionpack/lib/action_controller/assertions/response_assertions.rb +169 -0
- data/vendor/rails/actionpack/lib/action_controller/assertions/routing_assertions.rb +146 -0
- data/vendor/rails/actionpack/lib/action_controller/assertions/selector_assertions.rb +638 -0
- data/vendor/rails/actionpack/lib/action_controller/assertions/tag_assertions.rb +127 -0
- data/vendor/rails/actionpack/lib/action_controller/base.rb +1423 -0
- data/vendor/rails/actionpack/lib/action_controller/benchmarking.rb +107 -0
- data/vendor/rails/actionpack/lib/action_controller/caching.rb +71 -0
- data/vendor/rails/actionpack/lib/action_controller/caching/actions.rb +177 -0
- data/vendor/rails/actionpack/lib/action_controller/caching/fragments.rb +120 -0
- data/vendor/rails/actionpack/lib/action_controller/caching/pages.rb +152 -0
- data/vendor/rails/actionpack/lib/action_controller/caching/sweeper.rb +45 -0
- data/vendor/rails/actionpack/lib/action_controller/caching/sweeping.rb +55 -0
- data/vendor/rails/actionpack/lib/action_controller/cgi_ext.rb +15 -0
- data/vendor/rails/actionpack/lib/action_controller/cgi_ext/cookie.rb +112 -0
- data/vendor/rails/actionpack/lib/action_controller/cgi_ext/query_extension.rb +22 -0
- data/vendor/rails/actionpack/lib/action_controller/cgi_ext/stdinput.rb +24 -0
- data/vendor/rails/actionpack/lib/action_controller/cgi_process.rb +77 -0
- data/vendor/rails/actionpack/lib/action_controller/cookies.rb +191 -0
- data/vendor/rails/actionpack/lib/action_controller/dispatcher.rb +133 -0
- data/vendor/rails/actionpack/lib/action_controller/failsafe.rb +87 -0
- data/vendor/rails/actionpack/lib/action_controller/filters.rb +680 -0
- data/vendor/rails/actionpack/lib/action_controller/flash.rb +213 -0
- data/vendor/rails/actionpack/lib/action_controller/headers.rb +33 -0
- data/vendor/rails/actionpack/lib/action_controller/helpers.rb +225 -0
- data/vendor/rails/actionpack/lib/action_controller/http_authentication.rb +309 -0
- data/vendor/rails/actionpack/lib/action_controller/integration.rb +696 -0
- data/vendor/rails/actionpack/lib/action_controller/layout.rb +286 -0
- data/vendor/rails/actionpack/lib/action_controller/middleware_stack.rb +119 -0
- data/vendor/rails/actionpack/lib/action_controller/middlewares.rb +14 -0
- data/vendor/rails/actionpack/lib/action_controller/mime_responds.rb +193 -0
- data/vendor/rails/actionpack/lib/action_controller/mime_type.rb +212 -0
- data/vendor/rails/actionpack/lib/action_controller/mime_types.rb +21 -0
- data/vendor/rails/actionpack/lib/action_controller/params_parser.rb +77 -0
- data/vendor/rails/actionpack/lib/action_controller/performance_test.rb +15 -0
- data/vendor/rails/actionpack/lib/action_controller/polymorphic_routes.rb +189 -0
- data/vendor/rails/actionpack/lib/action_controller/rack_lint_patch.rb +36 -0
- data/vendor/rails/actionpack/lib/action_controller/record_identifier.rb +104 -0
- data/vendor/rails/actionpack/lib/action_controller/reloader.rb +54 -0
- data/vendor/rails/actionpack/lib/action_controller/request.rb +493 -0
- data/vendor/rails/actionpack/lib/action_controller/request_forgery_protection.rb +113 -0
- data/vendor/rails/actionpack/lib/action_controller/rescue.rb +183 -0
- data/vendor/rails/actionpack/lib/action_controller/resources.rb +682 -0
- data/vendor/rails/actionpack/lib/action_controller/response.rb +236 -0
- data/vendor/rails/actionpack/lib/action_controller/routing.rb +388 -0
- data/vendor/rails/actionpack/lib/action_controller/routing/builder.rb +197 -0
- data/vendor/rails/actionpack/lib/action_controller/routing/optimisations.rb +130 -0
- data/vendor/rails/actionpack/lib/action_controller/routing/recognition_optimisation.rb +167 -0
- data/vendor/rails/actionpack/lib/action_controller/routing/route.rb +265 -0
- data/vendor/rails/actionpack/lib/action_controller/routing/route_set.rb +503 -0
- data/vendor/rails/actionpack/lib/action_controller/routing/routing_ext.rb +49 -0
- data/vendor/rails/actionpack/lib/action_controller/routing/segments.rb +343 -0
- data/vendor/rails/actionpack/lib/action_controller/session/abstract_store.rb +187 -0
- data/vendor/rails/actionpack/lib/action_controller/session/cookie_store.rb +227 -0
- data/vendor/rails/actionpack/lib/action_controller/session/mem_cache_store.rb +51 -0
- data/vendor/rails/actionpack/lib/action_controller/session_management.rb +54 -0
- data/vendor/rails/actionpack/lib/action_controller/status_codes.rb +88 -0
- data/vendor/rails/actionpack/lib/action_controller/streaming.rb +181 -0
- data/vendor/rails/actionpack/lib/action_controller/string_coercion.rb +29 -0
- data/vendor/rails/actionpack/lib/action_controller/templates/rescues/_request_and_response.erb +24 -0
- data/vendor/rails/actionpack/lib/action_controller/templates/rescues/_trace.erb +26 -0
- data/vendor/rails/actionpack/lib/action_controller/templates/rescues/diagnostics.erb +11 -0
- data/vendor/rails/actionpack/lib/action_controller/templates/rescues/layout.erb +29 -0
- data/vendor/rails/actionpack/lib/action_controller/templates/rescues/missing_template.erb +2 -0
- data/vendor/rails/actionpack/lib/action_controller/templates/rescues/routing_error.erb +10 -0
- data/vendor/rails/actionpack/lib/action_controller/templates/rescues/template_error.erb +21 -0
- data/vendor/rails/actionpack/lib/action_controller/templates/rescues/unknown_action.erb +2 -0
- data/vendor/rails/actionpack/lib/action_controller/test_case.rb +209 -0
- data/vendor/rails/actionpack/lib/action_controller/test_process.rb +580 -0
- data/vendor/rails/actionpack/lib/action_controller/translation.rb +13 -0
- data/vendor/rails/actionpack/lib/action_controller/uploaded_file.rb +44 -0
- data/vendor/rails/actionpack/lib/action_controller/url_rewriter.rb +219 -0
- data/vendor/rails/actionpack/lib/action_controller/vendor/html-scanner.rb +16 -0
- data/vendor/rails/actionpack/lib/action_controller/vendor/html-scanner/html/document.rb +68 -0
- data/vendor/rails/actionpack/lib/action_controller/vendor/html-scanner/html/node.rb +537 -0
- data/vendor/rails/actionpack/lib/action_controller/vendor/html-scanner/html/sanitizer.rb +173 -0
- data/vendor/rails/actionpack/lib/action_controller/vendor/html-scanner/html/selector.rb +828 -0
- data/vendor/rails/actionpack/lib/action_controller/vendor/html-scanner/html/tokenizer.rb +105 -0
- data/vendor/rails/actionpack/lib/action_controller/vendor/html-scanner/html/version.rb +11 -0
- data/vendor/rails/actionpack/lib/action_controller/verification.rb +130 -0
- data/vendor/rails/actionpack/lib/action_pack.rb +24 -0
- data/vendor/rails/actionpack/lib/action_pack/version.rb +9 -0
- data/vendor/rails/actionpack/lib/action_view.rb +58 -0
- data/vendor/rails/actionpack/lib/action_view/base.rb +362 -0
- data/vendor/rails/actionpack/lib/action_view/helpers.rb +59 -0
- data/vendor/rails/actionpack/lib/action_view/helpers/active_record_helper.rb +305 -0
- data/vendor/rails/actionpack/lib/action_view/helpers/asset_tag_helper.rb +694 -0
- data/vendor/rails/actionpack/lib/action_view/helpers/atom_feed_helper.rb +198 -0
- data/vendor/rails/actionpack/lib/action_view/helpers/benchmark_helper.rb +54 -0
- data/vendor/rails/actionpack/lib/action_view/helpers/cache_helper.rb +39 -0
- data/vendor/rails/actionpack/lib/action_view/helpers/capture_helper.rb +136 -0
- data/vendor/rails/actionpack/lib/action_view/helpers/date_helper.rb +989 -0
- data/vendor/rails/actionpack/lib/action_view/helpers/debug_helper.rb +38 -0
- data/vendor/rails/actionpack/lib/action_view/helpers/form_helper.rb +1111 -0
- data/vendor/rails/actionpack/lib/action_view/helpers/form_options_helper.rb +599 -0
- data/vendor/rails/actionpack/lib/action_view/helpers/form_tag_helper.rb +490 -0
- data/vendor/rails/actionpack/lib/action_view/helpers/javascript_helper.rb +208 -0
- data/vendor/rails/actionpack/lib/action_view/helpers/number_helper.rb +308 -0
- data/vendor/rails/actionpack/lib/action_view/helpers/prototype_helper.rb +1305 -0
- data/vendor/rails/actionpack/lib/action_view/helpers/raw_output_helper.rb +9 -0
- data/vendor/rails/actionpack/lib/action_view/helpers/record_identification_helper.rb +20 -0
- data/vendor/rails/actionpack/lib/action_view/helpers/record_tag_helper.rb +58 -0
- data/vendor/rails/actionpack/lib/action_view/helpers/sanitize_helper.rb +251 -0
- data/vendor/rails/actionpack/lib/action_view/helpers/scriptaculous_helper.rb +226 -0
- data/vendor/rails/actionpack/lib/action_view/helpers/tag_helper.rb +151 -0
- data/vendor/rails/actionpack/lib/action_view/helpers/text_helper.rb +587 -0
- data/vendor/rails/actionpack/lib/action_view/helpers/translation_helper.rb +67 -0
- data/vendor/rails/actionpack/lib/action_view/helpers/url_helper.rb +636 -0
- data/vendor/rails/actionpack/lib/action_view/inline_template.rb +19 -0
- data/vendor/rails/actionpack/lib/action_view/locale/en.yml +117 -0
- data/vendor/rails/actionpack/lib/action_view/partials.rb +241 -0
- data/vendor/rails/actionpack/lib/action_view/paths.rb +77 -0
- data/vendor/rails/actionpack/lib/action_view/reloadable_template.rb +117 -0
- data/vendor/rails/actionpack/lib/action_view/renderable.rb +109 -0
- data/vendor/rails/actionpack/lib/action_view/renderable_partial.rb +47 -0
- data/vendor/rails/actionpack/lib/action_view/template.rb +252 -0
- data/vendor/rails/actionpack/lib/action_view/template_error.rb +99 -0
- data/vendor/rails/actionpack/lib/action_view/template_handler.rb +34 -0
- data/vendor/rails/actionpack/lib/action_view/template_handlers.rb +48 -0
- data/vendor/rails/actionpack/lib/action_view/template_handlers/builder.rb +17 -0
- data/vendor/rails/actionpack/lib/action_view/template_handlers/erb.rb +25 -0
- data/vendor/rails/actionpack/lib/action_view/template_handlers/rjs.rb +13 -0
- data/vendor/rails/actionpack/lib/action_view/test_case.rb +162 -0
- data/vendor/rails/actionpack/lib/actionpack.rb +2 -0
- data/vendor/rails/actionpack/test/abstract_unit.rb +61 -0
- data/vendor/rails/actionpack/test/active_record_unit.rb +104 -0
- data/vendor/rails/actionpack/test/activerecord/active_record_store_test.rb +174 -0
- data/vendor/rails/actionpack/test/activerecord/render_partial_with_record_identification_test.rb +188 -0
- data/vendor/rails/actionpack/test/adv_attr_test.rb +20 -0
- data/vendor/rails/actionpack/test/controller/action_pack_assertions_test.rb +545 -0
- data/vendor/rails/actionpack/test/controller/addresses_render_test.rb +37 -0
- data/vendor/rails/actionpack/test/controller/assert_select_test.rb +735 -0
- data/vendor/rails/actionpack/test/controller/base_test.rb +217 -0
- data/vendor/rails/actionpack/test/controller/benchmark_test.rb +32 -0
- data/vendor/rails/actionpack/test/controller/caching_test.rb +743 -0
- data/vendor/rails/actionpack/test/controller/capture_test.rb +66 -0
- data/vendor/rails/actionpack/test/controller/content_type_test.rb +168 -0
- data/vendor/rails/actionpack/test/controller/controller_fixtures/app/controllers/admin/user_controller.rb +0 -0
- data/vendor/rails/actionpack/test/controller/controller_fixtures/app/controllers/user_controller.rb +0 -0
- data/vendor/rails/actionpack/test/controller/controller_fixtures/vendor/plugins/bad_plugin/lib/plugin_controller.rb +0 -0
- data/vendor/rails/actionpack/test/controller/cookie_test.rb +170 -0
- data/vendor/rails/actionpack/test/controller/deprecation/deprecated_base_methods_test.rb +32 -0
- data/vendor/rails/actionpack/test/controller/dispatcher_test.rb +144 -0
- data/vendor/rails/actionpack/test/controller/dom_assertions_test.rb +53 -0
- data/vendor/rails/actionpack/test/controller/failsafe_test.rb +60 -0
- data/vendor/rails/actionpack/test/controller/fake_controllers.rb +33 -0
- data/vendor/rails/actionpack/test/controller/fake_models.rb +19 -0
- data/vendor/rails/actionpack/test/controller/filter_params_test.rb +52 -0
- data/vendor/rails/actionpack/test/controller/filters_test.rb +885 -0
- data/vendor/rails/actionpack/test/controller/flash_test.rb +174 -0
- data/vendor/rails/actionpack/test/controller/header_test.rb +14 -0
- data/vendor/rails/actionpack/test/controller/helper_test.rb +224 -0
- data/vendor/rails/actionpack/test/controller/html-scanner/cdata_node_test.rb +15 -0
- data/vendor/rails/actionpack/test/controller/html-scanner/document_test.rb +148 -0
- data/vendor/rails/actionpack/test/controller/html-scanner/node_test.rb +89 -0
- data/vendor/rails/actionpack/test/controller/html-scanner/sanitizer_test.rb +274 -0
- data/vendor/rails/actionpack/test/controller/html-scanner/tag_node_test.rb +238 -0
- data/vendor/rails/actionpack/test/controller/html-scanner/text_node_test.rb +50 -0
- data/vendor/rails/actionpack/test/controller/html-scanner/tokenizer_test.rb +131 -0
- data/vendor/rails/actionpack/test/controller/http_basic_authentication_test.rb +113 -0
- data/vendor/rails/actionpack/test/controller/http_digest_authentication_test.rb +254 -0
- data/vendor/rails/actionpack/test/controller/integration_test.rb +482 -0
- data/vendor/rails/actionpack/test/controller/layout_test.rb +215 -0
- data/vendor/rails/actionpack/test/controller/localized_templates_test.rb +24 -0
- data/vendor/rails/actionpack/test/controller/logging_test.rb +46 -0
- data/vendor/rails/actionpack/test/controller/middleware_stack_test.rb +90 -0
- data/vendor/rails/actionpack/test/controller/mime_responds_test.rb +536 -0
- data/vendor/rails/actionpack/test/controller/mime_type_test.rb +93 -0
- data/vendor/rails/actionpack/test/controller/output_escaping_test.rb +19 -0
- data/vendor/rails/actionpack/test/controller/polymorphic_routes_test.rb +297 -0
- data/vendor/rails/actionpack/test/controller/rack_test.rb +308 -0
- data/vendor/rails/actionpack/test/controller/record_identifier_test.rb +139 -0
- data/vendor/rails/actionpack/test/controller/redirect_test.rb +285 -0
- data/vendor/rails/actionpack/test/controller/reloader_test.rb +124 -0
- data/vendor/rails/actionpack/test/controller/render_test.rb +1771 -0
- data/vendor/rails/actionpack/test/controller/request/json_params_parsing_test.rb +65 -0
- data/vendor/rails/actionpack/test/controller/request/multipart_params_parsing_test.rb +162 -0
- data/vendor/rails/actionpack/test/controller/request/query_string_parsing_test.rb +120 -0
- data/vendor/rails/actionpack/test/controller/request/test_request_test.rb +35 -0
- data/vendor/rails/actionpack/test/controller/request/url_encoded_params_parsing_test.rb +146 -0
- data/vendor/rails/actionpack/test/controller/request/xml_params_parsing_test.rb +103 -0
- data/vendor/rails/actionpack/test/controller/request_forgery_protection_test.rb +265 -0
- data/vendor/rails/actionpack/test/controller/request_test.rb +395 -0
- data/vendor/rails/actionpack/test/controller/rescue_test.rb +542 -0
- data/vendor/rails/actionpack/test/controller/resources_test.rb +1393 -0
- data/vendor/rails/actionpack/test/controller/routing_test.rb +2592 -0
- data/vendor/rails/actionpack/test/controller/selector_test.rb +628 -0
- data/vendor/rails/actionpack/test/controller/send_file_test.rb +171 -0
- data/vendor/rails/actionpack/test/controller/session/cookie_store_test.rb +216 -0
- data/vendor/rails/actionpack/test/controller/session/mem_cache_store_test.rb +127 -0
- data/vendor/rails/actionpack/test/controller/session/test_session_test.rb +58 -0
- data/vendor/rails/actionpack/test/controller/test_test.rb +700 -0
- data/vendor/rails/actionpack/test/controller/translation_test.rb +26 -0
- data/vendor/rails/actionpack/test/controller/url_rewriter_test.rb +389 -0
- data/vendor/rails/actionpack/test/controller/verification_test.rb +270 -0
- data/vendor/rails/actionpack/test/controller/view_paths_test.rb +141 -0
- data/vendor/rails/actionpack/test/controller/webservice_test.rb +260 -0
- data/vendor/rails/actionpack/test/fixtures/_top_level_partial.html.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/_top_level_partial_only.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/addresses/list.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/alternate_helpers/foo_helper.rb +3 -0
- data/vendor/rails/actionpack/test/fixtures/bad_customers/_bad_customer.html.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/companies.yml +24 -0
- data/vendor/rails/actionpack/test/fixtures/company.rb +10 -0
- data/vendor/rails/actionpack/test/fixtures/content_type/render_default_content_types_for_respond_to.rhtml +1 -0
- data/vendor/rails/actionpack/test/fixtures/content_type/render_default_for_rhtml.rhtml +1 -0
- data/vendor/rails/actionpack/test/fixtures/content_type/render_default_for_rjs.rjs +1 -0
- data/vendor/rails/actionpack/test/fixtures/content_type/render_default_for_rxml.rxml +1 -0
- data/vendor/rails/actionpack/test/fixtures/customers/_customer.html.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/db_definitions/sqlite.sql +49 -0
- data/vendor/rails/actionpack/test/fixtures/developer.rb +9 -0
- data/vendor/rails/actionpack/test/fixtures/developers.yml +21 -0
- data/vendor/rails/actionpack/test/fixtures/developers/_developer.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/developers_projects.yml +13 -0
- data/vendor/rails/actionpack/test/fixtures/failsafe/500.html +1 -0
- data/vendor/rails/actionpack/test/fixtures/fun/games/_game.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/fun/games/hello_world.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/fun/serious/games/_game.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/functional_caching/_partial.erb +3 -0
- data/vendor/rails/actionpack/test/fixtures/functional_caching/formatted_fragment_cached.html.erb +3 -0
- data/vendor/rails/actionpack/test/fixtures/functional_caching/formatted_fragment_cached.js.rjs +6 -0
- data/vendor/rails/actionpack/test/fixtures/functional_caching/formatted_fragment_cached.xml.builder +5 -0
- data/vendor/rails/actionpack/test/fixtures/functional_caching/fragment_cached.html.erb +2 -0
- data/vendor/rails/actionpack/test/fixtures/functional_caching/html_fragment_cached_with_partial.html.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/functional_caching/inline_fragment_cached.html.erb +2 -0
- data/vendor/rails/actionpack/test/fixtures/functional_caching/js_fragment_cached_with_partial.js.rjs +1 -0
- data/vendor/rails/actionpack/test/fixtures/good_customers/_good_customer.html.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/helpers/abc_helper.rb +5 -0
- data/vendor/rails/actionpack/test/fixtures/helpers/fun/games_helper.rb +3 -0
- data/vendor/rails/actionpack/test/fixtures/helpers/fun/pdf_helper.rb +3 -0
- data/vendor/rails/actionpack/test/fixtures/layout_tests/abs_path_layout.rhtml +1 -0
- data/vendor/rails/actionpack/test/fixtures/layout_tests/alt/hello.rhtml +1 -0
- data/vendor/rails/actionpack/test/fixtures/layout_tests/alt/layouts/alt.rhtml +0 -0
- data/vendor/rails/actionpack/test/fixtures/layout_tests/layouts/controller_name_space/nested.rhtml +1 -0
- data/vendor/rails/actionpack/test/fixtures/layout_tests/layouts/item.rhtml +1 -0
- data/vendor/rails/actionpack/test/fixtures/layout_tests/layouts/layout_test.rhtml +1 -0
- data/vendor/rails/actionpack/test/fixtures/layout_tests/layouts/multiple_extensions.html.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/layout_tests/layouts/third_party_template_library.mab +1 -0
- data/vendor/rails/actionpack/test/fixtures/layout_tests/views/hello.rhtml +1 -0
- data/vendor/rails/actionpack/test/fixtures/layouts/_column.html.erb +2 -0
- data/vendor/rails/actionpack/test/fixtures/layouts/block_with_layout.erb +3 -0
- data/vendor/rails/actionpack/test/fixtures/layouts/builder.builder +3 -0
- data/vendor/rails/actionpack/test/fixtures/layouts/default_html.html.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/layouts/partial_with_layout.erb +3 -0
- data/vendor/rails/actionpack/test/fixtures/layouts/standard.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/layouts/talk_from_action.erb +2 -0
- data/vendor/rails/actionpack/test/fixtures/layouts/xhr.html.erb +2 -0
- data/vendor/rails/actionpack/test/fixtures/layouts/yield.erb +2 -0
- data/vendor/rails/actionpack/test/fixtures/localized/hello_world.de.html +1 -0
- data/vendor/rails/actionpack/test/fixtures/localized/hello_world.en.html +1 -0
- data/vendor/rails/actionpack/test/fixtures/mascot.rb +3 -0
- data/vendor/rails/actionpack/test/fixtures/mascots.yml +4 -0
- data/vendor/rails/actionpack/test/fixtures/mascots/_mascot.html.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/multipart/binary_file +0 -0
- data/vendor/rails/actionpack/test/fixtures/multipart/boundary_problem_file +10 -0
- data/vendor/rails/actionpack/test/fixtures/multipart/bracketed_param +5 -0
- data/vendor/rails/actionpack/test/fixtures/multipart/empty +10 -0
- data/vendor/rails/actionpack/test/fixtures/multipart/hello.txt +1 -0
- data/vendor/rails/actionpack/test/fixtures/multipart/large_text_file +10 -0
- data/vendor/rails/actionpack/test/fixtures/multipart/mixed_files +0 -0
- data/vendor/rails/actionpack/test/fixtures/multipart/mona_lisa.jpg +0 -0
- data/vendor/rails/actionpack/test/fixtures/multipart/none +9 -0
- data/vendor/rails/actionpack/test/fixtures/multipart/single_parameter +5 -0
- data/vendor/rails/actionpack/test/fixtures/multipart/text_file +10 -0
- data/vendor/rails/actionpack/test/fixtures/override/test/hello_world.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/override2/layouts/test/sub.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/post_test/layouts/post.html.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/post_test/layouts/super_post.iphone.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/post_test/post/index.html.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/post_test/post/index.iphone.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/post_test/super_post/index.html.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/post_test/super_post/index.iphone.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/project.rb +3 -0
- data/vendor/rails/actionpack/test/fixtures/projects.yml +7 -0
- data/vendor/rails/actionpack/test/fixtures/projects/_project.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/public/404.html +1 -0
- data/vendor/rails/actionpack/test/fixtures/public/500.da.html +1 -0
- data/vendor/rails/actionpack/test/fixtures/public/500.html +1 -0
- data/vendor/rails/actionpack/test/fixtures/public/absolute/test.css +23 -0
- data/vendor/rails/actionpack/test/fixtures/public/absolute/test.js +63 -0
- data/vendor/rails/actionpack/test/fixtures/public/images/rails.png +0 -0
- data/vendor/rails/actionpack/test/fixtures/public/javascripts/application.js +1 -0
- data/vendor/rails/actionpack/test/fixtures/public/javascripts/bank.js +1 -0
- data/vendor/rails/actionpack/test/fixtures/public/javascripts/controls.js +1 -0
- data/vendor/rails/actionpack/test/fixtures/public/javascripts/dragdrop.js +1 -0
- data/vendor/rails/actionpack/test/fixtures/public/javascripts/effects.js +1 -0
- data/vendor/rails/actionpack/test/fixtures/public/javascripts/prototype.js +1 -0
- data/vendor/rails/actionpack/test/fixtures/public/javascripts/robber.js +1 -0
- data/vendor/rails/actionpack/test/fixtures/public/javascripts/subdir/subdir.js +1 -0
- data/vendor/rails/actionpack/test/fixtures/public/javascripts/version.1.0.js +1 -0
- data/vendor/rails/actionpack/test/fixtures/public/stylesheets/bank.css +1 -0
- data/vendor/rails/actionpack/test/fixtures/public/stylesheets/robber.css +1 -0
- data/vendor/rails/actionpack/test/fixtures/public/stylesheets/subdir/subdir.css +1 -0
- data/vendor/rails/actionpack/test/fixtures/public/stylesheets/version.1.0.css +1 -0
- data/vendor/rails/actionpack/test/fixtures/quiz/questions/_question.html.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/replies.yml +15 -0
- data/vendor/rails/actionpack/test/fixtures/replies/_reply.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/reply.rb +7 -0
- data/vendor/rails/actionpack/test/fixtures/respond_to/all_types_with_layout.html.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/respond_to/all_types_with_layout.js.rjs +1 -0
- data/vendor/rails/actionpack/test/fixtures/respond_to/custom_constant_handling_without_block.mobile.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/respond_to/iphone_with_html_response_type.html.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/respond_to/iphone_with_html_response_type.iphone.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/respond_to/layouts/missing.html.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/respond_to/layouts/standard.html.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/respond_to/layouts/standard.iphone.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults.html.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults.js.rjs +1 -0
- data/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults.xml.builder +1 -0
- data/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults_with_type_list.html.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults_with_type_list.js.rjs +1 -0
- data/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults_with_type_list.xml.builder +1 -0
- data/vendor/rails/actionpack/test/fixtures/scope/test/modgreet.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/shared.html.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/symlink_parent/symlinked_layout.erb +5 -0
- data/vendor/rails/actionpack/test/fixtures/test/_counter.html.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/test/_customer.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/test/_customer_counter.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/test/_customer_counter_with_as.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/test/_customer_greeting.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/test/_customer_with_var.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/test/_form.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/test/_from_helper.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/test/_hash_greeting.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/test/_hash_object.erb +2 -0
- data/vendor/rails/actionpack/test/fixtures/test/_hello.builder +1 -0
- data/vendor/rails/actionpack/test/fixtures/test/_labelling_form.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/test/_layout_for_block_with_args.html.erb +3 -0
- data/vendor/rails/actionpack/test/fixtures/test/_layout_for_partial.html.erb +3 -0
- data/vendor/rails/actionpack/test/fixtures/test/_local_inspector.html.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/test/_one.html.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/test/_partial.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/test/_partial.html.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/test/_partial.js.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/test/_partial_for_use_in_layout.html.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/test/_partial_only.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/test/_partial_with_only_html_version.html.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/test/_person.erb +2 -0
- data/vendor/rails/actionpack/test/fixtures/test/_raise.html.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/test/_two.html.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/test/_utf8_partial.html.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/test/_utf8_partial_magic.html.erb +2 -0
- data/vendor/rails/actionpack/test/fixtures/test/action_talk_to_layout.erb +2 -0
- data/vendor/rails/actionpack/test/fixtures/test/array_translation.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/test/calling_partial_with_layout.html.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/test/capturing.erb +4 -0
- data/vendor/rails/actionpack/test/fixtures/test/content_for.erb +2 -0
- data/vendor/rails/actionpack/test/fixtures/test/content_for_concatenated.erb +3 -0
- data/vendor/rails/actionpack/test/fixtures/test/content_for_with_parameter.erb +2 -0
- data/vendor/rails/actionpack/test/fixtures/test/delete_with_js.rjs +2 -0
- data/vendor/rails/actionpack/test/fixtures/test/dont_pick_me +1 -0
- data/vendor/rails/actionpack/test/fixtures/test/dot.directory/render_file_with_ivar.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/test/enum_rjs_test.rjs +6 -0
- data/vendor/rails/actionpack/test/fixtures/test/formatted_html_erb.html.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/test/formatted_xml_erb.builder +1 -0
- data/vendor/rails/actionpack/test/fixtures/test/formatted_xml_erb.html.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/test/formatted_xml_erb.xml.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/test/greeting.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/test/greeting.js.rjs +1 -0
- data/vendor/rails/actionpack/test/fixtures/test/hello.builder +4 -0
- data/vendor/rails/actionpack/test/fixtures/test/hello_world.da.html.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/test/hello_world.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/test/hello_world.pt-BR.html.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/test/hello_world_container.builder +3 -0
- data/vendor/rails/actionpack/test/fixtures/test/hello_world_from_rxml.builder +4 -0
- data/vendor/rails/actionpack/test/fixtures/test/hello_world_with_layout_false.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/test/hello_xml_world.builder +11 -0
- data/vendor/rails/actionpack/test/fixtures/test/hyphen-ated.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/test/implicit_content_type.atom.builder +2 -0
- data/vendor/rails/actionpack/test/fixtures/test/list.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/test/nested_layout.erb +3 -0
- data/vendor/rails/actionpack/test/fixtures/test/non_erb_block_content_for.builder +4 -0
- data/vendor/rails/actionpack/test/fixtures/test/potential_conflicts.erb +4 -0
- data/vendor/rails/actionpack/test/fixtures/test/render_explicit_html_template.js.rjs +1 -0
- data/vendor/rails/actionpack/test/fixtures/test/render_file_from_template.html.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/test/render_file_with_ivar.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/test/render_file_with_locals.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/test/render_implicit_html_template.js.rjs +1 -0
- data/vendor/rails/actionpack/test/fixtures/test/render_implicit_html_template_from_xhr_request.da.html.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/test/render_implicit_html_template_from_xhr_request.html.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/test/render_implicit_js_template_without_layout.js.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/test/render_to_string_test.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/test/scoped_array_translation.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/test/sub_template_raise.html.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/test/template.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/test/translation.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/test/update_element_with_capture.erb +9 -0
- data/vendor/rails/actionpack/test/fixtures/test/using_layout_around_block.html.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/test/using_layout_around_block_with_args.html.erb +1 -0
- data/vendor/rails/actionpack/test/fixtures/test/utf8.html.erb +4 -0
- data/vendor/rails/actionpack/test/fixtures/test/utf8_magic.html.erb +5 -0
- data/vendor/rails/actionpack/test/fixtures/test/utf8_magic_with_bare_partial.html.erb +5 -0
- data/vendor/rails/actionpack/test/fixtures/topic.rb +3 -0
- data/vendor/rails/actionpack/test/fixtures/topics.yml +22 -0
- data/vendor/rails/actionpack/test/fixtures/topics/_topic.html.erb +1 -0
- data/vendor/rails/actionpack/test/template/active_record_helper_i18n_test.rb +51 -0
- data/vendor/rails/actionpack/test/template/active_record_helper_test.rb +302 -0
- data/vendor/rails/actionpack/test/template/asset_tag_helper_test.rb +770 -0
- data/vendor/rails/actionpack/test/template/atom_feed_helper_test.rb +315 -0
- data/vendor/rails/actionpack/test/template/benchmark_helper_test.rb +86 -0
- data/vendor/rails/actionpack/test/template/compiled_templates_test.rb +204 -0
- data/vendor/rails/actionpack/test/template/date_helper_i18n_test.rb +121 -0
- data/vendor/rails/actionpack/test/template/date_helper_test.rb +2603 -0
- data/vendor/rails/actionpack/test/template/erb_util_test.rb +36 -0
- data/vendor/rails/actionpack/test/template/form_helper_test.rb +1447 -0
- data/vendor/rails/actionpack/test/template/form_options_helper_i18n_test.rb +27 -0
- data/vendor/rails/actionpack/test/template/form_options_helper_test.rb +807 -0
- data/vendor/rails/actionpack/test/template/form_tag_helper_test.rb +356 -0
- data/vendor/rails/actionpack/test/template/javascript_helper_test.rb +106 -0
- data/vendor/rails/actionpack/test/template/number_helper_i18n_test.rb +69 -0
- data/vendor/rails/actionpack/test/template/number_helper_test.rb +132 -0
- data/vendor/rails/actionpack/test/template/prototype_helper_test.rb +639 -0
- data/vendor/rails/actionpack/test/template/raw_output_helper_test.rb +21 -0
- data/vendor/rails/actionpack/test/template/record_tag_helper_test.rb +58 -0
- data/vendor/rails/actionpack/test/template/render_test.rb +329 -0
- data/vendor/rails/actionpack/test/template/sanitize_helper_test.rb +57 -0
- data/vendor/rails/actionpack/test/template/scriptaculous_helper_test.rb +90 -0
- data/vendor/rails/actionpack/test/template/tag_helper_test.rb +98 -0
- data/vendor/rails/actionpack/test/template/template_test.rb +32 -0
- data/vendor/rails/actionpack/test/template/test_test.rb +54 -0
- data/vendor/rails/actionpack/test/template/text_helper_test.rb +568 -0
- data/vendor/rails/actionpack/test/template/translation_helper_test.rb +95 -0
- data/vendor/rails/actionpack/test/template/url_helper_test.rb +641 -0
- data/vendor/rails/actionpack/test/testing_sandbox.rb +15 -0
- data/vendor/rails/actionpack/test/view/test_case_test.rb +176 -0
- data/vendor/rails/activerecord/CHANGELOG +5901 -0
- data/vendor/rails/activerecord/README +351 -0
- data/vendor/rails/activerecord/RUNNING_UNIT_TESTS +36 -0
- data/vendor/rails/activerecord/Rakefile +270 -0
- data/vendor/rails/activerecord/examples/associations.png +0 -0
- data/vendor/rails/activerecord/examples/performance.rb +162 -0
- data/vendor/rails/activerecord/examples/performance.sql +85 -0
- data/vendor/rails/activerecord/install.rb +30 -0
- data/vendor/rails/activerecord/lib/active_record.rb +83 -0
- data/vendor/rails/activerecord/lib/active_record/aggregations.rb +261 -0
- data/vendor/rails/activerecord/lib/active_record/association_preload.rb +396 -0
- data/vendor/rails/activerecord/lib/active_record/associations.rb +2251 -0
- data/vendor/rails/activerecord/lib/active_record/associations/association_collection.rb +479 -0
- data/vendor/rails/activerecord/lib/active_record/associations/association_proxy.rb +288 -0
- data/vendor/rails/activerecord/lib/active_record/associations/belongs_to_association.rb +86 -0
- data/vendor/rails/activerecord/lib/active_record/associations/belongs_to_polymorphic_association.rb +77 -0
- data/vendor/rails/activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb +143 -0
- data/vendor/rails/activerecord/lib/active_record/associations/has_many_association.rb +127 -0
- data/vendor/rails/activerecord/lib/active_record/associations/has_many_through_association.rb +266 -0
- data/vendor/rails/activerecord/lib/active_record/associations/has_one_association.rb +142 -0
- data/vendor/rails/activerecord/lib/active_record/associations/has_one_through_association.rb +37 -0
- data/vendor/rails/activerecord/lib/active_record/attribute_methods.rb +392 -0
- data/vendor/rails/activerecord/lib/active_record/autosave_association.rb +395 -0
- data/vendor/rails/activerecord/lib/active_record/base.rb +3206 -0
- data/vendor/rails/activerecord/lib/active_record/batches.rb +85 -0
- data/vendor/rails/activerecord/lib/active_record/calculations.rb +314 -0
- data/vendor/rails/activerecord/lib/active_record/callbacks.rb +360 -0
- data/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb +371 -0
- data/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb +139 -0
- data/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_limits.rb +57 -0
- data/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb +289 -0
- data/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb +94 -0
- data/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/quoting.rb +65 -0
- data/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb +722 -0
- data/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb +488 -0
- data/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb +243 -0
- data/vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb +660 -0
- data/vendor/rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb +1078 -0
- data/vendor/rails/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb +34 -0
- data/vendor/rails/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb +453 -0
- data/vendor/rails/activerecord/lib/active_record/dirty.rb +183 -0
- data/vendor/rails/activerecord/lib/active_record/dynamic_finder_match.rb +41 -0
- data/vendor/rails/activerecord/lib/active_record/dynamic_scope_match.rb +25 -0
- data/vendor/rails/activerecord/lib/active_record/fixtures.rb +997 -0
- data/vendor/rails/activerecord/lib/active_record/locale/en.yml +58 -0
- data/vendor/rails/activerecord/lib/active_record/locking/optimistic.rb +181 -0
- data/vendor/rails/activerecord/lib/active_record/locking/pessimistic.rb +55 -0
- data/vendor/rails/activerecord/lib/active_record/migration.rb +571 -0
- data/vendor/rails/activerecord/lib/active_record/named_scope.rb +192 -0
- data/vendor/rails/activerecord/lib/active_record/nested_attributes.rb +404 -0
- data/vendor/rails/activerecord/lib/active_record/observer.rb +197 -0
- data/vendor/rails/activerecord/lib/active_record/query_cache.rb +33 -0
- data/vendor/rails/activerecord/lib/active_record/reflection.rb +385 -0
- data/vendor/rails/activerecord/lib/active_record/schema.rb +55 -0
- data/vendor/rails/activerecord/lib/active_record/schema_dumper.rb +185 -0
- data/vendor/rails/activerecord/lib/active_record/serialization.rb +101 -0
- data/vendor/rails/activerecord/lib/active_record/serializers/json_serializer.rb +91 -0
- data/vendor/rails/activerecord/lib/active_record/serializers/xml_serializer.rb +357 -0
- data/vendor/rails/activerecord/lib/active_record/session_store.rb +326 -0
- data/vendor/rails/activerecord/lib/active_record/test_case.rb +66 -0
- data/vendor/rails/activerecord/lib/active_record/timestamp.rb +71 -0
- data/vendor/rails/activerecord/lib/active_record/transactions.rb +235 -0
- data/vendor/rails/activerecord/lib/active_record/validations.rb +1147 -0
- data/vendor/rails/activerecord/lib/active_record/version.rb +9 -0
- data/vendor/rails/activerecord/lib/activerecord.rb +2 -0
- data/vendor/rails/activerecord/test/assets/example.log +1 -0
- data/vendor/rails/activerecord/test/assets/flowers.jpg +0 -0
- data/vendor/rails/activerecord/test/cases/aaa_create_tables_test.rb +24 -0
- data/vendor/rails/activerecord/test/cases/active_schema_test_mysql.rb +122 -0
- data/vendor/rails/activerecord/test/cases/active_schema_test_postgresql.rb +24 -0
- data/vendor/rails/activerecord/test/cases/adapter_test.rb +145 -0
- data/vendor/rails/activerecord/test/cases/aggregations_test.rb +167 -0
- data/vendor/rails/activerecord/test/cases/ar_schema_test.rb +32 -0
- data/vendor/rails/activerecord/test/cases/associations/belongs_to_associations_test.rb +438 -0
- data/vendor/rails/activerecord/test/cases/associations/callbacks_test.rb +161 -0
- data/vendor/rails/activerecord/test/cases/associations/cascaded_eager_loading_test.rb +131 -0
- data/vendor/rails/activerecord/test/cases/associations/eager_load_includes_full_sti_class_test.rb +36 -0
- data/vendor/rails/activerecord/test/cases/associations/eager_load_nested_include_test.rb +131 -0
- data/vendor/rails/activerecord/test/cases/associations/eager_singularization_test.rb +145 -0
- data/vendor/rails/activerecord/test/cases/associations/eager_test.rb +840 -0
- data/vendor/rails/activerecord/test/cases/associations/extension_test.rb +62 -0
- data/vendor/rails/activerecord/test/cases/associations/habtm_join_table_test.rb +56 -0
- data/vendor/rails/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb +822 -0
- data/vendor/rails/activerecord/test/cases/associations/has_many_associations_test.rb +1160 -0
- data/vendor/rails/activerecord/test/cases/associations/has_many_through_associations_test.rb +346 -0
- data/vendor/rails/activerecord/test/cases/associations/has_one_associations_test.rb +330 -0
- data/vendor/rails/activerecord/test/cases/associations/has_one_through_associations_test.rb +209 -0
- data/vendor/rails/activerecord/test/cases/associations/inner_join_association_test.rb +93 -0
- data/vendor/rails/activerecord/test/cases/associations/inverse_associations_test.rb +566 -0
- data/vendor/rails/activerecord/test/cases/associations/join_model_test.rb +712 -0
- data/vendor/rails/activerecord/test/cases/associations_test.rb +272 -0
- data/vendor/rails/activerecord/test/cases/attribute_methods_test.rb +305 -0
- data/vendor/rails/activerecord/test/cases/autosave_association_test.rb +1218 -0
- data/vendor/rails/activerecord/test/cases/base_test.rb +2183 -0
- data/vendor/rails/activerecord/test/cases/batches_test.rb +81 -0
- data/vendor/rails/activerecord/test/cases/binary_test.rb +30 -0
- data/vendor/rails/activerecord/test/cases/calculations_test.rb +347 -0
- data/vendor/rails/activerecord/test/cases/callbacks_observers_test.rb +38 -0
- data/vendor/rails/activerecord/test/cases/callbacks_test.rb +438 -0
- data/vendor/rails/activerecord/test/cases/class_inheritable_attributes_test.rb +32 -0
- data/vendor/rails/activerecord/test/cases/column_alias_test.rb +17 -0
- data/vendor/rails/activerecord/test/cases/column_definition_test.rb +70 -0
- data/vendor/rails/activerecord/test/cases/connection_pool_test.rb +25 -0
- data/vendor/rails/activerecord/test/cases/connection_test_firebird.rb +8 -0
- data/vendor/rails/activerecord/test/cases/connection_test_mysql.rb +64 -0
- data/vendor/rails/activerecord/test/cases/copy_table_test_sqlite.rb +80 -0
- data/vendor/rails/activerecord/test/cases/database_statements_test.rb +12 -0
- data/vendor/rails/activerecord/test/cases/datatype_test_postgresql.rb +204 -0
- data/vendor/rails/activerecord/test/cases/date_time_test.rb +37 -0
- data/vendor/rails/activerecord/test/cases/default_test_firebird.rb +16 -0
- data/vendor/rails/activerecord/test/cases/defaults_test.rb +111 -0
- data/vendor/rails/activerecord/test/cases/deprecated_finder_test.rb +30 -0
- data/vendor/rails/activerecord/test/cases/dirty_test.rb +316 -0
- data/vendor/rails/activerecord/test/cases/encoding_test.rb +6 -0
- data/vendor/rails/activerecord/test/cases/finder_respond_to_test.rb +76 -0
- data/vendor/rails/activerecord/test/cases/finder_test.rb +1070 -0
- data/vendor/rails/activerecord/test/cases/fixtures_test.rb +661 -0
- data/vendor/rails/activerecord/test/cases/helper.rb +68 -0
- data/vendor/rails/activerecord/test/cases/i18n_test.rb +46 -0
- data/vendor/rails/activerecord/test/cases/inheritance_test.rb +262 -0
- data/vendor/rails/activerecord/test/cases/invalid_date_test.rb +24 -0
- data/vendor/rails/activerecord/test/cases/json_serialization_test.rb +219 -0
- data/vendor/rails/activerecord/test/cases/lifecycle_test.rb +193 -0
- data/vendor/rails/activerecord/test/cases/locking_test.rb +349 -0
- data/vendor/rails/activerecord/test/cases/method_scoping_test.rb +704 -0
- data/vendor/rails/activerecord/test/cases/migration_test.rb +1638 -0
- data/vendor/rails/activerecord/test/cases/migration_test_firebird.rb +124 -0
- data/vendor/rails/activerecord/test/cases/mixin_test.rb +96 -0
- data/vendor/rails/activerecord/test/cases/modules_test.rb +109 -0
- data/vendor/rails/activerecord/test/cases/multiple_db_test.rb +85 -0
- data/vendor/rails/activerecord/test/cases/named_scope_test.rb +361 -0
- data/vendor/rails/activerecord/test/cases/nested_attributes_test.rb +813 -0
- data/vendor/rails/activerecord/test/cases/pk_test.rb +119 -0
- data/vendor/rails/activerecord/test/cases/pooled_connections_test.rb +103 -0
- data/vendor/rails/activerecord/test/cases/query_cache_test.rb +129 -0
- data/vendor/rails/activerecord/test/cases/readonly_test.rb +107 -0
- data/vendor/rails/activerecord/test/cases/reflection_test.rb +234 -0
- data/vendor/rails/activerecord/test/cases/reload_models_test.rb +22 -0
- data/vendor/rails/activerecord/test/cases/repair_helper.rb +50 -0
- data/vendor/rails/activerecord/test/cases/reserved_word_test_mysql.rb +176 -0
- data/vendor/rails/activerecord/test/cases/sanitize_test.rb +25 -0
- data/vendor/rails/activerecord/test/cases/schema_authorization_test_postgresql.rb +75 -0
- data/vendor/rails/activerecord/test/cases/schema_dumper_test.rb +211 -0
- data/vendor/rails/activerecord/test/cases/schema_test_postgresql.rb +178 -0
- data/vendor/rails/activerecord/test/cases/serialization_test.rb +47 -0
- data/vendor/rails/activerecord/test/cases/synonym_test_oracle.rb +17 -0
- data/vendor/rails/activerecord/test/cases/timestamp_test.rb +75 -0
- data/vendor/rails/activerecord/test/cases/transactions_test.rb +522 -0
- data/vendor/rails/activerecord/test/cases/unconnected_test.rb +32 -0
- data/vendor/rails/activerecord/test/cases/validations_i18n_test.rb +925 -0
- data/vendor/rails/activerecord/test/cases/validations_test.rb +1672 -0
- data/vendor/rails/activerecord/test/cases/xml_serialization_test.rb +240 -0
- data/vendor/rails/activerecord/test/cases/yaml_serialization_test.rb +11 -0
- data/vendor/rails/activerecord/test/config.rb +5 -0
- data/vendor/rails/activerecord/test/connections/jdbc_jdbcderby/connection.rb +18 -0
- data/vendor/rails/activerecord/test/connections/jdbc_jdbch2/connection.rb +18 -0
- data/vendor/rails/activerecord/test/connections/jdbc_jdbchsqldb/connection.rb +18 -0
- data/vendor/rails/activerecord/test/connections/jdbc_jdbcmysql/connection.rb +26 -0
- data/vendor/rails/activerecord/test/connections/jdbc_jdbcpostgresql/connection.rb +26 -0
- data/vendor/rails/activerecord/test/connections/jdbc_jdbcsqlite3/connection.rb +25 -0
- data/vendor/rails/activerecord/test/connections/native_db2/connection.rb +25 -0
- data/vendor/rails/activerecord/test/connections/native_firebird/connection.rb +26 -0
- data/vendor/rails/activerecord/test/connections/native_frontbase/connection.rb +27 -0
- data/vendor/rails/activerecord/test/connections/native_mysql/connection.rb +25 -0
- data/vendor/rails/activerecord/test/connections/native_openbase/connection.rb +21 -0
- data/vendor/rails/activerecord/test/connections/native_oracle/connection.rb +27 -0
- data/vendor/rails/activerecord/test/connections/native_postgresql/connection.rb +21 -0
- data/vendor/rails/activerecord/test/connections/native_sqlite/connection.rb +25 -0
- data/vendor/rails/activerecord/test/connections/native_sqlite3/connection.rb +25 -0
- data/vendor/rails/activerecord/test/connections/native_sqlite3/in_memory_connection.rb +18 -0
- data/vendor/rails/activerecord/test/connections/native_sybase/connection.rb +23 -0
- data/vendor/rails/activerecord/test/fixtures/accounts.yml +29 -0
- data/vendor/rails/activerecord/test/fixtures/all/developers.yml +0 -0
- data/vendor/rails/activerecord/test/fixtures/all/people.csv +0 -0
- data/vendor/rails/activerecord/test/fixtures/all/tasks.yml +0 -0
- data/vendor/rails/activerecord/test/fixtures/author_addresses.yml +5 -0
- data/vendor/rails/activerecord/test/fixtures/author_favorites.yml +4 -0
- data/vendor/rails/activerecord/test/fixtures/authors.yml +9 -0
- data/vendor/rails/activerecord/test/fixtures/binaries.yml +132 -0
- data/vendor/rails/activerecord/test/fixtures/books.yml +7 -0
- data/vendor/rails/activerecord/test/fixtures/categories.yml +14 -0
- data/vendor/rails/activerecord/test/fixtures/categories/special_categories.yml +9 -0
- data/vendor/rails/activerecord/test/fixtures/categories/subsubdir/arbitrary_filename.yml +4 -0
- data/vendor/rails/activerecord/test/fixtures/categories_ordered.yml +7 -0
- data/vendor/rails/activerecord/test/fixtures/categories_posts.yml +23 -0
- data/vendor/rails/activerecord/test/fixtures/categorizations.yml +17 -0
- data/vendor/rails/activerecord/test/fixtures/clubs.yml +6 -0
- data/vendor/rails/activerecord/test/fixtures/comments.yml +59 -0
- data/vendor/rails/activerecord/test/fixtures/companies.yml +56 -0
- data/vendor/rails/activerecord/test/fixtures/computers.yml +4 -0
- data/vendor/rails/activerecord/test/fixtures/courses.yml +7 -0
- data/vendor/rails/activerecord/test/fixtures/customers.yml +26 -0
- data/vendor/rails/activerecord/test/fixtures/developers.yml +21 -0
- data/vendor/rails/activerecord/test/fixtures/developers_projects.yml +17 -0
- data/vendor/rails/activerecord/test/fixtures/edges.yml +6 -0
- data/vendor/rails/activerecord/test/fixtures/entrants.yml +14 -0
- data/vendor/rails/activerecord/test/fixtures/faces.yml +11 -0
- data/vendor/rails/activerecord/test/fixtures/fixture_database.sqlite +0 -0
- data/vendor/rails/activerecord/test/fixtures/fixture_database.sqlite3 +0 -0
- data/vendor/rails/activerecord/test/fixtures/fixture_database_2.sqlite +0 -0
- data/vendor/rails/activerecord/test/fixtures/fixture_database_2.sqlite3 +0 -0
- data/vendor/rails/activerecord/test/fixtures/fk_test_has_fk.yml +3 -0
- data/vendor/rails/activerecord/test/fixtures/fk_test_has_pk.yml +2 -0
- data/vendor/rails/activerecord/test/fixtures/funny_jokes.yml +10 -0
- data/vendor/rails/activerecord/test/fixtures/interests.yml +33 -0
- data/vendor/rails/activerecord/test/fixtures/items.yml +4 -0
- data/vendor/rails/activerecord/test/fixtures/jobs.yml +7 -0
- data/vendor/rails/activerecord/test/fixtures/legacy_things.yml +3 -0
- data/vendor/rails/activerecord/test/fixtures/mateys.yml +4 -0
- data/vendor/rails/activerecord/test/fixtures/member_types.yml +6 -0
- data/vendor/rails/activerecord/test/fixtures/members.yml +6 -0
- data/vendor/rails/activerecord/test/fixtures/memberships.yml +20 -0
- data/vendor/rails/activerecord/test/fixtures/men.yml +5 -0
- data/vendor/rails/activerecord/test/fixtures/minimalistics.yml +2 -0
- data/vendor/rails/activerecord/test/fixtures/mixed_case_monkeys.yml +6 -0
- data/vendor/rails/activerecord/test/fixtures/mixins.yml +29 -0
- data/vendor/rails/activerecord/test/fixtures/movies.yml +7 -0
- data/vendor/rails/activerecord/test/fixtures/naked/csv/accounts.csv +1 -0
- data/vendor/rails/activerecord/test/fixtures/naked/yml/accounts.yml +1 -0
- data/vendor/rails/activerecord/test/fixtures/naked/yml/companies.yml +1 -0
- data/vendor/rails/activerecord/test/fixtures/naked/yml/courses.yml +1 -0
- data/vendor/rails/activerecord/test/fixtures/organizations.yml +5 -0
- data/vendor/rails/activerecord/test/fixtures/owners.yml +7 -0
- data/vendor/rails/activerecord/test/fixtures/parrots.yml +27 -0
- data/vendor/rails/activerecord/test/fixtures/parrots_pirates.yml +7 -0
- data/vendor/rails/activerecord/test/fixtures/people.yml +15 -0
- data/vendor/rails/activerecord/test/fixtures/pets.yml +14 -0
- data/vendor/rails/activerecord/test/fixtures/pirates.yml +9 -0
- data/vendor/rails/activerecord/test/fixtures/posts.yml +52 -0
- data/vendor/rails/activerecord/test/fixtures/price_estimates.yml +7 -0
- data/vendor/rails/activerecord/test/fixtures/projects.yml +7 -0
- data/vendor/rails/activerecord/test/fixtures/readers.yml +9 -0
- data/vendor/rails/activerecord/test/fixtures/references.yml +17 -0
- data/vendor/rails/activerecord/test/fixtures/reserved_words/distinct.yml +5 -0
- data/vendor/rails/activerecord/test/fixtures/reserved_words/distincts_selects.yml +11 -0
- data/vendor/rails/activerecord/test/fixtures/reserved_words/group.yml +14 -0
- data/vendor/rails/activerecord/test/fixtures/reserved_words/select.yml +8 -0
- data/vendor/rails/activerecord/test/fixtures/reserved_words/values.yml +7 -0
- data/vendor/rails/activerecord/test/fixtures/ships.yml +5 -0
- data/vendor/rails/activerecord/test/fixtures/sponsors.yml +9 -0
- data/vendor/rails/activerecord/test/fixtures/subscribers.yml +7 -0
- data/vendor/rails/activerecord/test/fixtures/subscriptions.yml +12 -0
- data/vendor/rails/activerecord/test/fixtures/taggings.yml +28 -0
- data/vendor/rails/activerecord/test/fixtures/tags.yml +7 -0
- data/vendor/rails/activerecord/test/fixtures/tasks.yml +7 -0
- data/vendor/rails/activerecord/test/fixtures/topics.yml +42 -0
- data/vendor/rails/activerecord/test/fixtures/toys.yml +4 -0
- data/vendor/rails/activerecord/test/fixtures/treasures.yml +10 -0
- data/vendor/rails/activerecord/test/fixtures/vertices.yml +4 -0
- data/vendor/rails/activerecord/test/fixtures/warehouse-things.yml +3 -0
- data/vendor/rails/activerecord/test/fixtures/zines.yml +5 -0
- data/vendor/rails/activerecord/test/migrations/broken/100_migration_that_raises_exception.rb +10 -0
- data/vendor/rails/activerecord/test/migrations/decimal/1_give_me_big_numbers.rb +15 -0
- data/vendor/rails/activerecord/test/migrations/duplicate/1_people_have_last_names.rb +9 -0
- data/vendor/rails/activerecord/test/migrations/duplicate/2_we_need_reminders.rb +12 -0
- data/vendor/rails/activerecord/test/migrations/duplicate/3_foo.rb +7 -0
- data/vendor/rails/activerecord/test/migrations/duplicate/3_innocent_jointable.rb +12 -0
- data/vendor/rails/activerecord/test/migrations/duplicate_names/20080507052938_chunky.rb +7 -0
- data/vendor/rails/activerecord/test/migrations/duplicate_names/20080507053028_chunky.rb +7 -0
- data/vendor/rails/activerecord/test/migrations/interleaved/pass_1/3_innocent_jointable.rb +12 -0
- data/vendor/rails/activerecord/test/migrations/interleaved/pass_2/1_people_have_last_names.rb +9 -0
- data/vendor/rails/activerecord/test/migrations/interleaved/pass_2/3_innocent_jointable.rb +12 -0
- data/vendor/rails/activerecord/test/migrations/interleaved/pass_3/1_people_have_last_names.rb +9 -0
- data/vendor/rails/activerecord/test/migrations/interleaved/pass_3/2_i_raise_on_down.rb +8 -0
- data/vendor/rails/activerecord/test/migrations/interleaved/pass_3/3_innocent_jointable.rb +12 -0
- data/vendor/rails/activerecord/test/migrations/missing/1000_people_have_middle_names.rb +9 -0
- data/vendor/rails/activerecord/test/migrations/missing/1_people_have_last_names.rb +9 -0
- data/vendor/rails/activerecord/test/migrations/missing/3_we_need_reminders.rb +12 -0
- data/vendor/rails/activerecord/test/migrations/missing/4_innocent_jointable.rb +12 -0
- data/vendor/rails/activerecord/test/migrations/valid/1_people_have_last_names.rb +9 -0
- data/vendor/rails/activerecord/test/migrations/valid/2_we_need_reminders.rb +12 -0
- data/vendor/rails/activerecord/test/migrations/valid/3_innocent_jointable.rb +12 -0
- data/vendor/rails/activerecord/test/models/author.rb +149 -0
- data/vendor/rails/activerecord/test/models/auto_id.rb +4 -0
- data/vendor/rails/activerecord/test/models/binary.rb +2 -0
- data/vendor/rails/activerecord/test/models/bird.rb +9 -0
- data/vendor/rails/activerecord/test/models/book.rb +4 -0
- data/vendor/rails/activerecord/test/models/categorization.rb +5 -0
- data/vendor/rails/activerecord/test/models/category.rb +34 -0
- data/vendor/rails/activerecord/test/models/citation.rb +6 -0
- data/vendor/rails/activerecord/test/models/club.rb +13 -0
- data/vendor/rails/activerecord/test/models/column_name.rb +3 -0
- data/vendor/rails/activerecord/test/models/comment.rb +29 -0
- data/vendor/rails/activerecord/test/models/company.rb +171 -0
- data/vendor/rails/activerecord/test/models/company_in_module.rb +78 -0
- data/vendor/rails/activerecord/test/models/computer.rb +3 -0
- data/vendor/rails/activerecord/test/models/contact.rb +16 -0
- data/vendor/rails/activerecord/test/models/contract.rb +5 -0
- data/vendor/rails/activerecord/test/models/course.rb +3 -0
- data/vendor/rails/activerecord/test/models/customer.rb +73 -0
- data/vendor/rails/activerecord/test/models/default.rb +2 -0
- data/vendor/rails/activerecord/test/models/developer.rb +101 -0
- data/vendor/rails/activerecord/test/models/edge.rb +5 -0
- data/vendor/rails/activerecord/test/models/entrant.rb +3 -0
- data/vendor/rails/activerecord/test/models/essay.rb +3 -0
- data/vendor/rails/activerecord/test/models/event.rb +3 -0
- data/vendor/rails/activerecord/test/models/event_author.rb +5 -0
- data/vendor/rails/activerecord/test/models/face.rb +7 -0
- data/vendor/rails/activerecord/test/models/guid.rb +2 -0
- data/vendor/rails/activerecord/test/models/interest.rb +5 -0
- data/vendor/rails/activerecord/test/models/invoice.rb +4 -0
- data/vendor/rails/activerecord/test/models/item.rb +7 -0
- data/vendor/rails/activerecord/test/models/job.rb +5 -0
- data/vendor/rails/activerecord/test/models/joke.rb +3 -0
- data/vendor/rails/activerecord/test/models/keyboard.rb +3 -0
- data/vendor/rails/activerecord/test/models/legacy_thing.rb +3 -0
- data/vendor/rails/activerecord/test/models/line_item.rb +3 -0
- data/vendor/rails/activerecord/test/models/man.rb +9 -0
- data/vendor/rails/activerecord/test/models/matey.rb +4 -0
- data/vendor/rails/activerecord/test/models/member.rb +12 -0
- data/vendor/rails/activerecord/test/models/member_detail.rb +5 -0
- data/vendor/rails/activerecord/test/models/member_type.rb +3 -0
- data/vendor/rails/activerecord/test/models/membership.rb +9 -0
- data/vendor/rails/activerecord/test/models/minimalistic.rb +2 -0
- data/vendor/rails/activerecord/test/models/mixed_case_monkey.rb +3 -0
- data/vendor/rails/activerecord/test/models/movie.rb +5 -0
- data/vendor/rails/activerecord/test/models/order.rb +4 -0
- data/vendor/rails/activerecord/test/models/organization.rb +6 -0
- data/vendor/rails/activerecord/test/models/owner.rb +5 -0
- data/vendor/rails/activerecord/test/models/parrot.rb +22 -0
- data/vendor/rails/activerecord/test/models/person.rb +16 -0
- data/vendor/rails/activerecord/test/models/pet.rb +5 -0
- data/vendor/rails/activerecord/test/models/pirate.rb +80 -0
- data/vendor/rails/activerecord/test/models/post.rb +100 -0
- data/vendor/rails/activerecord/test/models/price_estimate.rb +3 -0
- data/vendor/rails/activerecord/test/models/project.rb +30 -0
- data/vendor/rails/activerecord/test/models/reader.rb +4 -0
- data/vendor/rails/activerecord/test/models/reference.rb +4 -0
- data/vendor/rails/activerecord/test/models/reply.rb +46 -0
- data/vendor/rails/activerecord/test/models/ship.rb +19 -0
- data/vendor/rails/activerecord/test/models/ship_part.rb +7 -0
- data/vendor/rails/activerecord/test/models/sponsor.rb +4 -0
- data/vendor/rails/activerecord/test/models/subject.rb +4 -0
- data/vendor/rails/activerecord/test/models/subscriber.rb +8 -0
- data/vendor/rails/activerecord/test/models/subscription.rb +4 -0
- data/vendor/rails/activerecord/test/models/tag.rb +7 -0
- data/vendor/rails/activerecord/test/models/tagging.rb +10 -0
- data/vendor/rails/activerecord/test/models/task.rb +3 -0
- data/vendor/rails/activerecord/test/models/topic.rb +80 -0
- data/vendor/rails/activerecord/test/models/toy.rb +6 -0
- data/vendor/rails/activerecord/test/models/treasure.rb +8 -0
- data/vendor/rails/activerecord/test/models/vertex.rb +9 -0
- data/vendor/rails/activerecord/test/models/warehouse_thing.rb +5 -0
- data/vendor/rails/activerecord/test/models/zine.rb +3 -0
- data/vendor/rails/activerecord/test/schema/mysql_specific_schema.rb +24 -0
- data/vendor/rails/activerecord/test/schema/postgresql_specific_schema.rb +114 -0
- data/vendor/rails/activerecord/test/schema/schema.rb +534 -0
- data/vendor/rails/activerecord/test/schema/schema2.rb +6 -0
- data/vendor/rails/activerecord/test/schema/sqlite_specific_schema.rb +25 -0
- data/vendor/rails/activeresource/CHANGELOG +307 -0
- data/vendor/rails/activeresource/README +165 -0
- data/vendor/rails/activeresource/Rakefile +139 -0
- data/vendor/rails/activeresource/lib/active_resource.rb +44 -0
- data/vendor/rails/activeresource/lib/active_resource/base.rb +1166 -0
- data/vendor/rails/activeresource/lib/active_resource/connection.rb +283 -0
- data/vendor/rails/activeresource/lib/active_resource/custom_methods.rb +120 -0
- data/vendor/rails/activeresource/lib/active_resource/exceptions.rb +66 -0
- data/vendor/rails/activeresource/lib/active_resource/formats.rb +14 -0
- data/vendor/rails/activeresource/lib/active_resource/formats/json_format.rb +23 -0
- data/vendor/rails/activeresource/lib/active_resource/formats/xml_format.rb +34 -0
- data/vendor/rails/activeresource/lib/active_resource/http_mock.rb +207 -0
- data/vendor/rails/activeresource/lib/active_resource/validations.rb +290 -0
- data/vendor/rails/activeresource/lib/active_resource/version.rb +9 -0
- data/vendor/rails/activeresource/lib/activeresource.rb +2 -0
- data/vendor/rails/activeresource/test/abstract_unit.rb +21 -0
- data/vendor/rails/activeresource/test/authorization_test.rb +122 -0
- data/vendor/rails/activeresource/test/base/custom_methods_test.rb +100 -0
- data/vendor/rails/activeresource/test/base/equality_test.rb +52 -0
- data/vendor/rails/activeresource/test/base/load_test.rb +161 -0
- data/vendor/rails/activeresource/test/base_errors_test.rb +98 -0
- data/vendor/rails/activeresource/test/base_test.rb +1087 -0
- data/vendor/rails/activeresource/test/connection_test.rb +238 -0
- data/vendor/rails/activeresource/test/debug.log +80350 -0
- data/vendor/rails/activeresource/test/fixtures/beast.rb +14 -0
- data/vendor/rails/activeresource/test/fixtures/customer.rb +3 -0
- data/vendor/rails/activeresource/test/fixtures/person.rb +3 -0
- data/vendor/rails/activeresource/test/fixtures/proxy.rb +4 -0
- data/vendor/rails/activeresource/test/fixtures/street_address.rb +4 -0
- data/vendor/rails/activeresource/test/format_test.rb +112 -0
- data/vendor/rails/activeresource/test/setter_trap.rb +26 -0
- data/vendor/rails/activesupport/CHANGELOG +1367 -0
- data/vendor/rails/activesupport/README +43 -0
- data/vendor/rails/activesupport/lib/active_support.rb +60 -0
- data/vendor/rails/activesupport/lib/active_support/all.rb +8 -0
- data/vendor/rails/activesupport/lib/active_support/backtrace_cleaner.rb +72 -0
- data/vendor/rails/activesupport/lib/active_support/base64.rb +33 -0
- data/vendor/rails/activesupport/lib/active_support/basic_object.rb +24 -0
- data/vendor/rails/activesupport/lib/active_support/buffered_logger.rb +127 -0
- data/vendor/rails/activesupport/lib/active_support/cache.rb +248 -0
- data/vendor/rails/activesupport/lib/active_support/cache/compressed_mem_cache_store.rb +20 -0
- data/vendor/rails/activesupport/lib/active_support/cache/drb_store.rb +14 -0
- data/vendor/rails/activesupport/lib/active_support/cache/file_store.rb +72 -0
- data/vendor/rails/activesupport/lib/active_support/cache/mem_cache_store.rb +143 -0
- data/vendor/rails/activesupport/lib/active_support/cache/memory_store.rb +58 -0
- data/vendor/rails/activesupport/lib/active_support/cache/strategy/local_cache.rb +104 -0
- data/vendor/rails/activesupport/lib/active_support/cache/synchronized_memory_store.rb +47 -0
- data/vendor/rails/activesupport/lib/active_support/callbacks.rb +279 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext.rb +8 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/array.rb +15 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/array/access.rb +53 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/array/conversions.rb +197 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/array/extract_options.rb +20 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/array/grouping.rb +106 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/array/random_access.rb +22 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/array/wrapper.rb +24 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/base64.rb +4 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/base64/encoding.rb +16 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb +19 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/bigdecimal.rb +6 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/bigdecimal/conversions.rb +37 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/blank.rb +2 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/cgi.rb +5 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/cgi/escape_skipping_slashes.rb +23 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/class.rb +4 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/class/attribute_accessors.rb +61 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/class/delegating_attributes.rb +47 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb +140 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/class/removal.rb +50 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/date.rb +10 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/date/behavior.rb +42 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/date/calculations.rb +241 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/date/conversions.rb +107 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/date_time.rb +12 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/date_time/calculations.rb +126 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/date_time/conversions.rb +107 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/duplicable.rb +43 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/enumerable.rb +120 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/exception.rb +45 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/file.rb +5 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/file/atomic.rb +47 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/float.rb +7 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/float/rounding.rb +24 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/float/time.rb +27 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/hash.rb +14 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/hash/conversions.rb +247 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/hash/deep_merge.rb +23 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/hash/diff.rb +19 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/hash/except.rb +25 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/hash/indifferent_access.rb +143 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/hash/keys.rb +52 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/hash/reverse_merge.rb +35 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/hash/slice.rb +40 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/integer.rb +9 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/integer/even_odd.rb +29 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/integer/inflections.rb +20 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/integer/time.rb +45 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/kernel.rb +5 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/kernel/agnostics.rb +11 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/kernel/daemonizing.rb +7 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/kernel/debugger.rb +16 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/kernel/reporting.rb +59 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/kernel/requires.rb +24 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/load_error.rb +38 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/logger.rb +145 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/module.rb +23 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/module/aliasing.rb +74 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/module/attr_accessor_with_default.rb +31 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/module/attr_internal.rb +32 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/module/attribute_accessors.rb +67 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/module/delegation.rb +135 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/module/inclusion.rb +30 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/module/introspection.rb +90 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/module/loading.rb +23 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/module/model_naming.rb +25 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/module/synchronization.rb +39 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/name_error.rb +19 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/numeric.rb +9 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/numeric/bytes.rb +50 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/numeric/conversions.rb +19 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/numeric/time.rb +81 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/object.rb +7 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/object/blank.rb +76 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/object/conversions.rb +15 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/object/extending.rb +80 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/object/instance_variables.rb +74 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/object/metaclass.rb +14 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/object/misc.rb +90 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/object/singleton_class.rb +13 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/pathname.rb +7 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/pathname/clean_within.rb +14 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/proc.rb +12 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/process.rb +1 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/process/daemon.rb +25 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/range.rb +11 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/range/blockless_step.rb +32 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/range/conversions.rb +27 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/range/include_range.rb +30 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/range/overlaps.rb +15 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/rexml.rb +41 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/string.rb +24 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/string/access.rb +106 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/string/behavior.rb +13 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/string/bytesize.rb +5 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/string/conversions.rb +28 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/string/filters.rb +26 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/string/inflections.rb +167 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/string/iterators.rb +23 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/string/multibyte.rb +81 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/string/output_safety.rb +112 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/string/starts_ends_with.rb +33 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/string/xchar.rb +11 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/symbol.rb +14 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/time.rb +46 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/time/behavior.rb +13 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/time/calculations.rb +313 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/time/conversions.rb +90 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/time/zones.rb +86 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/try.rb +36 -0
- data/vendor/rails/activesupport/lib/active_support/core_ext/uri.rb +16 -0
- data/vendor/rails/activesupport/lib/active_support/dependencies.rb +625 -0
- data/vendor/rails/activesupport/lib/active_support/deprecation.rb +197 -0
- data/vendor/rails/activesupport/lib/active_support/duration.rb +100 -0
- data/vendor/rails/activesupport/lib/active_support/gzip.rb +25 -0
- data/vendor/rails/activesupport/lib/active_support/inflections.rb +56 -0
- data/vendor/rails/activesupport/lib/active_support/inflector.rb +409 -0
- data/vendor/rails/activesupport/lib/active_support/json.rb +2 -0
- data/vendor/rails/activesupport/lib/active_support/json/backends/jsongem.rb +37 -0
- data/vendor/rails/activesupport/lib/active_support/json/backends/yajl.rb +40 -0
- data/vendor/rails/activesupport/lib/active_support/json/backends/yaml.rb +87 -0
- data/vendor/rails/activesupport/lib/active_support/json/decoding.rb +50 -0
- data/vendor/rails/activesupport/lib/active_support/json/encoders/date.rb +22 -0
- data/vendor/rails/activesupport/lib/active_support/json/encoders/date_time.rb +22 -0
- data/vendor/rails/activesupport/lib/active_support/json/encoders/enumerable.rb +17 -0
- data/vendor/rails/activesupport/lib/active_support/json/encoders/false_class.rb +7 -0
- data/vendor/rails/activesupport/lib/active_support/json/encoders/hash.rb +56 -0
- data/vendor/rails/activesupport/lib/active_support/json/encoders/nil_class.rb +7 -0
- data/vendor/rails/activesupport/lib/active_support/json/encoders/numeric.rb +21 -0
- data/vendor/rails/activesupport/lib/active_support/json/encoders/object.rb +10 -0
- data/vendor/rails/activesupport/lib/active_support/json/encoders/regexp.rb +9 -0
- data/vendor/rails/activesupport/lib/active_support/json/encoders/string.rb +9 -0
- data/vendor/rails/activesupport/lib/active_support/json/encoders/symbol.rb +5 -0
- data/vendor/rails/activesupport/lib/active_support/json/encoders/time.rb +22 -0
- data/vendor/rails/activesupport/lib/active_support/json/encoders/true_class.rb +7 -0
- data/vendor/rails/activesupport/lib/active_support/json/encoding.rb +111 -0
- data/vendor/rails/activesupport/lib/active_support/json/variable.rb +10 -0
- data/vendor/rails/activesupport/lib/active_support/locale/en.yml +33 -0
- data/vendor/rails/activesupport/lib/active_support/memoizable.rb +100 -0
- data/vendor/rails/activesupport/lib/active_support/message_encryptor.rb +70 -0
- data/vendor/rails/activesupport/lib/active_support/message_verifier.rb +79 -0
- data/vendor/rails/activesupport/lib/active_support/multibyte.rb +57 -0
- data/vendor/rails/activesupport/lib/active_support/multibyte/chars.rb +707 -0
- data/vendor/rails/activesupport/lib/active_support/multibyte/exceptions.rb +8 -0
- data/vendor/rails/activesupport/lib/active_support/multibyte/unicode_database.rb +71 -0
- data/vendor/rails/activesupport/lib/active_support/multibyte/utils.rb +60 -0
- data/vendor/rails/activesupport/lib/active_support/option_merger.rb +23 -0
- data/vendor/rails/activesupport/lib/active_support/ordered_hash.rb +158 -0
- data/vendor/rails/activesupport/lib/active_support/ordered_options.rb +19 -0
- data/vendor/rails/activesupport/lib/active_support/rescuable.rb +108 -0
- data/vendor/rails/activesupport/lib/active_support/secure_random.rb +199 -0
- data/vendor/rails/activesupport/lib/active_support/string_inquirer.rb +21 -0
- data/vendor/rails/activesupport/lib/active_support/test_case.rb +40 -0
- data/vendor/rails/activesupport/lib/active_support/testing/assertions.rb +79 -0
- data/vendor/rails/activesupport/lib/active_support/testing/declarative.rb +21 -0
- data/vendor/rails/activesupport/lib/active_support/testing/default.rb +9 -0
- data/vendor/rails/activesupport/lib/active_support/testing/deprecation.rb +57 -0
- data/vendor/rails/activesupport/lib/active_support/testing/performance.rb +452 -0
- data/vendor/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb +91 -0
- data/vendor/rails/activesupport/lib/active_support/time_with_zone.rb +335 -0
- data/vendor/rails/activesupport/lib/active_support/values/time_zone.rb +412 -0
- data/vendor/rails/activesupport/lib/active_support/values/unicode_tables.dat +0 -0
- data/vendor/rails/activesupport/lib/active_support/vendor.rb +36 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/builder-2.1.2/blankslate.rb +113 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/builder-2.1.2/builder.rb +13 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/builder-2.1.2/builder/blankslate.rb +20 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/builder-2.1.2/builder/css.rb +250 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/builder-2.1.2/builder/xchar.rb +115 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/builder-2.1.2/builder/xmlbase.rb +139 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/builder-2.1.2/builder/xmlevents.rb +63 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/builder-2.1.2/builder/xmlmarkup.rb +328 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.3.7/i18n.rb +335 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.3.7/i18n/backend.rb +19 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.3.7/i18n/backend/active_record.rb +66 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.3.7/i18n/backend/active_record/missing.rb +67 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.3.7/i18n/backend/active_record/store_procs.rb +38 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.3.7/i18n/backend/active_record/translation.rb +88 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.3.7/i18n/backend/base.rb +266 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.3.7/i18n/backend/cache.rb +76 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.3.7/i18n/backend/cascade.rb +58 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.3.7/i18n/backend/chain.rb +75 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.3.7/i18n/backend/cldr.rb +100 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.3.7/i18n/backend/fallbacks.rb +69 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.3.7/i18n/backend/fast.rb +69 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.3.7/i18n/backend/gettext.rb +75 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.3.7/i18n/backend/helpers.rb +68 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.3.7/i18n/backend/interpolation_compiler.rb +119 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.3.7/i18n/backend/links.rb +34 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.3.7/i18n/backend/metadata.rb +73 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.3.7/i18n/backend/pluralization.rb +57 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.3.7/i18n/backend/simple.rb +22 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.3.7/i18n/core_ext/hash/except.rb +8 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.3.7/i18n/core_ext/hash/slice.rb +8 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.3.7/i18n/core_ext/object/meta_class.rb +5 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.3.7/i18n/core_ext/string/interpolate.rb +99 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.3.7/i18n/exceptions.rb +61 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.3.7/i18n/gettext.rb +25 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.3.7/i18n/gettext/po_parser.rb +329 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.3.7/i18n/helpers.rb +5 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.3.7/i18n/helpers/gettext.rb +65 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.3.7/i18n/locale.rb +6 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.3.7/i18n/locale/fallbacks.rb +98 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.3.7/i18n/locale/tag.rb +28 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.3.7/i18n/locale/tag/parents.rb +24 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.3.7/i18n/locale/tag/rfc4646.rb +76 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.3.7/i18n/locale/tag/simple.rb +41 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/i18n-0.3.7/i18n/version.rb +3 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/memcache-client-1.7.4/memcache.rb +1107 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo.rb +33 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/data_timezone.rb +47 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/data_timezone_info.rb +228 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Africa/Algiers.rb +55 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Africa/Cairo.rb +219 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Africa/Casablanca.rb +40 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Africa/Harare.rb +18 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Africa/Johannesburg.rb +25 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Africa/Monrovia.rb +22 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Africa/Nairobi.rb +23 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Argentina/Buenos_Aires.rb +166 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Argentina/San_Juan.rb +86 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Bogota.rb +23 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Caracas.rb +23 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Chicago.rb +283 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Chihuahua.rb +136 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Denver.rb +204 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Godthab.rb +161 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Guatemala.rb +27 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Halifax.rb +274 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Indiana/Indianapolis.rb +149 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Juneau.rb +194 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/La_Paz.rb +22 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Lima.rb +35 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Los_Angeles.rb +232 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Mazatlan.rb +139 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Mexico_City.rb +144 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Monterrey.rb +131 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/New_York.rb +282 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Phoenix.rb +30 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Regina.rb +74 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Santiago.rb +205 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Sao_Paulo.rb +171 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/St_Johns.rb +288 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Tijuana.rb +196 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Almaty.rb +67 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Baghdad.rb +73 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Baku.rb +161 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Bangkok.rb +20 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Chongqing.rb +33 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Colombo.rb +30 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Dhaka.rb +27 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Hong_Kong.rb +87 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Irkutsk.rb +165 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Jakarta.rb +30 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Jerusalem.rb +163 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Kabul.rb +20 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Kamchatka.rb +163 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Karachi.rb +30 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Katmandu.rb +20 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Kolkata.rb +25 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Krasnoyarsk.rb +163 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Kuala_Lumpur.rb +31 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Kuwait.rb +18 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Magadan.rb +163 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Muscat.rb +18 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Novosibirsk.rb +164 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Rangoon.rb +24 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Riyadh.rb +18 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Seoul.rb +34 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Shanghai.rb +35 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Singapore.rb +33 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Taipei.rb +59 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Tashkent.rb +47 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Tbilisi.rb +78 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Tehran.rb +121 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Tokyo.rb +30 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Ulaanbaatar.rb +65 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Urumqi.rb +33 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Vladivostok.rb +164 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Yakutsk.rb +163 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Yekaterinburg.rb +165 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Yerevan.rb +165 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Atlantic/Azores.rb +270 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Atlantic/Cape_Verde.rb +23 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Atlantic/South_Georgia.rb +18 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Australia/Adelaide.rb +187 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Australia/Brisbane.rb +35 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Australia/Darwin.rb +29 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Australia/Hobart.rb +193 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Australia/Melbourne.rb +185 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Australia/Perth.rb +37 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Australia/Sydney.rb +185 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Etc/UTC.rb +16 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Amsterdam.rb +228 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Athens.rb +185 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Belgrade.rb +163 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Berlin.rb +188 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Bratislava.rb +13 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Brussels.rb +232 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Bucharest.rb +181 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Budapest.rb +197 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Copenhagen.rb +179 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Dublin.rb +276 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Helsinki.rb +163 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Istanbul.rb +218 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Kiev.rb +168 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Lisbon.rb +268 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Ljubljana.rb +13 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/London.rb +288 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Madrid.rb +211 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Minsk.rb +170 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Moscow.rb +181 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Paris.rb +232 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Prague.rb +187 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Riga.rb +176 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Rome.rb +215 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Sarajevo.rb +13 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Skopje.rb +13 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Sofia.rb +173 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Stockholm.rb +165 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Tallinn.rb +172 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Vienna.rb +183 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Vilnius.rb +170 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Warsaw.rb +212 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Zagreb.rb +13 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Pacific/Auckland.rb +202 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Pacific/Fiji.rb +23 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Pacific/Guam.rb +22 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Pacific/Honolulu.rb +28 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Pacific/Majuro.rb +20 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Pacific/Midway.rb +25 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Pacific/Noumea.rb +25 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Pacific/Pago_Pago.rb +26 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Pacific/Port_Moresby.rb +20 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Pacific/Tongatapu.rb +27 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/info_timezone.rb +52 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/linked_timezone.rb +51 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/linked_timezone_info.rb +44 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/offset_rationals.rb +98 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/ruby_core_support.rb +56 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/time_or_datetime.rb +292 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/timezone.rb +508 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/timezone_definition.rb +56 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/timezone_info.rb +40 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/timezone_offset_info.rb +94 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/timezone_period.rb +198 -0
- data/vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/timezone_transition_info.rb +129 -0
- data/vendor/rails/activesupport/lib/active_support/version.rb +9 -0
- data/vendor/rails/activesupport/lib/active_support/whiny_nil.rb +64 -0
- data/vendor/rails/activesupport/lib/active_support/xml_mini.rb +31 -0
- data/vendor/rails/activesupport/lib/active_support/xml_mini/jdom.rb +162 -0
- data/vendor/rails/activesupport/lib/active_support/xml_mini/libxml.rb +73 -0
- data/vendor/rails/activesupport/lib/active_support/xml_mini/libxmlsax.rb +74 -0
- data/vendor/rails/activesupport/lib/active_support/xml_mini/nokogiri.rb +72 -0
- data/vendor/rails/activesupport/lib/active_support/xml_mini/nokogirisax.rb +73 -0
- data/vendor/rails/activesupport/lib/active_support/xml_mini/rexml.rb +108 -0
- data/vendor/rails/activesupport/lib/activesupport.rb +2 -0
- data/vendor/rails/railties/CHANGELOG +2188 -0
- data/vendor/rails/railties/MIT-LICENSE +20 -0
- data/vendor/rails/railties/README +243 -0
- data/vendor/rails/railties/Rakefile +368 -0
- data/vendor/rails/railties/bin/about +4 -0
- data/vendor/rails/railties/bin/console +3 -0
- data/vendor/rails/railties/bin/dbconsole +3 -0
- data/vendor/rails/railties/bin/destroy +3 -0
- data/vendor/rails/railties/bin/generate +3 -0
- data/vendor/rails/railties/bin/performance/benchmarker +3 -0
- data/vendor/rails/railties/bin/performance/profiler +3 -0
- data/vendor/rails/railties/bin/plugin +3 -0
- data/vendor/rails/railties/bin/rails +21 -0
- data/vendor/rails/railties/bin/runner +3 -0
- data/vendor/rails/railties/bin/server +3 -0
- data/vendor/rails/railties/builtin/rails_info/rails/info.rb +131 -0
- data/vendor/rails/railties/builtin/rails_info/rails/info_controller.rb +9 -0
- data/vendor/rails/railties/builtin/rails_info/rails/info_helper.rb +2 -0
- data/vendor/rails/railties/builtin/rails_info/rails_info_controller.rb +2 -0
- data/vendor/rails/railties/configs/databases/frontbase.yml +28 -0
- data/vendor/rails/railties/configs/databases/ibm_db.yml +62 -0
- data/vendor/rails/railties/configs/databases/mysql.yml +60 -0
- data/vendor/rails/railties/configs/databases/oracle.yml +39 -0
- data/vendor/rails/railties/configs/databases/postgresql.yml +51 -0
- data/vendor/rails/railties/configs/databases/sqlite2.yml +19 -0
- data/vendor/rails/railties/configs/databases/sqlite3.yml +22 -0
- data/vendor/rails/railties/configs/empty.log +0 -0
- data/vendor/rails/railties/configs/initializers/backtrace_silencers.rb +7 -0
- data/vendor/rails/railties/configs/initializers/cookie_verification_secret.rb +7 -0
- data/vendor/rails/railties/configs/initializers/inflections.rb +10 -0
- data/vendor/rails/railties/configs/initializers/mime_types.rb +5 -0
- data/vendor/rails/railties/configs/initializers/new_rails_defaults.rb +21 -0
- data/vendor/rails/railties/configs/initializers/session_store.rb +15 -0
- data/vendor/rails/railties/configs/locales/en.yml +5 -0
- data/vendor/rails/railties/configs/routes.rb +43 -0
- data/vendor/rails/railties/configs/seeds.rb +7 -0
- data/vendor/rails/railties/dispatches/config.ru +7 -0
- data/vendor/rails/railties/dispatches/dispatch.fcgi +24 -0
- data/vendor/rails/railties/dispatches/dispatch.rb +10 -0
- data/vendor/rails/railties/dispatches/gateway.cgi +97 -0
- data/vendor/rails/railties/doc/README_FOR_APP +2 -0
- data/vendor/rails/railties/environments/boot.rb +110 -0
- data/vendor/rails/railties/environments/development.rb +17 -0
- data/vendor/rails/railties/environments/environment.rb +41 -0
- data/vendor/rails/railties/environments/production.rb +28 -0
- data/vendor/rails/railties/environments/test.rb +28 -0
- data/vendor/rails/railties/fresh_rakefile +10 -0
- data/vendor/rails/railties/guides/files/javascripts/code_highlighter.js +188 -0
- data/vendor/rails/railties/guides/files/javascripts/guides.js +8 -0
- data/vendor/rails/railties/guides/files/javascripts/highlighters.js +90 -0
- data/vendor/rails/railties/guides/files/stylesheets/main.css +441 -0
- data/vendor/rails/railties/guides/files/stylesheets/print.css +52 -0
- data/vendor/rails/railties/guides/files/stylesheets/reset.css +43 -0
- data/vendor/rails/railties/guides/files/stylesheets/style.css +13 -0
- data/vendor/rails/railties/guides/files/stylesheets/syntax.css +31 -0
- data/vendor/rails/railties/guides/images/belongs_to.png +0 -0
- data/vendor/rails/railties/guides/images/book_icon.gif +0 -0
- data/vendor/rails/railties/guides/images/bullet.gif +0 -0
- data/vendor/rails/railties/guides/images/chapters_icon.gif +0 -0
- data/vendor/rails/railties/guides/images/check_bullet.gif +0 -0
- data/vendor/rails/railties/guides/images/credits_pic_blank.gif +0 -0
- data/vendor/rails/railties/guides/images/csrf.png +0 -0
- data/vendor/rails/railties/guides/images/customized_error_messages.png +0 -0
- data/vendor/rails/railties/guides/images/error_messages.png +0 -0
- data/vendor/rails/railties/guides/images/feature_tile.gif +0 -0
- data/vendor/rails/railties/guides/images/footer_tile.gif +0 -0
- data/vendor/rails/railties/guides/images/fxn.jpg +0 -0
- data/vendor/rails/railties/guides/images/grey_bullet.gif +0 -0
- data/vendor/rails/railties/guides/images/habtm.png +0 -0
- data/vendor/rails/railties/guides/images/has_many.png +0 -0
- data/vendor/rails/railties/guides/images/has_many_through.png +0 -0
- data/vendor/rails/railties/guides/images/has_one.png +0 -0
- data/vendor/rails/railties/guides/images/has_one_through.png +0 -0
- data/vendor/rails/railties/guides/images/header_backdrop.png +0 -0
- data/vendor/rails/railties/guides/images/header_tile.gif +0 -0
- data/vendor/rails/railties/guides/images/i18n/demo_localized_pirate.png +0 -0
- data/vendor/rails/railties/guides/images/i18n/demo_translated_en.png +0 -0
- data/vendor/rails/railties/guides/images/i18n/demo_translated_pirate.png +0 -0
- data/vendor/rails/railties/guides/images/i18n/demo_translation_missing.png +0 -0
- data/vendor/rails/railties/guides/images/i18n/demo_untranslated.png +0 -0
- data/vendor/rails/railties/guides/images/icons/README +5 -0
- data/vendor/rails/railties/guides/images/icons/callouts/1.png +0 -0
- data/vendor/rails/railties/guides/images/icons/callouts/10.png +0 -0
- data/vendor/rails/railties/guides/images/icons/callouts/11.png +0 -0
- data/vendor/rails/railties/guides/images/icons/callouts/12.png +0 -0
- data/vendor/rails/railties/guides/images/icons/callouts/13.png +0 -0
- data/vendor/rails/railties/guides/images/icons/callouts/14.png +0 -0
- data/vendor/rails/railties/guides/images/icons/callouts/15.png +0 -0
- data/vendor/rails/railties/guides/images/icons/callouts/2.png +0 -0
- data/vendor/rails/railties/guides/images/icons/callouts/3.png +0 -0
- data/vendor/rails/railties/guides/images/icons/callouts/4.png +0 -0
- data/vendor/rails/railties/guides/images/icons/callouts/5.png +0 -0
- data/vendor/rails/railties/guides/images/icons/callouts/6.png +0 -0
- data/vendor/rails/railties/guides/images/icons/callouts/7.png +0 -0
- data/vendor/rails/railties/guides/images/icons/callouts/8.png +0 -0
- data/vendor/rails/railties/guides/images/icons/callouts/9.png +0 -0
- data/vendor/rails/railties/guides/images/icons/caution.png +0 -0
- data/vendor/rails/railties/guides/images/icons/example.png +0 -0
- data/vendor/rails/railties/guides/images/icons/home.png +0 -0
- data/vendor/rails/railties/guides/images/icons/important.png +0 -0
- data/vendor/rails/railties/guides/images/icons/next.png +0 -0
- data/vendor/rails/railties/guides/images/icons/note.png +0 -0
- data/vendor/rails/railties/guides/images/icons/prev.png +0 -0
- data/vendor/rails/railties/guides/images/icons/tip.png +0 -0
- data/vendor/rails/railties/guides/images/icons/up.png +0 -0
- data/vendor/rails/railties/guides/images/icons/warning.png +0 -0
- data/vendor/rails/railties/guides/images/nav_arrow.gif +0 -0
- data/vendor/rails/railties/guides/images/polymorphic.png +0 -0
- data/vendor/rails/railties/guides/images/posts_index.png +0 -0
- data/vendor/rails/railties/guides/images/rails_guides_logo.gif +0 -0
- data/vendor/rails/railties/guides/images/rails_logo_remix.gif +0 -0
- data/vendor/rails/railties/guides/images/rails_welcome.png +0 -0
- data/vendor/rails/railties/guides/images/session_fixation.png +0 -0
- data/vendor/rails/railties/guides/images/tab_grey.gif +0 -0
- data/vendor/rails/railties/guides/images/tab_info.gif +0 -0
- data/vendor/rails/railties/guides/images/tab_note.gif +0 -0
- data/vendor/rails/railties/guides/images/tab_red.gif +0 -0
- data/vendor/rails/railties/guides/images/tab_yellow.gif +0 -0
- data/vendor/rails/railties/guides/images/tab_yellow.png +0 -0
- data/vendor/rails/railties/guides/images/validation_error_messages.png +0 -0
- data/vendor/rails/railties/guides/rails_guides.rb +42 -0
- data/vendor/rails/railties/guides/rails_guides/generator.rb +138 -0
- data/vendor/rails/railties/guides/rails_guides/helpers.rb +34 -0
- data/vendor/rails/railties/guides/rails_guides/indexer.rb +55 -0
- data/vendor/rails/railties/guides/rails_guides/textile_extensions.rb +41 -0
- data/vendor/rails/railties/guides/source/2_2_release_notes.textile +422 -0
- data/vendor/rails/railties/guides/source/2_3_release_notes.textile +610 -0
- data/vendor/rails/railties/guides/source/action_controller_overview.textile +776 -0
- data/vendor/rails/railties/guides/source/action_mailer_basics.textile +424 -0
- data/vendor/rails/railties/guides/source/active_record_basics.textile +135 -0
- data/vendor/rails/railties/guides/source/active_record_querying.textile +969 -0
- data/vendor/rails/railties/guides/source/activerecord_validations_callbacks.textile +1086 -0
- data/vendor/rails/railties/guides/source/association_basics.textile +1781 -0
- data/vendor/rails/railties/guides/source/caching_with_rails.textile +524 -0
- data/vendor/rails/railties/guides/source/command_line.textile +589 -0
- data/vendor/rails/railties/guides/source/configuring.textile +234 -0
- data/vendor/rails/railties/guides/source/contribute.textile +71 -0
- data/vendor/rails/railties/guides/source/contributing_to_rails.textile +239 -0
- data/vendor/rails/railties/guides/source/credits.erb.textile +52 -0
- data/vendor/rails/railties/guides/source/debugging_rails_applications.textile +709 -0
- data/vendor/rails/railties/guides/source/form_helpers.textile +766 -0
- data/vendor/rails/railties/guides/source/getting_started.textile +1297 -0
- data/vendor/rails/railties/guides/source/i18n.textile +912 -0
- data/vendor/rails/railties/guides/source/index.erb.textile +124 -0
- data/vendor/rails/railties/guides/source/layout.html.erb +103 -0
- data/vendor/rails/railties/guides/source/layouts_and_rendering.textile +979 -0
- data/vendor/rails/railties/guides/source/migrations.textile +591 -0
- data/vendor/rails/railties/guides/source/nested_model_forms.textile +222 -0
- data/vendor/rails/railties/guides/source/performance_testing.textile +531 -0
- data/vendor/rails/railties/guides/source/plugins.textile +1512 -0
- data/vendor/rails/railties/guides/source/rails_on_rack.textile +309 -0
- data/vendor/rails/railties/guides/source/routing.textile +903 -0
- data/vendor/rails/railties/guides/source/security.textile +986 -0
- data/vendor/rails/railties/guides/source/testing.textile +951 -0
- data/vendor/rails/railties/helpers/application_controller.rb +10 -0
- data/vendor/rails/railties/helpers/application_helper.rb +3 -0
- data/vendor/rails/railties/helpers/performance_test.rb +9 -0
- data/vendor/rails/railties/helpers/test_helper.rb +38 -0
- data/vendor/rails/railties/html/404.html +30 -0
- data/vendor/rails/railties/html/422.html +30 -0
- data/vendor/rails/railties/html/500.html +30 -0
- data/vendor/rails/railties/html/favicon.ico +0 -0
- data/vendor/rails/railties/html/images/rails.png +0 -0
- data/vendor/rails/railties/html/index.html +275 -0
- data/vendor/rails/railties/html/javascripts/application.js +2 -0
- data/vendor/rails/railties/html/javascripts/controls.js +963 -0
- data/vendor/rails/railties/html/javascripts/dragdrop.js +973 -0
- data/vendor/rails/railties/html/javascripts/effects.js +1128 -0
- data/vendor/rails/railties/html/javascripts/prototype.js +4320 -0
- data/vendor/rails/railties/html/robots.txt +5 -0
- data/vendor/rails/railties/lib/code_statistics.rb +107 -0
- data/vendor/rails/railties/lib/commands.rb +17 -0
- data/vendor/rails/railties/lib/commands/about.rb +3 -0
- data/vendor/rails/railties/lib/commands/console.rb +45 -0
- data/vendor/rails/railties/lib/commands/dbconsole.rb +87 -0
- data/vendor/rails/railties/lib/commands/destroy.rb +6 -0
- data/vendor/rails/railties/lib/commands/generate.rb +6 -0
- data/vendor/rails/railties/lib/commands/ncgi/listener +86 -0
- data/vendor/rails/railties/lib/commands/ncgi/tracker +69 -0
- data/vendor/rails/railties/lib/commands/performance/benchmarker.rb +24 -0
- data/vendor/rails/railties/lib/commands/performance/profiler.rb +50 -0
- data/vendor/rails/railties/lib/commands/plugin.rb +968 -0
- data/vendor/rails/railties/lib/commands/runner.rb +54 -0
- data/vendor/rails/railties/lib/commands/server.rb +114 -0
- data/vendor/rails/railties/lib/commands/update.rb +4 -0
- data/vendor/rails/railties/lib/console_app.rb +30 -0
- data/vendor/rails/railties/lib/console_sandbox.rb +6 -0
- data/vendor/rails/railties/lib/console_with_helpers.rb +5 -0
- data/vendor/rails/railties/lib/dispatcher.rb +24 -0
- data/vendor/rails/railties/lib/fcgi_handler.rb +239 -0
- data/vendor/rails/railties/lib/initializer.rb +1128 -0
- data/vendor/rails/railties/lib/performance_test_help.rb +5 -0
- data/vendor/rails/railties/lib/rails/backtrace_cleaner.rb +54 -0
- data/vendor/rails/railties/lib/rails/gem_builder.rb +21 -0
- data/vendor/rails/railties/lib/rails/gem_dependency.rb +318 -0
- data/vendor/rails/railties/lib/rails/plugin.rb +179 -0
- data/vendor/rails/railties/lib/rails/plugin/loader.rb +198 -0
- data/vendor/rails/railties/lib/rails/plugin/locator.rb +100 -0
- data/vendor/rails/railties/lib/rails/rack.rb +8 -0
- data/vendor/rails/railties/lib/rails/rack/debugger.rb +23 -0
- data/vendor/rails/railties/lib/rails/rack/log_tailer.rb +35 -0
- data/vendor/rails/railties/lib/rails/rack/metal.rb +51 -0
- data/vendor/rails/railties/lib/rails/rack/static.rb +46 -0
- data/vendor/rails/railties/lib/rails/vendor_gem_source_index.rb +140 -0
- data/vendor/rails/railties/lib/rails/version.rb +9 -0
- data/vendor/rails/railties/lib/rails_generator.rb +46 -0
- data/vendor/rails/railties/lib/rails_generator/base.rb +266 -0
- data/vendor/rails/railties/lib/rails_generator/commands.rb +621 -0
- data/vendor/rails/railties/lib/rails_generator/generated_attribute.rb +47 -0
- data/vendor/rails/railties/lib/rails_generator/generators/applications/app/USAGE +9 -0
- data/vendor/rails/railties/lib/rails_generator/generators/applications/app/app_generator.rb +266 -0
- data/vendor/rails/railties/lib/rails_generator/generators/applications/app/scm/scm.rb +8 -0
- data/vendor/rails/railties/lib/rails_generator/generators/applications/app/scm/svn.rb +7 -0
- data/vendor/rails/railties/lib/rails_generator/generators/applications/app/template_runner.rb +401 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/controller/USAGE +30 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/controller/controller_generator.rb +43 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/controller/templates/controller.rb +7 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/controller/templates/functional_test.rb +8 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/controller/templates/helper.rb +2 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/controller/templates/helper_test.rb +4 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/controller/templates/view.html.erb +2 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/helper/USAGE +24 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/helper/helper_generator.rb +25 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/helper/templates/helper.rb +2 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/helper/templates/helper_test.rb +4 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/integration_test/USAGE +8 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/integration_test/integration_test_generator.rb +16 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/integration_test/templates/integration_test.rb +10 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/mailer/USAGE +16 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/mailer/mailer_generator.rb +30 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/mailer/templates/fixture.erb +3 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/mailer/templates/fixture.rhtml +0 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/mailer/templates/mailer.rb +15 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/mailer/templates/unit_test.rb +20 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/mailer/templates/view.erb +3 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/mailer/templates/view.rhtml +0 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/metal/USAGE +8 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/metal/metal_generator.rb +8 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/metal/templates/metal.rb +12 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/migration/USAGE +29 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/migration/migration_generator.rb +20 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/migration/templates/migration.rb +11 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/model/USAGE +27 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/model/model_generator.rb +52 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/model/templates/fixtures.yml +23 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/model/templates/migration.rb +16 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/model/templates/model.rb +5 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/model/templates/unit_test.rb +8 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/observer/USAGE +13 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/observer/observer_generator.rb +16 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/observer/templates/observer.rb +2 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/observer/templates/unit_test.rb +8 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/performance_test/USAGE +8 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/performance_test/performance_test_generator.rb +16 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/performance_test/templates/performance_test.rb +9 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/plugin/USAGE +25 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/plugin/plugin_generator.rb +39 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/MIT-LICENSE +20 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/README +13 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/Rakefile +23 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/USAGE +8 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/generator.rb +8 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/init.rb +1 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/install.rb +1 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/plugin.rb +1 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/tasks.rake +4 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/test_helper.rb +3 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/uninstall.rb +1 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/unit_test.rb +8 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/resource/USAGE +23 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/resource/resource_generator.rb +76 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/resource/templates/controller.rb +2 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/resource/templates/functional_test.rb +8 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/resource/templates/helper.rb +2 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/resource/templates/helper_test.rb +4 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/USAGE +29 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/scaffold_generator.rb +103 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/controller.rb +83 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/functional_test.rb +45 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/helper.rb +2 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/helper_test.rb +4 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/layout.html.erb +17 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/style.css +54 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/view_edit.html.erb +18 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/view_index.html.erb +24 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/view_new.html.erb +17 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/view_show.html.erb +10 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/session_migration/USAGE +10 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/session_migration/session_migration_generator.rb +18 -0
- data/vendor/rails/railties/lib/rails_generator/generators/components/session_migration/templates/migration.rb +16 -0
- data/vendor/rails/railties/lib/rails_generator/lookup.rb +249 -0
- data/vendor/rails/railties/lib/rails_generator/manifest.rb +53 -0
- data/vendor/rails/railties/lib/rails_generator/options.rb +150 -0
- data/vendor/rails/railties/lib/rails_generator/scripts.rb +89 -0
- data/vendor/rails/railties/lib/rails_generator/scripts/destroy.rb +29 -0
- data/vendor/rails/railties/lib/rails_generator/scripts/generate.rb +7 -0
- data/vendor/rails/railties/lib/rails_generator/scripts/update.rb +12 -0
- data/vendor/rails/railties/lib/rails_generator/secret_key_generator.rb +24 -0
- data/vendor/rails/railties/lib/rails_generator/simple_logger.rb +46 -0
- data/vendor/rails/railties/lib/rails_generator/spec.rb +44 -0
- data/vendor/rails/railties/lib/railties_path.rb +1 -0
- data/vendor/rails/railties/lib/ruby_version_check.rb +17 -0
- data/vendor/rails/railties/lib/rubyprof_ext.rb +35 -0
- data/vendor/rails/railties/lib/source_annotation_extractor.rb +102 -0
- data/vendor/rails/railties/lib/tasks/annotations.rake +20 -0
- data/vendor/rails/railties/lib/tasks/databases.rake +436 -0
- data/vendor/rails/railties/lib/tasks/documentation.rake +88 -0
- data/vendor/rails/railties/lib/tasks/framework.rake +146 -0
- data/vendor/rails/railties/lib/tasks/gems.rake +78 -0
- data/vendor/rails/railties/lib/tasks/log.rake +9 -0
- data/vendor/rails/railties/lib/tasks/middleware.rake +7 -0
- data/vendor/rails/railties/lib/tasks/misc.rake +63 -0
- data/vendor/rails/railties/lib/tasks/rails.rb +14 -0
- data/vendor/rails/railties/lib/tasks/routes.rake +18 -0
- data/vendor/rails/railties/lib/tasks/statistics.rake +17 -0
- data/vendor/rails/railties/lib/tasks/testing.rake +139 -0
- data/vendor/rails/railties/lib/test_help.rb +38 -0
- data/vendor/rails/railties/lib/webrick_server.rb +156 -0
- data/vendor/redcloth/Rakefile +196 -0
- data/vendor/redcloth/bin/redcloth +3 -0
- data/vendor/redcloth/doc/CHANGELOG +160 -0
- data/vendor/redcloth/doc/COPYING +25 -0
- data/vendor/redcloth/doc/README +106 -0
- data/vendor/redcloth/doc/REFERENCE +216 -0
- data/vendor/redcloth/doc/make.rb +359 -0
- data/vendor/redcloth/lib/rctodb.rb +1107 -0
- data/vendor/redcloth/lib/redcloth.rb +1130 -0
- data/vendor/redcloth/run-tests.rb +28 -0
- data/vendor/redcloth/setup.rb +1376 -0
- data/vendor/redcloth/tests/code.yml +105 -0
- data/vendor/redcloth/tests/images.yml +171 -0
- data/vendor/redcloth/tests/instiki.yml +39 -0
- data/vendor/redcloth/tests/links.yml +155 -0
- data/vendor/redcloth/tests/lists.yml +77 -0
- data/vendor/redcloth/tests/markdown.yml +218 -0
- data/vendor/redcloth/tests/poignant.yml +64 -0
- data/vendor/redcloth/tests/table.yml +198 -0
- data/vendor/redcloth/tests/textism.yml +406 -0
- metadata +2741 -0
@@ -0,0 +1,1680 @@
|
|
1
|
+
# Sass (Syntactically Awesome StyleSheets)
|
2
|
+
|
3
|
+
* Table of contents
|
4
|
+
{:toc}
|
5
|
+
|
6
|
+
Sass is an extension of CSS
|
7
|
+
that adds power and elegance to the basic language.
|
8
|
+
It allows you to use [variables](#variables_), [nested rules](#nested_rules),
|
9
|
+
[mixins](#mixins), [inline imports](#import), and more,
|
10
|
+
all with a fully CSS-compatible syntax.
|
11
|
+
Sass helps keep large stylesheets well-organized,
|
12
|
+
and get small stylesheets up and running quickly,
|
13
|
+
particularly with the help of
|
14
|
+
[the Compass style library](http://compass-style.org).
|
15
|
+
|
16
|
+
## Features
|
17
|
+
|
18
|
+
* Fully CSS3-compatible
|
19
|
+
* Language extensions such as variables, nesting, and mixins
|
20
|
+
* Many {Sass::Script::Functions useful functions} for manipulating colors and other values
|
21
|
+
* Advanced features like [control directives](#control_directives) for libraries
|
22
|
+
* Well-formatted, customizable output
|
23
|
+
* [Firebug integration](https://addons.mozilla.org/en-US/firefox/addon/103988)
|
24
|
+
|
25
|
+
## Syntax
|
26
|
+
|
27
|
+
There are two syntaxes available for Sass.
|
28
|
+
The first, known as SCSS (Sassy CSS) and used throughout this reference,
|
29
|
+
is an extension of the syntax of CSS3.
|
30
|
+
This means that every valid CSS3 stylesheet
|
31
|
+
is a valid SCSS file with the same meaning.
|
32
|
+
In addition, SCSS understands most CSS hacks
|
33
|
+
and vendor-specific syntax, such as [IE's old `filter` syntax](http://msdn.microsoft.com/en-us/library/ms533754%28VS.85%29.aspx).
|
34
|
+
This syntax is enhanced with the Sass features described below.
|
35
|
+
Files using this syntax have the `.scss` extension.
|
36
|
+
|
37
|
+
The second and older syntax, known as the indented syntax (or sometimes just "Sass"),
|
38
|
+
provides a more concise way of writing CSS.
|
39
|
+
It uses indentation rather than brackets to indicate nesting of selectors,
|
40
|
+
and newlines rather than semicolons to separate properties.
|
41
|
+
Some people find this to be easier to read and quicker to write than SCSS.
|
42
|
+
The indented syntax has all the same features,
|
43
|
+
although some of them have slightly different syntax;
|
44
|
+
this is described in {file:INDENTED_SYNTAX.md the indented syntax reference}.
|
45
|
+
Files using this syntax have the `.sass` extension.
|
46
|
+
|
47
|
+
Either syntax can [import](#import) files written in the other.
|
48
|
+
Files can be automatically converted from one syntax to the other
|
49
|
+
using the `sass-convert` command line tool:
|
50
|
+
|
51
|
+
# Convert Sass to SCSS
|
52
|
+
$ sass-convert style.sass style.scss
|
53
|
+
|
54
|
+
# Convert SCSS to Sass
|
55
|
+
$ sass-convert style.scss style.sass
|
56
|
+
|
57
|
+
## Using Sass
|
58
|
+
|
59
|
+
Sass can be used in three ways:
|
60
|
+
as a command-line tool,
|
61
|
+
as a standalone Ruby module,
|
62
|
+
and as a plugin for any Rack-enabled framework,
|
63
|
+
including Ruby on Rails and Merb.
|
64
|
+
Sass is bundled with Haml,
|
65
|
+
so if the Haml plugin or RubyGem is installed,
|
66
|
+
Sass will already be installed as a plugin or gem, respectively.
|
67
|
+
The first step for all of these is to install the Haml gem:
|
68
|
+
|
69
|
+
gem install haml
|
70
|
+
|
71
|
+
If you're using Windows,
|
72
|
+
you may need to [install Ruby](http://rubyinstaller.org/download.html) first.
|
73
|
+
|
74
|
+
To run Sass from the command line, just use
|
75
|
+
|
76
|
+
sass input.scss output.css
|
77
|
+
|
78
|
+
You can also tell Sass to watch the file and update the CSS
|
79
|
+
every time the Sass file changes:
|
80
|
+
|
81
|
+
sass --watch input.scss:output.css
|
82
|
+
|
83
|
+
If you have a directory with many Sass files,
|
84
|
+
you can also tell Sass to watch the entire directory:
|
85
|
+
|
86
|
+
sass --watch app/sass:public/stylesheets
|
87
|
+
|
88
|
+
Use `sass --help` for full documentation.
|
89
|
+
|
90
|
+
Using Sass in Ruby code is very simple.
|
91
|
+
After installing the Haml gem,
|
92
|
+
you can use it by running `require "sass"`
|
93
|
+
and using {Sass::Engine} like so:
|
94
|
+
|
95
|
+
engine = Sass::Engine.new("#main {background-color: #0000ff}", :syntax => :scss)
|
96
|
+
engine.render #=> "#main { background-color: #0000ff; }\n"
|
97
|
+
|
98
|
+
### Rack/Rails/Merb Plugin
|
99
|
+
|
100
|
+
To enable Sass in Rails versions before Rails 3,
|
101
|
+
add the following line to `environment.rb`:
|
102
|
+
|
103
|
+
config.gem "haml"
|
104
|
+
|
105
|
+
For Rails 3, instead add the following line to the Gemfile:
|
106
|
+
|
107
|
+
gem "haml"
|
108
|
+
|
109
|
+
To enable Sass in Merb,
|
110
|
+
add the following line to `config/dependencies.rb`:
|
111
|
+
|
112
|
+
dependency "merb-haml"
|
113
|
+
|
114
|
+
To enable Sass in a Rack application,
|
115
|
+
add
|
116
|
+
|
117
|
+
require 'sass/plugin/rack'
|
118
|
+
use Sass::Plugin::Rack
|
119
|
+
|
120
|
+
to `config.ru`.
|
121
|
+
|
122
|
+
Sass stylesheets don't work the same as views.
|
123
|
+
They don't contain dynamic content,
|
124
|
+
so the CSS only needs to be generated when the Sass file has been updated.
|
125
|
+
By default, `.sass` and `.scss` files are placed in public/stylesheets/sass
|
126
|
+
(this can be customized with the [`:template_location`](#template_location-option) option).
|
127
|
+
Then, whenever necessary, they're compiled into corresponding CSS files in public/stylesheets.
|
128
|
+
For instance, public/stylesheets/sass/main.scss would be compiled to public/stylesheets/main.css.
|
129
|
+
|
130
|
+
### Caching
|
131
|
+
|
132
|
+
By default, Sass caches compiled templates and [partials](#partials).
|
133
|
+
This dramatically speeds up re-compilation of large collections of Sass files,
|
134
|
+
and works best if the Sass templates are split up into separate files
|
135
|
+
that are all [`@import`](#import)ed into one large file.
|
136
|
+
|
137
|
+
Without a framework, Sass puts the cached templates in the `.sass-cache` directory.
|
138
|
+
In Rails and Merb, they go in `tmp/sass-cache`.
|
139
|
+
The directory can be customized with the [`:cache_location`](#cache_location-option) option.
|
140
|
+
If you don't want Sass to use caching at all,
|
141
|
+
set the [`:cache`](#cache-option) option to `false`.
|
142
|
+
|
143
|
+
### Options
|
144
|
+
|
145
|
+
Options can be set by setting the {Sass::Plugin#options Sass::Plugin.options} hash
|
146
|
+
in `environment.rb` in Rails or `config.ru` in Rack...
|
147
|
+
|
148
|
+
Sass::Plugin.options[:style] = :compact
|
149
|
+
|
150
|
+
...or by setting the `Merb::Plugin.config[:sass]` hash in `init.rb` in Merb...
|
151
|
+
|
152
|
+
Merb::Plugin.config[:sass][:style] = :compact
|
153
|
+
|
154
|
+
...or by passing an options hash to {Sass::Engine#initialize}.
|
155
|
+
All relevant options are also available via flags
|
156
|
+
to the `sass` command-line executable.
|
157
|
+
Available options are:
|
158
|
+
|
159
|
+
{#style-option} `:style`
|
160
|
+
: Sets the style of the CSS output.
|
161
|
+
See [Output Style](#output_style).
|
162
|
+
|
163
|
+
{#syntax-option} `:syntax`
|
164
|
+
: The syntax of the input file, `:sass` for the indented syntax
|
165
|
+
and `:scss` for the CSS-extension syntax.
|
166
|
+
This is only useful when you're constructing {Sass::Engine} instances yourself;
|
167
|
+
it's automatically set properly when using {Sass::Plugin}.
|
168
|
+
Defaults to `:sass`.
|
169
|
+
|
170
|
+
{#property_syntax-option} `:property_syntax`
|
171
|
+
: Forces indented-syntax documents to use one syntax for properties.
|
172
|
+
If the correct syntax isn't used, an error is thrown.
|
173
|
+
`:new` forces the use of a colon or equals sign
|
174
|
+
after the property name.
|
175
|
+
For example: `color: #0f3`
|
176
|
+
or `width: $main_width`.
|
177
|
+
`:old` forces the use of a colon
|
178
|
+
before the property name.
|
179
|
+
For example: `:color #0f3`
|
180
|
+
or `:width $main_width`.
|
181
|
+
By default, either syntax is valid.
|
182
|
+
This has no effect on SCSS documents.
|
183
|
+
|
184
|
+
{#cache-option} `:cache`
|
185
|
+
: Whether parsed Sass files should be cached,
|
186
|
+
allowing greater speed. Defaults to true.
|
187
|
+
|
188
|
+
{#read_cache-option} `:read_cache`
|
189
|
+
: If this is set and `:cache` is not,
|
190
|
+
only read the Sass cache if it exists,
|
191
|
+
don't write to it if it doesn't.
|
192
|
+
|
193
|
+
{#never_update-option} `:never_update`
|
194
|
+
: Whether the CSS files should never be updated,
|
195
|
+
even if the template file changes.
|
196
|
+
Setting this to true may give small performance gains.
|
197
|
+
It always defaults to false.
|
198
|
+
Only has meaning within Rack, Ruby on Rails, or Merb.
|
199
|
+
|
200
|
+
{#always_update-option} `:always_update`
|
201
|
+
: Whether the CSS files should be updated every
|
202
|
+
time a controller is accessed,
|
203
|
+
as opposed to only when the template has been modified.
|
204
|
+
Defaults to false.
|
205
|
+
Only has meaning within Rack, Ruby on Rails, or Merb.
|
206
|
+
|
207
|
+
{#always_check-option} `:always_check`
|
208
|
+
: Whether a Sass template should be checked for updates every
|
209
|
+
time a controller is accessed,
|
210
|
+
as opposed to only when the server starts.
|
211
|
+
If a Sass template has been updated,
|
212
|
+
it will be recompiled and will overwrite the corresponding CSS file.
|
213
|
+
Defaults to false in production mode, true otherwise.
|
214
|
+
Only has meaning within Rack, Ruby on Rails, or Merb.
|
215
|
+
|
216
|
+
{#full_exception-option} `:full_exception`
|
217
|
+
: Whether an error in the Sass code
|
218
|
+
should cause Sass to provide a detailed description
|
219
|
+
within the generated CSS file.
|
220
|
+
If set to true, the error will be displayed
|
221
|
+
along with a line number and source snippet
|
222
|
+
both as a comment in the CSS file
|
223
|
+
and at the top of the page (in supported browsers).
|
224
|
+
Otherwise, an exception will be raised in the Ruby code.
|
225
|
+
Defaults to false in production mode, true otherwise.
|
226
|
+
Only has meaning within Rack, Ruby on Rails, or Merb.
|
227
|
+
|
228
|
+
{#template_location-option} `:template_location`
|
229
|
+
: A path to the root sass template directory for your application.
|
230
|
+
If a hash, `:css_location` is ignored and this option designates
|
231
|
+
a mapping between input and output directories.
|
232
|
+
May also be given a list of 2-element lists, instead of a hash.
|
233
|
+
Defaults to `css_location + "/sass"`.
|
234
|
+
Only has meaning within Rack, Ruby on Rails, or Merb.
|
235
|
+
Note that if multiple template locations are specified, all
|
236
|
+
of them are placed in the import path, allowing you to import
|
237
|
+
between them.
|
238
|
+
**Note that due to the many possible formats it can take,
|
239
|
+
this option should only be set directly, not accessed or modified.
|
240
|
+
Use the {Sass::Plugin#template_location_array},
|
241
|
+
{Sass::Plugin#add_template_location},
|
242
|
+
and {Sass::Plugin#remove_template_location} methods instead**.
|
243
|
+
|
244
|
+
{#css_location-option} `:css_location`
|
245
|
+
: The path where CSS output should be written to.
|
246
|
+
This option is ignored when `:template_location` is a Hash.
|
247
|
+
Defaults to `"./public/stylesheets"`.
|
248
|
+
Only has meaning within Rack, Ruby on Rails, or Merb.
|
249
|
+
|
250
|
+
{#cache_location-option} `:cache_location`
|
251
|
+
: The path where the cached `sassc` files should be written to.
|
252
|
+
Defaults to `"./tmp/sass-cache"` in Rails and Merb,
|
253
|
+
or `"./.sass-cache"` otherwise.
|
254
|
+
|
255
|
+
{#unix_newlines-option} `:unix_newlines`
|
256
|
+
: If true, use Unix-style newlines when writing files.
|
257
|
+
Only has meaning on Windows, and only when Sass is writing the files
|
258
|
+
(in Rack, Rails, or Merb, when using {Sass::Plugin} directly,
|
259
|
+
or when using the command-line executable).
|
260
|
+
|
261
|
+
{#filename-option} `:filename`
|
262
|
+
: The filename of the file being rendered.
|
263
|
+
This is used solely for reporting errors,
|
264
|
+
and is automatically set when using Rack, Rails, or Merb.
|
265
|
+
|
266
|
+
{#line-option} `:line`
|
267
|
+
: The number of the first line of the Sass template.
|
268
|
+
Used for reporting line numbers for errors.
|
269
|
+
This is useful to set if the Sass template is embedded in a Ruby file.
|
270
|
+
|
271
|
+
{#load_paths-option} `:load_paths`
|
272
|
+
: An array of filesystem paths which should be searched
|
273
|
+
for Sass templates imported with the [`@import`](#import) directive.
|
274
|
+
This defaults to the working directory and, in Rack, Rails, or Merb,
|
275
|
+
whatever `:template_location` is.
|
276
|
+
|
277
|
+
{#line_numbers-option} `:line_numbers`
|
278
|
+
: When set to true, causes the line number and file
|
279
|
+
where a selector is defined to be emitted into the compiled CSS
|
280
|
+
as a comment. Useful for debugging, especially when using imports
|
281
|
+
and mixins.
|
282
|
+
This option may also be called `:line_comments`.
|
283
|
+
Automatically disabled when using the `:compressed` output style
|
284
|
+
or the `:debug_info` option.
|
285
|
+
|
286
|
+
{#debug_info-option} `:debug_info`
|
287
|
+
: When set to true, causes the line number and file
|
288
|
+
where a selector is defined to be emitted into the compiled CSS
|
289
|
+
in a format that can be understood by the browser.
|
290
|
+
Useful in conjunction with [the FireSass Firebug extension](https://addons.mozilla.org/en-US/firefox/addon/103988)
|
291
|
+
for displaying the Sass filename and line number.
|
292
|
+
Automatically disabled when using the `:compressed` output style.
|
293
|
+
|
294
|
+
{#custom-option} `:custom`
|
295
|
+
: An option that's available for individual applications to set
|
296
|
+
to make data available to {Sass::Script::Functions custom Sass functions}.
|
297
|
+
|
298
|
+
{#sass2-option} `:sass2`
|
299
|
+
: Parses the document using semantics closer to that of Sass v2.
|
300
|
+
Currently, this just means that strings in mixin arguments
|
301
|
+
are treated as though they were in [an `=` context](#sass-script-strings).
|
302
|
+
|
303
|
+
{#quiet-option} `:quiet`
|
304
|
+
: When set to true, causes warnings to be disabled.
|
305
|
+
|
306
|
+
### Encodings
|
307
|
+
|
308
|
+
When running on Ruby 1.9 and later, Sass is aware of the character encoding of documents
|
309
|
+
and will handle them the same way that CSS would.
|
310
|
+
By default, Sass assumes that all stylesheets are encoded
|
311
|
+
using whatever coding system your operating system defaults to.
|
312
|
+
For many users this will be `UTF-8`, the de facto standard for the web.
|
313
|
+
For some users, though, it may be a more local encoding.
|
314
|
+
|
315
|
+
If you want to use a different encoding for your stylesheet
|
316
|
+
than your operating system default,
|
317
|
+
you can use the `@charset` declaration just like in CSS.
|
318
|
+
Add `@charset "encoding-name";` at the beginning of the stylesheet
|
319
|
+
(before any whitespace or comments)
|
320
|
+
and Sass will interpret it as the given encoding.
|
321
|
+
Note that whatever encoding you use, it must be convertible to Unicode.
|
322
|
+
|
323
|
+
Sass will also respect any Unicode BOMs and non-ASCII-compatible Unicode encodings
|
324
|
+
[as specified by the CSS spec](http://www.w3.org/TR/CSS2/syndata.html#charset),
|
325
|
+
although this is *not* the recommended way
|
326
|
+
to specify the character set for a document.
|
327
|
+
Note that Sass does not support the obscure `UTF-32-2143`,
|
328
|
+
`UTF-32-3412`, `EBCDIC`, `IBM1026`, and `GSM 03.38` encodings,
|
329
|
+
since Ruby does not have support for them
|
330
|
+
and they're highly unlikely to ever be used in practice.
|
331
|
+
|
332
|
+
#### Output Encoding
|
333
|
+
|
334
|
+
In general, Sass will try to encode the output stylesheet
|
335
|
+
using the same encoding as the input stylesheet.
|
336
|
+
In order for it to do this, though, the input stylesheet must have a `@charset` declaration;
|
337
|
+
otherwise, Sass will default to encoding the output stylesheet as UTF-8.
|
338
|
+
In addition, it will add a `@charset` declaration to the output
|
339
|
+
if it's not plain ASCII.
|
340
|
+
|
341
|
+
When other stylesheets with `@charset` declarations are `@import`ed,
|
342
|
+
Sass will convert them to the same encoding as the main stylesheet.
|
343
|
+
|
344
|
+
Note that Ruby 1.8 does not have good support for character encodings,
|
345
|
+
and so Sass behaves somewhat differently when running under it than under Ruby 1.9 and later.
|
346
|
+
In Ruby 1.8, Sass simply uses the first `@charset` declaration in the stylesheet
|
347
|
+
or any of the other stylesheets it `@import`s.
|
348
|
+
|
349
|
+
## CSS Extensions
|
350
|
+
|
351
|
+
### Nested Rules
|
352
|
+
|
353
|
+
Sass allows CSS rules to be nested within one another.
|
354
|
+
The inner rule then only applies within the outer rule's selector.
|
355
|
+
For example:
|
356
|
+
|
357
|
+
#main p {
|
358
|
+
color: #00ff00;
|
359
|
+
width: 97%;
|
360
|
+
|
361
|
+
.redbox {
|
362
|
+
background-color: #ff0000;
|
363
|
+
color: #000000;
|
364
|
+
}
|
365
|
+
}
|
366
|
+
|
367
|
+
is compiled to:
|
368
|
+
|
369
|
+
#main p {
|
370
|
+
color: #00ff00;
|
371
|
+
width: 97%; }
|
372
|
+
#main p .redbox {
|
373
|
+
background-color: #ff0000;
|
374
|
+
color: #000000; }
|
375
|
+
|
376
|
+
This helps avoid repetition of parent selectors,
|
377
|
+
and makes complex CSS layouts with lots of nested selectors much simpler.
|
378
|
+
For example:
|
379
|
+
|
380
|
+
#main {
|
381
|
+
width: 97%;
|
382
|
+
|
383
|
+
p, div {
|
384
|
+
font-size: 2em;
|
385
|
+
a { font-weight: bold; }
|
386
|
+
}
|
387
|
+
|
388
|
+
pre { font-size: 3em; }
|
389
|
+
}
|
390
|
+
|
391
|
+
is compiled to:
|
392
|
+
|
393
|
+
#main {
|
394
|
+
width: 97%; }
|
395
|
+
#main p, #main div {
|
396
|
+
font-size: 2em; }
|
397
|
+
#main p a, #main div a {
|
398
|
+
font-weight: bold; }
|
399
|
+
#main pre {
|
400
|
+
font-size: 3em; }
|
401
|
+
|
402
|
+
### Referencing Parent Selectors: `&`
|
403
|
+
|
404
|
+
Sometimes it's useful to use a nested rule's parent selector
|
405
|
+
in other ways than the default.
|
406
|
+
For instance, you might want to have special styles
|
407
|
+
for when that selector is hovered over
|
408
|
+
or for when the body element has a certain class.
|
409
|
+
In these cases, you can explicitly specify where the parent selector
|
410
|
+
should be inserted using the `&` character.
|
411
|
+
For example:
|
412
|
+
|
413
|
+
a {
|
414
|
+
font-weight: bold;
|
415
|
+
text-decoration: none;
|
416
|
+
&:hover { text-decoration: underline; }
|
417
|
+
body.firefox & { font-weight: normal; }
|
418
|
+
}
|
419
|
+
|
420
|
+
is compiled to:
|
421
|
+
|
422
|
+
a {
|
423
|
+
font-weight: bold;
|
424
|
+
text-decoration: none; }
|
425
|
+
a:hover {
|
426
|
+
text-decoration: underline; }
|
427
|
+
body.firefox a {
|
428
|
+
font-weight: normal; }
|
429
|
+
|
430
|
+
`&` will be replaced with the parent selector as it appears in the CSS.
|
431
|
+
This means that if you have a deeply nested rule,
|
432
|
+
the parent selector will be fully resolved
|
433
|
+
before the `&` is replaced.
|
434
|
+
For example:
|
435
|
+
|
436
|
+
#main {
|
437
|
+
color: black;
|
438
|
+
a {
|
439
|
+
font-weight: bold;
|
440
|
+
&:hover { color: red; }
|
441
|
+
}
|
442
|
+
}
|
443
|
+
|
444
|
+
is compiled to:
|
445
|
+
|
446
|
+
#main {
|
447
|
+
color: black; }
|
448
|
+
#main a {
|
449
|
+
font-weight: bold; }
|
450
|
+
#main a:hover {
|
451
|
+
color: red; }
|
452
|
+
|
453
|
+
### Nested Properties
|
454
|
+
|
455
|
+
CSS has quite a few properties that are in "namespaces;"
|
456
|
+
for instance, `font-family`, `font-size`, and `font-weight`
|
457
|
+
are all in the `font` namespace.
|
458
|
+
In CSS, if you want to set a bunch of properties in the same namespace,
|
459
|
+
you have to type it out each time.
|
460
|
+
Sass provides a shortcut for this:
|
461
|
+
just write the namespace one,
|
462
|
+
then nest each of the sub-properties within it.
|
463
|
+
For example:
|
464
|
+
|
465
|
+
.funky {
|
466
|
+
font: {
|
467
|
+
family: fantasy;
|
468
|
+
size: 30em;
|
469
|
+
weight: bold;
|
470
|
+
}
|
471
|
+
}
|
472
|
+
|
473
|
+
is compiled to:
|
474
|
+
|
475
|
+
.funky {
|
476
|
+
font-family: fantasy;
|
477
|
+
font-size: 30em;
|
478
|
+
font-weight: bold; }
|
479
|
+
|
480
|
+
The property namespace itself can also have a value.
|
481
|
+
For example:
|
482
|
+
|
483
|
+
.funky {
|
484
|
+
font: 2px/3px {
|
485
|
+
family: fantasy;
|
486
|
+
size: 30em;
|
487
|
+
weight: bold;
|
488
|
+
}
|
489
|
+
}
|
490
|
+
|
491
|
+
is compiled to:
|
492
|
+
|
493
|
+
.funky {
|
494
|
+
font: 2px/3px;
|
495
|
+
font-family: fantasy;
|
496
|
+
font-size: 30em;
|
497
|
+
font-weight: bold; }
|
498
|
+
|
499
|
+
## Comments: `/* */` and `//` {#comments}
|
500
|
+
|
501
|
+
Sass supports standard multiline CSS comments with `/* */`,
|
502
|
+
as well as single-line comments with `//`.
|
503
|
+
The multiline comments are preserved in the CSS output where possible,
|
504
|
+
while the single-line comments are removed.
|
505
|
+
For example:
|
506
|
+
|
507
|
+
/* This comment is
|
508
|
+
* several lines long.
|
509
|
+
* since it uses the CSS comment syntax,
|
510
|
+
* it will appear in the CSS output. */
|
511
|
+
body { color: black; }
|
512
|
+
|
513
|
+
// These comments are only one line long each.
|
514
|
+
// They won't appear in the CSS output,
|
515
|
+
// since they use the single-line comment syntax.
|
516
|
+
a { color: green; }
|
517
|
+
|
518
|
+
is compiled to:
|
519
|
+
|
520
|
+
/* This comment is
|
521
|
+
* several lines long.
|
522
|
+
* since it uses the CSS comment syntax,
|
523
|
+
* it will appear in the CSS output. */
|
524
|
+
body {
|
525
|
+
color: black; }
|
526
|
+
|
527
|
+
a {
|
528
|
+
color: green; }
|
529
|
+
|
530
|
+
## SassScript {#sassscript}
|
531
|
+
|
532
|
+
In addition to the plain CSS property syntax,
|
533
|
+
Sass supports a small set of extensions called SassScript.
|
534
|
+
SassScript allows properties to use
|
535
|
+
variables, arithmetic, and extra functions.
|
536
|
+
SassScript can be used in any property value.
|
537
|
+
|
538
|
+
SassScript can also be used to generate selectors and property names,
|
539
|
+
which is useful when writing [mixins](#mixins).
|
540
|
+
This is done via [interpolation](#interpolation_).
|
541
|
+
|
542
|
+
### Interactive Shell
|
543
|
+
|
544
|
+
You can easily experiment with SassScript using the interactive shell.
|
545
|
+
To launch the shell run the sass command-line with the `-i` option. At the
|
546
|
+
prompt, enter any legal SassScript expression to have it evaluated
|
547
|
+
and the result printed out for you:
|
548
|
+
|
549
|
+
$ sass -i
|
550
|
+
>> "Hello, Sassy World!"
|
551
|
+
"Hello, Sassy World!"
|
552
|
+
>> 1px + 1px + 1px
|
553
|
+
3px
|
554
|
+
>> #777 + #777
|
555
|
+
#eeeeee
|
556
|
+
>> #777 + #888
|
557
|
+
white
|
558
|
+
|
559
|
+
### Variables: `$` {#variables_}
|
560
|
+
|
561
|
+
The most straightforward way to use SassScript
|
562
|
+
is to use variables.
|
563
|
+
Variables begin with dollar signs,
|
564
|
+
and are set like CSS properties:
|
565
|
+
|
566
|
+
$width: 5em;
|
567
|
+
|
568
|
+
You can then refer to them in properties:
|
569
|
+
|
570
|
+
#main {
|
571
|
+
width: $width;
|
572
|
+
}
|
573
|
+
|
574
|
+
Variables are only available within the level of nested selectors
|
575
|
+
where they're defined.
|
576
|
+
If they're defined outside of any nested selectors,
|
577
|
+
they're available everywhere.
|
578
|
+
|
579
|
+
Variables used to use the prefix character `!`;
|
580
|
+
this still works, but it's deprecated and prints a warning.
|
581
|
+
`$` is the recommended syntax.
|
582
|
+
|
583
|
+
Variables also used to be defined with `=` rather than `:`;
|
584
|
+
this still works, but it's deprecated and prints a warning.
|
585
|
+
`:` is the recommended syntax.
|
586
|
+
|
587
|
+
### Data Types
|
588
|
+
|
589
|
+
SassScript supports four main data types:
|
590
|
+
|
591
|
+
* numbers (e.g. `1.2`, `13`, `10px`)
|
592
|
+
* strings of text, with and without quotes (e.g. `"foo"`, `'bar'`, `baz`)
|
593
|
+
* colors (e.g. `blue`, `#04a3f9`, `rgba(255, 0, 0, 0.5)`)
|
594
|
+
* booleans (e.g. `true`, `false`)
|
595
|
+
|
596
|
+
SassScript also supports all other types of CSS property value,
|
597
|
+
such as Unicode ranges and `!important` declarations.
|
598
|
+
However, it has no special handling for these types.
|
599
|
+
They're treated just like unquoted strings.
|
600
|
+
|
601
|
+
#### Strings {#sass-script-strings}
|
602
|
+
|
603
|
+
CSS specifies two kinds of strings: those with quotes,
|
604
|
+
such as `"Lucida Grande"` or `'http://sass-lang.com'`,
|
605
|
+
and those without quotes, such as `sans-serif` or `bold`.
|
606
|
+
SassScript recognizes both kinds,
|
607
|
+
and in general if one kind of string is used in the Sass document,
|
608
|
+
that kind of string will be used in the resulting CSS.
|
609
|
+
|
610
|
+
There is one exception to this, though:
|
611
|
+
when using [`#{}` interpolation](#interpolation_),
|
612
|
+
quoted strings are unquoted.
|
613
|
+
This makes it easier to use e.g. selector names in [mixins](#mixins).
|
614
|
+
For example:
|
615
|
+
|
616
|
+
@mixin firefox-message($selector) {
|
617
|
+
body.firefox #{$selector}:before {
|
618
|
+
content: "Hi, Firefox users!"; } }
|
619
|
+
|
620
|
+
@include firefox-message(".header");
|
621
|
+
|
622
|
+
is compiled to:
|
623
|
+
|
624
|
+
body.firefox .header:before {
|
625
|
+
content: "Hi, Firefox users!"; }
|
626
|
+
|
627
|
+
It's also worth noting that when using the [deprecated `=` property syntax](#sassscript),
|
628
|
+
all strings are interpreted as unquoted,
|
629
|
+
regardless of whether or not they're written with quotes.
|
630
|
+
|
631
|
+
### Operations
|
632
|
+
|
633
|
+
All types support equality operations (`==` and `!=`).
|
634
|
+
In addition, each type has its own operations
|
635
|
+
that it has special support for.
|
636
|
+
|
637
|
+
#### Number Operations
|
638
|
+
|
639
|
+
SassScript supports the standard arithmetic operations on numbers
|
640
|
+
(`+`, `-`, `*`, `/`, `%`),
|
641
|
+
and will automatically convert between units if it can:
|
642
|
+
|
643
|
+
p {
|
644
|
+
width: 1in + 8pt;
|
645
|
+
}
|
646
|
+
|
647
|
+
is compiled to:
|
648
|
+
|
649
|
+
p {
|
650
|
+
width: 1.111in; }
|
651
|
+
|
652
|
+
Relational operators
|
653
|
+
(`<`, `>`, `<=`, `>=`)
|
654
|
+
are also supported for numbers,
|
655
|
+
and equality operators
|
656
|
+
(`==`, `!=`)
|
657
|
+
are supported for all types.
|
658
|
+
|
659
|
+
##### Division and `/`
|
660
|
+
{#division-and-slash}
|
661
|
+
|
662
|
+
CSS allows `/` to appear in property values
|
663
|
+
as a way of separating numbers.
|
664
|
+
Since SassScript is an extension of the CSS property syntax,
|
665
|
+
it must support this, while also allowing `/` to be used for division.
|
666
|
+
This means that by default, if two numbers are separated by `/` in SassScript,
|
667
|
+
then they will appear that way in the resulting CSS.
|
668
|
+
|
669
|
+
However, there are three situations where the `/` will be interpreted as division.
|
670
|
+
These cover the vast majority of cases where division is actually used.
|
671
|
+
They are:
|
672
|
+
|
673
|
+
1. If the value, or any part of it, is stored in a variable.
|
674
|
+
2. If the value is surrounded by parentheses.
|
675
|
+
3. If the value is used as part of another arithmetic expression.
|
676
|
+
|
677
|
+
For example:
|
678
|
+
|
679
|
+
p {
|
680
|
+
font: 10px/8px; // Plain CSS, no division
|
681
|
+
$width: 1000px;
|
682
|
+
width: $width/2; // Uses a variable, does division
|
683
|
+
height: (500px/2); // Uses parentheses, does division
|
684
|
+
margin-left: 5px + 8px/2px; // Uses +, does division
|
685
|
+
}
|
686
|
+
|
687
|
+
is compiled to:
|
688
|
+
|
689
|
+
p {
|
690
|
+
font: 10px/8px;
|
691
|
+
width: 500px;
|
692
|
+
height: 250px;
|
693
|
+
margin-left: 9px; }
|
694
|
+
|
695
|
+
If you want to use variables along with a plain CSS `/`,
|
696
|
+
you can use `#{}` to insert them.
|
697
|
+
For example:
|
698
|
+
|
699
|
+
p {
|
700
|
+
$font-size: 12px;
|
701
|
+
$line-height: 30px;
|
702
|
+
font: #{$font-size}/#{$line-height};
|
703
|
+
}
|
704
|
+
|
705
|
+
is compiled to:
|
706
|
+
|
707
|
+
p {
|
708
|
+
font: 12px/30px;
|
709
|
+
}
|
710
|
+
|
711
|
+
#### Color Operations
|
712
|
+
|
713
|
+
All arithmetic operations are supported for color values,
|
714
|
+
where they work piecewise.
|
715
|
+
This means that the operation is performed
|
716
|
+
on the red, green, and blue components in turn.
|
717
|
+
For example:
|
718
|
+
|
719
|
+
p {
|
720
|
+
color: #010203 + #040506;
|
721
|
+
}
|
722
|
+
|
723
|
+
computes `01 + 04 = 05`, `02 + 05 = 07`, and `03 + 06 = 09`,
|
724
|
+
and is compiled to:
|
725
|
+
|
726
|
+
p {
|
727
|
+
color: #050709; }
|
728
|
+
|
729
|
+
Often it's more useful to use {Sass::Script::Functions color functions}
|
730
|
+
than to try to use color arithmetic to achieve the same effect.
|
731
|
+
|
732
|
+
Arithmetic operations also work between numbers and colors,
|
733
|
+
also piecewise.
|
734
|
+
For example:
|
735
|
+
|
736
|
+
p {
|
737
|
+
color: #010203 * 2;
|
738
|
+
}
|
739
|
+
|
740
|
+
computes `01 * 2 = 02`, `02 * 2 = 04`, and `03 * 2 = 06`,
|
741
|
+
and is compiled to:
|
742
|
+
|
743
|
+
p {
|
744
|
+
color: #020406; }
|
745
|
+
|
746
|
+
Note that colors with an alpha channel
|
747
|
+
(those created with the {Sass::Script::Functions#rgba rgba}
|
748
|
+
or {Sass::Script::Functions#hsla hsla} functions)
|
749
|
+
must have the same alpha value in order for color arithmetic
|
750
|
+
to be done with them.
|
751
|
+
The arithmetic doesn't affect the alpha value.
|
752
|
+
For example:
|
753
|
+
|
754
|
+
p {
|
755
|
+
color: rgba(255, 0, 0, 0.75) + rgba(0, 255, 0, 0.75);
|
756
|
+
}
|
757
|
+
|
758
|
+
is compiled to:
|
759
|
+
|
760
|
+
p {
|
761
|
+
color: rgba(255, 255, 0, 0.75); }
|
762
|
+
|
763
|
+
The alpha channel of a color can be adjusted using the
|
764
|
+
{Sass::Script::Functions#opacify opacify} and
|
765
|
+
{Sass::Script::Functions#transparentize transparentize} functions.
|
766
|
+
For example:
|
767
|
+
|
768
|
+
$translucent-red: rgba(255, 0, 0, 0.5);
|
769
|
+
p {
|
770
|
+
color: opacify($translucent-red, 0.8);
|
771
|
+
background-color: transparentize($translucent-red, 50%);
|
772
|
+
}
|
773
|
+
|
774
|
+
is compiled to:
|
775
|
+
|
776
|
+
p {
|
777
|
+
color: rgba(255, 0, 0, 0.9);
|
778
|
+
background-color: rgba(255, 0, 0, 0.25); }
|
779
|
+
|
780
|
+
#### String Operations
|
781
|
+
|
782
|
+
The `+` operation can be used to concatenate strings:
|
783
|
+
|
784
|
+
p {
|
785
|
+
cursor: e + -resize;
|
786
|
+
}
|
787
|
+
|
788
|
+
is compiled to:
|
789
|
+
|
790
|
+
p {
|
791
|
+
cursor: e-resize; }
|
792
|
+
|
793
|
+
Note that if a quoted string is added to an unquoted string
|
794
|
+
(that is, the quoted string is to the left of the `+`),
|
795
|
+
the result is a quoted string.
|
796
|
+
Likewise, if an unquoted string is added to a quoted string
|
797
|
+
(the unquoted string is to the left of the `+`),
|
798
|
+
the result is an unquoted string.
|
799
|
+
For example:
|
800
|
+
|
801
|
+
p:before {
|
802
|
+
content: "Foo " + Bar;
|
803
|
+
font-family: sans- + "serif"; }
|
804
|
+
|
805
|
+
is compiled to:
|
806
|
+
|
807
|
+
p:before {
|
808
|
+
content: "Foo Bar";
|
809
|
+
font-family: sans-serif; }
|
810
|
+
|
811
|
+
By default, if two values are placed next to one another,
|
812
|
+
they are concatenated with a space:
|
813
|
+
|
814
|
+
p {
|
815
|
+
margin: 3px + 4px auto;
|
816
|
+
}
|
817
|
+
|
818
|
+
is compiled to:
|
819
|
+
|
820
|
+
p {
|
821
|
+
margin: 7px auto; }
|
822
|
+
|
823
|
+
Within a string of text, #{} style interpolation can be used to
|
824
|
+
place dynamic values within the string:
|
825
|
+
|
826
|
+
p:before {
|
827
|
+
content: "I ate #{5 + 10} pies!"; }
|
828
|
+
|
829
|
+
is compiled to:
|
830
|
+
|
831
|
+
p:before {
|
832
|
+
content: "I ate 15 pies!"; }
|
833
|
+
|
834
|
+
#### Boolean Operations
|
835
|
+
|
836
|
+
SassScript supports `and`, `or`, and `not` operators
|
837
|
+
for boolean values.
|
838
|
+
|
839
|
+
### Parentheses
|
840
|
+
|
841
|
+
Parentheses can be used to affect the order of operations:
|
842
|
+
|
843
|
+
p {
|
844
|
+
width: 1em + (2em * 3);
|
845
|
+
}
|
846
|
+
|
847
|
+
is compiled to:
|
848
|
+
|
849
|
+
p {
|
850
|
+
width: 7em; }
|
851
|
+
|
852
|
+
### Functions
|
853
|
+
|
854
|
+
SassScript defines some useful functions
|
855
|
+
that are called using the normal CSS function syntax:
|
856
|
+
|
857
|
+
p {
|
858
|
+
color: hsl(0, 100%, 0.5);
|
859
|
+
}
|
860
|
+
|
861
|
+
is compiled to:
|
862
|
+
|
863
|
+
p {
|
864
|
+
color: #ff0000; }
|
865
|
+
|
866
|
+
See {Sass::Script::Functions} for a full listing of Sass functions,
|
867
|
+
as well as instructions on defining your own in Ruby.
|
868
|
+
|
869
|
+
### Interpolation: `#{}` {#interpolation_}
|
870
|
+
|
871
|
+
You can also use SassScript variables in selectors
|
872
|
+
and property names using #{} interpolation syntax:
|
873
|
+
|
874
|
+
$name: foo;
|
875
|
+
$attr: border;
|
876
|
+
p.#{$name} { #{$attr}-color: blue }
|
877
|
+
|
878
|
+
is compiled to:
|
879
|
+
|
880
|
+
p.foo {
|
881
|
+
border-color: blue; }
|
882
|
+
|
883
|
+
It's also possible to use `#{}` to put SassScript into property values.
|
884
|
+
In most cases this isn't any better than using a variable,
|
885
|
+
but using `#{}` does mean that any operations near it
|
886
|
+
will be treated as plain CSS.
|
887
|
+
For example:
|
888
|
+
|
889
|
+
p {
|
890
|
+
$font-size: 12px;
|
891
|
+
$line-height: 30px;
|
892
|
+
font: #{$font-size}/#{$line-height};
|
893
|
+
}
|
894
|
+
|
895
|
+
is compiled to:
|
896
|
+
|
897
|
+
p {
|
898
|
+
font: 12px/30px;
|
899
|
+
}
|
900
|
+
|
901
|
+
### Variable Defaults: `!default`
|
902
|
+
|
903
|
+
You can assign to variables if they aren't already assigned
|
904
|
+
by adding the `!default` flag to the end of the value.
|
905
|
+
This means that if the variable has already been assigned to,
|
906
|
+
it won't be re-assigned,
|
907
|
+
but if it doesn't have a value yet, it will be given one.
|
908
|
+
|
909
|
+
For example:
|
910
|
+
|
911
|
+
$content: "First content";
|
912
|
+
$content: "Second content?" !default;
|
913
|
+
$new_content: "First time reference" !default;
|
914
|
+
|
915
|
+
#main {
|
916
|
+
content: $content;
|
917
|
+
new-content: $new_content;
|
918
|
+
}
|
919
|
+
|
920
|
+
is compiled to:
|
921
|
+
|
922
|
+
#main {
|
923
|
+
content: "First content";
|
924
|
+
new-content: "First time reference"; }
|
925
|
+
|
926
|
+
## `@`-Rules and Directives {#directives}
|
927
|
+
|
928
|
+
Sass supports all CSS3 `@`-rules,
|
929
|
+
as well as some additional Sass-specific ones
|
930
|
+
known as "directives."
|
931
|
+
These have various effects in Sass, detailed below.
|
932
|
+
See also [control directives](#control-directives)
|
933
|
+
and [mixin directives](#mixins).
|
934
|
+
|
935
|
+
### `@import` {#import}
|
936
|
+
|
937
|
+
Sass extends the CSS `@import` rule
|
938
|
+
to allow it to import SCSS and Sass files.
|
939
|
+
All imported SCSS and Sass files will be merged together
|
940
|
+
into a single CSS output file.
|
941
|
+
In addition, any variables or [mixins](#mixins)
|
942
|
+
defined in imported files can be used in the main file.
|
943
|
+
|
944
|
+
Sass looks for other Sass files in the current directory,
|
945
|
+
and the Sass file directory under Rack, Rails, or Merb.
|
946
|
+
Additional search directories may be specified
|
947
|
+
using the [`:load_paths`](#load_paths-option) option,
|
948
|
+
or the `--load-path` option on the command line.
|
949
|
+
|
950
|
+
`@import` takes a filename to import.
|
951
|
+
By default, it looks for a Sass file to import directly,
|
952
|
+
but there are a few circumstances under which it will compile to a CSS `@import` rule:
|
953
|
+
|
954
|
+
* If the file's extension is `.css`.
|
955
|
+
* If the filename begins with `http://`.
|
956
|
+
* If the filename is a `url()`.
|
957
|
+
* If the `@import` has any media queries.
|
958
|
+
|
959
|
+
If none of the above conditions are met
|
960
|
+
and the extension is `.scss` or `.sass`,
|
961
|
+
then the named Sass or SCSS file will be imported.
|
962
|
+
If there is no extension,
|
963
|
+
Sass will try to find a file with that name and the `.scss` or `.sass` extension
|
964
|
+
and import it.
|
965
|
+
|
966
|
+
For example,
|
967
|
+
|
968
|
+
@import "foo.scss";
|
969
|
+
|
970
|
+
or
|
971
|
+
|
972
|
+
@import "foo";
|
973
|
+
|
974
|
+
would both import the file `foo.scss`,
|
975
|
+
whereas
|
976
|
+
|
977
|
+
@import "foo.css";
|
978
|
+
@import "foo" screen;
|
979
|
+
@import "http://foo.com/bar";
|
980
|
+
@import url(foo);
|
981
|
+
|
982
|
+
would all compile to
|
983
|
+
|
984
|
+
@import "foo.css";
|
985
|
+
@import "foo" screen;
|
986
|
+
@import "http://foo.com/bar";
|
987
|
+
@import url(foo);
|
988
|
+
|
989
|
+
It's also possible to import multiple files in one `@import`. For example:
|
990
|
+
|
991
|
+
@import "rounded-corners", "text-shadow";
|
992
|
+
|
993
|
+
would import both the `rounded-corners` and the `text-shadow` files.
|
994
|
+
|
995
|
+
#### Partials {#partials}
|
996
|
+
|
997
|
+
If you have a SCSS or Sass file that you want to import
|
998
|
+
but don't want to compile to a CSS file,
|
999
|
+
you can add an underscore to the beginning of the filename.
|
1000
|
+
This will tell Sass not to compile it to a normal CSS file.
|
1001
|
+
You can then import these files without using the underscore.
|
1002
|
+
|
1003
|
+
For example, you might have `_colors.scss`.
|
1004
|
+
Then no `_colors.css` file would be created,
|
1005
|
+
and you can do
|
1006
|
+
|
1007
|
+
@import "colors";
|
1008
|
+
|
1009
|
+
and `_colors.scss` would be imported.
|
1010
|
+
|
1011
|
+
### `@extend` {#extend}
|
1012
|
+
|
1013
|
+
There are often cases when designing a page
|
1014
|
+
when one class should have all the styles of another class,
|
1015
|
+
as well as its own specific styles.
|
1016
|
+
The most common way of handling this is to use both the more general class
|
1017
|
+
and the more specific class in the HTML.
|
1018
|
+
For example, suppose we have a design for a normal error
|
1019
|
+
and also for a serious error. We might write our markup like so:
|
1020
|
+
|
1021
|
+
<div class="error seriousError">
|
1022
|
+
Oh no! You've been hacked!
|
1023
|
+
</div>
|
1024
|
+
|
1025
|
+
And our styles like so:
|
1026
|
+
|
1027
|
+
.error {
|
1028
|
+
border: 1px #f00;
|
1029
|
+
background-color: #fdd;
|
1030
|
+
}
|
1031
|
+
.seriousError {
|
1032
|
+
border-width: 3px;
|
1033
|
+
}
|
1034
|
+
|
1035
|
+
Unfortunately, this means that we have to always remember
|
1036
|
+
to use `.error` with `.seriousError`.
|
1037
|
+
This is a maintenance burden, leads to tricky bugs,
|
1038
|
+
and can bring non-semantic style concerns into the markup.
|
1039
|
+
|
1040
|
+
The `@extend` directive avoids these problems
|
1041
|
+
by telling Sass that one selector should inherit the styles of another selector.
|
1042
|
+
For example:
|
1043
|
+
|
1044
|
+
.error {
|
1045
|
+
border: 1px #f00;
|
1046
|
+
background-color: #fdd;
|
1047
|
+
}
|
1048
|
+
.seriousError {
|
1049
|
+
@extend .error;
|
1050
|
+
border-width: 3px;
|
1051
|
+
}
|
1052
|
+
|
1053
|
+
This means that all styles defined for `.error`
|
1054
|
+
are also applied to `.seriousError`,
|
1055
|
+
in addition to the styles specific to `.seriousError`.
|
1056
|
+
In effect, everything with class `.seriousError` also has class `.error`.
|
1057
|
+
|
1058
|
+
Other rules that use `.error` will work for `.seriousError` as well.
|
1059
|
+
For example, if we have special styles for errors caused by hackers:
|
1060
|
+
|
1061
|
+
.error.intrusion {
|
1062
|
+
background-image: url("/image/hacked.png");
|
1063
|
+
}
|
1064
|
+
|
1065
|
+
Then `<div class="seriousError intrusion">`
|
1066
|
+
will have the `hacked.png` background image as well.
|
1067
|
+
|
1068
|
+
#### How it Works
|
1069
|
+
|
1070
|
+
`@extend` works by inserting the extending selector (e.g. `.seriousError`)
|
1071
|
+
anywhere in the stylesheet that the extended selector (.e.g `.error`) appears.
|
1072
|
+
Thus the example above:
|
1073
|
+
|
1074
|
+
.error {
|
1075
|
+
border: 1px #f00;
|
1076
|
+
background-color: #fdd;
|
1077
|
+
}
|
1078
|
+
.error.intrusion {
|
1079
|
+
background-image: url("/image/hacked.png");
|
1080
|
+
}
|
1081
|
+
.seriousError {
|
1082
|
+
@extend .error;
|
1083
|
+
border-width: 3px;
|
1084
|
+
}
|
1085
|
+
|
1086
|
+
is compiled to:
|
1087
|
+
|
1088
|
+
.error, .seriousError {
|
1089
|
+
border: 1px #f00;
|
1090
|
+
background-color: #fdd; }
|
1091
|
+
|
1092
|
+
.error.intrusion, .seriousError.intrusion {
|
1093
|
+
background-image: url("/image/hacked.png"); }
|
1094
|
+
|
1095
|
+
.seriousError {
|
1096
|
+
border-width: 3px; }
|
1097
|
+
|
1098
|
+
When merging selectors, `@extend` is smart enough
|
1099
|
+
to avoid unnecessary duplication,
|
1100
|
+
so something like `.seriousError.seriousError` gets translated to `.seriousError`.
|
1101
|
+
In addition, it won't produce selectors that can't match anything, like `#main#footer`.
|
1102
|
+
|
1103
|
+
#### Extending Complex Selectors
|
1104
|
+
|
1105
|
+
Class selectors aren't the only things that can be extended.
|
1106
|
+
It's possible to extend any selector involving only a single element,
|
1107
|
+
such as `.special.cool`, `a:hover`, or `a.user[href^="http://"]`.
|
1108
|
+
For example:
|
1109
|
+
|
1110
|
+
.hoverlink {@extend a:hover}
|
1111
|
+
|
1112
|
+
Just like with classes, this means that all styles defined for `a:hover`
|
1113
|
+
are also applied to `.hoverlink`.
|
1114
|
+
For example:
|
1115
|
+
|
1116
|
+
.hoverlink {@extend a:hover}
|
1117
|
+
a:hover {text-decoration: underline}
|
1118
|
+
|
1119
|
+
is compiled to:
|
1120
|
+
|
1121
|
+
a:hover, .hoverlink {text-decoration: underline}
|
1122
|
+
|
1123
|
+
Just like with `.error.intrusion` above,
|
1124
|
+
any rule that uses `a:hover` will also work for `.hoverlink`,
|
1125
|
+
even if they have other selectors as well.
|
1126
|
+
For example:
|
1127
|
+
|
1128
|
+
.hoverlink {@extend a:hover}
|
1129
|
+
.comment a.user:hover {font-weight: bold}
|
1130
|
+
|
1131
|
+
is compiled to:
|
1132
|
+
|
1133
|
+
.comment a.user:hover, .comment .hoverlink.user {font-weight: bold}
|
1134
|
+
|
1135
|
+
#### Multiple Extends
|
1136
|
+
|
1137
|
+
A single selector can extend more than one selector.
|
1138
|
+
This means that it inherits the styles of all the extended selectors.
|
1139
|
+
For example:
|
1140
|
+
|
1141
|
+
.error {
|
1142
|
+
border: 1px #f00;
|
1143
|
+
background-color: #fdd;
|
1144
|
+
}
|
1145
|
+
.attention {
|
1146
|
+
font-size: 3em;
|
1147
|
+
background-color: #ff0;
|
1148
|
+
}
|
1149
|
+
.seriousError {
|
1150
|
+
@extend .error;
|
1151
|
+
@extend .attention;
|
1152
|
+
border-width: 3px;
|
1153
|
+
}
|
1154
|
+
|
1155
|
+
is compiled to:
|
1156
|
+
|
1157
|
+
.error, .seriousError {
|
1158
|
+
border: 1px #f00;
|
1159
|
+
background-color: #fdd; }
|
1160
|
+
|
1161
|
+
.attention, .seriousError {
|
1162
|
+
font-size: 3em;
|
1163
|
+
background-color: #ff0; }
|
1164
|
+
|
1165
|
+
.seriousError {
|
1166
|
+
border-width: 3px; }
|
1167
|
+
|
1168
|
+
In effect, everything with class `.seriousError`
|
1169
|
+
also has class `.error` *and* class `.attention`.
|
1170
|
+
Thus, the styles defined later in the document take precedence:
|
1171
|
+
`.seriousError` has background color `#ff0` rather than `#fdd`,
|
1172
|
+
since `.attention` is defined later than `.error`.
|
1173
|
+
|
1174
|
+
#### Chaining Extends
|
1175
|
+
|
1176
|
+
It's possible for one selector to extend another selector
|
1177
|
+
that in turn extends a third.
|
1178
|
+
For example:
|
1179
|
+
|
1180
|
+
.error {
|
1181
|
+
border: 1px #f00;
|
1182
|
+
background-color: #fdd;
|
1183
|
+
}
|
1184
|
+
.seriousError {
|
1185
|
+
@extend .error;
|
1186
|
+
border-width: 3px;
|
1187
|
+
}
|
1188
|
+
.criticalError {
|
1189
|
+
@extend .seriousError;
|
1190
|
+
position: fixed;
|
1191
|
+
top: 10%;
|
1192
|
+
bottom: 10%;
|
1193
|
+
left: 10%;
|
1194
|
+
right: 10%;
|
1195
|
+
}
|
1196
|
+
|
1197
|
+
Now everything with class `.seriousError` also has class `.error`,
|
1198
|
+
and everything with class `.criticalError` has class `.seriousError`
|
1199
|
+
*and* class `.error`.
|
1200
|
+
It's compiled to:
|
1201
|
+
|
1202
|
+
.error, .seriousError, .criticalError {
|
1203
|
+
border: 1px #f00;
|
1204
|
+
background-color: #fdd; }
|
1205
|
+
|
1206
|
+
.seriousError, .criticalError {
|
1207
|
+
border-width: 3px; }
|
1208
|
+
|
1209
|
+
.criticalError {
|
1210
|
+
position: fixed;
|
1211
|
+
top: 10%;
|
1212
|
+
bottom: 10%;
|
1213
|
+
left: 10%;
|
1214
|
+
right: 10%; }
|
1215
|
+
|
1216
|
+
#### Selector Sequences
|
1217
|
+
|
1218
|
+
Selector sequences, such as `.foo .bar` or `.foo + .bar`, currently can't be extended.
|
1219
|
+
However, it is possible for nested selectors themselves to use `@extend`.
|
1220
|
+
For example:
|
1221
|
+
|
1222
|
+
#fake-links .link {@extend a}
|
1223
|
+
|
1224
|
+
a {
|
1225
|
+
color: blue;
|
1226
|
+
&:hover {text-decoration: underline}
|
1227
|
+
}
|
1228
|
+
|
1229
|
+
is compiled to
|
1230
|
+
|
1231
|
+
a, #fake-links .link {
|
1232
|
+
color: blue; }
|
1233
|
+
a:hover, #fake-links .link:hover {
|
1234
|
+
text-decoration: underline; }
|
1235
|
+
|
1236
|
+
##### Merging Selector Sequences
|
1237
|
+
|
1238
|
+
Sometimes a selector sequence extends another selector that appears in another sequence.
|
1239
|
+
In this case, the two sequences need to be merged.
|
1240
|
+
For example:
|
1241
|
+
|
1242
|
+
#admin .tabbar a {font-weight: bold}
|
1243
|
+
#demo .overview .fakelink {@extend a}
|
1244
|
+
|
1245
|
+
While it would technically be possible
|
1246
|
+
to generate all selectors that could possibly match either sequence,
|
1247
|
+
this would make the stylesheet far too large.
|
1248
|
+
The simple example above, for instance, would require ten selectors.
|
1249
|
+
Instead, Sass generates only selectors that are likely to be useful.
|
1250
|
+
|
1251
|
+
When the two sequences being merged have no selectors in common,
|
1252
|
+
then two new selectors are generated:
|
1253
|
+
one with the first sequence before the second,
|
1254
|
+
and one with the second sequence before the first.
|
1255
|
+
For example:
|
1256
|
+
|
1257
|
+
#admin .tabbar a {font-weight: bold}
|
1258
|
+
#demo .overview .fakelink {@extend a}
|
1259
|
+
|
1260
|
+
is compiled to:
|
1261
|
+
|
1262
|
+
#admin .tabbar a,
|
1263
|
+
#admin .tabbar #demo .overview .fakelink,
|
1264
|
+
#demo .overview #admin .tabbar .fakelink {
|
1265
|
+
font-weight: bold; }
|
1266
|
+
|
1267
|
+
If the two sequences do share some selectors,
|
1268
|
+
then those selectors will be merged together
|
1269
|
+
and only the differences (if any still exist) will alternate.
|
1270
|
+
In this example, both sequences contain the id `#admin`,
|
1271
|
+
so the resulting selectors will merge those two ids:
|
1272
|
+
|
1273
|
+
#admin .tabbar a {font-weight: bold}
|
1274
|
+
#admin .overview .fakelink {@extend a}
|
1275
|
+
|
1276
|
+
This is compiled to:
|
1277
|
+
|
1278
|
+
#admin .tabbar a,
|
1279
|
+
#admin .tabbar .overview .fakelink,
|
1280
|
+
#admin .overview .tabbar .fakelink {
|
1281
|
+
font-weight: bold; }
|
1282
|
+
|
1283
|
+
### `@debug`
|
1284
|
+
|
1285
|
+
The `@debug` directive prints the value of a SassScript expression
|
1286
|
+
to the standard error output stream.
|
1287
|
+
It's useful for debugging Sass files
|
1288
|
+
that have complicated SassScript going on.
|
1289
|
+
For example:
|
1290
|
+
|
1291
|
+
@debug 10em + 12em;
|
1292
|
+
|
1293
|
+
outputs:
|
1294
|
+
|
1295
|
+
Line 1 DEBUG: 22em
|
1296
|
+
|
1297
|
+
### `@warn`
|
1298
|
+
|
1299
|
+
The `@warn` directive prints the value of a SassScript expression
|
1300
|
+
to the standard error output stream.
|
1301
|
+
It's useful for libraries that need to warn users of deprecations
|
1302
|
+
or recovering from minor mixin usage mistakes.
|
1303
|
+
There are two major distinctions between `@warn` and `@debug`:
|
1304
|
+
|
1305
|
+
1. You can turn warnings off with the `--quiet` command-line option
|
1306
|
+
or the `:quiet` Sass option.
|
1307
|
+
2. A stylesheet trace will be printed out along with the message
|
1308
|
+
so that the user being warned can see where their styles caused the warning.
|
1309
|
+
|
1310
|
+
Usage Example:
|
1311
|
+
|
1312
|
+
@mixin adjust-location($x, $y) {
|
1313
|
+
@if unitless($x) {
|
1314
|
+
@warn "Assuming #{$x} to be in pixels";
|
1315
|
+
$x: 1px * $x;
|
1316
|
+
}
|
1317
|
+
@if unitless($y) {
|
1318
|
+
@warn "Assuming #{$y} to be in pixels";
|
1319
|
+
$y: 1px * $y;
|
1320
|
+
}
|
1321
|
+
position: relative; left: $x; top: $y;
|
1322
|
+
}
|
1323
|
+
|
1324
|
+
## Control Directives
|
1325
|
+
|
1326
|
+
SassScript supports basic control directives
|
1327
|
+
for including styles only under some conditions
|
1328
|
+
or including the same style several times with variations.
|
1329
|
+
|
1330
|
+
**Note that control directives are an advanced feature,
|
1331
|
+
and are not recommended in the course of day-to-day styling**.
|
1332
|
+
They exist mainly for use in [mixins](#mixins),
|
1333
|
+
particularly those that are part of libraries like [Compass](http://compass-style.org),
|
1334
|
+
and so require substantial flexibility.
|
1335
|
+
|
1336
|
+
### `@if`
|
1337
|
+
|
1338
|
+
The `@if` directive takes a SassScript expression
|
1339
|
+
and uses the styles nested beneath it if the expression returns
|
1340
|
+
anything other than `false`:
|
1341
|
+
|
1342
|
+
p {
|
1343
|
+
@if 1 + 1 == 2 { border: 1px solid; }
|
1344
|
+
@if 5 < 3 { border: 2px dotted; }
|
1345
|
+
}
|
1346
|
+
|
1347
|
+
is compiled to:
|
1348
|
+
|
1349
|
+
p {
|
1350
|
+
border: 1px solid; }
|
1351
|
+
|
1352
|
+
The `@if` statement can be followed by several `@else if` statements
|
1353
|
+
and one `@else` statement.
|
1354
|
+
If the `@if` statement fails,
|
1355
|
+
the `@else if` statements are tried in order
|
1356
|
+
until one succeeds or the `@else` is reached.
|
1357
|
+
For example:
|
1358
|
+
|
1359
|
+
$type: monster;
|
1360
|
+
p {
|
1361
|
+
@if $type == ocean {
|
1362
|
+
color: blue;
|
1363
|
+
} @else if $type == matador {
|
1364
|
+
color: red;
|
1365
|
+
} @else if $type == monster {
|
1366
|
+
color: green;
|
1367
|
+
} @else {
|
1368
|
+
color: black;
|
1369
|
+
}
|
1370
|
+
}
|
1371
|
+
|
1372
|
+
is compiled to:
|
1373
|
+
|
1374
|
+
p {
|
1375
|
+
color: green; }
|
1376
|
+
|
1377
|
+
### `@for`
|
1378
|
+
|
1379
|
+
The `@for` directive has two forms:
|
1380
|
+
`@for $var from <start> to <end>` or
|
1381
|
+
`@for $var from <start> through <end>`.
|
1382
|
+
`$var` can be any variable name, like `$i`,
|
1383
|
+
and `<start>` and `<end>` are SassScript expressions
|
1384
|
+
that should return integers.
|
1385
|
+
|
1386
|
+
The `@for` statement sets `$var` to each number
|
1387
|
+
from `<start>` to `<end>`,
|
1388
|
+
including `<end>` if `through` is used.
|
1389
|
+
Then it outputs the nested styles
|
1390
|
+
using that value of `$var`.
|
1391
|
+
For example:
|
1392
|
+
|
1393
|
+
@for $i from 1 through 3 {
|
1394
|
+
.item-#{$i} { width: 2em * $i; }
|
1395
|
+
}
|
1396
|
+
|
1397
|
+
is compiled to:
|
1398
|
+
|
1399
|
+
.item-1 {
|
1400
|
+
width: 2em; }
|
1401
|
+
.item-2 {
|
1402
|
+
width: 4em; }
|
1403
|
+
.item-3 {
|
1404
|
+
width: 6em; }
|
1405
|
+
|
1406
|
+
### `@while`
|
1407
|
+
|
1408
|
+
The `@while` directive takes a SassScript expression
|
1409
|
+
and repeatedly outputs the nested styles
|
1410
|
+
until the statement evaluates to `false`.
|
1411
|
+
This can be used to achieve more complex looping
|
1412
|
+
than the `@for` statement is capable of,
|
1413
|
+
although this is rarely necessary.
|
1414
|
+
For example:
|
1415
|
+
|
1416
|
+
$i: 6;
|
1417
|
+
@while $i > 0 {
|
1418
|
+
.item-#{$i} { width: 2em * $i; }
|
1419
|
+
$i: $i - 2;
|
1420
|
+
}
|
1421
|
+
|
1422
|
+
is compiled to:
|
1423
|
+
|
1424
|
+
.item-6 {
|
1425
|
+
width: 12em; }
|
1426
|
+
|
1427
|
+
.item-4 {
|
1428
|
+
width: 8em; }
|
1429
|
+
|
1430
|
+
.item-2 {
|
1431
|
+
width: 4em; }
|
1432
|
+
|
1433
|
+
## Mixin Directives {#mixins}
|
1434
|
+
|
1435
|
+
Mixins allow you to define styles
|
1436
|
+
that can be re-used throughout the stylesheet
|
1437
|
+
without needing to resort to non-semantic classes like `.float-left`.
|
1438
|
+
Mixins can also contain full CSS rules,
|
1439
|
+
and anything else allowed elsewhere in a Sass document.
|
1440
|
+
They can even take [arguments](#mixin-arguments)
|
1441
|
+
which allows you to produce a wide variety of styles
|
1442
|
+
with very few mixins.
|
1443
|
+
|
1444
|
+
### Defining a Mixin: `@mixin` {#defining_a_mixin}
|
1445
|
+
|
1446
|
+
Mixins are defined with the `@mixin` directive.
|
1447
|
+
It's followed by the name of the mixin
|
1448
|
+
and optionally the [arguments](#mixin-arguments),
|
1449
|
+
and a block containing the contents of the mixin.
|
1450
|
+
For example, the `large-text` mixin is defined as follows:
|
1451
|
+
|
1452
|
+
@mixin large-text {
|
1453
|
+
font: {
|
1454
|
+
family: Arial;
|
1455
|
+
size: 20px;
|
1456
|
+
weight: bold;
|
1457
|
+
}
|
1458
|
+
color: #ff0000;
|
1459
|
+
}
|
1460
|
+
|
1461
|
+
Mixins may also contain selectors,
|
1462
|
+
possibly mixed with properties.
|
1463
|
+
The selectors can even contain [parent references](#referencing_parent_selectors_).
|
1464
|
+
For example:
|
1465
|
+
|
1466
|
+
@mixin clearfix {
|
1467
|
+
display: inline-block;
|
1468
|
+
&:after {
|
1469
|
+
content: ".";
|
1470
|
+
display: block;
|
1471
|
+
height: 0;
|
1472
|
+
clear: both;
|
1473
|
+
visibility: hidden;
|
1474
|
+
}
|
1475
|
+
* html & { height: 1px }
|
1476
|
+
}
|
1477
|
+
|
1478
|
+
### Including a Mixin: `@include` {#including_a_mixin}
|
1479
|
+
|
1480
|
+
Mixins are included in the document
|
1481
|
+
with the `@include` directive.
|
1482
|
+
This takes the name of a mixin
|
1483
|
+
and optionally [arguments to pass to it](#mixin-arguments),
|
1484
|
+
and includes the styles defined by that mixin
|
1485
|
+
into the current rule.
|
1486
|
+
For example:
|
1487
|
+
|
1488
|
+
.page-title {
|
1489
|
+
@include large-text;
|
1490
|
+
padding: 4px;
|
1491
|
+
margin-top: 10px;
|
1492
|
+
}
|
1493
|
+
|
1494
|
+
is compiled to:
|
1495
|
+
|
1496
|
+
.page-title {
|
1497
|
+
font-family: Arial;
|
1498
|
+
font-size: 20px;
|
1499
|
+
font-weight: bold;
|
1500
|
+
color: #ff0000;
|
1501
|
+
padding: 4px;
|
1502
|
+
margin-top: 10px; }
|
1503
|
+
|
1504
|
+
Mixins may also be included outside of any rule
|
1505
|
+
(that is, at the root of the document)
|
1506
|
+
as long as they don't directly define any properties
|
1507
|
+
or use any parent references.
|
1508
|
+
For example:
|
1509
|
+
|
1510
|
+
@mixin silly-links {
|
1511
|
+
a {
|
1512
|
+
color: blue;
|
1513
|
+
background-color: red;
|
1514
|
+
}
|
1515
|
+
}
|
1516
|
+
|
1517
|
+
@include silly-links;
|
1518
|
+
|
1519
|
+
is compiled to:
|
1520
|
+
|
1521
|
+
a {
|
1522
|
+
color: blue;
|
1523
|
+
background-color: red; }
|
1524
|
+
|
1525
|
+
Mixin definitions can also include other mixins.
|
1526
|
+
For example:
|
1527
|
+
|
1528
|
+
@mixin compound {
|
1529
|
+
@include highlighted-background;
|
1530
|
+
@include header-text;
|
1531
|
+
}
|
1532
|
+
|
1533
|
+
@mixin highlighted-background { background-color: #fc0; }
|
1534
|
+
@mixin header-text { font-size: 20px; }
|
1535
|
+
|
1536
|
+
Mixins that only define descendent selectors, can be safely mixed
|
1537
|
+
into the top most level of a document.
|
1538
|
+
|
1539
|
+
### Arguments {#mixin-arguments}
|
1540
|
+
|
1541
|
+
Mixins can take arguments SassScript values as arguments,
|
1542
|
+
which are given when the mixin is included
|
1543
|
+
and made available within the mixin as variables.
|
1544
|
+
|
1545
|
+
When defining a mixin,
|
1546
|
+
the arguments are written as variable names separated by commas,
|
1547
|
+
all in parentheses after the name.
|
1548
|
+
Then when including the mixin,
|
1549
|
+
values can be passed in in the same manner.
|
1550
|
+
For example:
|
1551
|
+
|
1552
|
+
@mixin sexy-border($color, $width) {
|
1553
|
+
border: {
|
1554
|
+
color: $color;
|
1555
|
+
width: $width;
|
1556
|
+
style: dashed;
|
1557
|
+
}
|
1558
|
+
}
|
1559
|
+
|
1560
|
+
p { @include sexy-border(blue, 1in); }
|
1561
|
+
|
1562
|
+
is compiled to:
|
1563
|
+
|
1564
|
+
p {
|
1565
|
+
border-color: blue;
|
1566
|
+
border-width: 1in;
|
1567
|
+
border-style: dashed; }
|
1568
|
+
|
1569
|
+
Mixins can also specify default values for their arguments
|
1570
|
+
using the normal variable-setting syntax.
|
1571
|
+
Then when the mixin is included,
|
1572
|
+
if it doesn't pass in that argument,
|
1573
|
+
the default value will be used instead.
|
1574
|
+
For example:
|
1575
|
+
|
1576
|
+
@mixin sexy-border($color, $width: 1in) {
|
1577
|
+
border: {
|
1578
|
+
color: $color;
|
1579
|
+
width: $width;
|
1580
|
+
style: dashed;
|
1581
|
+
}
|
1582
|
+
}
|
1583
|
+
p { @include sexy-border(blue); }
|
1584
|
+
h1 { @include sexy-border(blue, 2in); }
|
1585
|
+
|
1586
|
+
is compiled to:
|
1587
|
+
|
1588
|
+
p {
|
1589
|
+
border-color: blue;
|
1590
|
+
border-width: 1in;
|
1591
|
+
border-style: dashed; }
|
1592
|
+
|
1593
|
+
h1 {
|
1594
|
+
border-color: blue;
|
1595
|
+
border-width: 2in;
|
1596
|
+
border-style: dashed; }
|
1597
|
+
|
1598
|
+
## Output Style
|
1599
|
+
|
1600
|
+
Although the default CSS style that Sass outputs is very nice
|
1601
|
+
and reflects the structure of the document,
|
1602
|
+
tastes and needs vary and so Sass supports several other styles.
|
1603
|
+
|
1604
|
+
Sass allows you to choose between four different output styles
|
1605
|
+
by setting the [`:style` option](#style-option)
|
1606
|
+
or using the `--style` command-line flag.
|
1607
|
+
|
1608
|
+
### `:nested`
|
1609
|
+
|
1610
|
+
Nested style is the default Sass style,
|
1611
|
+
because it reflects the structure of the CSS styles
|
1612
|
+
and the HTML document they're styling.
|
1613
|
+
Each property has its own line,
|
1614
|
+
but the indentation isn't constant.
|
1615
|
+
Each rule is indented based on how deeply it's nested.
|
1616
|
+
For example:
|
1617
|
+
|
1618
|
+
#main {
|
1619
|
+
color: #fff;
|
1620
|
+
background-color: #000; }
|
1621
|
+
#main p {
|
1622
|
+
width: 10em; }
|
1623
|
+
|
1624
|
+
.huge {
|
1625
|
+
font-size: 10em;
|
1626
|
+
font-weight: bold;
|
1627
|
+
text-decoration: underline; }
|
1628
|
+
|
1629
|
+
Nested style is very useful when looking at large CSS files:
|
1630
|
+
it allows you to easily grasp the structure of the file
|
1631
|
+
without actually reading anything.
|
1632
|
+
|
1633
|
+
### `:expanded`
|
1634
|
+
|
1635
|
+
Expanded is a more typical human-made CSS style,
|
1636
|
+
with each property and rule taking up one line.
|
1637
|
+
Properties are indented within the rules,
|
1638
|
+
but the rules aren't indented in any special way.
|
1639
|
+
For example:
|
1640
|
+
|
1641
|
+
#main {
|
1642
|
+
color: #fff;
|
1643
|
+
background-color: #000;
|
1644
|
+
}
|
1645
|
+
#main p {
|
1646
|
+
width: 10em;
|
1647
|
+
}
|
1648
|
+
|
1649
|
+
.huge {
|
1650
|
+
font-size: 10em;
|
1651
|
+
font-weight: bold;
|
1652
|
+
text-decoration: underline;
|
1653
|
+
}
|
1654
|
+
|
1655
|
+
### `:compact`
|
1656
|
+
|
1657
|
+
Compact style takes up less space than Nested or Expanded.
|
1658
|
+
It also draws the focus more to the selectors than to their properties.
|
1659
|
+
Each CSS rule takes up only one line,
|
1660
|
+
with every property defined on that line.
|
1661
|
+
Nested rules are placed next to each other with no newline,
|
1662
|
+
while separate groups of rules have newlines between them.
|
1663
|
+
For example:
|
1664
|
+
|
1665
|
+
#main { color: #fff; background-color: #000; }
|
1666
|
+
#main p { width: 10em; }
|
1667
|
+
|
1668
|
+
.huge { font-size: 10em; font-weight: bold; text-decoration: underline; }
|
1669
|
+
|
1670
|
+
### `:compressed`
|
1671
|
+
|
1672
|
+
Compressed style takes up the minimum amount of space possible,
|
1673
|
+
having no whitespace except that necessary to separate selectors
|
1674
|
+
and a newline at the end of the file.
|
1675
|
+
It also includes some other minor compressions,
|
1676
|
+
such as choosing the smallest representation for colors.
|
1677
|
+
It's not meant to be human-readable.
|
1678
|
+
For example:
|
1679
|
+
|
1680
|
+
#main{color:#fff;background-color:#000}#main p{width:10em}.huge{font-size:10em;font-weight:bold;text-decoration:underline}
|