simply_stated 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +7 -0
- data/Gemfile +6 -0
- data/README.textile +42 -0
- data/Rakefile +3 -4
- data/VERSION +1 -1
- data/bin/convert_to_should_syntax +3 -0
- data/lib/simply_stated.rb +4 -6
- data/simply_stated.gemspec +914 -9
- data/test/database.yml +3 -0
- data/test/models/two_state_rule.rb +10 -0
- data/test/models/user.rb +3 -0
- data/test/schema.rb +9 -0
- data/test/simply_stated_test.rb +66 -0
- data/test/test_helper.rb +33 -0
- data/vendor/gems/ruby/1.8/cache/activerecord-2.3.5.gem +0 -0
- data/vendor/gems/ruby/1.8/cache/activesupport-2.3.5.gem +0 -0
- data/vendor/gems/ruby/1.8/cache/freighthopper-0.1.2.gem +0 -0
- data/vendor/gems/ruby/1.8/cache/shoulda-2.10.3.gem +0 -0
- data/vendor/gems/ruby/1.8/cache/test-rig-0.0.3.gem +0 -0
- data/vendor/gems/ruby/1.8/environment.rb +111 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/CHANGELOG +5858 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/README +351 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/RUNNING_UNIT_TESTS +36 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/Rakefile +270 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/examples/associations.png +0 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/examples/performance.rb +162 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/install.rb +30 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/aggregations.rb +261 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/association_preload.rb +389 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/associations/association_collection.rb +475 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/associations/association_proxy.rb +278 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/associations/belongs_to_association.rb +76 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/associations/belongs_to_polymorphic_association.rb +53 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/associations/has_and_belongs_to_many_association.rb +143 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/associations/has_many_association.rb +122 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/associations/has_many_through_association.rb +266 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/associations/has_one_association.rb +133 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/associations/has_one_through_association.rb +37 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/associations.rb +2241 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/attribute_methods.rb +388 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/autosave_association.rb +364 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb +3165 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/batches.rb +81 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/calculations.rb +311 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/callbacks.rb +360 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb +371 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_specification.rb +139 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/database_statements.rb +289 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/query_cache.rb +94 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/quoting.rb +69 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/schema_definitions.rb +722 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/schema_statements.rb +434 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract_adapter.rb +241 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/mysql_adapter.rb +630 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/postgresql_adapter.rb +1113 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/sqlite3_adapter.rb +34 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/sqlite_adapter.rb +453 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/dirty.rb +183 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/dynamic_finder_match.rb +41 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/dynamic_scope_match.rb +25 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/fixtures.rb +996 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/i18n_interpolation_deprecation.rb +26 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/locale/en.yml +58 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/locking/optimistic.rb +148 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/locking/pessimistic.rb +55 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/migration.rb +566 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/named_scope.rb +192 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/nested_attributes.rb +392 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/observer.rb +197 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/query_cache.rb +33 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/reflection.rb +320 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/schema.rb +51 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/schema_dumper.rb +182 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/serialization.rb +101 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/serializers/json_serializer.rb +91 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/serializers/xml_serializer.rb +357 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/session_store.rb +326 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/test_case.rb +66 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/timestamp.rb +71 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/transactions.rb +235 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/validations.rb +1135 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/lib/active_record/version.rb +9 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/lib/active_record.rb +84 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/lib/activerecord.rb +2 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/assets/example.log +1 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/assets/flowers.jpg +0 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/aaa_create_tables_test.rb +24 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/active_schema_test_mysql.rb +100 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/active_schema_test_postgresql.rb +24 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/adapter_test.rb +145 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/aggregations_test.rb +167 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/ar_schema_test.rb +32 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/associations/belongs_to_associations_test.rb +425 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/associations/callbacks_test.rb +161 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/associations/cascaded_eager_loading_test.rb +131 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/associations/eager_load_includes_full_sti_class_test.rb +36 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/associations/eager_load_nested_include_test.rb +130 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/associations/eager_singularization_test.rb +145 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/associations/eager_test.rb +834 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/associations/extension_test.rb +62 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/associations/habtm_join_table_test.rb +56 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/associations/has_and_belongs_to_many_associations_test.rb +822 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/associations/has_many_associations_test.rb +1134 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/associations/has_many_through_associations_test.rb +346 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/associations/has_one_associations_test.rb +330 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/associations/has_one_through_associations_test.rb +209 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/associations/inner_join_association_test.rb +93 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/associations/join_model_test.rb +712 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/associations_test.rb +262 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/attribute_methods_test.rb +305 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/autosave_association_test.rb +1142 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/base_test.rb +2154 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/batches_test.rb +61 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/binary_test.rb +30 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/calculations_test.rb +348 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/callbacks_observers_test.rb +38 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/callbacks_test.rb +438 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/class_inheritable_attributes_test.rb +32 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/column_alias_test.rb +17 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/column_definition_test.rb +70 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/connection_pool_test.rb +25 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/connection_test_firebird.rb +8 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/connection_test_mysql.rb +64 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/copy_table_test_sqlite.rb +80 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/database_statements_test.rb +12 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/datatype_test_postgresql.rb +204 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/date_time_test.rb +37 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/default_test_firebird.rb +16 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/defaults_test.rb +111 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/deprecated_finder_test.rb +30 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/dirty_test.rb +316 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/finder_respond_to_test.rb +76 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/finder_test.rb +1054 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/fixtures_test.rb +656 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/helper.rb +68 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/i18n_test.rb +46 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/inheritance_test.rb +262 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/invalid_date_test.rb +24 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/json_serialization_test.rb +205 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/lifecycle_test.rb +193 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/locking_test.rb +304 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/method_scoping_test.rb +704 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/migration_test.rb +1523 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/migration_test_firebird.rb +124 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/mixin_test.rb +96 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/modules_test.rb +81 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/multiple_db_test.rb +85 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/named_scope_test.rb +361 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/nested_attributes_test.rb +581 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/pk_test.rb +119 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/pooled_connections_test.rb +103 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/query_cache_test.rb +123 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/readonly_test.rb +107 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/reflection_test.rb +194 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/reload_models_test.rb +22 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/repair_helper.rb +50 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/reserved_word_test_mysql.rb +176 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/sanitize_test.rb +25 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/schema_authorization_test_postgresql.rb +75 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/schema_dumper_test.rb +211 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/schema_test_postgresql.rb +178 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/serialization_test.rb +47 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/synonym_test_oracle.rb +17 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/timestamp_test.rb +75 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/transactions_test.rb +522 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/unconnected_test.rb +32 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/validations_i18n_test.rb +955 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/validations_test.rb +1640 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/cases/xml_serialization_test.rb +240 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/config.rb +5 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/connections/jdbc_jdbcderby/connection.rb +18 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/connections/jdbc_jdbch2/connection.rb +18 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/connections/jdbc_jdbchsqldb/connection.rb +18 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/connections/jdbc_jdbcmysql/connection.rb +26 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/connections/jdbc_jdbcpostgresql/connection.rb +26 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/connections/jdbc_jdbcsqlite3/connection.rb +25 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/connections/native_db2/connection.rb +25 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/connections/native_firebird/connection.rb +26 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/connections/native_frontbase/connection.rb +27 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/connections/native_mysql/connection.rb +25 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/connections/native_openbase/connection.rb +21 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/connections/native_oracle/connection.rb +27 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/connections/native_postgresql/connection.rb +21 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/connections/native_sqlite/connection.rb +25 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/connections/native_sqlite3/connection.rb +25 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/connections/native_sqlite3/in_memory_connection.rb +18 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/connections/native_sybase/connection.rb +23 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/accounts.yml +29 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/all/developers.yml +0 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/all/people.csv +0 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/all/tasks.yml +0 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/author_addresses.yml +5 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/author_favorites.yml +4 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/authors.yml +9 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/binaries.yml +132 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/books.yml +7 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/categories/special_categories.yml +9 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/categories/subsubdir/arbitrary_filename.yml +4 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/categories.yml +14 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/categories_ordered.yml +7 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/categories_posts.yml +23 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/categorizations.yml +17 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/clubs.yml +6 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/comments.yml +59 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/companies.yml +56 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/computers.yml +4 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/courses.yml +7 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/customers.yml +26 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/developers.yml +21 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/developers_projects.yml +17 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/edges.yml +6 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/entrants.yml +14 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/fixture_database.sqlite +0 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/fixture_database_2.sqlite +0 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/fk_test_has_fk.yml +3 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/fk_test_has_pk.yml +2 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/funny_jokes.yml +10 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/items.yml +4 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/jobs.yml +7 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/legacy_things.yml +3 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/mateys.yml +4 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/member_types.yml +6 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/members.yml +6 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/memberships.yml +20 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/minimalistics.yml +2 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/mixed_case_monkeys.yml +6 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/mixins.yml +29 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/movies.yml +7 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/naked/csv/accounts.csv +1 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/naked/yml/accounts.yml +1 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/naked/yml/companies.yml +1 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/naked/yml/courses.yml +1 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/organizations.yml +5 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/owners.yml +7 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/parrots.yml +27 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/parrots_pirates.yml +7 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/people.yml +15 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/pets.yml +14 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/pirates.yml +9 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/posts.yml +52 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/price_estimates.yml +7 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/projects.yml +7 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/readers.yml +9 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/references.yml +17 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/reserved_words/distinct.yml +5 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/reserved_words/distincts_selects.yml +11 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/reserved_words/group.yml +14 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/reserved_words/select.yml +8 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/reserved_words/values.yml +7 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/ships.yml +5 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/sponsors.yml +9 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/subscribers.yml +7 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/subscriptions.yml +12 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/taggings.yml +28 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/tags.yml +7 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/tasks.yml +7 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/topics.yml +42 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/toys.yml +4 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/treasures.yml +10 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/vertices.yml +4 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/fixtures/warehouse-things.yml +3 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/migrations/broken/100_migration_that_raises_exception.rb +10 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/migrations/decimal/1_give_me_big_numbers.rb +15 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/migrations/duplicate/1_people_have_last_names.rb +9 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/migrations/duplicate/2_we_need_reminders.rb +12 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/migrations/duplicate/3_foo.rb +7 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/migrations/duplicate/3_innocent_jointable.rb +12 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/migrations/duplicate_names/20080507052938_chunky.rb +7 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/migrations/duplicate_names/20080507053028_chunky.rb +7 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/migrations/interleaved/pass_1/3_innocent_jointable.rb +12 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/migrations/interleaved/pass_2/1_people_have_last_names.rb +9 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/migrations/interleaved/pass_2/3_innocent_jointable.rb +12 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/migrations/interleaved/pass_3/1_people_have_last_names.rb +9 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/migrations/interleaved/pass_3/2_i_raise_on_down.rb +8 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/migrations/interleaved/pass_3/3_innocent_jointable.rb +12 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/migrations/missing/1000_people_have_middle_names.rb +9 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/migrations/missing/1_people_have_last_names.rb +9 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/migrations/missing/3_we_need_reminders.rb +12 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/migrations/missing/4_innocent_jointable.rb +12 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/migrations/valid/1_people_have_last_names.rb +9 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/migrations/valid/2_we_need_reminders.rb +12 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/migrations/valid/3_innocent_jointable.rb +12 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/author.rb +146 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/auto_id.rb +4 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/binary.rb +2 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/bird.rb +3 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/book.rb +4 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/categorization.rb +5 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/category.rb +34 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/citation.rb +6 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/club.rb +13 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/column_name.rb +3 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/comment.rb +29 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/company.rb +171 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/company_in_module.rb +61 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/computer.rb +3 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/contact.rb +16 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/contract.rb +5 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/course.rb +3 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/customer.rb +73 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/default.rb +2 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/developer.rb +101 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/edge.rb +5 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/entrant.rb +3 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/essay.rb +3 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/event.rb +3 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/guid.rb +2 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/item.rb +7 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/job.rb +5 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/joke.rb +3 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/keyboard.rb +3 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/legacy_thing.rb +3 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/matey.rb +4 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/member.rb +12 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/member_detail.rb +5 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/member_type.rb +3 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/membership.rb +9 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/minimalistic.rb +2 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/mixed_case_monkey.rb +3 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/movie.rb +5 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/order.rb +4 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/organization.rb +6 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/owner.rb +5 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/parrot.rb +16 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/person.rb +16 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/pet.rb +5 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/pirate.rb +70 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/post.rb +100 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/price_estimate.rb +3 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/project.rb +30 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/reader.rb +4 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/reference.rb +4 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/reply.rb +46 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/ship.rb +10 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/ship_part.rb +5 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/sponsor.rb +4 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/subject.rb +4 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/subscriber.rb +8 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/subscription.rb +4 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/tag.rb +7 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/tagging.rb +10 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/task.rb +3 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/topic.rb +80 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/toy.rb +6 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/treasure.rb +8 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/vertex.rb +9 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/models/warehouse_thing.rb +5 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/schema/mysql_specific_schema.rb +24 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/schema/postgresql_specific_schema.rb +114 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/schema/schema.rb +493 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/schema/schema2.rb +6 -0
- data/vendor/gems/ruby/1.8/gems/activerecord-2.3.5/test/schema/sqlite_specific_schema.rb +25 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/CHANGELOG +1330 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/README +43 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/all.rb +8 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/backtrace_cleaner.rb +72 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/base64.rb +33 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/basic_object.rb +24 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/buffered_logger.rb +127 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/cache/compressed_mem_cache_store.rb +20 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/cache/drb_store.rb +14 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/cache/file_store.rb +72 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/cache/mem_cache_store.rb +143 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/cache/memory_store.rb +52 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/cache/strategy/local_cache.rb +104 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/cache/synchronized_memory_store.rb +47 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/cache.rb +248 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/callbacks.rb +279 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/array/access.rb +53 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/array/conversions.rb +197 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/array/extract_options.rb +20 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/array/grouping.rb +106 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/array/random_access.rb +12 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/array/wrapper.rb +24 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/array.rb +15 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/base64/encoding.rb +16 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/base64.rb +4 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/benchmark.rb +19 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/bigdecimal/conversions.rb +37 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/bigdecimal.rb +6 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/blank.rb +2 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/cgi/escape_skipping_slashes.rb +23 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/cgi.rb +5 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/class/attribute_accessors.rb +54 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/class/delegating_attributes.rb +47 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/class/inheritable_attributes.rb +140 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/class/removal.rb +50 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/class.rb +4 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/date/behavior.rb +42 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/date/calculations.rb +231 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/date/conversions.rb +107 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/date.rb +10 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/date_time/calculations.rb +126 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/date_time/conversions.rb +96 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/date_time.rb +12 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/duplicable.rb +43 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/enumerable.rb +114 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/exception.rb +45 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/file/atomic.rb +46 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/file.rb +5 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/float/rounding.rb +24 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/float/time.rb +27 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/float.rb +7 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/hash/conversions.rb +247 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/hash/deep_merge.rb +23 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/hash/diff.rb +19 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/hash/except.rb +25 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/hash/indifferent_access.rb +143 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/hash/keys.rb +52 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/hash/reverse_merge.rb +35 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/hash/slice.rb +40 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/hash.rb +14 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/integer/even_odd.rb +29 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/integer/inflections.rb +20 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/integer/time.rb +45 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/integer.rb +9 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/kernel/agnostics.rb +11 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/kernel/daemonizing.rb +7 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/kernel/debugger.rb +16 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/kernel/reporting.rb +59 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/kernel/requires.rb +24 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/kernel.rb +5 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/load_error.rb +38 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/logger.rb +145 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/module/aliasing.rb +74 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/module/attr_accessor_with_default.rb +31 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/module/attr_internal.rb +32 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/module/attribute_accessors.rb +60 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/module/delegation.rb +135 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/module/inclusion.rb +30 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/module/introspection.rb +90 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/module/loading.rb +23 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/module/model_naming.rb +25 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/module/synchronization.rb +39 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/module.rb +23 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/name_error.rb +19 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/numeric/bytes.rb +50 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/numeric/conversions.rb +19 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/numeric/time.rb +81 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/numeric.rb +9 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/object/blank.rb +58 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/object/conversions.rb +15 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/object/extending.rb +80 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/object/instance_variables.rb +74 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/object/metaclass.rb +13 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/object/misc.rb +90 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/object.rb +6 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/pathname/clean_within.rb +14 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/pathname.rb +7 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/proc.rb +12 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/process/daemon.rb +25 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/process.rb +1 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/range/blockless_step.rb +32 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/range/conversions.rb +27 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/range/include_range.rb +30 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/range/overlaps.rb +15 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/range.rb +11 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/rexml.rb +41 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/string/access.rb +106 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/string/behavior.rb +13 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/string/bytesize.rb +5 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/string/conversions.rb +28 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/string/filters.rb +26 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/string/inflections.rb +167 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/string/iterators.rb +23 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/string/multibyte.rb +81 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/string/output_safety.rb +48 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/string/starts_ends_with.rb +35 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/string/xchar.rb +11 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/string.rb +25 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/symbol.rb +14 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/time/behavior.rb +13 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/time/calculations.rb +304 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/time/conversions.rb +90 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/time/zones.rb +86 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/time.rb +42 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/try.rb +36 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/uri.rb +16 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext.rb +8 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb +625 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/deprecation.rb +196 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/duration.rb +100 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/gzip.rb +25 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/inflections.rb +56 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/inflector.rb +406 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/json/backends/jsongem.rb +37 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/json/backends/yaml.rb +84 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/json/decoding.rb +35 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/json/encoders/date.rb +22 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/json/encoders/date_time.rb +22 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/json/encoders/enumerable.rb +17 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/json/encoders/false_class.rb +7 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/json/encoders/hash.rb +56 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/json/encoders/nil_class.rb +7 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/json/encoders/numeric.rb +21 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/json/encoders/object.rb +10 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/json/encoders/regexp.rb +9 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/json/encoders/string.rb +9 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/json/encoders/symbol.rb +5 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/json/encoders/time.rb +22 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/json/encoders/true_class.rb +7 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/json/encoding.rb +102 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/json/variable.rb +10 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/json.rb +2 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/locale/en.yml +33 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/memoizable.rb +100 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/message_encryptor.rb +70 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/message_verifier.rb +79 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/multibyte/chars.rb +707 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/multibyte/exceptions.rb +8 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/multibyte/unicode_database.rb +71 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/multibyte/utils.rb +61 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/multibyte.rb +57 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/option_merger.rb +23 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/ordered_hash.rb +141 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/ordered_options.rb +19 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/rescuable.rb +108 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/secure_random.rb +199 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/string_inquirer.rb +21 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/test_case.rb +40 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/testing/assertions.rb +65 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/testing/declarative.rb +21 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/testing/default.rb +9 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/testing/deprecation.rb +57 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/testing/performance.rb +452 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/testing/setup_and_teardown.rb +91 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/time_with_zone.rb +335 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/values/time_zone.rb +404 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/values/unicode_tables.dat +0 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/builder-2.1.2/blankslate.rb +113 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/builder-2.1.2/builder/blankslate.rb +20 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/builder-2.1.2/builder/css.rb +250 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/builder-2.1.2/builder/xchar.rb +115 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/builder-2.1.2/builder/xmlbase.rb +139 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/builder-2.1.2/builder/xmlevents.rb +63 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/builder-2.1.2/builder/xmlmarkup.rb +328 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/builder-2.1.2/builder.rb +13 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/i18n-0.1.3/MIT-LICENSE +20 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/i18n-0.1.3/README.textile +20 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/i18n-0.1.3/Rakefile +5 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/i18n-0.1.3/i18n.gemspec +27 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/i18n-0.1.3/lib/i18n/backend/simple.rb +214 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/i18n-0.1.3/lib/i18n/exceptions.rb +53 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/i18n-0.1.3/lib/i18n.rb +199 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/i18n-0.1.3/test/all.rb +5 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/i18n-0.1.3/test/i18n_exceptions_test.rb +99 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/i18n-0.1.3/test/i18n_test.rb +124 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/i18n-0.1.3/test/locale/en.rb +1 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/i18n-0.1.3/test/locale/en.yml +3 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/i18n-0.1.3/test/simple_backend_test.rb +567 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/memcache-client-1.7.4/memcache.rb +1107 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/data_timezone.rb +47 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/data_timezone_info.rb +228 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Africa/Algiers.rb +55 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Africa/Cairo.rb +219 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Africa/Casablanca.rb +40 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Africa/Harare.rb +18 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Africa/Johannesburg.rb +25 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Africa/Monrovia.rb +22 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Africa/Nairobi.rb +23 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Argentina/Buenos_Aires.rb +166 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Argentina/San_Juan.rb +86 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Bogota.rb +23 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Caracas.rb +23 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Chicago.rb +283 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Chihuahua.rb +136 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Denver.rb +204 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Godthab.rb +161 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Guatemala.rb +27 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Halifax.rb +274 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Indiana/Indianapolis.rb +149 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Juneau.rb +194 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/La_Paz.rb +22 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Lima.rb +35 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Los_Angeles.rb +232 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Mazatlan.rb +139 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Mexico_City.rb +144 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Monterrey.rb +131 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/New_York.rb +282 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Phoenix.rb +30 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Regina.rb +74 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Santiago.rb +205 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Sao_Paulo.rb +171 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/St_Johns.rb +288 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Tijuana.rb +196 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Almaty.rb +67 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Baghdad.rb +73 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Baku.rb +161 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Bangkok.rb +20 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Chongqing.rb +33 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Colombo.rb +30 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Dhaka.rb +27 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Hong_Kong.rb +87 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Irkutsk.rb +165 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Jakarta.rb +30 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Jerusalem.rb +163 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Kabul.rb +20 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Kamchatka.rb +163 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Karachi.rb +30 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Katmandu.rb +20 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Kolkata.rb +25 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Krasnoyarsk.rb +163 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Kuala_Lumpur.rb +31 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Kuwait.rb +18 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Magadan.rb +163 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Muscat.rb +18 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Novosibirsk.rb +164 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Rangoon.rb +24 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Riyadh.rb +18 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Seoul.rb +34 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Shanghai.rb +35 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Singapore.rb +33 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Taipei.rb +59 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Tashkent.rb +47 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Tbilisi.rb +78 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Tehran.rb +121 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Tokyo.rb +30 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Ulaanbaatar.rb +65 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Urumqi.rb +33 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Vladivostok.rb +164 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Yakutsk.rb +163 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Yekaterinburg.rb +165 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Yerevan.rb +165 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Atlantic/Azores.rb +270 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Atlantic/Cape_Verde.rb +23 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Atlantic/South_Georgia.rb +18 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Australia/Adelaide.rb +187 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Australia/Brisbane.rb +35 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Australia/Darwin.rb +29 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Australia/Hobart.rb +193 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Australia/Melbourne.rb +185 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Australia/Perth.rb +37 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Australia/Sydney.rb +185 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Etc/UTC.rb +16 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Amsterdam.rb +228 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Athens.rb +185 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Belgrade.rb +163 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Berlin.rb +188 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Bratislava.rb +13 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Brussels.rb +232 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Bucharest.rb +181 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Budapest.rb +197 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Copenhagen.rb +179 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Dublin.rb +276 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Helsinki.rb +163 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Istanbul.rb +218 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Kiev.rb +168 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Lisbon.rb +268 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Ljubljana.rb +13 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/London.rb +288 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Madrid.rb +211 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Minsk.rb +170 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Moscow.rb +181 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Paris.rb +232 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Prague.rb +187 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Riga.rb +176 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Rome.rb +215 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Sarajevo.rb +13 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Skopje.rb +13 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Sofia.rb +173 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Stockholm.rb +165 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Tallinn.rb +172 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Vienna.rb +183 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Vilnius.rb +170 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Warsaw.rb +212 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Zagreb.rb +13 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Pacific/Auckland.rb +202 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Pacific/Fiji.rb +23 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Pacific/Guam.rb +22 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Pacific/Honolulu.rb +28 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Pacific/Majuro.rb +20 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Pacific/Midway.rb +25 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Pacific/Noumea.rb +25 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Pacific/Pago_Pago.rb +26 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Pacific/Port_Moresby.rb +20 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Pacific/Tongatapu.rb +27 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/info_timezone.rb +52 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/linked_timezone.rb +51 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/linked_timezone_info.rb +44 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/offset_rationals.rb +98 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/ruby_core_support.rb +56 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/time_or_datetime.rb +292 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/timezone.rb +508 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/timezone_definition.rb +56 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/timezone_info.rb +40 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/timezone_offset_info.rb +94 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/timezone_period.rb +198 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/timezone_transition_info.rb +129 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor/tzinfo-0.3.12/tzinfo.rb +33 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor.rb +28 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/version.rb +9 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/whiny_nil.rb +64 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/xml_mini/jdom.rb +162 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/xml_mini/libxml.rb +133 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/xml_mini/nokogiri.rb +69 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/xml_mini/rexml.rb +108 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/xml_mini.rb +31 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support.rb +59 -0
- data/vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/activesupport.rb +2 -0
- data/vendor/gems/ruby/1.8/gems/freighthopper-0.1.2/.gitignore +7 -0
- data/vendor/gems/ruby/1.8/gems/freighthopper-0.1.2/Gemfile +4 -0
- data/vendor/gems/ruby/1.8/gems/freighthopper-0.1.2/LICENSE +20 -0
- data/vendor/gems/ruby/1.8/gems/freighthopper-0.1.2/README +0 -0
- data/vendor/gems/ruby/1.8/gems/freighthopper-0.1.2/Rakefile +29 -0
- data/vendor/gems/ruby/1.8/gems/freighthopper-0.1.2/VERSION +1 -0
- data/vendor/gems/ruby/1.8/gems/freighthopper-0.1.2/bin/convert_to_should_syntax +3 -0
- data/vendor/gems/ruby/1.8/gems/freighthopper-0.1.2/freighthopper.gemspec +75 -0
- data/vendor/gems/ruby/1.8/gems/freighthopper-0.1.2/init.rb +1 -0
- data/vendor/gems/ruby/1.8/gems/freighthopper-0.1.2/lib/freighthopper.rb +132 -0
- data/vendor/gems/ruby/1.8/gems/freighthopper-0.1.2/test/array_test.rb +48 -0
- data/vendor/gems/ruby/1.8/gems/freighthopper-0.1.2/test/define_and_alias_test.rb +48 -0
- data/vendor/gems/ruby/1.8/gems/freighthopper-0.1.2/test/float_test.rb +18 -0
- data/vendor/gems/ruby/1.8/gems/freighthopper-0.1.2/test/hash_test.rb +27 -0
- data/vendor/gems/ruby/1.8/gems/freighthopper-0.1.2/test/kernel_test.rb +34 -0
- data/vendor/gems/ruby/1.8/gems/freighthopper-0.1.2/test/lazy_alias_test.rb +34 -0
- data/vendor/gems/ruby/1.8/gems/freighthopper-0.1.2/test/object_test.rb +68 -0
- data/vendor/gems/ruby/1.8/gems/freighthopper-0.1.2/test/string_test.rb +58 -0
- data/vendor/gems/ruby/1.8/gems/freighthopper-0.1.2/test/test_helper.rb +17 -0
- data/vendor/gems/ruby/1.8/gems/freighthopper-0.1.2/vendor/gems/cache/shoulda-2.10.2.gem +0 -0
- data/vendor/gems/ruby/1.8/gems/freighthopper-0.1.2/vendor/gems/cache/test-rig-0.0.1.gem +0 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/CONTRIBUTION_GUIDELINES.rdoc +10 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/MIT-LICENSE +22 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/README.rdoc +171 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/Rakefile +72 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/bin/convert_to_should_syntax +42 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/lib/shoulda/action_controller/macros.rb +240 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/lib/shoulda/action_controller/matchers/assign_to_matcher.rb +109 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/lib/shoulda/action_controller/matchers/filter_param_matcher.rb +57 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/lib/shoulda/action_controller/matchers/render_with_layout_matcher.rb +81 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/lib/shoulda/action_controller/matchers/respond_with_content_type_matcher.rb +74 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/lib/shoulda/action_controller/matchers/respond_with_matcher.rb +81 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/lib/shoulda/action_controller/matchers/route_matcher.rb +93 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/lib/shoulda/action_controller/matchers/set_session_matcher.rb +87 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/lib/shoulda/action_controller/matchers/set_the_flash_matcher.rb +85 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/lib/shoulda/action_controller/matchers.rb +37 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/lib/shoulda/action_controller.rb +26 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/lib/shoulda/action_mailer/assertions.rb +38 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/lib/shoulda/action_mailer.rb +10 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/lib/shoulda/action_view/macros.rb +61 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/lib/shoulda/action_view.rb +10 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/lib/shoulda/active_record/assertions.rb +69 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/lib/shoulda/active_record/helpers.rb +27 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/lib/shoulda/active_record/macros.rb +512 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/lib/shoulda/active_record/matchers/allow_mass_assignment_of_matcher.rb +83 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/lib/shoulda/active_record/matchers/allow_value_matcher.rb +102 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/lib/shoulda/active_record/matchers/association_matcher.rb +226 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/lib/shoulda/active_record/matchers/ensure_inclusion_of_matcher.rb +87 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/lib/shoulda/active_record/matchers/ensure_length_of_matcher.rb +141 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/lib/shoulda/active_record/matchers/have_db_column_matcher.rb +169 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/lib/shoulda/active_record/matchers/have_db_index_matcher.rb +112 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/lib/shoulda/active_record/matchers/have_named_scope_matcher.rb +128 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/lib/shoulda/active_record/matchers/have_readonly_attribute_matcher.rb +59 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/lib/shoulda/active_record/matchers/validate_acceptance_of_matcher.rb +41 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/lib/shoulda/active_record/matchers/validate_format_of_matcher.rb +67 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/lib/shoulda/active_record/matchers/validate_numericality_of_matcher.rb +39 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/lib/shoulda/active_record/matchers/validate_presence_of_matcher.rb +60 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/lib/shoulda/active_record/matchers/validate_uniqueness_of_matcher.rb +148 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/lib/shoulda/active_record/matchers/validation_matcher.rb +57 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/lib/shoulda/active_record/matchers.rb +43 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/lib/shoulda/active_record.rb +16 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/lib/shoulda/assertions.rb +71 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/lib/shoulda/autoload_macros.rb +46 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/lib/shoulda/context.rb +413 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/lib/shoulda/helpers.rb +8 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/lib/shoulda/macros.rb +133 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/lib/shoulda/private_helpers.rb +13 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/lib/shoulda/proc_extensions.rb +14 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/lib/shoulda/rails.rb +13 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/lib/shoulda/rspec.rb +11 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/lib/shoulda/tasks/list_tests.rake +29 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/lib/shoulda/tasks/yaml_to_shoulda.rake +28 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/lib/shoulda/tasks.rb +3 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/lib/shoulda/test_unit.rb +22 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/lib/shoulda.rb +9 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/rails/init.rb +7 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/README +36 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/fail_macros.rb +39 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/fixtures/addresses.yml +3 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/fixtures/friendships.yml +0 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/fixtures/posts.yml +5 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/fixtures/products.yml +0 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/fixtures/taggings.yml +0 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/fixtures/tags.yml +9 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/fixtures/users.yml +6 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/functional/posts_controller_test.rb +121 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/functional/users_controller_test.rb +19 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/matchers/active_record/allow_mass_assignment_of_matcher_test.rb +68 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/matchers/active_record/allow_value_matcher_test.rb +64 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/matchers/active_record/association_matcher_test.rb +263 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/matchers/active_record/ensure_inclusion_of_matcher_test.rb +80 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/matchers/active_record/ensure_length_of_matcher_test.rb +158 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/matchers/active_record/have_db_column_matcher_test.rb +169 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/matchers/active_record/have_db_index_matcher_test.rb +91 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/matchers/active_record/have_named_scope_matcher_test.rb +65 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/matchers/active_record/have_readonly_attributes_matcher_test.rb +29 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/matchers/active_record/validate_acceptance_of_matcher_test.rb +44 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/matchers/active_record/validate_format_of_matcher_test.rb +39 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/matchers/active_record/validate_numericality_of_matcher_test.rb +52 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/matchers/active_record/validate_presence_of_matcher_test.rb +86 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/matchers/active_record/validate_uniqueness_of_matcher_test.rb +147 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/matchers/controller/assign_to_matcher_test.rb +35 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/matchers/controller/filter_param_matcher_test.rb +32 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/matchers/controller/render_with_layout_matcher_test.rb +33 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/matchers/controller/respond_with_content_type_matcher_test.rb +32 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/matchers/controller/respond_with_matcher_test.rb +106 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/matchers/controller/route_matcher_test.rb +75 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/matchers/controller/set_session_matcher_test.rb +38 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/matchers/controller/set_the_flash_matcher.rb +41 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/model_builder.rb +106 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/other/autoload_macro_test.rb +18 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/other/context_test.rb +203 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/other/convert_to_should_syntax_test.rb +63 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/other/helpers_test.rb +340 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/other/private_helpers_test.rb +32 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/other/should_test.rb +271 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/app/controllers/application_controller.rb +25 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/app/controllers/posts_controller.rb +87 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/app/controllers/users_controller.rb +84 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/app/helpers/application_helper.rb +3 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/app/helpers/posts_helper.rb +2 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/app/helpers/users_helper.rb +2 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/app/models/address.rb +7 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/app/models/flea.rb +3 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/app/models/friendship.rb +4 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/app/models/pets/cat.rb +7 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/app/models/pets/dog.rb +10 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/app/models/post.rb +12 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/app/models/product.rb +12 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/app/models/profile.rb +2 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/app/models/registration.rb +2 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/app/models/tag.rb +8 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/app/models/tagging.rb +4 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/app/models/treat.rb +3 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/app/models/user.rb +32 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/app/views/layouts/posts.rhtml +19 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/app/views/layouts/users.rhtml +17 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/app/views/layouts/wide.html.erb +1 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/app/views/posts/edit.rhtml +27 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/app/views/posts/index.rhtml +25 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/app/views/posts/new.rhtml +26 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/app/views/posts/show.rhtml +18 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/app/views/users/edit.rhtml +22 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/app/views/users/index.rhtml +22 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/app/views/users/new.rhtml +21 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/app/views/users/show.rhtml +13 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/config/boot.rb +110 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/config/database.yml +4 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/config/environment.rb +18 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/config/environments/test.rb +0 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/config/initializers/new_rails_defaults.rb +15 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/config/initializers/shoulda.rb +8 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/config/routes.rb +6 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/db/migrate/001_create_users.rb +19 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/db/migrate/002_create_posts.rb +13 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/db/migrate/003_create_taggings.rb +12 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/db/migrate/004_create_tags.rb +11 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/db/migrate/005_create_dogs.rb +12 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/db/migrate/006_create_addresses.rb +14 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/db/migrate/007_create_fleas.rb +11 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/db/migrate/008_create_dogs_fleas.rb +12 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/db/migrate/009_create_products.rb +17 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/db/migrate/010_create_friendships.rb +14 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/db/migrate/011_create_treats.rb +12 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/db/migrate/20090506203502_create_profiles.rb +12 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/db/migrate/20090506203536_create_registrations.rb +14 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/db/migrate/20090513104502_create_cats.rb +12 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/db/schema.rb +0 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/public/404.html +30 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/public/422.html +30 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/public/500.html +30 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/script/console +3 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/script/generate +3 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/test/shoulda_macros/custom_macro.rb +6 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/vendor/gems/gem_with_macro-0.0.1/shoulda_macros/gem_macro.rb +6 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rails_root/vendor/plugins/plugin_with_macro/shoulda_macros/plugin_macro.rb +6 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/rspec_test.rb +207 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/test_helper.rb +28 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/unit/address_test.rb +10 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/unit/cat_test.rb +7 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/unit/dog_test.rb +9 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/unit/flea_test.rb +6 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/unit/friendship_test.rb +6 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/unit/post_test.rb +19 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/unit/product_test.rb +23 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/unit/tag_test.rb +15 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/unit/tagging_test.rb +6 -0
- data/vendor/gems/ruby/1.8/gems/shoulda-2.10.3/test/unit/user_test.rb +80 -0
- data/vendor/gems/ruby/1.8/gems/test-rig-0.0.3/.document +5 -0
- data/vendor/gems/ruby/1.8/gems/test-rig-0.0.3/.gitignore +5 -0
- data/vendor/gems/ruby/1.8/gems/test-rig-0.0.3/LICENSE +20 -0
- data/vendor/gems/ruby/1.8/gems/test-rig-0.0.3/README.textile +140 -0
- data/vendor/gems/ruby/1.8/gems/test-rig-0.0.3/Rakefile +56 -0
- data/vendor/gems/ruby/1.8/gems/test-rig-0.0.3/VERSION +1 -0
- data/vendor/gems/ruby/1.8/gems/test-rig-0.0.3/lib/test_rig/dynamic_assertions.rb +38 -0
- data/vendor/gems/ruby/1.8/gems/test-rig-0.0.3/lib/test_rig/smarter_message.rb +69 -0
- data/vendor/gems/ruby/1.8/gems/test-rig-0.0.3/lib/test_rig.rb +11 -0
- data/vendor/gems/ruby/1.8/gems/test-rig-0.0.3/test/dynamic_assertions_test.rb +65 -0
- data/vendor/gems/ruby/1.8/gems/test-rig-0.0.3/test/smarter_message_test.rb +51 -0
- data/vendor/gems/ruby/1.8/gems/test-rig-0.0.3/test/test_helper.rb +13 -0
- data/vendor/gems/ruby/1.8/gems/test-rig-0.0.3/test-rig.gemspec +55 -0
- data/vendor/gems/ruby/1.8/specifications/activerecord-2.3.5.gemspec +34 -0
- data/vendor/gems/ruby/1.8/specifications/activesupport-2.3.5.gemspec +28 -0
- data/vendor/gems/ruby/1.8/specifications/freighthopper-0.1.2.gemspec +32 -0
- data/vendor/gems/ruby/1.8/specifications/shoulda-2.10.3.gemspec +31 -0
- data/vendor/gems/ruby/1.8/specifications/test-rig-0.0.3.gemspec +30 -0
- metadata +920 -10
- data/test/helper.rb +0 -10
- data/test/test_simply_stated.rb +0 -5
@@ -0,0 +1,722 @@
|
|
1
|
+
require 'date'
|
2
|
+
require 'set'
|
3
|
+
require 'bigdecimal'
|
4
|
+
require 'bigdecimal/util'
|
5
|
+
|
6
|
+
module ActiveRecord
|
7
|
+
module ConnectionAdapters #:nodoc:
|
8
|
+
# An abstract definition of a column in a table.
|
9
|
+
class Column
|
10
|
+
TRUE_VALUES = [true, 1, '1', 't', 'T', 'true', 'TRUE'].to_set
|
11
|
+
FALSE_VALUES = [false, 0, '0', 'f', 'F', 'false', 'FALSE'].to_set
|
12
|
+
|
13
|
+
module Format
|
14
|
+
ISO_DATE = /\A(\d{4})-(\d\d)-(\d\d)\z/
|
15
|
+
ISO_DATETIME = /\A(\d{4})-(\d\d)-(\d\d) (\d\d):(\d\d):(\d\d)(\.\d+)?\z/
|
16
|
+
end
|
17
|
+
|
18
|
+
attr_reader :name, :default, :type, :limit, :null, :sql_type, :precision, :scale
|
19
|
+
attr_accessor :primary
|
20
|
+
|
21
|
+
# Instantiates a new column in the table.
|
22
|
+
#
|
23
|
+
# +name+ is the column's name, such as <tt>supplier_id</tt> in <tt>supplier_id int(11)</tt>.
|
24
|
+
# +default+ is the type-casted default value, such as +new+ in <tt>sales_stage varchar(20) default 'new'</tt>.
|
25
|
+
# +sql_type+ is only used to extract the column's length, if necessary. For example +60+ in <tt>company_name varchar(60)</tt>.
|
26
|
+
# +null+ determines if this column allows +NULL+ values.
|
27
|
+
def initialize(name, default, sql_type = nil, null = true)
|
28
|
+
@name, @sql_type, @null = name, sql_type, null
|
29
|
+
@limit, @precision, @scale = extract_limit(sql_type), extract_precision(sql_type), extract_scale(sql_type)
|
30
|
+
@type = simplified_type(sql_type)
|
31
|
+
@default = extract_default(default)
|
32
|
+
|
33
|
+
@primary = nil
|
34
|
+
end
|
35
|
+
|
36
|
+
# Returns +true+ if the column is either of type string or text.
|
37
|
+
def text?
|
38
|
+
type == :string || type == :text
|
39
|
+
end
|
40
|
+
|
41
|
+
# Returns +true+ if the column is either of type integer, float or decimal.
|
42
|
+
def number?
|
43
|
+
type == :integer || type == :float || type == :decimal
|
44
|
+
end
|
45
|
+
|
46
|
+
def has_default?
|
47
|
+
!default.nil?
|
48
|
+
end
|
49
|
+
|
50
|
+
# Returns the Ruby class that corresponds to the abstract data type.
|
51
|
+
def klass
|
52
|
+
case type
|
53
|
+
when :integer then Fixnum
|
54
|
+
when :float then Float
|
55
|
+
when :decimal then BigDecimal
|
56
|
+
when :datetime then Time
|
57
|
+
when :date then Date
|
58
|
+
when :timestamp then Time
|
59
|
+
when :time then Time
|
60
|
+
when :text, :string then String
|
61
|
+
when :binary then String
|
62
|
+
when :boolean then Object
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
# Casts value (which is a String) to an appropriate instance.
|
67
|
+
def type_cast(value)
|
68
|
+
return nil if value.nil?
|
69
|
+
case type
|
70
|
+
when :string then value
|
71
|
+
when :text then value
|
72
|
+
when :integer then value.to_i rescue value ? 1 : 0
|
73
|
+
when :float then value.to_f
|
74
|
+
when :decimal then self.class.value_to_decimal(value)
|
75
|
+
when :datetime then self.class.string_to_time(value)
|
76
|
+
when :timestamp then self.class.string_to_time(value)
|
77
|
+
when :time then self.class.string_to_dummy_time(value)
|
78
|
+
when :date then self.class.string_to_date(value)
|
79
|
+
when :binary then self.class.binary_to_string(value)
|
80
|
+
when :boolean then self.class.value_to_boolean(value)
|
81
|
+
else value
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
def type_cast_code(var_name)
|
86
|
+
case type
|
87
|
+
when :string then nil
|
88
|
+
when :text then nil
|
89
|
+
when :integer then "(#{var_name}.to_i rescue #{var_name} ? 1 : 0)"
|
90
|
+
when :float then "#{var_name}.to_f"
|
91
|
+
when :decimal then "#{self.class.name}.value_to_decimal(#{var_name})"
|
92
|
+
when :datetime then "#{self.class.name}.string_to_time(#{var_name})"
|
93
|
+
when :timestamp then "#{self.class.name}.string_to_time(#{var_name})"
|
94
|
+
when :time then "#{self.class.name}.string_to_dummy_time(#{var_name})"
|
95
|
+
when :date then "#{self.class.name}.string_to_date(#{var_name})"
|
96
|
+
when :binary then "#{self.class.name}.binary_to_string(#{var_name})"
|
97
|
+
when :boolean then "#{self.class.name}.value_to_boolean(#{var_name})"
|
98
|
+
else nil
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
102
|
+
# Returns the human name of the column name.
|
103
|
+
#
|
104
|
+
# ===== Examples
|
105
|
+
# Column.new('sales_stage', ...).human_name # => 'Sales stage'
|
106
|
+
def human_name
|
107
|
+
Base.human_attribute_name(@name)
|
108
|
+
end
|
109
|
+
|
110
|
+
def extract_default(default)
|
111
|
+
type_cast(default)
|
112
|
+
end
|
113
|
+
|
114
|
+
class << self
|
115
|
+
# Used to convert from Strings to BLOBs
|
116
|
+
def string_to_binary(value)
|
117
|
+
value
|
118
|
+
end
|
119
|
+
|
120
|
+
# Used to convert from BLOBs to Strings
|
121
|
+
def binary_to_string(value)
|
122
|
+
value
|
123
|
+
end
|
124
|
+
|
125
|
+
def string_to_date(string)
|
126
|
+
return string unless string.is_a?(String)
|
127
|
+
return nil if string.empty?
|
128
|
+
|
129
|
+
fast_string_to_date(string) || fallback_string_to_date(string)
|
130
|
+
end
|
131
|
+
|
132
|
+
def string_to_time(string)
|
133
|
+
return string unless string.is_a?(String)
|
134
|
+
return nil if string.empty?
|
135
|
+
|
136
|
+
fast_string_to_time(string) || fallback_string_to_time(string)
|
137
|
+
end
|
138
|
+
|
139
|
+
def string_to_dummy_time(string)
|
140
|
+
return string unless string.is_a?(String)
|
141
|
+
return nil if string.empty?
|
142
|
+
|
143
|
+
string_to_time "2000-01-01 #{string}"
|
144
|
+
end
|
145
|
+
|
146
|
+
# convert something to a boolean
|
147
|
+
def value_to_boolean(value)
|
148
|
+
if value.is_a?(String) && value.blank?
|
149
|
+
nil
|
150
|
+
else
|
151
|
+
TRUE_VALUES.include?(value)
|
152
|
+
end
|
153
|
+
end
|
154
|
+
|
155
|
+
# convert something to a BigDecimal
|
156
|
+
def value_to_decimal(value)
|
157
|
+
# Using .class is faster than .is_a? and
|
158
|
+
# subclasses of BigDecimal will be handled
|
159
|
+
# in the else clause
|
160
|
+
if value.class == BigDecimal
|
161
|
+
value
|
162
|
+
elsif value.respond_to?(:to_d)
|
163
|
+
value.to_d
|
164
|
+
else
|
165
|
+
value.to_s.to_d
|
166
|
+
end
|
167
|
+
end
|
168
|
+
|
169
|
+
protected
|
170
|
+
# '0.123456' -> 123456
|
171
|
+
# '1.123456' -> 123456
|
172
|
+
def microseconds(time)
|
173
|
+
((time[:sec_fraction].to_f % 1) * 1_000_000).to_i
|
174
|
+
end
|
175
|
+
|
176
|
+
def new_date(year, mon, mday)
|
177
|
+
if year && year != 0
|
178
|
+
Date.new(year, mon, mday) rescue nil
|
179
|
+
end
|
180
|
+
end
|
181
|
+
|
182
|
+
def new_time(year, mon, mday, hour, min, sec, microsec)
|
183
|
+
# Treat 0000-00-00 00:00:00 as nil.
|
184
|
+
return nil if year.nil? || year == 0
|
185
|
+
|
186
|
+
Time.time_with_datetime_fallback(Base.default_timezone, year, mon, mday, hour, min, sec, microsec) rescue nil
|
187
|
+
end
|
188
|
+
|
189
|
+
def fast_string_to_date(string)
|
190
|
+
if string =~ Format::ISO_DATE
|
191
|
+
new_date $1.to_i, $2.to_i, $3.to_i
|
192
|
+
end
|
193
|
+
end
|
194
|
+
|
195
|
+
# Doesn't handle time zones.
|
196
|
+
def fast_string_to_time(string)
|
197
|
+
if string =~ Format::ISO_DATETIME
|
198
|
+
microsec = ($7.to_f * 1_000_000).to_i
|
199
|
+
new_time $1.to_i, $2.to_i, $3.to_i, $4.to_i, $5.to_i, $6.to_i, microsec
|
200
|
+
end
|
201
|
+
end
|
202
|
+
|
203
|
+
def fallback_string_to_date(string)
|
204
|
+
new_date(*::Date._parse(string, false).values_at(:year, :mon, :mday))
|
205
|
+
end
|
206
|
+
|
207
|
+
def fallback_string_to_time(string)
|
208
|
+
time_hash = Date._parse(string)
|
209
|
+
time_hash[:sec_fraction] = microseconds(time_hash)
|
210
|
+
|
211
|
+
new_time(*time_hash.values_at(:year, :mon, :mday, :hour, :min, :sec, :sec_fraction))
|
212
|
+
end
|
213
|
+
end
|
214
|
+
|
215
|
+
private
|
216
|
+
def extract_limit(sql_type)
|
217
|
+
$1.to_i if sql_type =~ /\((.*)\)/
|
218
|
+
end
|
219
|
+
|
220
|
+
def extract_precision(sql_type)
|
221
|
+
$2.to_i if sql_type =~ /^(numeric|decimal|number)\((\d+)(,\d+)?\)/i
|
222
|
+
end
|
223
|
+
|
224
|
+
def extract_scale(sql_type)
|
225
|
+
case sql_type
|
226
|
+
when /^(numeric|decimal|number)\((\d+)\)/i then 0
|
227
|
+
when /^(numeric|decimal|number)\((\d+)(,(\d+))\)/i then $4.to_i
|
228
|
+
end
|
229
|
+
end
|
230
|
+
|
231
|
+
def simplified_type(field_type)
|
232
|
+
case field_type
|
233
|
+
when /int/i
|
234
|
+
:integer
|
235
|
+
when /float|double/i
|
236
|
+
:float
|
237
|
+
when /decimal|numeric|number/i
|
238
|
+
extract_scale(field_type) == 0 ? :integer : :decimal
|
239
|
+
when /datetime/i
|
240
|
+
:datetime
|
241
|
+
when /timestamp/i
|
242
|
+
:timestamp
|
243
|
+
when /time/i
|
244
|
+
:time
|
245
|
+
when /date/i
|
246
|
+
:date
|
247
|
+
when /clob/i, /text/i
|
248
|
+
:text
|
249
|
+
when /blob/i, /binary/i
|
250
|
+
:binary
|
251
|
+
when /char/i, /string/i
|
252
|
+
:string
|
253
|
+
when /boolean/i
|
254
|
+
:boolean
|
255
|
+
end
|
256
|
+
end
|
257
|
+
end
|
258
|
+
|
259
|
+
class IndexDefinition < Struct.new(:table, :name, :unique, :columns) #:nodoc:
|
260
|
+
end
|
261
|
+
|
262
|
+
# Abstract representation of a column definition. Instances of this type
|
263
|
+
# are typically created by methods in TableDefinition, and added to the
|
264
|
+
# +columns+ attribute of said TableDefinition object, in order to be used
|
265
|
+
# for generating a number of table creation or table changing SQL statements.
|
266
|
+
class ColumnDefinition < Struct.new(:base, :name, :type, :limit, :precision, :scale, :default, :null) #:nodoc:
|
267
|
+
|
268
|
+
def sql_type
|
269
|
+
base.type_to_sql(type.to_sym, limit, precision, scale) rescue type
|
270
|
+
end
|
271
|
+
|
272
|
+
def to_sql
|
273
|
+
column_sql = "#{base.quote_column_name(name)} #{sql_type}"
|
274
|
+
column_options = {}
|
275
|
+
column_options[:null] = null unless null.nil?
|
276
|
+
column_options[:default] = default unless default.nil?
|
277
|
+
add_column_options!(column_sql, column_options) unless type.to_sym == :primary_key
|
278
|
+
column_sql
|
279
|
+
end
|
280
|
+
|
281
|
+
private
|
282
|
+
|
283
|
+
def add_column_options!(sql, options)
|
284
|
+
base.add_column_options!(sql, options.merge(:column => self))
|
285
|
+
end
|
286
|
+
end
|
287
|
+
|
288
|
+
# Represents the schema of an SQL table in an abstract way. This class
|
289
|
+
# provides methods for manipulating the schema representation.
|
290
|
+
#
|
291
|
+
# Inside migration files, the +t+ object in +create_table+ and
|
292
|
+
# +change_table+ is actually of this type:
|
293
|
+
#
|
294
|
+
# class SomeMigration < ActiveRecord::Migration
|
295
|
+
# def self.up
|
296
|
+
# create_table :foo do |t|
|
297
|
+
# puts t.class # => "ActiveRecord::ConnectionAdapters::TableDefinition"
|
298
|
+
# end
|
299
|
+
# end
|
300
|
+
#
|
301
|
+
# def self.down
|
302
|
+
# ...
|
303
|
+
# end
|
304
|
+
# end
|
305
|
+
#
|
306
|
+
# The table definitions
|
307
|
+
# The Columns are stored as a ColumnDefinition in the +columns+ attribute.
|
308
|
+
class TableDefinition
|
309
|
+
# An array of ColumnDefinition objects, representing the column changes
|
310
|
+
# that have been defined.
|
311
|
+
attr_accessor :columns
|
312
|
+
|
313
|
+
def initialize(base)
|
314
|
+
@columns = []
|
315
|
+
@base = base
|
316
|
+
end
|
317
|
+
|
318
|
+
#Handles non supported datatypes - e.g. XML
|
319
|
+
def method_missing(symbol, *args)
|
320
|
+
if symbol.to_s == 'xml'
|
321
|
+
xml_column_fallback(args)
|
322
|
+
end
|
323
|
+
end
|
324
|
+
|
325
|
+
def xml_column_fallback(*args)
|
326
|
+
case @base.adapter_name.downcase
|
327
|
+
when 'sqlite', 'mysql'
|
328
|
+
options = args.extract_options!
|
329
|
+
column(args[0], :text, options)
|
330
|
+
end
|
331
|
+
end
|
332
|
+
# Appends a primary key definition to the table definition.
|
333
|
+
# Can be called multiple times, but this is probably not a good idea.
|
334
|
+
def primary_key(name)
|
335
|
+
column(name, :primary_key)
|
336
|
+
end
|
337
|
+
|
338
|
+
# Returns a ColumnDefinition for the column with name +name+.
|
339
|
+
def [](name)
|
340
|
+
@columns.find {|column| column.name.to_s == name.to_s}
|
341
|
+
end
|
342
|
+
|
343
|
+
# Instantiates a new column for the table.
|
344
|
+
# The +type+ parameter is normally one of the migrations native types,
|
345
|
+
# which is one of the following:
|
346
|
+
# <tt>:primary_key</tt>, <tt>:string</tt>, <tt>:text</tt>,
|
347
|
+
# <tt>:integer</tt>, <tt>:float</tt>, <tt>:decimal</tt>,
|
348
|
+
# <tt>:datetime</tt>, <tt>:timestamp</tt>, <tt>:time</tt>,
|
349
|
+
# <tt>:date</tt>, <tt>:binary</tt>, <tt>:boolean</tt>.
|
350
|
+
#
|
351
|
+
# You may use a type not in this list as long as it is supported by your
|
352
|
+
# database (for example, "polygon" in MySQL), but this will not be database
|
353
|
+
# agnostic and should usually be avoided.
|
354
|
+
#
|
355
|
+
# Available options are (none of these exists by default):
|
356
|
+
# * <tt>:limit</tt> -
|
357
|
+
# Requests a maximum column length. This is number of characters for <tt>:string</tt> and <tt>:text</tt> columns and number of bytes for :binary and :integer columns.
|
358
|
+
# * <tt>:default</tt> -
|
359
|
+
# The column's default value. Use nil for NULL.
|
360
|
+
# * <tt>:null</tt> -
|
361
|
+
# Allows or disallows +NULL+ values in the column. This option could
|
362
|
+
# have been named <tt>:null_allowed</tt>.
|
363
|
+
# * <tt>:precision</tt> -
|
364
|
+
# Specifies the precision for a <tt>:decimal</tt> column.
|
365
|
+
# * <tt>:scale</tt> -
|
366
|
+
# Specifies the scale for a <tt>:decimal</tt> column.
|
367
|
+
#
|
368
|
+
# For clarity's sake: the precision is the number of significant digits,
|
369
|
+
# while the scale is the number of digits that can be stored following
|
370
|
+
# the decimal point. For example, the number 123.45 has a precision of 5
|
371
|
+
# and a scale of 2. A decimal with a precision of 5 and a scale of 2 can
|
372
|
+
# range from -999.99 to 999.99.
|
373
|
+
#
|
374
|
+
# Please be aware of different RDBMS implementations behavior with
|
375
|
+
# <tt>:decimal</tt> columns:
|
376
|
+
# * The SQL standard says the default scale should be 0, <tt>:scale</tt> <=
|
377
|
+
# <tt>:precision</tt>, and makes no comments about the requirements of
|
378
|
+
# <tt>:precision</tt>.
|
379
|
+
# * MySQL: <tt>:precision</tt> [1..63], <tt>:scale</tt> [0..30].
|
380
|
+
# Default is (10,0).
|
381
|
+
# * PostgreSQL: <tt>:precision</tt> [1..infinity],
|
382
|
+
# <tt>:scale</tt> [0..infinity]. No default.
|
383
|
+
# * SQLite2: Any <tt>:precision</tt> and <tt>:scale</tt> may be used.
|
384
|
+
# Internal storage as strings. No default.
|
385
|
+
# * SQLite3: No restrictions on <tt>:precision</tt> and <tt>:scale</tt>,
|
386
|
+
# but the maximum supported <tt>:precision</tt> is 16. No default.
|
387
|
+
# * Oracle: <tt>:precision</tt> [1..38], <tt>:scale</tt> [-84..127].
|
388
|
+
# Default is (38,0).
|
389
|
+
# * DB2: <tt>:precision</tt> [1..63], <tt>:scale</tt> [0..62].
|
390
|
+
# Default unknown.
|
391
|
+
# * Firebird: <tt>:precision</tt> [1..18], <tt>:scale</tt> [0..18].
|
392
|
+
# Default (9,0). Internal types NUMERIC and DECIMAL have different
|
393
|
+
# storage rules, decimal being better.
|
394
|
+
# * FrontBase?: <tt>:precision</tt> [1..38], <tt>:scale</tt> [0..38].
|
395
|
+
# Default (38,0). WARNING Max <tt>:precision</tt>/<tt>:scale</tt> for
|
396
|
+
# NUMERIC is 19, and DECIMAL is 38.
|
397
|
+
# * SqlServer?: <tt>:precision</tt> [1..38], <tt>:scale</tt> [0..38].
|
398
|
+
# Default (38,0).
|
399
|
+
# * Sybase: <tt>:precision</tt> [1..38], <tt>:scale</tt> [0..38].
|
400
|
+
# Default (38,0).
|
401
|
+
# * OpenBase?: Documentation unclear. Claims storage in <tt>double</tt>.
|
402
|
+
#
|
403
|
+
# This method returns <tt>self</tt>.
|
404
|
+
#
|
405
|
+
# == Examples
|
406
|
+
# # Assuming td is an instance of TableDefinition
|
407
|
+
# td.column(:granted, :boolean)
|
408
|
+
# # granted BOOLEAN
|
409
|
+
#
|
410
|
+
# td.column(:picture, :binary, :limit => 2.megabytes)
|
411
|
+
# # => picture BLOB(2097152)
|
412
|
+
#
|
413
|
+
# td.column(:sales_stage, :string, :limit => 20, :default => 'new', :null => false)
|
414
|
+
# # => sales_stage VARCHAR(20) DEFAULT 'new' NOT NULL
|
415
|
+
#
|
416
|
+
# td.column(:bill_gates_money, :decimal, :precision => 15, :scale => 2)
|
417
|
+
# # => bill_gates_money DECIMAL(15,2)
|
418
|
+
#
|
419
|
+
# td.column(:sensor_reading, :decimal, :precision => 30, :scale => 20)
|
420
|
+
# # => sensor_reading DECIMAL(30,20)
|
421
|
+
#
|
422
|
+
# # While <tt>:scale</tt> defaults to zero on most databases, it
|
423
|
+
# # probably wouldn't hurt to include it.
|
424
|
+
# td.column(:huge_integer, :decimal, :precision => 30)
|
425
|
+
# # => huge_integer DECIMAL(30)
|
426
|
+
#
|
427
|
+
# # Defines a column with a database-specific type.
|
428
|
+
# td.column(:foo, 'polygon')
|
429
|
+
# # => foo polygon
|
430
|
+
#
|
431
|
+
# == Short-hand examples
|
432
|
+
#
|
433
|
+
# Instead of calling +column+ directly, you can also work with the short-hand definitions for the default types.
|
434
|
+
# They use the type as the method name instead of as a parameter and allow for multiple columns to be defined
|
435
|
+
# in a single statement.
|
436
|
+
#
|
437
|
+
# What can be written like this with the regular calls to column:
|
438
|
+
#
|
439
|
+
# create_table "products", :force => true do |t|
|
440
|
+
# t.column "shop_id", :integer
|
441
|
+
# t.column "creator_id", :integer
|
442
|
+
# t.column "name", :string, :default => "Untitled"
|
443
|
+
# t.column "value", :string, :default => "Untitled"
|
444
|
+
# t.column "created_at", :datetime
|
445
|
+
# t.column "updated_at", :datetime
|
446
|
+
# end
|
447
|
+
#
|
448
|
+
# Can also be written as follows using the short-hand:
|
449
|
+
#
|
450
|
+
# create_table :products do |t|
|
451
|
+
# t.integer :shop_id, :creator_id
|
452
|
+
# t.string :name, :value, :default => "Untitled"
|
453
|
+
# t.timestamps
|
454
|
+
# end
|
455
|
+
#
|
456
|
+
# There's a short-hand method for each of the type values declared at the top. And then there's
|
457
|
+
# TableDefinition#timestamps that'll add created_at and +updated_at+ as datetimes.
|
458
|
+
#
|
459
|
+
# TableDefinition#references will add an appropriately-named _id column, plus a corresponding _type
|
460
|
+
# column if the <tt>:polymorphic</tt> option is supplied. If <tt>:polymorphic</tt> is a hash of options, these will be
|
461
|
+
# used when creating the <tt>_type</tt> column. So what can be written like this:
|
462
|
+
#
|
463
|
+
# create_table :taggings do |t|
|
464
|
+
# t.integer :tag_id, :tagger_id, :taggable_id
|
465
|
+
# t.string :tagger_type
|
466
|
+
# t.string :taggable_type, :default => 'Photo'
|
467
|
+
# end
|
468
|
+
#
|
469
|
+
# Can also be written as follows using references:
|
470
|
+
#
|
471
|
+
# create_table :taggings do |t|
|
472
|
+
# t.references :tag
|
473
|
+
# t.references :tagger, :polymorphic => true
|
474
|
+
# t.references :taggable, :polymorphic => { :default => 'Photo' }
|
475
|
+
# end
|
476
|
+
def column(name, type, options = {})
|
477
|
+
column = self[name] || ColumnDefinition.new(@base, name, type)
|
478
|
+
if options[:limit]
|
479
|
+
column.limit = options[:limit]
|
480
|
+
elsif native[type.to_sym].is_a?(Hash)
|
481
|
+
column.limit = native[type.to_sym][:limit]
|
482
|
+
end
|
483
|
+
column.precision = options[:precision]
|
484
|
+
column.scale = options[:scale]
|
485
|
+
column.default = options[:default]
|
486
|
+
column.null = options[:null]
|
487
|
+
@columns << column unless @columns.include? column
|
488
|
+
self
|
489
|
+
end
|
490
|
+
|
491
|
+
%w( string text integer float decimal datetime timestamp time date binary boolean ).each do |column_type|
|
492
|
+
class_eval <<-EOV
|
493
|
+
def #{column_type}(*args) # def string(*args)
|
494
|
+
options = args.extract_options! # options = args.extract_options!
|
495
|
+
column_names = args # column_names = args
|
496
|
+
#
|
497
|
+
column_names.each { |name| column(name, '#{column_type}', options) } # column_names.each { |name| column(name, 'string', options) }
|
498
|
+
end # end
|
499
|
+
EOV
|
500
|
+
end
|
501
|
+
|
502
|
+
# Appends <tt>:datetime</tt> columns <tt>:created_at</tt> and
|
503
|
+
# <tt>:updated_at</tt> to the table.
|
504
|
+
def timestamps(*args)
|
505
|
+
options = args.extract_options!
|
506
|
+
column(:created_at, :datetime, options)
|
507
|
+
column(:updated_at, :datetime, options)
|
508
|
+
end
|
509
|
+
|
510
|
+
def references(*args)
|
511
|
+
options = args.extract_options!
|
512
|
+
polymorphic = options.delete(:polymorphic)
|
513
|
+
args.each do |col|
|
514
|
+
column("#{col}_id", :integer, options)
|
515
|
+
column("#{col}_type", :string, polymorphic.is_a?(Hash) ? polymorphic : options) unless polymorphic.nil?
|
516
|
+
end
|
517
|
+
end
|
518
|
+
alias :belongs_to :references
|
519
|
+
|
520
|
+
# Returns a String whose contents are the column definitions
|
521
|
+
# concatenated together. This string can then be prepended and appended to
|
522
|
+
# to generate the final SQL to create the table.
|
523
|
+
def to_sql
|
524
|
+
@columns.map(&:to_sql) * ', '
|
525
|
+
end
|
526
|
+
|
527
|
+
private
|
528
|
+
def native
|
529
|
+
@base.native_database_types
|
530
|
+
end
|
531
|
+
end
|
532
|
+
|
533
|
+
# Represents a SQL table in an abstract way for updating a table.
|
534
|
+
# Also see TableDefinition and SchemaStatements#create_table
|
535
|
+
#
|
536
|
+
# Available transformations are:
|
537
|
+
#
|
538
|
+
# change_table :table do |t|
|
539
|
+
# t.column
|
540
|
+
# t.index
|
541
|
+
# t.timestamps
|
542
|
+
# t.change
|
543
|
+
# t.change_default
|
544
|
+
# t.rename
|
545
|
+
# t.references
|
546
|
+
# t.belongs_to
|
547
|
+
# t.string
|
548
|
+
# t.text
|
549
|
+
# t.integer
|
550
|
+
# t.float
|
551
|
+
# t.decimal
|
552
|
+
# t.datetime
|
553
|
+
# t.timestamp
|
554
|
+
# t.time
|
555
|
+
# t.date
|
556
|
+
# t.binary
|
557
|
+
# t.boolean
|
558
|
+
# t.remove
|
559
|
+
# t.remove_references
|
560
|
+
# t.remove_belongs_to
|
561
|
+
# t.remove_index
|
562
|
+
# t.remove_timestamps
|
563
|
+
# end
|
564
|
+
#
|
565
|
+
class Table
|
566
|
+
def initialize(table_name, base)
|
567
|
+
@table_name = table_name
|
568
|
+
@base = base
|
569
|
+
end
|
570
|
+
|
571
|
+
# Adds a new column to the named table.
|
572
|
+
# See TableDefinition#column for details of the options you can use.
|
573
|
+
# ===== Example
|
574
|
+
# ====== Creating a simple column
|
575
|
+
# t.column(:name, :string)
|
576
|
+
def column(column_name, type, options = {})
|
577
|
+
@base.add_column(@table_name, column_name, type, options)
|
578
|
+
end
|
579
|
+
|
580
|
+
# Adds a new index to the table. +column_name+ can be a single Symbol, or
|
581
|
+
# an Array of Symbols. See SchemaStatements#add_index
|
582
|
+
#
|
583
|
+
# ===== Examples
|
584
|
+
# ====== Creating a simple index
|
585
|
+
# t.index(:name)
|
586
|
+
# ====== Creating a unique index
|
587
|
+
# t.index([:branch_id, :party_id], :unique => true)
|
588
|
+
# ====== Creating a named index
|
589
|
+
# t.index([:branch_id, :party_id], :unique => true, :name => 'by_branch_party')
|
590
|
+
def index(column_name, options = {})
|
591
|
+
@base.add_index(@table_name, column_name, options)
|
592
|
+
end
|
593
|
+
|
594
|
+
# Adds timestamps (created_at and updated_at) columns to the table. See SchemaStatements#add_timestamps
|
595
|
+
# ===== Example
|
596
|
+
# t.timestamps
|
597
|
+
def timestamps
|
598
|
+
@base.add_timestamps(@table_name)
|
599
|
+
end
|
600
|
+
|
601
|
+
# Changes the column's definition according to the new options.
|
602
|
+
# See TableDefinition#column for details of the options you can use.
|
603
|
+
# ===== Examples
|
604
|
+
# t.change(:name, :string, :limit => 80)
|
605
|
+
# t.change(:description, :text)
|
606
|
+
def change(column_name, type, options = {})
|
607
|
+
@base.change_column(@table_name, column_name, type, options)
|
608
|
+
end
|
609
|
+
|
610
|
+
# Sets a new default value for a column. See SchemaStatements#change_column_default
|
611
|
+
# ===== Examples
|
612
|
+
# t.change_default(:qualification, 'new')
|
613
|
+
# t.change_default(:authorized, 1)
|
614
|
+
def change_default(column_name, default)
|
615
|
+
@base.change_column_default(@table_name, column_name, default)
|
616
|
+
end
|
617
|
+
|
618
|
+
# Removes the column(s) from the table definition.
|
619
|
+
# ===== Examples
|
620
|
+
# t.remove(:qualification)
|
621
|
+
# t.remove(:qualification, :experience)
|
622
|
+
def remove(*column_names)
|
623
|
+
@base.remove_column(@table_name, column_names)
|
624
|
+
end
|
625
|
+
|
626
|
+
# Removes the given index from the table.
|
627
|
+
#
|
628
|
+
# ===== Examples
|
629
|
+
# ====== Remove the suppliers_name_index in the suppliers table
|
630
|
+
# t.remove_index :name
|
631
|
+
# ====== Remove the index named accounts_branch_id_index in the accounts table
|
632
|
+
# t.remove_index :column => :branch_id
|
633
|
+
# ====== Remove the index named accounts_branch_id_party_id_index in the accounts table
|
634
|
+
# t.remove_index :column => [:branch_id, :party_id]
|
635
|
+
# ====== Remove the index named by_branch_party in the accounts table
|
636
|
+
# t.remove_index :name => :by_branch_party
|
637
|
+
def remove_index(options = {})
|
638
|
+
@base.remove_index(@table_name, options)
|
639
|
+
end
|
640
|
+
|
641
|
+
# Removes the timestamp columns (created_at and updated_at) from the table.
|
642
|
+
# ===== Example
|
643
|
+
# t.remove_timestamps
|
644
|
+
def remove_timestamps
|
645
|
+
@base.remove_timestamps(@table_name)
|
646
|
+
end
|
647
|
+
|
648
|
+
# Renames a column.
|
649
|
+
# ===== Example
|
650
|
+
# t.rename(:description, :name)
|
651
|
+
def rename(column_name, new_column_name)
|
652
|
+
@base.rename_column(@table_name, column_name, new_column_name)
|
653
|
+
end
|
654
|
+
|
655
|
+
# Adds a reference. Optionally adds a +type+ column.
|
656
|
+
# <tt>references</tt> and <tt>belongs_to</tt> are acceptable.
|
657
|
+
# ===== Examples
|
658
|
+
# t.references(:goat)
|
659
|
+
# t.references(:goat, :polymorphic => true)
|
660
|
+
# t.belongs_to(:goat)
|
661
|
+
def references(*args)
|
662
|
+
options = args.extract_options!
|
663
|
+
polymorphic = options.delete(:polymorphic)
|
664
|
+
args.each do |col|
|
665
|
+
@base.add_column(@table_name, "#{col}_id", :integer, options)
|
666
|
+
@base.add_column(@table_name, "#{col}_type", :string, polymorphic.is_a?(Hash) ? polymorphic : options) unless polymorphic.nil?
|
667
|
+
end
|
668
|
+
end
|
669
|
+
alias :belongs_to :references
|
670
|
+
|
671
|
+
# Removes a reference. Optionally removes a +type+ column.
|
672
|
+
# <tt>remove_references</tt> and <tt>remove_belongs_to</tt> are acceptable.
|
673
|
+
# ===== Examples
|
674
|
+
# t.remove_references(:goat)
|
675
|
+
# t.remove_references(:goat, :polymorphic => true)
|
676
|
+
# t.remove_belongs_to(:goat)
|
677
|
+
def remove_references(*args)
|
678
|
+
options = args.extract_options!
|
679
|
+
polymorphic = options.delete(:polymorphic)
|
680
|
+
args.each do |col|
|
681
|
+
@base.remove_column(@table_name, "#{col}_id")
|
682
|
+
@base.remove_column(@table_name, "#{col}_type") unless polymorphic.nil?
|
683
|
+
end
|
684
|
+
end
|
685
|
+
alias :remove_belongs_to :remove_references
|
686
|
+
|
687
|
+
# Adds a column or columns of a specified type
|
688
|
+
# ===== Examples
|
689
|
+
# t.string(:goat)
|
690
|
+
# t.string(:goat, :sheep)
|
691
|
+
%w( string text integer float decimal datetime timestamp time date binary boolean ).each do |column_type|
|
692
|
+
class_eval <<-EOV
|
693
|
+
def #{column_type}(*args) # def string(*args)
|
694
|
+
options = args.extract_options! # options = args.extract_options!
|
695
|
+
column_names = args # column_names = args
|
696
|
+
#
|
697
|
+
column_names.each do |name| # column_names.each do |name|
|
698
|
+
column = ColumnDefinition.new(@base, name, '#{column_type}') # column = ColumnDefinition.new(@base, name, 'string')
|
699
|
+
if options[:limit] # if options[:limit]
|
700
|
+
column.limit = options[:limit] # column.limit = options[:limit]
|
701
|
+
elsif native['#{column_type}'.to_sym].is_a?(Hash) # elsif native['string'.to_sym].is_a?(Hash)
|
702
|
+
column.limit = native['#{column_type}'.to_sym][:limit] # column.limit = native['string'.to_sym][:limit]
|
703
|
+
end # end
|
704
|
+
column.precision = options[:precision] # column.precision = options[:precision]
|
705
|
+
column.scale = options[:scale] # column.scale = options[:scale]
|
706
|
+
column.default = options[:default] # column.default = options[:default]
|
707
|
+
column.null = options[:null] # column.null = options[:null]
|
708
|
+
@base.add_column(@table_name, name, column.sql_type, options) # @base.add_column(@table_name, name, column.sql_type, options)
|
709
|
+
end # end
|
710
|
+
end # end
|
711
|
+
EOV
|
712
|
+
end
|
713
|
+
|
714
|
+
private
|
715
|
+
def native
|
716
|
+
@base.native_database_types
|
717
|
+
end
|
718
|
+
end
|
719
|
+
|
720
|
+
end
|
721
|
+
end
|
722
|
+
|