nullifyable 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +8 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +52 -0
- data/LICENSE.txt +21 -0
- data/README.md +53 -0
- data/Rakefile +10 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/nullifyable.rb +27 -0
- data/lib/nullifyable/version.rb +3 -0
- data/nullifyable.gemspec +31 -0
- data/vendor/bundle/bin/rake +27 -0
- data/vendor/bundle/cache/activemodel-5.2.2.gem +0 -0
- data/vendor/bundle/cache/activerecord-5.2.2.gem +0 -0
- data/vendor/bundle/cache/activesupport-5.2.2.gem +0 -0
- data/vendor/bundle/cache/ansi-1.5.0.gem +0 -0
- data/vendor/bundle/cache/arel-9.0.0.gem +0 -0
- data/vendor/bundle/cache/builder-3.2.3.gem +0 -0
- data/vendor/bundle/cache/concurrent-ruby-1.1.4.gem +0 -0
- data/vendor/bundle/cache/i18n-1.3.0.gem +0 -0
- data/vendor/bundle/cache/minitest-5.11.3.gem +0 -0
- data/vendor/bundle/cache/minitest-reporters-1.3.5.gem +0 -0
- data/vendor/bundle/cache/rake-10.5.0.gem +0 -0
- data/vendor/bundle/cache/ruby-progressbar-1.10.0.gem +0 -0
- data/vendor/bundle/cache/sqlite3-1.3.13.gem +0 -0
- data/vendor/bundle/cache/thread_safe-0.3.6.gem +0 -0
- data/vendor/bundle/cache/tzinfo-1.2.5.gem +0 -0
- data/vendor/bundle/extensions/x86_64-darwin-14/2.3.0-static/sqlite3-1.3.13/gem.build_complete +0 -0
- data/vendor/bundle/extensions/x86_64-darwin-14/2.3.0-static/sqlite3-1.3.13/gem_make.out +33 -0
- data/vendor/bundle/extensions/x86_64-darwin-14/2.3.0-static/sqlite3-1.3.13/mkmf.log +529 -0
- data/vendor/bundle/extensions/x86_64-darwin-14/2.3.0-static/sqlite3-1.3.13/sqlite3/sqlite3_native.bundle +0 -0
- data/vendor/bundle/gems/activemodel-5.2.2/CHANGELOG.md +84 -0
- data/vendor/bundle/gems/activemodel-5.2.2/MIT-LICENSE +21 -0
- data/vendor/bundle/gems/activemodel-5.2.2/README.rdoc +264 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model.rb +77 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/attribute.rb +248 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/attribute/user_provided_default.rb +52 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/attribute_assignment.rb +57 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/attribute_methods.rb +478 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/attribute_mutation_tracker.rb +124 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/attribute_set.rb +114 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/attribute_set/builder.rb +126 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/attribute_set/yaml_encoder.rb +41 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/attributes.rb +111 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/callbacks.rb +153 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/conversion.rb +111 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/dirty.rb +343 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/errors.rb +517 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/forbidden_attributes_protection.rb +31 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/gem_version.rb +17 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/lint.rb +118 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/locale/en.yml +36 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/model.rb +99 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/naming.rb +318 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/railtie.rb +14 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/secure_password.rb +129 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/serialization.rb +192 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/serializers/json.rb +146 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/translation.rb +70 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/type.rb +53 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/type/big_integer.rb +15 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/type/binary.rb +52 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/type/boolean.rb +38 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/type/date.rb +56 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/type/date_time.rb +50 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/type/decimal.rb +70 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/type/float.rb +36 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/type/helpers.rb +6 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/type/helpers/accepts_multiparameter_time.rb +41 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/type/helpers/mutable.rb +20 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/type/helpers/numeric.rb +37 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/type/helpers/time_value.rb +80 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/type/immutable_string.rb +32 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/type/integer.rb +70 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/type/registry.rb +70 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/type/string.rb +26 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/type/time.rb +46 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/type/value.rb +126 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/validations.rb +439 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/validations/absence.rb +33 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/validations/acceptance.rb +106 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/validations/callbacks.rb +122 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/validations/clusivity.rb +54 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/validations/confirmation.rb +80 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/validations/exclusion.rb +49 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/validations/format.rb +114 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/validations/helper_methods.rb +15 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/validations/inclusion.rb +47 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/validations/length.rb +129 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/validations/numericality.rb +180 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/validations/presence.rb +39 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/validations/validates.rb +174 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/validations/with.rb +147 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/validator.rb +183 -0
- data/vendor/bundle/gems/activemodel-5.2.2/lib/active_model/version.rb +10 -0
- data/vendor/bundle/gems/activerecord-5.2.2/CHANGELOG.md +895 -0
- data/vendor/bundle/gems/activerecord-5.2.2/MIT-LICENSE +20 -0
- data/vendor/bundle/gems/activerecord-5.2.2/README.rdoc +217 -0
- data/vendor/bundle/gems/activerecord-5.2.2/examples/performance.rb +185 -0
- data/vendor/bundle/gems/activerecord-5.2.2/examples/simple.rb +15 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record.rb +188 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/aggregations.rb +283 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/association_relation.rb +40 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/associations.rb +1860 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/associations/alias_tracker.rb +81 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/associations/association.rb +299 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/associations/association_scope.rb +168 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/associations/belongs_to_association.rb +130 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/associations/belongs_to_polymorphic_association.rb +40 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/associations/builder/association.rb +140 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/associations/builder/belongs_to.rb +163 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/associations/builder/collection_association.rb +82 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/associations/builder/has_and_belongs_to_many.rb +135 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/associations/builder/has_many.rb +17 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/associations/builder/has_one.rb +30 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/associations/builder/singular_association.rb +42 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/associations/collection_association.rb +514 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/associations/collection_proxy.rb +1157 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/associations/foreign_association.rb +13 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/associations/has_many_association.rb +143 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/associations/has_many_through_association.rb +225 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/associations/has_one_association.rb +120 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/associations/has_one_through_association.rb +45 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/associations/join_dependency.rb +262 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/associations/join_dependency/join_association.rb +60 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/associations/join_dependency/join_base.rb +23 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/associations/join_dependency/join_part.rb +71 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/associations/preloader.rb +193 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/associations/preloader/association.rb +131 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/associations/preloader/through_association.rb +107 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/associations/singular_association.rb +73 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/associations/through_association.rb +121 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/attribute_assignment.rb +88 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/attribute_decorators.rb +90 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/attribute_methods.rb +492 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/attribute_methods/before_type_cast.rb +78 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/attribute_methods/dirty.rb +150 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/attribute_methods/primary_key.rb +143 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/attribute_methods/query.rb +42 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/attribute_methods/read.rb +85 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/attribute_methods/serialization.rb +90 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/attribute_methods/time_zone_conversion.rb +91 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/attribute_methods/write.rb +68 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/attributes.rb +266 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/autosave_association.rb +498 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/base.rb +329 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/callbacks.rb +353 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/coders/json.rb +15 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/coders/yaml_column.rb +50 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/collection_cache_key.rb +53 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/abstract/connection_pool.rb +1064 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/abstract/database_limits.rb +72 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/abstract/database_statements.rb +532 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/abstract/query_cache.rb +140 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/abstract/quoting.rb +200 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/abstract/savepoints.rb +23 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/abstract/schema_creation.rb +146 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/abstract/schema_definitions.rb +685 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/abstract/schema_dumper.rb +95 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/abstract/schema_statements.rb +1396 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/abstract/transaction.rb +283 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/abstract_adapter.rb +626 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/abstract_mysql_adapter.rb +877 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/column.rb +91 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/connection_specification.rb +287 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/determine_if_preparable_visitor.rb +33 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/mysql/column.rb +27 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/mysql/database_statements.rb +140 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/mysql/explain_pretty_printer.rb +72 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/mysql/quoting.rb +44 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/mysql/schema_creation.rb +73 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/mysql/schema_definitions.rb +87 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/mysql/schema_dumper.rb +80 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/mysql/schema_statements.rb +148 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/mysql/type_metadata.rb +35 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/mysql2_adapter.rb +129 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/postgresql/column.rb +44 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/postgresql/database_statements.rb +163 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/postgresql/explain_pretty_printer.rb +44 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/postgresql/oid.rb +34 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/postgresql/oid/array.rb +92 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/postgresql/oid/bit.rb +56 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/postgresql/oid/bit_varying.rb +15 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/postgresql/oid/bytea.rb +17 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/postgresql/oid/cidr.rb +50 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/postgresql/oid/date.rb +23 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/postgresql/oid/date_time.rb +23 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/postgresql/oid/decimal.rb +15 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/postgresql/oid/enum.rb +21 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/postgresql/oid/hstore.rb +71 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/postgresql/oid/inet.rb +15 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/postgresql/oid/jsonb.rb +15 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/postgresql/oid/legacy_point.rb +45 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/postgresql/oid/money.rb +41 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/postgresql/oid/oid.rb +15 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/postgresql/oid/point.rb +65 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/postgresql/oid/range.rb +97 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/postgresql/oid/specialized_string.rb +18 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/postgresql/oid/type_map_initializer.rb +111 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/postgresql/oid/uuid.rb +23 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/postgresql/oid/vector.rb +28 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/postgresql/oid/xml.rb +30 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/postgresql/quoting.rb +168 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/postgresql/referential_integrity.rb +43 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/postgresql/schema_creation.rb +29 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/postgresql/schema_definitions.rb +206 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/postgresql/schema_dumper.rb +50 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/postgresql/schema_statements.rb +792 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/postgresql/type_metadata.rb +39 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/postgresql/utils.rb +81 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/postgresql_adapter.rb +863 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/schema_cache.rb +118 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/sql_type_metadata.rb +34 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/sqlite3/explain_pretty_printer.rb +21 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/sqlite3/quoting.rb +63 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/sqlite3/schema_creation.rb +17 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/sqlite3/schema_definitions.rb +19 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/sqlite3/schema_dumper.rb +18 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/sqlite3/schema_statements.rb +106 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/sqlite3_adapter.rb +573 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/statement_pool.rb +61 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_handling.rb +145 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/core.rb +558 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/counter_cache.rb +218 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/define_callbacks.rb +22 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/dynamic_matchers.rb +122 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/enum.rb +244 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/errors.rb +374 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/explain.rb +50 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/explain_registry.rb +32 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/explain_subscriber.rb +34 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/fixture_set/file.rb +82 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/fixtures.rb +1065 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/gem_version.rb +17 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/inheritance.rb +283 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/integration.rb +155 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/internal_metadata.rb +45 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/legacy_yaml_adapter.rb +48 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/locale/en.yml +48 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/locking/optimistic.rb +198 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/locking/pessimistic.rb +89 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/log_subscriber.rb +137 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/migration.rb +1378 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/migration/command_recorder.rb +240 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/migration/compatibility.rb +217 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/migration/join_table.rb +17 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/model_schema.rb +521 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/nested_attributes.rb +600 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/no_touching.rb +58 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/null_relation.rb +68 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/persistence.rb +761 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/query_cache.rb +45 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/querying.rb +71 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/railtie.rb +226 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/railties/console_sandbox.rb +7 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/railties/controller_runtime.rb +56 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/railties/databases.rake +377 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/readonly_attributes.rb +24 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/reflection.rb +1044 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/relation.rb +629 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/relation/batches.rb +287 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/relation/batches/batch_enumerator.rb +69 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/relation/calculations.rb +414 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/relation/delegation.rb +147 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/relation/finder_methods.rb +561 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/relation/from_clause.rb +26 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/relation/merger.rb +190 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/relation/predicate_builder.rb +147 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/relation/predicate_builder/array_handler.rb +48 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/relation/predicate_builder/association_query_value.rb +46 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/relation/predicate_builder/base_handler.rb +19 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/relation/predicate_builder/basic_object_handler.rb +20 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/relation/predicate_builder/polymorphic_array_value.rb +56 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/relation/predicate_builder/range_handler.rb +42 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/relation/predicate_builder/relation_handler.rb +19 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/relation/query_attribute.rb +43 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/relation/query_methods.rb +1208 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/relation/record_fetch_warning.rb +51 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/relation/spawn_methods.rb +77 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/relation/where_clause.rb +186 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/relation/where_clause_factory.rb +34 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/result.rb +149 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/runtime_registry.rb +24 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/sanitization.rb +222 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/schema.rb +70 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/schema_dumper.rb +255 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/schema_migration.rb +56 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/scoping.rb +106 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/scoping/default.rb +152 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/scoping/named.rb +213 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/secure_token.rb +40 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/serialization.rb +22 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/statement_cache.rb +121 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/store.rb +211 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/suppressor.rb +61 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/table_metadata.rb +82 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/tasks/database_tasks.rb +337 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/tasks/mysql_database_tasks.rb +115 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/tasks/postgresql_database_tasks.rb +143 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/tasks/sqlite_database_tasks.rb +83 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/timestamp.rb +153 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/touch_later.rb +64 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/transactions.rb +502 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/translation.rb +24 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/type.rb +79 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/type/adapter_specific_registry.rb +136 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/type/date.rb +9 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/type/date_time.rb +9 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/type/decimal_without_scale.rb +15 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/type/hash_lookup_type_map.rb +25 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/type/internal/timezone.rb +17 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/type/json.rb +30 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/type/serialized.rb +71 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/type/text.rb +11 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/type/time.rb +21 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/type/type_map.rb +62 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/type/unsigned_integer.rb +17 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/type_caster.rb +9 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/type_caster/connection.rb +33 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/type_caster/map.rb +23 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/validations.rb +93 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/validations/absence.rb +25 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/validations/associated.rb +60 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/validations/length.rb +26 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/validations/presence.rb +68 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/validations/uniqueness.rb +238 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/active_record/version.rb +10 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/rails/generators/active_record.rb +19 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/rails/generators/active_record/application_record/application_record_generator.rb +27 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/rails/generators/active_record/application_record/templates/application_record.rb.tt +5 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/rails/generators/active_record/migration.rb +35 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/rails/generators/active_record/migration/migration_generator.rb +78 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/rails/generators/active_record/migration/templates/create_table_migration.rb.tt +24 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/rails/generators/active_record/migration/templates/migration.rb.tt +46 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/rails/generators/active_record/model/model_generator.rb +48 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/rails/generators/active_record/model/templates/model.rb.tt +13 -0
- data/vendor/bundle/gems/activerecord-5.2.2/lib/rails/generators/active_record/model/templates/module.rb.tt +7 -0
- data/vendor/bundle/gems/activesupport-5.2.2/CHANGELOG.md +572 -0
- data/vendor/bundle/gems/activesupport-5.2.2/MIT-LICENSE +20 -0
- data/vendor/bundle/gems/activesupport-5.2.2/README.rdoc +39 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support.rb +95 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/all.rb +5 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/array_inquirer.rb +48 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/backtrace_cleaner.rb +105 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/benchmarkable.rb +51 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/builder.rb +8 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/cache.rb +808 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/cache/file_store.rb +196 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/cache/mem_cache_store.rb +207 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/cache/memory_store.rb +169 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/cache/null_store.rb +43 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/cache/redis_cache_store.rb +461 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/cache/strategy/local_cache.rb +194 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/cache/strategy/local_cache_middleware.rb +45 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/callbacks.rb +845 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/concern.rb +144 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/concurrency/load_interlock_aware_monitor.rb +17 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/concurrency/share_lock.rb +227 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/configurable.rb +150 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext.rb +5 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/array.rb +9 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/array/access.rb +92 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/array/conversions.rb +213 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/array/extract_options.rb +31 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/array/grouping.rb +109 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/array/inquiry.rb +19 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/array/prepend_and_append.rb +9 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/array/wrap.rb +48 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/benchmark.rb +16 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/big_decimal.rb +3 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/big_decimal/conversions.rb +14 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/class.rb +4 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/class/attribute.rb +146 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/class/attribute_accessors.rb +6 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/class/subclasses.rb +54 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/date.rb +7 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/date/acts_like.rb +10 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/date/blank.rb +14 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/date/calculations.rb +145 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/date/conversions.rb +96 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/date/zones.rb +8 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/date_and_time/calculations.rb +374 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/date_and_time/compatibility.rb +16 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/date_and_time/zones.rb +41 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/date_time.rb +7 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/date_time/acts_like.rb +16 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/date_time/blank.rb +14 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/date_time/calculations.rb +211 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/date_time/compatibility.rb +18 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/date_time/conversions.rb +107 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/digest/uuid.rb +53 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/enumerable.rb +164 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/file.rb +3 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/file/atomic.rb +70 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/hash.rb +11 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/hash/compact.rb +29 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/hash/conversions.rb +263 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/hash/deep_merge.rb +34 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/hash/except.rb +24 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/hash/indifferent_access.rb +24 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/hash/keys.rb +172 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/hash/reverse_merge.rb +25 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/hash/slice.rb +48 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/hash/transform_values.rb +32 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/integer.rb +5 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/integer/inflections.rb +31 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/integer/multiple.rb +12 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/integer/time.rb +22 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/kernel.rb +6 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/kernel/agnostics.rb +13 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/kernel/concern.rb +14 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/kernel/reporting.rb +45 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/kernel/singleton_class.rb +8 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/load_error.rb +9 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/marshal.rb +24 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/module.rb +14 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/module/aliasing.rb +31 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/module/anonymous.rb +30 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/module/attr_internal.rb +38 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/module/attribute_accessors.rb +215 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb +150 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/module/concerning.rb +134 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/module/delegation.rb +287 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/module/deprecation.rb +25 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/module/introspection.rb +62 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/module/reachable.rb +11 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/module/redefine_method.rb +49 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/module/remove_method.rb +17 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/name_error.rb +38 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/numeric.rb +6 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/numeric/bytes.rb +66 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/numeric/conversions.rb +140 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/numeric/inquiry.rb +28 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/numeric/time.rb +66 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/object.rb +16 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/object/acts_like.rb +21 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/object/blank.rb +156 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/object/conversions.rb +6 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/object/deep_dup.rb +55 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/object/duplicable.rb +156 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/object/inclusion.rb +29 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/object/instance_variables.rb +30 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/object/json.rb +227 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/object/to_param.rb +3 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/object/to_query.rb +89 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/object/try.rb +148 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/object/with_options.rb +82 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/range.rb +7 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/range/conversions.rb +39 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/range/each.rb +25 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/range/include_range.rb +25 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/range/include_time_with_zone.rb +23 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/range/overlaps.rb +10 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/regexp.rb +11 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/securerandom.rb +25 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/string.rb +15 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/string/access.rb +106 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/string/behavior.rb +8 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/string/conversions.rb +59 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/string/exclude.rb +13 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/string/filters.rb +104 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/string/indent.rb +45 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/string/inflections.rb +254 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/string/inquiry.rb +15 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/string/multibyte.rb +57 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/string/output_safety.rb +258 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/string/starts_ends_with.rb +6 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/string/strip.rb +25 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/string/zones.rb +16 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/time.rb +7 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/time/acts_like.rb +10 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/time/calculations.rb +315 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/time/compatibility.rb +16 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/time/conversions.rb +72 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/time/zones.rb +113 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/core_ext/uri.rb +24 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/current_attributes.rb +195 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/dependencies.rb +753 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/dependencies/autoload.rb +79 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/dependencies/interlock.rb +57 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/deprecation.rb +46 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/deprecation/behaviors.rb +109 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/deprecation/constant_accessor.rb +52 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/deprecation/instance_delegator.rb +39 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/deprecation/method_wrappers.rb +80 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/deprecation/proxy_wrappers.rb +154 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/deprecation/reporting.rb +114 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/descendants_tracker.rb +62 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/digest.rb +20 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/duration.rb +432 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/duration/iso8601_parser.rb +125 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/duration/iso8601_serializer.rb +55 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/encrypted_configuration.rb +49 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/encrypted_file.rb +99 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/evented_file_update_checker.rb +205 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/execution_wrapper.rb +128 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/executor.rb +8 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/file_update_checker.rb +163 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/gem_version.rb +17 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/gzip.rb +38 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/hash_with_indifferent_access.rb +382 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/i18n.rb +15 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/i18n_railtie.rb +118 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/inflections.rb +72 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/inflector.rb +9 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/inflector/inflections.rb +260 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/inflector/methods.rb +408 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/inflector/transliterate.rb +118 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/json.rb +4 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/json/decoding.rb +76 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/json/encoding.rb +130 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/key_generator.rb +73 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/lazy_load_hooks.rb +78 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/locale/en.yml +135 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/log_subscriber.rb +112 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/log_subscriber/test_helper.rb +106 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/logger.rb +108 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/logger_silence.rb +29 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/logger_thread_safe_level.rb +33 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/message_encryptor.rb +229 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/message_verifier.rb +205 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/messages/metadata.rb +71 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/messages/rotation_configuration.rb +22 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/messages/rotator.rb +56 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/multibyte.rb +23 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/multibyte/chars.rb +235 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/multibyte/unicode.rb +394 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/notifications.rb +216 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/notifications/fanout.rb +159 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/notifications/instrumenter.rb +93 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/number_helper.rb +371 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/number_helper/number_converter.rb +184 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/number_helper/number_to_currency_converter.rb +46 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/number_helper/number_to_delimited_converter.rb +29 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/number_helper/number_to_human_converter.rb +68 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/number_helper/number_to_human_size_converter.rb +59 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/number_helper/number_to_percentage_converter.rb +14 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/number_helper/number_to_phone_converter.rb +58 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/number_helper/number_to_rounded_converter.rb +54 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/number_helper/rounding_helper.rb +66 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/option_merger.rb +27 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/ordered_hash.rb +50 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/ordered_options.rb +85 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/per_thread_registry.rb +60 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/proxy_object.rb +15 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/rails.rb +35 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/railtie.rb +80 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/reloader.rb +131 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/rescuable.rb +174 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/security_utils.rb +31 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/string_inquirer.rb +34 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/subscriber.rb +130 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/tagged_logging.rb +79 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/test_case.rb +72 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/testing/assertions.rb +214 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/testing/autorun.rb +7 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/testing/constant_lookup.rb +51 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/testing/declarative.rb +28 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/testing/deprecation.rb +39 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/testing/file_fixtures.rb +36 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/testing/isolation.rb +110 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/testing/method_call_assertions.rb +43 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/testing/setup_and_teardown.rb +55 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/testing/stream.rb +44 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/testing/tagged_logging.rb +27 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/testing/time_helpers.rb +200 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/time.rb +20 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/time_with_zone.rb +551 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/values/time_zone.rb +565 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/values/unicode_tables.dat +0 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/version.rb +10 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/xml_mini.rb +209 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/xml_mini/jdom.rb +183 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/xml_mini/libxml.rb +80 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/xml_mini/libxmlsax.rb +83 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/xml_mini/nokogiri.rb +83 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/xml_mini/nokogirisax.rb +86 -0
- data/vendor/bundle/gems/activesupport-5.2.2/lib/active_support/xml_mini/rexml.rb +130 -0
- data/vendor/bundle/gems/ansi-1.5.0/.index +77 -0
- data/vendor/bundle/gems/ansi-1.5.0/.yardopts +8 -0
- data/vendor/bundle/gems/ansi-1.5.0/DEMO.md +451 -0
- data/vendor/bundle/gems/ansi-1.5.0/HISTORY.md +217 -0
- data/vendor/bundle/gems/ansi-1.5.0/LICENSE.txt +23 -0
- data/vendor/bundle/gems/ansi-1.5.0/NOTICE.md +170 -0
- data/vendor/bundle/gems/ansi-1.5.0/README.md +91 -0
- data/vendor/bundle/gems/ansi-1.5.0/demo/01_ansicode.md +65 -0
- data/vendor/bundle/gems/ansi-1.5.0/demo/02_core.md +11 -0
- data/vendor/bundle/gems/ansi-1.5.0/demo/03_logger.md +30 -0
- data/vendor/bundle/gems/ansi-1.5.0/demo/04_progressbar.md +62 -0
- data/vendor/bundle/gems/ansi-1.5.0/demo/05_mixin.md +37 -0
- data/vendor/bundle/gems/ansi-1.5.0/demo/06_string.md +56 -0
- data/vendor/bundle/gems/ansi-1.5.0/demo/07_columns.md +89 -0
- data/vendor/bundle/gems/ansi-1.5.0/demo/08_table.md +28 -0
- data/vendor/bundle/gems/ansi-1.5.0/demo/09_diff.md +47 -0
- data/vendor/bundle/gems/ansi-1.5.0/demo/10_bbcode.md +24 -0
- data/vendor/bundle/gems/ansi-1.5.0/demo/11_terminal.md +8 -0
- data/vendor/bundle/gems/ansi-1.5.0/demo/applique/ae.rb +1 -0
- data/vendor/bundle/gems/ansi-1.5.0/demo/applique/output.rb +5 -0
- data/vendor/bundle/gems/ansi-1.5.0/lib/ansi.rb +22 -0
- data/vendor/bundle/gems/ansi-1.5.0/lib/ansi.yml +77 -0
- data/vendor/bundle/gems/ansi-1.5.0/lib/ansi/bbcode.rb +334 -0
- data/vendor/bundle/gems/ansi-1.5.0/lib/ansi/chain.rb +50 -0
- data/vendor/bundle/gems/ansi-1.5.0/lib/ansi/chart.rb +100 -0
- data/vendor/bundle/gems/ansi-1.5.0/lib/ansi/code.rb +349 -0
- data/vendor/bundle/gems/ansi-1.5.0/lib/ansi/columns.rb +197 -0
- data/vendor/bundle/gems/ansi-1.5.0/lib/ansi/constants.rb +25 -0
- data/vendor/bundle/gems/ansi-1.5.0/lib/ansi/core.rb +30 -0
- data/vendor/bundle/gems/ansi-1.5.0/lib/ansi/diff.rb +215 -0
- data/vendor/bundle/gems/ansi-1.5.0/lib/ansi/hexdump.rb +122 -0
- data/vendor/bundle/gems/ansi-1.5.0/lib/ansi/logger.rb +211 -0
- data/vendor/bundle/gems/ansi-1.5.0/lib/ansi/mixin.rb +121 -0
- data/vendor/bundle/gems/ansi-1.5.0/lib/ansi/progressbar.rb +292 -0
- data/vendor/bundle/gems/ansi-1.5.0/lib/ansi/string.rb +254 -0
- data/vendor/bundle/gems/ansi-1.5.0/lib/ansi/table.rb +179 -0
- data/vendor/bundle/gems/ansi-1.5.0/lib/ansi/terminal.rb +44 -0
- data/vendor/bundle/gems/ansi-1.5.0/lib/ansi/terminal/curses.rb +26 -0
- data/vendor/bundle/gems/ansi-1.5.0/lib/ansi/terminal/stty.rb +62 -0
- data/vendor/bundle/gems/ansi-1.5.0/lib/ansi/terminal/termios.rb +68 -0
- data/vendor/bundle/gems/ansi-1.5.0/lib/ansi/terminal/win32.rb +107 -0
- data/vendor/bundle/gems/ansi-1.5.0/lib/ansi/version.rb +15 -0
- data/vendor/bundle/gems/ansi-1.5.0/test/case_ansicode.rb +43 -0
- data/vendor/bundle/gems/ansi-1.5.0/test/case_bbcode.rb +35 -0
- data/vendor/bundle/gems/ansi-1.5.0/test/case_mixin.rb +35 -0
- data/vendor/bundle/gems/ansi-1.5.0/test/case_progressbar.rb +21 -0
- data/vendor/bundle/gems/ansi-1.5.0/test/test_helper.rb +3 -0
- data/vendor/bundle/gems/arel-9.0.0/History.txt +332 -0
- data/vendor/bundle/gems/arel-9.0.0/MIT-LICENSE.txt +21 -0
- data/vendor/bundle/gems/arel-9.0.0/README.md +295 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel.rb +38 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/alias_predication.rb +8 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/attributes.rb +21 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/attributes/attribute.rb +36 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/collectors/bind.rb +24 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/collectors/composite.rb +32 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/collectors/plain_string.rb +19 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/collectors/sql_string.rb +24 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/collectors/substitute_binds.rb +28 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/compatibility/wheres.rb +34 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/crud.rb +42 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/delete_manager.rb +24 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/errors.rb +8 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/expressions.rb +29 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/factory_methods.rb +44 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/insert_manager.rb +48 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/math.rb +44 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/nodes.rb +65 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/nodes/and.rb +31 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/nodes/ascending.rb +24 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/nodes/binary.rb +51 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/nodes/bind_param.rb +27 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/nodes/case.rb +58 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/nodes/casted.rb +45 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/nodes/count.rb +13 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/nodes/delete_statement.rb +22 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/nodes/descending.rb +24 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/nodes/equality.rb +10 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/nodes/extract.rb +26 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/nodes/false.rb +15 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/nodes/full_outer_join.rb +7 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/nodes/function.rb +46 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/nodes/grouping.rb +8 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/nodes/in.rb +7 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/nodes/infix_operation.rb +80 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/nodes/inner_join.rb +7 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/nodes/insert_statement.rb +36 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/nodes/join_source.rb +19 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/nodes/matches.rb +17 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/nodes/named_function.rb +22 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/nodes/node.rb +61 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/nodes/outer_join.rb +7 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/nodes/over.rb +16 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/nodes/regexp.rb +15 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/nodes/right_outer_join.rb +7 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/nodes/select_core.rb +64 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/nodes/select_statement.rb +40 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/nodes/sql_literal.rb +15 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/nodes/string_join.rb +10 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/nodes/table_alias.rb +26 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/nodes/terminal.rb +15 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/nodes/true.rb +15 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/nodes/unary.rb +43 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/nodes/unary_operation.rb +26 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/nodes/unqualified_column.rb +21 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/nodes/update_statement.rb +39 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/nodes/values.rb +15 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/nodes/values_list.rb +23 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/nodes/window.rb +125 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/nodes/with.rb +11 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/order_predications.rb +14 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/predications.rb +240 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/select_manager.rb +269 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/table.rb +110 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/tree_manager.rb +39 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/update_manager.rb +58 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/visitors.rb +19 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/visitors/depth_first.rb +198 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/visitors/dot.rb +291 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/visitors/ibm_db.rb +15 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/visitors/informix.rb +55 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/visitors/mssql.rb +124 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/visitors/mysql.rb +86 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/visitors/oracle.rb +153 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/visitors/oracle12.rb +60 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/visitors/postgresql.rb +85 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/visitors/reduce.rb +27 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/visitors/sqlite.rb +27 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/visitors/to_sql.rb +850 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/visitors/visitor.rb +43 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/visitors/where_sql.rb +22 -0
- data/vendor/bundle/gems/arel-9.0.0/lib/arel/window_predications.rb +10 -0
- data/vendor/bundle/gems/builder-3.2.3/CHANGES +107 -0
- data/vendor/bundle/gems/builder-3.2.3/MIT-LICENSE +20 -0
- data/vendor/bundle/gems/builder-3.2.3/README.md +258 -0
- data/vendor/bundle/gems/builder-3.2.3/Rakefile +195 -0
- data/vendor/bundle/gems/builder-3.2.3/doc/jamis.rb +591 -0
- data/vendor/bundle/gems/builder-3.2.3/doc/releases/builder-1.2.4.rdoc +31 -0
- data/vendor/bundle/gems/builder-3.2.3/doc/releases/builder-2.0.0.rdoc +46 -0
- data/vendor/bundle/gems/builder-3.2.3/doc/releases/builder-2.1.1.rdoc +58 -0
- data/vendor/bundle/gems/builder-3.2.3/lib/blankslate.rb +137 -0
- data/vendor/bundle/gems/builder-3.2.3/lib/builder.rb +13 -0
- data/vendor/bundle/gems/builder-3.2.3/lib/builder/blankslate.rb +23 -0
- data/vendor/bundle/gems/builder-3.2.3/lib/builder/version.rb +8 -0
- data/vendor/bundle/gems/builder-3.2.3/lib/builder/xchar.rb +197 -0
- data/vendor/bundle/gems/builder-3.2.3/lib/builder/xmlbase.rb +199 -0
- data/vendor/bundle/gems/builder-3.2.3/lib/builder/xmlevents.rb +63 -0
- data/vendor/bundle/gems/builder-3.2.3/lib/builder/xmlmarkup.rb +339 -0
- data/vendor/bundle/gems/builder-3.2.3/rakelib/publish.rake +20 -0
- data/vendor/bundle/gems/builder-3.2.3/rakelib/tags.rake +62 -0
- data/vendor/bundle/gems/builder-3.2.3/rakelib/testing.rake +7 -0
- data/vendor/bundle/gems/builder-3.2.3/test/helper.rb +12 -0
- data/vendor/bundle/gems/builder-3.2.3/test/performance.rb +41 -0
- data/vendor/bundle/gems/builder-3.2.3/test/preload.rb +39 -0
- data/vendor/bundle/gems/builder-3.2.3/test/test_blankslate.rb +213 -0
- data/vendor/bundle/gems/builder-3.2.3/test/test_eventbuilder.rb +150 -0
- data/vendor/bundle/gems/builder-3.2.3/test/test_markupbuilder.rb +611 -0
- data/vendor/bundle/gems/builder-3.2.3/test/test_method_caching.rb +62 -0
- data/vendor/bundle/gems/builder-3.2.3/test/test_namecollision.rb +39 -0
- data/vendor/bundle/gems/builder-3.2.3/test/test_xchar.rb +78 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/CHANGELOG.md +465 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/Gemfile +39 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/LICENSE.md +23 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/README.md +349 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/Rakefile +346 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/ext/concurrent-ruby/ConcurrentRubyService.java +17 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/ext/concurrent-ruby/com/concurrent_ruby/ext/AtomicReferenceLibrary.java +175 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/ext/concurrent-ruby/com/concurrent_ruby/ext/JRubyMapBackendLibrary.java +248 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/ext/concurrent-ruby/com/concurrent_ruby/ext/JavaAtomicBooleanLibrary.java +93 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/ext/concurrent-ruby/com/concurrent_ruby/ext/JavaAtomicFixnumLibrary.java +113 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/ext/concurrent-ruby/com/concurrent_ruby/ext/JavaSemaphoreLibrary.java +159 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/ext/concurrent-ruby/com/concurrent_ruby/ext/SynchronizationLibrary.java +306 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/ext/concurrent-ruby/com/concurrent_ruby/ext/jsr166e/ConcurrentHashMap.java +31 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/ext/concurrent-ruby/com/concurrent_ruby/ext/jsr166e/ConcurrentHashMapV8.java +3863 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/ext/concurrent-ruby/com/concurrent_ruby/ext/jsr166e/LongAdder.java +203 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/ext/concurrent-ruby/com/concurrent_ruby/ext/jsr166e/Striped64.java +342 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/ext/concurrent-ruby/com/concurrent_ruby/ext/jsr166e/nounsafe/ConcurrentHashMapV8.java +3800 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/ext/concurrent-ruby/com/concurrent_ruby/ext/jsr166e/nounsafe/LongAdder.java +204 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/ext/concurrent-ruby/com/concurrent_ruby/ext/jsr166e/nounsafe/Striped64.java +291 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/ext/concurrent-ruby/com/concurrent_ruby/ext/jsr166y/ThreadLocalRandom.java +199 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent-ruby.rb +1 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent.rb +134 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/agent.rb +587 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/array.rb +66 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/async.rb +445 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/atom.rb +222 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/atomic/abstract_thread_local_var.rb +66 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/atomic/atomic_boolean.rb +126 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/atomic/atomic_fixnum.rb +143 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/atomic/atomic_markable_reference.rb +164 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/atomic/atomic_reference.rb +204 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/atomic/count_down_latch.rb +100 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/atomic/cyclic_barrier.rb +128 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/atomic/event.rb +109 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/atomic/java_count_down_latch.rb +42 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/atomic/java_thread_local_var.rb +37 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/atomic/mutex_atomic_boolean.rb +62 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/atomic/mutex_atomic_fixnum.rb +75 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/atomic/mutex_count_down_latch.rb +44 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/atomic/mutex_semaphore.rb +115 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/atomic/read_write_lock.rb +254 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/atomic/reentrant_read_write_lock.rb +379 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/atomic/ruby_thread_local_var.rb +161 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/atomic/semaphore.rb +145 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/atomic/thread_local_var.rb +104 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/atomic_reference/mutex_atomic.rb +56 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/atomic_reference/numeric_cas_wrapper.rb +28 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/atomics.rb +10 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/collection/copy_on_notify_observer_set.rb +107 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/collection/copy_on_write_observer_set.rb +111 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/collection/java_non_concurrent_priority_queue.rb +84 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/collection/lock_free_stack.rb +158 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/collection/map/atomic_reference_map_backend.rb +927 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/collection/map/mri_map_backend.rb +66 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/collection/map/non_concurrent_map_backend.rb +140 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/collection/map/synchronized_map_backend.rb +82 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/collection/non_concurrent_priority_queue.rb +143 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/collection/ruby_non_concurrent_priority_queue.rb +150 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/concern/deprecation.rb +34 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/concern/dereferenceable.rb +73 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/concern/logging.rb +32 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/concern/obligation.rb +220 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/concern/observable.rb +110 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/concurrent_ruby.jar +0 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/configuration.rb +184 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/constants.rb +8 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/dataflow.rb +81 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/delay.rb +199 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/errors.rb +69 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/exchanger.rb +352 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/executor/abstract_executor_service.rb +134 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/executor/cached_thread_pool.rb +62 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/executor/executor_service.rb +185 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/executor/fixed_thread_pool.rb +206 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/executor/immediate_executor.rb +66 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/executor/indirect_immediate_executor.rb +44 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/executor/java_executor_service.rb +91 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/executor/java_single_thread_executor.rb +29 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/executor/java_thread_pool_executor.rb +123 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/executor/ruby_executor_service.rb +78 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/executor/ruby_single_thread_executor.rb +22 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/executor/ruby_thread_pool_executor.rb +362 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/executor/safe_task_executor.rb +35 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/executor/serial_executor_service.rb +34 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/executor/serialized_execution.rb +107 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/executor/serialized_execution_delegator.rb +28 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/executor/simple_executor_service.rb +100 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/executor/single_thread_executor.rb +56 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/executor/thread_pool_executor.rb +87 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/executor/timer_set.rb +175 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/executors.rb +20 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/future.rb +141 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/hash.rb +59 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/immutable_struct.rb +93 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/ivar.rb +207 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/map.rb +337 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/maybe.rb +229 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/mutable_struct.rb +229 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/mvar.rb +242 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/options.rb +42 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/promise.rb +579 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/promises.rb +1936 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/re_include.rb +58 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/scheduled_task.rb +318 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/set.rb +66 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/settable_struct.rb +129 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/synchronization.rb +30 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/synchronization/abstract_lockable_object.rb +98 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/synchronization/abstract_object.rb +24 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/synchronization/abstract_struct.rb +159 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/synchronization/condition.rb +58 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/synchronization/jruby_lockable_object.rb +13 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/synchronization/jruby_object.rb +44 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/synchronization/lock.rb +34 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/synchronization/lockable_object.rb +74 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/synchronization/mri_object.rb +43 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/synchronization/mutex_lockable_object.rb +76 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/synchronization/object.rb +157 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/synchronization/rbx_lockable_object.rb +65 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/synchronization/rbx_object.rb +48 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/synchronization/truffleruby_object.rb +46 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/synchronization/volatile.rb +36 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/thread_safe/synchronized_delegator.rb +50 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/thread_safe/util.rb +16 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/thread_safe/util/adder.rb +74 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/thread_safe/util/cheap_lockable.rb +118 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/thread_safe/util/data_structures.rb +63 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/thread_safe/util/power_of_two_tuple.rb +38 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/thread_safe/util/striped64.rb +246 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/thread_safe/util/volatile.rb +75 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/thread_safe/util/xor_shift_random.rb +50 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/timer_task.rb +334 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/tuple.rb +86 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/tvar.rb +258 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/utility/at_exit.rb +97 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/utility/engine.rb +56 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/utility/monotonic_time.rb +58 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/utility/native_extension_loader.rb +79 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/utility/native_integer.rb +53 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/utility/processor_counter.rb +158 -0
- data/vendor/bundle/gems/concurrent-ruby-1.1.4/lib/concurrent/version.rb +4 -0
- data/vendor/bundle/gems/i18n-1.3.0/MIT-LICENSE +20 -0
- data/vendor/bundle/gems/i18n-1.3.0/README.md +125 -0
- data/vendor/bundle/gems/i18n-1.3.0/lib/i18n.rb +383 -0
- data/vendor/bundle/gems/i18n-1.3.0/lib/i18n/backend.rb +21 -0
- data/vendor/bundle/gems/i18n-1.3.0/lib/i18n/backend/base.rb +269 -0
- data/vendor/bundle/gems/i18n-1.3.0/lib/i18n/backend/cache.rb +116 -0
- data/vendor/bundle/gems/i18n-1.3.0/lib/i18n/backend/cache_file.rb +36 -0
- data/vendor/bundle/gems/i18n-1.3.0/lib/i18n/backend/cascade.rb +56 -0
- data/vendor/bundle/gems/i18n-1.3.0/lib/i18n/backend/chain.rb +123 -0
- data/vendor/bundle/gems/i18n-1.3.0/lib/i18n/backend/fallbacks.rb +84 -0
- data/vendor/bundle/gems/i18n-1.3.0/lib/i18n/backend/flatten.rb +115 -0
- data/vendor/bundle/gems/i18n-1.3.0/lib/i18n/backend/gettext.rb +85 -0
- data/vendor/bundle/gems/i18n-1.3.0/lib/i18n/backend/interpolation_compiler.rb +123 -0
- data/vendor/bundle/gems/i18n-1.3.0/lib/i18n/backend/key_value.rb +206 -0
- data/vendor/bundle/gems/i18n-1.3.0/lib/i18n/backend/memoize.rb +48 -0
- data/vendor/bundle/gems/i18n-1.3.0/lib/i18n/backend/metadata.rb +71 -0
- data/vendor/bundle/gems/i18n-1.3.0/lib/i18n/backend/pluralization.rb +55 -0
- data/vendor/bundle/gems/i18n-1.3.0/lib/i18n/backend/simple.rb +106 -0
- data/vendor/bundle/gems/i18n-1.3.0/lib/i18n/backend/transliterator.rb +108 -0
- data/vendor/bundle/gems/i18n-1.3.0/lib/i18n/config.rb +165 -0
- data/vendor/bundle/gems/i18n-1.3.0/lib/i18n/core_ext/hash.rb +37 -0
- data/vendor/bundle/gems/i18n-1.3.0/lib/i18n/core_ext/string/interpolate.rb +9 -0
- data/vendor/bundle/gems/i18n-1.3.0/lib/i18n/exceptions.rb +97 -0
- data/vendor/bundle/gems/i18n-1.3.0/lib/i18n/gettext.rb +28 -0
- data/vendor/bundle/gems/i18n-1.3.0/lib/i18n/gettext/helpers.rb +75 -0
- data/vendor/bundle/gems/i18n-1.3.0/lib/i18n/gettext/po_parser.rb +329 -0
- data/vendor/bundle/gems/i18n-1.3.0/lib/i18n/interpolate/ruby.rb +39 -0
- data/vendor/bundle/gems/i18n-1.3.0/lib/i18n/locale.rb +8 -0
- data/vendor/bundle/gems/i18n-1.3.0/lib/i18n/locale/fallbacks.rb +96 -0
- data/vendor/bundle/gems/i18n-1.3.0/lib/i18n/locale/tag.rb +28 -0
- data/vendor/bundle/gems/i18n-1.3.0/lib/i18n/locale/tag/parents.rb +22 -0
- data/vendor/bundle/gems/i18n-1.3.0/lib/i18n/locale/tag/rfc4646.rb +74 -0
- data/vendor/bundle/gems/i18n-1.3.0/lib/i18n/locale/tag/simple.rb +39 -0
- data/vendor/bundle/gems/i18n-1.3.0/lib/i18n/middleware.rb +17 -0
- data/vendor/bundle/gems/i18n-1.3.0/lib/i18n/tests.rb +14 -0
- data/vendor/bundle/gems/i18n-1.3.0/lib/i18n/tests/basics.rb +60 -0
- data/vendor/bundle/gems/i18n-1.3.0/lib/i18n/tests/defaults.rb +52 -0
- data/vendor/bundle/gems/i18n-1.3.0/lib/i18n/tests/interpolation.rb +159 -0
- data/vendor/bundle/gems/i18n-1.3.0/lib/i18n/tests/link.rb +56 -0
- data/vendor/bundle/gems/i18n-1.3.0/lib/i18n/tests/localization.rb +19 -0
- data/vendor/bundle/gems/i18n-1.3.0/lib/i18n/tests/localization/date.rb +95 -0
- data/vendor/bundle/gems/i18n-1.3.0/lib/i18n/tests/localization/date_time.rb +82 -0
- data/vendor/bundle/gems/i18n-1.3.0/lib/i18n/tests/localization/procs.rb +116 -0
- data/vendor/bundle/gems/i18n-1.3.0/lib/i18n/tests/localization/time.rb +81 -0
- data/vendor/bundle/gems/i18n-1.3.0/lib/i18n/tests/lookup.rb +81 -0
- data/vendor/bundle/gems/i18n-1.3.0/lib/i18n/tests/pluralization.rb +35 -0
- data/vendor/bundle/gems/i18n-1.3.0/lib/i18n/tests/procs.rb +55 -0
- data/vendor/bundle/gems/i18n-1.3.0/lib/i18n/version.rb +5 -0
- data/vendor/bundle/gems/minitest-5.11.3/.autotest +34 -0
- data/vendor/bundle/gems/minitest-5.11.3/History.rdoc +1310 -0
- data/vendor/bundle/gems/minitest-5.11.3/Manifest.txt +26 -0
- data/vendor/bundle/gems/minitest-5.11.3/README.rdoc +746 -0
- data/vendor/bundle/gems/minitest-5.11.3/Rakefile +86 -0
- data/vendor/bundle/gems/minitest-5.11.3/design_rationale.rb +52 -0
- data/vendor/bundle/gems/minitest-5.11.3/lib/hoe/minitest.rb +32 -0
- data/vendor/bundle/gems/minitest-5.11.3/lib/minitest.rb +987 -0
- data/vendor/bundle/gems/minitest-5.11.3/lib/minitest/assertions.rb +693 -0
- data/vendor/bundle/gems/minitest-5.11.3/lib/minitest/autorun.rb +13 -0
- data/vendor/bundle/gems/minitest-5.11.3/lib/minitest/benchmark.rb +455 -0
- data/vendor/bundle/gems/minitest-5.11.3/lib/minitest/expectations.rb +284 -0
- data/vendor/bundle/gems/minitest-5.11.3/lib/minitest/hell.rb +11 -0
- data/vendor/bundle/gems/minitest-5.11.3/lib/minitest/mock.rb +240 -0
- data/vendor/bundle/gems/minitest-5.11.3/lib/minitest/parallel.rb +70 -0
- data/vendor/bundle/gems/minitest-5.11.3/lib/minitest/pride.rb +4 -0
- data/vendor/bundle/gems/minitest-5.11.3/lib/minitest/pride_plugin.rb +142 -0
- data/vendor/bundle/gems/minitest-5.11.3/lib/minitest/spec.rb +331 -0
- data/vendor/bundle/gems/minitest-5.11.3/lib/minitest/test.rb +220 -0
- data/vendor/bundle/gems/minitest-5.11.3/lib/minitest/unit.rb +45 -0
- data/vendor/bundle/gems/minitest-5.11.3/test/minitest/metametameta.rb +102 -0
- data/vendor/bundle/gems/minitest-5.11.3/test/minitest/test_minitest_benchmark.rb +137 -0
- data/vendor/bundle/gems/minitest-5.11.3/test/minitest/test_minitest_mock.rb +874 -0
- data/vendor/bundle/gems/minitest-5.11.3/test/minitest/test_minitest_reporter.rb +299 -0
- data/vendor/bundle/gems/minitest-5.11.3/test/minitest/test_minitest_spec.rb +987 -0
- data/vendor/bundle/gems/minitest-5.11.3/test/minitest/test_minitest_test.rb +2142 -0
- data/vendor/bundle/gems/minitest-reporters-1.3.5/.gitignore +27 -0
- data/vendor/bundle/gems/minitest-reporters-1.3.5/.rubocop.yml +77 -0
- data/vendor/bundle/gems/minitest-reporters-1.3.5/.ruby-gemset +1 -0
- data/vendor/bundle/gems/minitest-reporters-1.3.5/.travis.yml +13 -0
- data/vendor/bundle/gems/minitest-reporters-1.3.5/.yardopts +6 -0
- data/vendor/bundle/gems/minitest-reporters-1.3.5/CHANGELOG.md +88 -0
- data/vendor/bundle/gems/minitest-reporters-1.3.5/Gemfile +2 -0
- data/vendor/bundle/gems/minitest-reporters-1.3.5/LICENSE +20 -0
- data/vendor/bundle/gems/minitest-reporters-1.3.5/README.md +135 -0
- data/vendor/bundle/gems/minitest-reporters-1.3.5/Rakefile +70 -0
- data/vendor/bundle/gems/minitest-reporters-1.3.5/appveyor.yml +22 -0
- data/vendor/bundle/gems/minitest-reporters-1.3.5/assets/default-reporter.png +0 -0
- data/vendor/bundle/gems/minitest-reporters-1.3.5/assets/mean_time_reporter.png +0 -0
- data/vendor/bundle/gems/minitest-reporters-1.3.5/assets/progress-reporter.png +0 -0
- data/vendor/bundle/gems/minitest-reporters-1.3.5/assets/spec-reporter.png +0 -0
- data/vendor/bundle/gems/minitest-reporters-1.3.5/lib/minitest/extensible_backtrace_filter.rb +67 -0
- data/vendor/bundle/gems/minitest-reporters-1.3.5/lib/minitest/minitest_reporter_plugin.rb +76 -0
- data/vendor/bundle/gems/minitest-reporters-1.3.5/lib/minitest/old_activesupport_fix.rb +24 -0
- data/vendor/bundle/gems/minitest-reporters-1.3.5/lib/minitest/relative_position.rb +26 -0
- data/vendor/bundle/gems/minitest-reporters-1.3.5/lib/minitest/reporters.rb +91 -0
- data/vendor/bundle/gems/minitest-reporters-1.3.5/lib/minitest/reporters/ansi.rb +30 -0
- data/vendor/bundle/gems/minitest-reporters-1.3.5/lib/minitest/reporters/base_reporter.rb +134 -0
- data/vendor/bundle/gems/minitest-reporters-1.3.5/lib/minitest/reporters/default_reporter.rb +228 -0
- data/vendor/bundle/gems/minitest-reporters-1.3.5/lib/minitest/reporters/html_reporter.rb +224 -0
- data/vendor/bundle/gems/minitest-reporters-1.3.5/lib/minitest/reporters/junit_reporter.rb +164 -0
- data/vendor/bundle/gems/minitest-reporters-1.3.5/lib/minitest/reporters/mean_time_reporter.rb +388 -0
- data/vendor/bundle/gems/minitest-reporters-1.3.5/lib/minitest/reporters/progress_reporter.rb +96 -0
- data/vendor/bundle/gems/minitest-reporters-1.3.5/lib/minitest/reporters/ruby_mate_reporter.rb +54 -0
- data/vendor/bundle/gems/minitest-reporters-1.3.5/lib/minitest/reporters/rubymine_reporter.rb +116 -0
- data/vendor/bundle/gems/minitest-reporters-1.3.5/lib/minitest/reporters/spec_reporter.rb +61 -0
- data/vendor/bundle/gems/minitest-reporters-1.3.5/lib/minitest/reporters/version.rb +5 -0
- data/vendor/bundle/gems/minitest-reporters-1.3.5/lib/minitest/templates/index.html.erb +83 -0
- data/vendor/bundle/gems/minitest-reporters-1.3.5/minitest-reporters.gemspec +32 -0
- data/vendor/bundle/gems/minitest-reporters-1.3.5/test/fixtures/junit_filename_bug_example_test.rb +41 -0
- data/vendor/bundle/gems/minitest-reporters-1.3.5/test/fixtures/mean_time_test.rb +36 -0
- data/vendor/bundle/gems/minitest-reporters-1.3.5/test/fixtures/progress_detailed_skip_test.rb +8 -0
- data/vendor/bundle/gems/minitest-reporters-1.3.5/test/fixtures/progress_test.rb +8 -0
- data/vendor/bundle/gems/minitest-reporters-1.3.5/test/fixtures/sample_test.rb +15 -0
- data/vendor/bundle/gems/minitest-reporters-1.3.5/test/fixtures/spec_test.rb +18 -0
- data/vendor/bundle/gems/minitest-reporters-1.3.5/test/gallery/bad_test.rb +25 -0
- data/vendor/bundle/gems/minitest-reporters-1.3.5/test/gallery/good_test.rb +14 -0
- data/vendor/bundle/gems/minitest-reporters-1.3.5/test/integration/reporters/junit_reporter_test.rb +12 -0
- data/vendor/bundle/gems/minitest-reporters-1.3.5/test/integration/reporters/mean_time_reporter_test.rb +7 -0
- data/vendor/bundle/gems/minitest-reporters-1.3.5/test/integration/reporters/progress_reporter_test.rb +40 -0
- data/vendor/bundle/gems/minitest-reporters-1.3.5/test/test_helper.rb +22 -0
- data/vendor/bundle/gems/minitest-reporters-1.3.5/test/unit/minitest/extensible_backtrace_filter_test.rb +42 -0
- data/vendor/bundle/gems/minitest-reporters-1.3.5/test/unit/minitest/junit_reporter_test.rb +23 -0
- data/vendor/bundle/gems/minitest-reporters-1.3.5/test/unit/minitest/mean_time_reporter_unit_test.rb +149 -0
- data/vendor/bundle/gems/minitest-reporters-1.3.5/test/unit/minitest/minitest_reporter_plugin_test.rb +14 -0
- data/vendor/bundle/gems/minitest-reporters-1.3.5/test/unit/minitest/reporters_test.rb +65 -0
- data/vendor/bundle/gems/minitest-reporters-1.3.5/test/unit/minitest/spec_reporter_test.rb +62 -0
- data/vendor/bundle/gems/rake-10.5.0/.autotest +7 -0
- data/vendor/bundle/gems/rake-10.5.0/.rubocop.yml +27 -0
- data/vendor/bundle/gems/rake-10.5.0/.togglerc +7 -0
- data/vendor/bundle/gems/rake-10.5.0/CONTRIBUTING.rdoc +38 -0
- data/vendor/bundle/gems/rake-10.5.0/History.rdoc +659 -0
- data/vendor/bundle/gems/rake-10.5.0/MIT-LICENSE +21 -0
- data/vendor/bundle/gems/rake-10.5.0/Manifest.txt +166 -0
- data/vendor/bundle/gems/rake-10.5.0/README.rdoc +139 -0
- data/vendor/bundle/gems/rake-10.5.0/Rakefile +81 -0
- data/vendor/bundle/gems/rake-10.5.0/bin/rake +33 -0
- data/vendor/bundle/gems/rake-10.5.0/doc/command_line_usage.rdoc +158 -0
- data/vendor/bundle/gems/rake-10.5.0/doc/example/Rakefile1 +38 -0
- data/vendor/bundle/gems/rake-10.5.0/doc/example/Rakefile2 +35 -0
- data/vendor/bundle/gems/rake-10.5.0/doc/example/a.c +6 -0
- data/vendor/bundle/gems/rake-10.5.0/doc/example/b.c +6 -0
- data/vendor/bundle/gems/rake-10.5.0/doc/example/main.c +11 -0
- data/vendor/bundle/gems/rake-10.5.0/doc/glossary.rdoc +42 -0
- data/vendor/bundle/gems/rake-10.5.0/doc/jamis.rb +591 -0
- data/vendor/bundle/gems/rake-10.5.0/doc/proto_rake.rdoc +127 -0
- data/vendor/bundle/gems/rake-10.5.0/doc/rake.1 +141 -0
- data/vendor/bundle/gems/rake-10.5.0/doc/rakefile.rdoc +624 -0
- data/vendor/bundle/gems/rake-10.5.0/doc/rational.rdoc +151 -0
- data/vendor/bundle/gems/rake-10.5.0/doc/release_notes/rake-0.4.14.rdoc +23 -0
- data/vendor/bundle/gems/rake-10.5.0/doc/release_notes/rake-0.4.15.rdoc +35 -0
- data/vendor/bundle/gems/rake-10.5.0/doc/release_notes/rake-0.5.0.rdoc +53 -0
- data/vendor/bundle/gems/rake-10.5.0/doc/release_notes/rake-0.5.3.rdoc +78 -0
- data/vendor/bundle/gems/rake-10.5.0/doc/release_notes/rake-0.5.4.rdoc +46 -0
- data/vendor/bundle/gems/rake-10.5.0/doc/release_notes/rake-0.6.0.rdoc +141 -0
- data/vendor/bundle/gems/rake-10.5.0/doc/release_notes/rake-0.7.0.rdoc +119 -0
- data/vendor/bundle/gems/rake-10.5.0/doc/release_notes/rake-0.7.1.rdoc +59 -0
- data/vendor/bundle/gems/rake-10.5.0/doc/release_notes/rake-0.7.2.rdoc +121 -0
- data/vendor/bundle/gems/rake-10.5.0/doc/release_notes/rake-0.7.3.rdoc +47 -0
- data/vendor/bundle/gems/rake-10.5.0/doc/release_notes/rake-0.8.0.rdoc +114 -0
- data/vendor/bundle/gems/rake-10.5.0/doc/release_notes/rake-0.8.2.rdoc +165 -0
- data/vendor/bundle/gems/rake-10.5.0/doc/release_notes/rake-0.8.3.rdoc +112 -0
- data/vendor/bundle/gems/rake-10.5.0/doc/release_notes/rake-0.8.4.rdoc +147 -0
- data/vendor/bundle/gems/rake-10.5.0/doc/release_notes/rake-0.8.5.rdoc +53 -0
- data/vendor/bundle/gems/rake-10.5.0/doc/release_notes/rake-0.8.6.rdoc +37 -0
- data/vendor/bundle/gems/rake-10.5.0/doc/release_notes/rake-0.8.7.rdoc +55 -0
- data/vendor/bundle/gems/rake-10.5.0/doc/release_notes/rake-0.9.0.rdoc +112 -0
- data/vendor/bundle/gems/rake-10.5.0/doc/release_notes/rake-0.9.1.rdoc +52 -0
- data/vendor/bundle/gems/rake-10.5.0/doc/release_notes/rake-0.9.2.2.rdoc +55 -0
- data/vendor/bundle/gems/rake-10.5.0/doc/release_notes/rake-0.9.2.rdoc +49 -0
- data/vendor/bundle/gems/rake-10.5.0/doc/release_notes/rake-0.9.3.rdoc +102 -0
- data/vendor/bundle/gems/rake-10.5.0/doc/release_notes/rake-0.9.4.rdoc +60 -0
- data/vendor/bundle/gems/rake-10.5.0/doc/release_notes/rake-0.9.5.rdoc +55 -0
- data/vendor/bundle/gems/rake-10.5.0/doc/release_notes/rake-0.9.6.rdoc +64 -0
- data/vendor/bundle/gems/rake-10.5.0/doc/release_notes/rake-10.0.0.rdoc +178 -0
- data/vendor/bundle/gems/rake-10.5.0/doc/release_notes/rake-10.0.1.rdoc +58 -0
- data/vendor/bundle/gems/rake-10.5.0/doc/release_notes/rake-10.0.2.rdoc +53 -0
- data/vendor/bundle/gems/rake-10.5.0/doc/release_notes/rake-10.0.3.rdoc +191 -0
- data/vendor/bundle/gems/rake-10.5.0/doc/release_notes/rake-10.1.0.rdoc +61 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake.rb +79 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/alt_system.rb +110 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/application.rb +790 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/backtrace.rb +23 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/clean.rb +76 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/cloneable.rb +16 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/contrib/.document +1 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/contrib/compositepublisher.rb +21 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/contrib/ftptools.rb +137 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/contrib/publisher.rb +81 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/contrib/rubyforgepublisher.rb +18 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/contrib/sshpublisher.rb +61 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/contrib/sys.rb +4 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/cpu_counter.rb +125 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/default_loader.rb +14 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/dsl_definition.rb +201 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/early_time.rb +21 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/ext/core.rb +25 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/ext/module.rb +2 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/ext/pathname.rb +25 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/ext/string.rb +175 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/ext/time.rb +18 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/file_creation_task.rb +24 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/file_list.rb +428 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/file_task.rb +46 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/file_utils.rb +128 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/file_utils_ext.rb +144 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/gempackagetask.rb +4 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/invocation_chain.rb +56 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/invocation_exception_mixin.rb +16 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/late_time.rb +17 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/linked_list.rb +103 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/loaders/makefile.rb +53 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/multi_task.rb +13 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/name_space.rb +38 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/packagetask.rb +199 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/pathmap.rb +3 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/phony.rb +15 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/private_reader.rb +20 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/promise.rb +99 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/pseudo_status.rb +29 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/rake_module.rb +38 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/rake_test_loader.rb +22 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/rdoctask.rb +4 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/ruby182_test_unit_fix.rb +29 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/rule_recursion_overflow_error.rb +20 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/runtest.rb +27 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/scope.rb +42 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/task.rb +383 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/task_argument_error.rb +7 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/task_arguments.rb +98 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/task_manager.rb +307 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/tasklib.rb +24 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/testtask.rb +213 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/thread_history_display.rb +48 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/thread_pool.rb +164 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/trace_output.rb +22 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/version.rb +7 -0
- data/vendor/bundle/gems/rake-10.5.0/lib/rake/win32.rb +56 -0
- data/vendor/bundle/gems/rake-10.5.0/rakelib/publish.rake +20 -0
- data/vendor/bundle/gems/rake-10.5.0/rakelib/test_times.rake +25 -0
- data/vendor/bundle/gems/rake-10.5.0/test/file_creation.rb +34 -0
- data/vendor/bundle/gems/rake-10.5.0/test/helper.rb +129 -0
- data/vendor/bundle/gems/rake-10.5.0/test/support/rakefile_definitions.rb +478 -0
- data/vendor/bundle/gems/rake-10.5.0/test/support/ruby_runner.rb +34 -0
- data/vendor/bundle/gems/rake-10.5.0/test/test_private_reader.rb +42 -0
- data/vendor/bundle/gems/rake-10.5.0/test/test_rake.rb +40 -0
- data/vendor/bundle/gems/rake-10.5.0/test/test_rake_application.rb +643 -0
- data/vendor/bundle/gems/rake-10.5.0/test/test_rake_application_options.rb +468 -0
- data/vendor/bundle/gems/rake-10.5.0/test/test_rake_backtrace.rb +119 -0
- data/vendor/bundle/gems/rake-10.5.0/test/test_rake_clean.rb +61 -0
- data/vendor/bundle/gems/rake-10.5.0/test/test_rake_cpu_counter.rb +68 -0
- data/vendor/bundle/gems/rake-10.5.0/test/test_rake_definitions.rb +84 -0
- data/vendor/bundle/gems/rake-10.5.0/test/test_rake_directory_task.rb +76 -0
- data/vendor/bundle/gems/rake-10.5.0/test/test_rake_dsl.rb +40 -0
- data/vendor/bundle/gems/rake-10.5.0/test/test_rake_early_time.rb +31 -0
- data/vendor/bundle/gems/rake-10.5.0/test/test_rake_extension.rb +59 -0
- data/vendor/bundle/gems/rake-10.5.0/test/test_rake_file_creation_task.rb +56 -0
- data/vendor/bundle/gems/rake-10.5.0/test/test_rake_file_list.rb +670 -0
- data/vendor/bundle/gems/rake-10.5.0/test/test_rake_file_list_path_map.rb +8 -0
- data/vendor/bundle/gems/rake-10.5.0/test/test_rake_file_task.rb +197 -0
- data/vendor/bundle/gems/rake-10.5.0/test/test_rake_file_utils.rb +314 -0
- data/vendor/bundle/gems/rake-10.5.0/test/test_rake_ftp_file.rb +74 -0
- data/vendor/bundle/gems/rake-10.5.0/test/test_rake_functional.rb +482 -0
- data/vendor/bundle/gems/rake-10.5.0/test/test_rake_invocation_chain.rb +64 -0
- data/vendor/bundle/gems/rake-10.5.0/test/test_rake_late_time.rb +18 -0
- data/vendor/bundle/gems/rake-10.5.0/test/test_rake_linked_list.rb +84 -0
- data/vendor/bundle/gems/rake-10.5.0/test/test_rake_makefile_loader.rb +46 -0
- data/vendor/bundle/gems/rake-10.5.0/test/test_rake_multi_task.rb +64 -0
- data/vendor/bundle/gems/rake-10.5.0/test/test_rake_name_space.rb +57 -0
- data/vendor/bundle/gems/rake-10.5.0/test/test_rake_package_task.rb +79 -0
- data/vendor/bundle/gems/rake-10.5.0/test/test_rake_path_map.rb +168 -0
- data/vendor/bundle/gems/rake-10.5.0/test/test_rake_path_map_explode.rb +34 -0
- data/vendor/bundle/gems/rake-10.5.0/test/test_rake_path_map_partial.rb +18 -0
- data/vendor/bundle/gems/rake-10.5.0/test/test_rake_pathname_extensions.rb +15 -0
- data/vendor/bundle/gems/rake-10.5.0/test/test_rake_pseudo_status.rb +21 -0
- data/vendor/bundle/gems/rake-10.5.0/test/test_rake_rake_test_loader.rb +20 -0
- data/vendor/bundle/gems/rake-10.5.0/test/test_rake_reduce_compat.rb +26 -0
- data/vendor/bundle/gems/rake-10.5.0/test/test_rake_require.rb +40 -0
- data/vendor/bundle/gems/rake-10.5.0/test/test_rake_rules.rb +388 -0
- data/vendor/bundle/gems/rake-10.5.0/test/test_rake_scope.rb +44 -0
- data/vendor/bundle/gems/rake-10.5.0/test/test_rake_task.rb +393 -0
- data/vendor/bundle/gems/rake-10.5.0/test/test_rake_task_argument_parsing.rb +119 -0
- data/vendor/bundle/gems/rake-10.5.0/test/test_rake_task_arguments.rb +127 -0
- data/vendor/bundle/gems/rake-10.5.0/test/test_rake_task_lib.rb +9 -0
- data/vendor/bundle/gems/rake-10.5.0/test/test_rake_task_manager.rb +178 -0
- data/vendor/bundle/gems/rake-10.5.0/test/test_rake_task_manager_argument_resolution.rb +19 -0
- data/vendor/bundle/gems/rake-10.5.0/test/test_rake_task_with_arguments.rb +172 -0
- data/vendor/bundle/gems/rake-10.5.0/test/test_rake_test_task.rb +146 -0
- data/vendor/bundle/gems/rake-10.5.0/test/test_rake_thread_pool.rb +145 -0
- data/vendor/bundle/gems/rake-10.5.0/test/test_rake_top_level_functions.rb +71 -0
- data/vendor/bundle/gems/rake-10.5.0/test/test_rake_win32.rb +72 -0
- data/vendor/bundle/gems/rake-10.5.0/test/test_thread_history_display.rb +101 -0
- data/vendor/bundle/gems/rake-10.5.0/test/test_trace_output.rb +52 -0
- data/vendor/bundle/gems/ruby-progressbar-1.10.0/LICENSE.txt +19 -0
- data/vendor/bundle/gems/ruby-progressbar-1.10.0/README.md +38 -0
- data/vendor/bundle/gems/ruby-progressbar-1.10.0/Rakefile +2 -0
- data/vendor/bundle/gems/ruby-progressbar-1.10.0/lib/ruby-progressbar.rb +18 -0
- data/vendor/bundle/gems/ruby-progressbar-1.10.0/lib/ruby-progressbar/base.rb +183 -0
- data/vendor/bundle/gems/ruby-progressbar-1.10.0/lib/ruby-progressbar/calculators/length.rb +100 -0
- data/vendor/bundle/gems/ruby-progressbar-1.10.0/lib/ruby-progressbar/calculators/running_average.rb +9 -0
- data/vendor/bundle/gems/ruby-progressbar-1.10.0/lib/ruby-progressbar/components.rb +5 -0
- data/vendor/bundle/gems/ruby-progressbar-1.10.0/lib/ruby-progressbar/components/bar.rb +102 -0
- data/vendor/bundle/gems/ruby-progressbar-1.10.0/lib/ruby-progressbar/components/percentage.rb +29 -0
- data/vendor/bundle/gems/ruby-progressbar-1.10.0/lib/ruby-progressbar/components/rate.rb +43 -0
- data/vendor/bundle/gems/ruby-progressbar-1.10.0/lib/ruby-progressbar/components/time.rb +107 -0
- data/vendor/bundle/gems/ruby-progressbar-1.10.0/lib/ruby-progressbar/components/title.rb +13 -0
- data/vendor/bundle/gems/ruby-progressbar-1.10.0/lib/ruby-progressbar/errors/invalid_progress_error.rb +4 -0
- data/vendor/bundle/gems/ruby-progressbar-1.10.0/lib/ruby-progressbar/format.rb +3 -0
- data/vendor/bundle/gems/ruby-progressbar-1.10.0/lib/ruby-progressbar/format/formatter.rb +27 -0
- data/vendor/bundle/gems/ruby-progressbar-1.10.0/lib/ruby-progressbar/format/molecule.rb +60 -0
- data/vendor/bundle/gems/ruby-progressbar-1.10.0/lib/ruby-progressbar/format/string.rb +36 -0
- data/vendor/bundle/gems/ruby-progressbar-1.10.0/lib/ruby-progressbar/output.rb +68 -0
- data/vendor/bundle/gems/ruby-progressbar-1.10.0/lib/ruby-progressbar/outputs/non_tty.rb +47 -0
- data/vendor/bundle/gems/ruby-progressbar-1.10.0/lib/ruby-progressbar/outputs/null.rb +33 -0
- data/vendor/bundle/gems/ruby-progressbar-1.10.0/lib/ruby-progressbar/outputs/tty.rb +32 -0
- data/vendor/bundle/gems/ruby-progressbar-1.10.0/lib/ruby-progressbar/progress.rb +118 -0
- data/vendor/bundle/gems/ruby-progressbar-1.10.0/lib/ruby-progressbar/refinements.rb +1 -0
- data/vendor/bundle/gems/ruby-progressbar-1.10.0/lib/ruby-progressbar/refinements/enumerator.rb +23 -0
- data/vendor/bundle/gems/ruby-progressbar-1.10.0/lib/ruby-progressbar/throttle.rb +25 -0
- data/vendor/bundle/gems/ruby-progressbar-1.10.0/lib/ruby-progressbar/time.rb +32 -0
- data/vendor/bundle/gems/ruby-progressbar-1.10.0/lib/ruby-progressbar/timer.rb +72 -0
- data/vendor/bundle/gems/ruby-progressbar-1.10.0/lib/ruby-progressbar/version.rb +3 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/API_CHANGES.rdoc +50 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/CHANGELOG.rdoc +292 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/ChangeLog.cvs +88 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/Gemfile +15 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/LICENSE +27 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/Manifest.txt +52 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/README.rdoc +118 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/Rakefile +10 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/ext/sqlite3/.RUBYARCHDIR.-.sqlite3.time +0 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/ext/sqlite3/Makefile +261 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/ext/sqlite3/backup.c +168 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/ext/sqlite3/backup.h +15 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/ext/sqlite3/backup.o +0 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/ext/sqlite3/database.c +888 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/ext/sqlite3/database.h +15 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/ext/sqlite3/database.o +0 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/ext/sqlite3/exception.c +94 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/ext/sqlite3/exception.h +8 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/ext/sqlite3/exception.o +0 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/ext/sqlite3/extconf.rb +71 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/ext/sqlite3/sqlite3.c +152 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/ext/sqlite3/sqlite3.o +0 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/ext/sqlite3/sqlite3_native.bundle +0 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/ext/sqlite3/sqlite3_ruby.h +52 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/ext/sqlite3/statement.c +447 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/ext/sqlite3/statement.h +16 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/ext/sqlite3/statement.o +0 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/faq/faq.rb +145 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/faq/faq.yml +426 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/lib/sqlite3.rb +15 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/lib/sqlite3/constants.rb +49 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/lib/sqlite3/database.rb +591 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/lib/sqlite3/errors.rb +44 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/lib/sqlite3/pragmas.rb +588 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/lib/sqlite3/resultset.rb +195 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/lib/sqlite3/sqlite3_native.bundle +0 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/lib/sqlite3/statement.rb +144 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/lib/sqlite3/translator.rb +118 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/lib/sqlite3/value.rb +57 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/lib/sqlite3/version.rb +25 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/setup.rb +1333 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/tasks/faq.rake +9 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/tasks/gem.rake +38 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/tasks/native.rake +52 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/tasks/vendor_sqlite3.rake +97 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/test/helper.rb +18 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/test/test_backup.rb +33 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/test/test_collation.rb +82 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/test/test_database.rb +430 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/test/test_database_readonly.rb +36 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/test/test_deprecated.rb +44 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/test/test_encoding.rb +155 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/test/test_integration.rb +576 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/test/test_integration_open_close.rb +30 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/test/test_integration_pending.rb +115 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/test/test_integration_resultset.rb +159 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/test/test_integration_statement.rb +194 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/test/test_result_set.rb +37 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/test/test_sqlite3.rb +21 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/test/test_statement.rb +260 -0
- data/vendor/bundle/gems/sqlite3-1.3.13/test/test_statement_execute.rb +35 -0
- data/vendor/bundle/gems/thread_safe-0.3.6/.rspec +2 -0
- data/vendor/bundle/gems/thread_safe-0.3.6/.travis.yml +46 -0
- data/vendor/bundle/gems/thread_safe-0.3.6/.yardopts +13 -0
- data/vendor/bundle/gems/thread_safe-0.3.6/Gemfile +20 -0
- data/vendor/bundle/gems/thread_safe-0.3.6/LICENSE +144 -0
- data/vendor/bundle/gems/thread_safe-0.3.6/README.md +60 -0
- data/vendor/bundle/gems/thread_safe-0.3.6/Rakefile +62 -0
- data/vendor/bundle/gems/thread_safe-0.3.6/examples/bench_cache.rb +35 -0
- data/vendor/bundle/gems/thread_safe-0.3.6/ext/org/jruby/ext/thread_safe/JRubyCacheBackendLibrary.java +245 -0
- data/vendor/bundle/gems/thread_safe-0.3.6/ext/org/jruby/ext/thread_safe/jsr166e/ConcurrentHashMap.java +31 -0
- data/vendor/bundle/gems/thread_safe-0.3.6/ext/org/jruby/ext/thread_safe/jsr166e/ConcurrentHashMapV8.java +3863 -0
- data/vendor/bundle/gems/thread_safe-0.3.6/ext/org/jruby/ext/thread_safe/jsr166e/LongAdder.java +203 -0
- data/vendor/bundle/gems/thread_safe-0.3.6/ext/org/jruby/ext/thread_safe/jsr166e/Striped64.java +342 -0
- data/vendor/bundle/gems/thread_safe-0.3.6/ext/org/jruby/ext/thread_safe/jsr166e/nounsafe/ConcurrentHashMapV8.java +3800 -0
- data/vendor/bundle/gems/thread_safe-0.3.6/ext/org/jruby/ext/thread_safe/jsr166e/nounsafe/LongAdder.java +204 -0
- data/vendor/bundle/gems/thread_safe-0.3.6/ext/org/jruby/ext/thread_safe/jsr166e/nounsafe/Striped64.java +291 -0
- data/vendor/bundle/gems/thread_safe-0.3.6/ext/org/jruby/ext/thread_safe/jsr166y/ThreadLocalRandom.java +199 -0
- data/vendor/bundle/gems/thread_safe-0.3.6/ext/thread_safe/JrubyCacheBackendService.java +15 -0
- data/vendor/bundle/gems/thread_safe-0.3.6/lib/thread_safe.rb +65 -0
- data/vendor/bundle/gems/thread_safe-0.3.6/lib/thread_safe/atomic_reference_cache_backend.rb +908 -0
- data/vendor/bundle/gems/thread_safe-0.3.6/lib/thread_safe/cache.rb +161 -0
- data/vendor/bundle/gems/thread_safe-0.3.6/lib/thread_safe/mri_cache_backend.rb +60 -0
- data/vendor/bundle/gems/thread_safe-0.3.6/lib/thread_safe/non_concurrent_cache_backend.rb +135 -0
- data/vendor/bundle/gems/thread_safe-0.3.6/lib/thread_safe/synchronized_cache_backend.rb +77 -0
- data/vendor/bundle/gems/thread_safe-0.3.6/lib/thread_safe/synchronized_delegator.rb +43 -0
- data/vendor/bundle/gems/thread_safe-0.3.6/lib/thread_safe/util.rb +16 -0
- data/vendor/bundle/gems/thread_safe-0.3.6/lib/thread_safe/util/adder.rb +62 -0
- data/vendor/bundle/gems/thread_safe-0.3.6/lib/thread_safe/util/atomic_reference.rb +44 -0
- data/vendor/bundle/gems/thread_safe-0.3.6/lib/thread_safe/util/cheap_lockable.rb +106 -0
- data/vendor/bundle/gems/thread_safe-0.3.6/lib/thread_safe/util/power_of_two_tuple.rb +26 -0
- data/vendor/bundle/gems/thread_safe-0.3.6/lib/thread_safe/util/striped64.rb +222 -0
- data/vendor/bundle/gems/thread_safe-0.3.6/lib/thread_safe/util/volatile.rb +64 -0
- data/vendor/bundle/gems/thread_safe-0.3.6/lib/thread_safe/util/volatile_tuple.rb +46 -0
- data/vendor/bundle/gems/thread_safe-0.3.6/lib/thread_safe/util/xor_shift_random.rb +41 -0
- data/vendor/bundle/gems/thread_safe-0.3.6/lib/thread_safe/version.rb +21 -0
- data/vendor/bundle/gems/thread_safe-0.3.6/spec/.gitignore +0 -0
- data/vendor/bundle/gems/thread_safe-0.3.6/spec/spec_helper.rb +31 -0
- data/vendor/bundle/gems/thread_safe-0.3.6/spec/src/thread_safe/SecurityManager.java +21 -0
- data/vendor/bundle/gems/thread_safe-0.3.6/spec/support/.gitignore +0 -0
- data/vendor/bundle/gems/thread_safe-0.3.6/spec/support/threads.rb +1 -0
- data/vendor/bundle/gems/thread_safe-0.3.6/spec/support/threadsafe_test.rb +75 -0
- data/vendor/bundle/gems/thread_safe-0.3.6/spec/thread_safe/.gitignore +0 -0
- data/vendor/bundle/gems/thread_safe-0.3.6/spec/thread_safe/array_spec.rb +18 -0
- data/vendor/bundle/gems/thread_safe-0.3.6/spec/thread_safe/cache_loops_spec.rb +507 -0
- data/vendor/bundle/gems/thread_safe-0.3.6/spec/thread_safe/cache_spec.rb +943 -0
- data/vendor/bundle/gems/thread_safe-0.3.6/spec/thread_safe/hash_spec.rb +17 -0
- data/vendor/bundle/gems/thread_safe-0.3.6/spec/thread_safe/no_unsafe_spec.rb +27 -0
- data/vendor/bundle/gems/thread_safe-0.3.6/spec/thread_safe/synchronized_delegator_spec.rb +85 -0
- data/vendor/bundle/gems/thread_safe-0.3.6/tasks/update_doc.rake +45 -0
- data/vendor/bundle/gems/thread_safe-0.3.6/thread_safe.gemspec +26 -0
- data/vendor/bundle/gems/thread_safe-0.3.6/yard-template/default/fulldoc/html/css/common.css +125 -0
- data/vendor/bundle/gems/thread_safe-0.3.6/yard-template/default/layout/html/footer.erb +16 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/.yardopts +6 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/CHANGES.md +786 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/LICENSE +19 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/README.md +151 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/Rakefile +107 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/lib/tzinfo.rb +40 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/lib/tzinfo/country.rb +196 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/lib/tzinfo/country_index_definition.rb +31 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/lib/tzinfo/country_info.rb +42 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/lib/tzinfo/country_timezone.rb +135 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/lib/tzinfo/data_source.rb +190 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/lib/tzinfo/data_timezone.rb +58 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/lib/tzinfo/data_timezone_info.rb +55 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/lib/tzinfo/info_timezone.rb +30 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/lib/tzinfo/linked_timezone.rb +63 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/lib/tzinfo/linked_timezone_info.rb +26 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/lib/tzinfo/offset_rationals.rb +77 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/lib/tzinfo/ruby_core_support.rb +146 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/lib/tzinfo/ruby_country_info.rb +74 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/lib/tzinfo/ruby_data_source.rb +136 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/lib/tzinfo/time_or_datetime.rb +340 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/lib/tzinfo/timezone.rb +669 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/lib/tzinfo/timezone_definition.rb +36 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/lib/tzinfo/timezone_index_definition.rb +54 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/lib/tzinfo/timezone_info.rb +30 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/lib/tzinfo/timezone_offset.rb +101 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/lib/tzinfo/timezone_period.rb +245 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/lib/tzinfo/timezone_proxy.rb +105 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/lib/tzinfo/timezone_transition.rb +130 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/lib/tzinfo/timezone_transition_definition.rb +104 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/lib/tzinfo/transition_data_timezone_info.rb +274 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/lib/tzinfo/zoneinfo_country_info.rb +37 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/lib/tzinfo/zoneinfo_data_source.rb +488 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/lib/tzinfo/zoneinfo_timezone_info.rb +296 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/tc_country.rb +234 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/tc_country_index_definition.rb +69 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/tc_country_info.rb +16 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/tc_country_timezone.rb +173 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/tc_data_source.rb +218 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/tc_data_timezone.rb +99 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/tc_data_timezone_info.rb +18 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/tc_info_timezone.rb +34 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/tc_linked_timezone.rb +155 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/tc_linked_timezone_info.rb +23 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/tc_offset_rationals.rb +23 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/tc_ruby_core_support.rb +168 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/tc_ruby_country_info.rb +110 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/tc_ruby_data_source.rb +143 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/tc_time_or_datetime.rb +654 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/tc_timezone.rb +1350 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/tc_timezone_definition.rb +113 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/tc_timezone_index_definition.rb +73 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/tc_timezone_info.rb +11 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/tc_timezone_london.rb +143 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/tc_timezone_melbourne.rb +142 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/tc_timezone_new_york.rb +142 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/tc_timezone_offset.rb +126 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/tc_timezone_period.rb +555 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/tc_timezone_proxy.rb +136 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/tc_timezone_transition.rb +366 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/tc_timezone_transition_definition.rb +295 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/tc_timezone_utc.rb +27 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/tc_transition_data_timezone_info.rb +423 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/tc_zoneinfo_country_info.rb +78 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/tc_zoneinfo_data_source.rb +1195 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/tc_zoneinfo_timezone_info.rb +1232 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/test_utils.rb +163 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/ts_all.rb +7 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/ts_all_ruby.rb +5 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/ts_all_zoneinfo.rb +7 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/tzinfo-data/tzinfo/data.rb +8 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/tzinfo-data/tzinfo/data/definitions/America/Argentina/Buenos_Aires.rb +89 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/tzinfo-data/tzinfo/data/definitions/America/New_York.rb +315 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/tzinfo-data/tzinfo/data/definitions/Australia/Melbourne.rb +218 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/tzinfo-data/tzinfo/data/definitions/EST.rb +19 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/tzinfo-data/tzinfo/data/definitions/Etc/GMT__m__1.rb +21 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/tzinfo-data/tzinfo/data/definitions/Etc/GMT__p__1.rb +21 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/tzinfo-data/tzinfo/data/definitions/Etc/UTC.rb +21 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/tzinfo-data/tzinfo/data/definitions/Europe/Amsterdam.rb +261 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/tzinfo-data/tzinfo/data/definitions/Europe/Andorra.rb +186 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/tzinfo-data/tzinfo/data/definitions/Europe/London.rb +321 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/tzinfo-data/tzinfo/data/definitions/Europe/Paris.rb +265 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/tzinfo-data/tzinfo/data/definitions/Europe/Prague.rb +220 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/tzinfo-data/tzinfo/data/definitions/UTC.rb +16 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/tzinfo-data/tzinfo/data/indexes/countries.rb +927 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/tzinfo-data/tzinfo/data/indexes/timezones.rb +596 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/tzinfo-data/tzinfo/data/version.rb +14 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/zoneinfo/America/Argentina/Buenos_Aires +0 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/zoneinfo/America/New_York +0 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/zoneinfo/Australia/Melbourne +0 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/zoneinfo/EST +0 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/zoneinfo/Etc/UTC +0 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/zoneinfo/Europe/Amsterdam +0 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/zoneinfo/Europe/Andorra +0 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/zoneinfo/Europe/London +0 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/zoneinfo/Europe/Paris +0 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/zoneinfo/Europe/Prague +0 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/zoneinfo/Factory +0 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/zoneinfo/iso3166.tab +275 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/zoneinfo/leapseconds +61 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/zoneinfo/posix/Europe/London +0 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/zoneinfo/posixrules +0 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/zoneinfo/right/Europe/London +0 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/zoneinfo/zone.tab +439 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/test/zoneinfo/zone1970.tab +369 -0
- data/vendor/bundle/gems/tzinfo-1.2.5/tzinfo.gemspec +21 -0
- data/vendor/bundle/specifications/activemodel-5.2.2.gemspec +34 -0
- data/vendor/bundle/specifications/activerecord-5.2.2.gemspec +43 -0
- data/vendor/bundle/specifications/activesupport-5.2.2.gemspec +44 -0
- data/vendor/bundle/specifications/ansi-1.5.0.gemspec +49 -0
- data/vendor/bundle/specifications/arel-9.0.0.gemspec +45 -0
- data/vendor/bundle/specifications/builder-3.2.3.gemspec +21 -0
- data/vendor/bundle/specifications/concurrent-ruby-1.1.4.gemspec +23 -0
- data/vendor/bundle/specifications/i18n-1.3.0.gemspec +36 -0
- data/vendor/bundle/specifications/minitest-5.11.3.gemspec +39 -0
- data/vendor/bundle/specifications/minitest-reporters-1.3.5.gemspec +52 -0
- data/vendor/bundle/specifications/rake-10.5.0.gemspec +43 -0
- data/vendor/bundle/specifications/ruby-progressbar-1.10.0.gemspec +46 -0
- data/vendor/bundle/specifications/sqlite3-1.3.13.gemspec +56 -0
- data/vendor/bundle/specifications/thread_safe-0.3.6.gemspec +38 -0
- data/vendor/bundle/specifications/tzinfo-1.2.5.gemspec +37 -0
- metadata +1563 -0
@@ -0,0 +1,248 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "active_support/core_ext/object/duplicable"
|
4
|
+
|
5
|
+
module ActiveModel
|
6
|
+
class Attribute # :nodoc:
|
7
|
+
class << self
|
8
|
+
def from_database(name, value, type)
|
9
|
+
FromDatabase.new(name, value, type)
|
10
|
+
end
|
11
|
+
|
12
|
+
def from_user(name, value, type, original_attribute = nil)
|
13
|
+
FromUser.new(name, value, type, original_attribute)
|
14
|
+
end
|
15
|
+
|
16
|
+
def with_cast_value(name, value, type)
|
17
|
+
WithCastValue.new(name, value, type)
|
18
|
+
end
|
19
|
+
|
20
|
+
def null(name)
|
21
|
+
Null.new(name)
|
22
|
+
end
|
23
|
+
|
24
|
+
def uninitialized(name, type)
|
25
|
+
Uninitialized.new(name, type)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
attr_reader :name, :value_before_type_cast, :type
|
30
|
+
|
31
|
+
# This method should not be called directly.
|
32
|
+
# Use #from_database or #from_user
|
33
|
+
def initialize(name, value_before_type_cast, type, original_attribute = nil)
|
34
|
+
@name = name
|
35
|
+
@value_before_type_cast = value_before_type_cast
|
36
|
+
@type = type
|
37
|
+
@original_attribute = original_attribute
|
38
|
+
end
|
39
|
+
|
40
|
+
def value
|
41
|
+
# `defined?` is cheaper than `||=` when we get back falsy values
|
42
|
+
@value = type_cast(value_before_type_cast) unless defined?(@value)
|
43
|
+
@value
|
44
|
+
end
|
45
|
+
|
46
|
+
def original_value
|
47
|
+
if assigned?
|
48
|
+
original_attribute.original_value
|
49
|
+
else
|
50
|
+
type_cast(value_before_type_cast)
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
def value_for_database
|
55
|
+
type.serialize(value)
|
56
|
+
end
|
57
|
+
|
58
|
+
def changed?
|
59
|
+
changed_from_assignment? || changed_in_place?
|
60
|
+
end
|
61
|
+
|
62
|
+
def changed_in_place?
|
63
|
+
has_been_read? && type.changed_in_place?(original_value_for_database, value)
|
64
|
+
end
|
65
|
+
|
66
|
+
def forgetting_assignment
|
67
|
+
with_value_from_database(value_for_database)
|
68
|
+
end
|
69
|
+
|
70
|
+
def with_value_from_user(value)
|
71
|
+
type.assert_valid_value(value)
|
72
|
+
self.class.from_user(name, value, type, original_attribute || self)
|
73
|
+
end
|
74
|
+
|
75
|
+
def with_value_from_database(value)
|
76
|
+
self.class.from_database(name, value, type)
|
77
|
+
end
|
78
|
+
|
79
|
+
def with_cast_value(value)
|
80
|
+
self.class.with_cast_value(name, value, type)
|
81
|
+
end
|
82
|
+
|
83
|
+
def with_type(type)
|
84
|
+
if changed_in_place?
|
85
|
+
with_value_from_user(value).with_type(type)
|
86
|
+
else
|
87
|
+
self.class.new(name, value_before_type_cast, type, original_attribute)
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
91
|
+
def type_cast(*)
|
92
|
+
raise NotImplementedError
|
93
|
+
end
|
94
|
+
|
95
|
+
def initialized?
|
96
|
+
true
|
97
|
+
end
|
98
|
+
|
99
|
+
def came_from_user?
|
100
|
+
false
|
101
|
+
end
|
102
|
+
|
103
|
+
def has_been_read?
|
104
|
+
defined?(@value)
|
105
|
+
end
|
106
|
+
|
107
|
+
def ==(other)
|
108
|
+
self.class == other.class &&
|
109
|
+
name == other.name &&
|
110
|
+
value_before_type_cast == other.value_before_type_cast &&
|
111
|
+
type == other.type
|
112
|
+
end
|
113
|
+
alias eql? ==
|
114
|
+
|
115
|
+
def hash
|
116
|
+
[self.class, name, value_before_type_cast, type].hash
|
117
|
+
end
|
118
|
+
|
119
|
+
def init_with(coder)
|
120
|
+
@name = coder["name"]
|
121
|
+
@value_before_type_cast = coder["value_before_type_cast"]
|
122
|
+
@type = coder["type"]
|
123
|
+
@original_attribute = coder["original_attribute"]
|
124
|
+
@value = coder["value"] if coder.map.key?("value")
|
125
|
+
end
|
126
|
+
|
127
|
+
def encode_with(coder)
|
128
|
+
coder["name"] = name
|
129
|
+
coder["value_before_type_cast"] = value_before_type_cast unless value_before_type_cast.nil?
|
130
|
+
coder["type"] = type if type
|
131
|
+
coder["original_attribute"] = original_attribute if original_attribute
|
132
|
+
coder["value"] = value if defined?(@value)
|
133
|
+
end
|
134
|
+
|
135
|
+
protected
|
136
|
+
|
137
|
+
attr_reader :original_attribute
|
138
|
+
alias_method :assigned?, :original_attribute
|
139
|
+
|
140
|
+
def original_value_for_database
|
141
|
+
if assigned?
|
142
|
+
original_attribute.original_value_for_database
|
143
|
+
else
|
144
|
+
_original_value_for_database
|
145
|
+
end
|
146
|
+
end
|
147
|
+
|
148
|
+
private
|
149
|
+
def initialize_dup(other)
|
150
|
+
if defined?(@value) && @value.duplicable?
|
151
|
+
@value = @value.dup
|
152
|
+
end
|
153
|
+
end
|
154
|
+
|
155
|
+
def changed_from_assignment?
|
156
|
+
assigned? && type.changed?(original_value, value, value_before_type_cast)
|
157
|
+
end
|
158
|
+
|
159
|
+
def _original_value_for_database
|
160
|
+
type.serialize(original_value)
|
161
|
+
end
|
162
|
+
|
163
|
+
class FromDatabase < Attribute # :nodoc:
|
164
|
+
def type_cast(value)
|
165
|
+
type.deserialize(value)
|
166
|
+
end
|
167
|
+
|
168
|
+
def _original_value_for_database
|
169
|
+
value_before_type_cast
|
170
|
+
end
|
171
|
+
end
|
172
|
+
|
173
|
+
class FromUser < Attribute # :nodoc:
|
174
|
+
def type_cast(value)
|
175
|
+
type.cast(value)
|
176
|
+
end
|
177
|
+
|
178
|
+
def came_from_user?
|
179
|
+
!type.value_constructed_by_mass_assignment?(value_before_type_cast)
|
180
|
+
end
|
181
|
+
end
|
182
|
+
|
183
|
+
class WithCastValue < Attribute # :nodoc:
|
184
|
+
def type_cast(value)
|
185
|
+
value
|
186
|
+
end
|
187
|
+
|
188
|
+
def changed_in_place?
|
189
|
+
false
|
190
|
+
end
|
191
|
+
end
|
192
|
+
|
193
|
+
class Null < Attribute # :nodoc:
|
194
|
+
def initialize(name)
|
195
|
+
super(name, nil, Type.default_value)
|
196
|
+
end
|
197
|
+
|
198
|
+
def type_cast(*)
|
199
|
+
nil
|
200
|
+
end
|
201
|
+
|
202
|
+
def with_type(type)
|
203
|
+
self.class.with_cast_value(name, nil, type)
|
204
|
+
end
|
205
|
+
|
206
|
+
def with_value_from_database(value)
|
207
|
+
raise ActiveModel::MissingAttributeError, "can't write unknown attribute `#{name}`"
|
208
|
+
end
|
209
|
+
alias_method :with_value_from_user, :with_value_from_database
|
210
|
+
alias_method :with_cast_value, :with_value_from_database
|
211
|
+
end
|
212
|
+
|
213
|
+
class Uninitialized < Attribute # :nodoc:
|
214
|
+
UNINITIALIZED_ORIGINAL_VALUE = Object.new
|
215
|
+
|
216
|
+
def initialize(name, type)
|
217
|
+
super(name, nil, type)
|
218
|
+
end
|
219
|
+
|
220
|
+
def value
|
221
|
+
if block_given?
|
222
|
+
yield name
|
223
|
+
end
|
224
|
+
end
|
225
|
+
|
226
|
+
def original_value
|
227
|
+
UNINITIALIZED_ORIGINAL_VALUE
|
228
|
+
end
|
229
|
+
|
230
|
+
def value_for_database
|
231
|
+
end
|
232
|
+
|
233
|
+
def initialized?
|
234
|
+
false
|
235
|
+
end
|
236
|
+
|
237
|
+
def forgetting_assignment
|
238
|
+
dup
|
239
|
+
end
|
240
|
+
|
241
|
+
def with_type(type)
|
242
|
+
self.class.new(name, type)
|
243
|
+
end
|
244
|
+
end
|
245
|
+
|
246
|
+
private_constant :FromDatabase, :FromUser, :Null, :Uninitialized, :WithCastValue
|
247
|
+
end
|
248
|
+
end
|
@@ -0,0 +1,52 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "active_model/attribute"
|
4
|
+
|
5
|
+
module ActiveModel
|
6
|
+
class Attribute # :nodoc:
|
7
|
+
class UserProvidedDefault < FromUser # :nodoc:
|
8
|
+
def initialize(name, value, type, database_default)
|
9
|
+
@user_provided_value = value
|
10
|
+
super(name, value, type, database_default)
|
11
|
+
end
|
12
|
+
|
13
|
+
def value_before_type_cast
|
14
|
+
if user_provided_value.is_a?(Proc)
|
15
|
+
@memoized_value_before_type_cast ||= user_provided_value.call
|
16
|
+
else
|
17
|
+
@user_provided_value
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
def with_type(type)
|
22
|
+
self.class.new(name, user_provided_value, type, original_attribute)
|
23
|
+
end
|
24
|
+
|
25
|
+
def marshal_dump
|
26
|
+
result = [
|
27
|
+
name,
|
28
|
+
value_before_type_cast,
|
29
|
+
type,
|
30
|
+
original_attribute,
|
31
|
+
]
|
32
|
+
result << value if defined?(@value)
|
33
|
+
result
|
34
|
+
end
|
35
|
+
|
36
|
+
def marshal_load(values)
|
37
|
+
name, user_provided_value, type, original_attribute, value = values
|
38
|
+
@name = name
|
39
|
+
@user_provided_value = user_provided_value
|
40
|
+
@type = type
|
41
|
+
@original_attribute = original_attribute
|
42
|
+
if values.length == 5
|
43
|
+
@value = value
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
protected
|
48
|
+
|
49
|
+
attr_reader :user_provided_value
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "active_support/core_ext/hash/keys"
|
4
|
+
|
5
|
+
module ActiveModel
|
6
|
+
module AttributeAssignment
|
7
|
+
include ActiveModel::ForbiddenAttributesProtection
|
8
|
+
|
9
|
+
# Allows you to set all the attributes by passing in a hash of attributes with
|
10
|
+
# keys matching the attribute names.
|
11
|
+
#
|
12
|
+
# If the passed hash responds to <tt>permitted?</tt> method and the return value
|
13
|
+
# of this method is +false+ an <tt>ActiveModel::ForbiddenAttributesError</tt>
|
14
|
+
# exception is raised.
|
15
|
+
#
|
16
|
+
# class Cat
|
17
|
+
# include ActiveModel::AttributeAssignment
|
18
|
+
# attr_accessor :name, :status
|
19
|
+
# end
|
20
|
+
#
|
21
|
+
# cat = Cat.new
|
22
|
+
# cat.assign_attributes(name: "Gorby", status: "yawning")
|
23
|
+
# cat.name # => 'Gorby'
|
24
|
+
# cat.status # => 'yawning'
|
25
|
+
# cat.assign_attributes(status: "sleeping")
|
26
|
+
# cat.name # => 'Gorby'
|
27
|
+
# cat.status # => 'sleeping'
|
28
|
+
def assign_attributes(new_attributes)
|
29
|
+
if !new_attributes.respond_to?(:stringify_keys)
|
30
|
+
raise ArgumentError, "When assigning attributes, you must pass a hash as an argument."
|
31
|
+
end
|
32
|
+
return if new_attributes.empty?
|
33
|
+
|
34
|
+
attributes = new_attributes.stringify_keys
|
35
|
+
_assign_attributes(sanitize_for_mass_assignment(attributes))
|
36
|
+
end
|
37
|
+
|
38
|
+
alias attributes= assign_attributes
|
39
|
+
|
40
|
+
private
|
41
|
+
|
42
|
+
def _assign_attributes(attributes)
|
43
|
+
attributes.each do |k, v|
|
44
|
+
_assign_attribute(k, v)
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
def _assign_attribute(k, v)
|
49
|
+
setter = :"#{k}="
|
50
|
+
if respond_to?(setter)
|
51
|
+
public_send(setter, v)
|
52
|
+
else
|
53
|
+
raise UnknownAttributeError.new(self, k)
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,478 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "concurrent/map"
|
4
|
+
|
5
|
+
module ActiveModel
|
6
|
+
# Raised when an attribute is not defined.
|
7
|
+
#
|
8
|
+
# class User < ActiveRecord::Base
|
9
|
+
# has_many :pets
|
10
|
+
# end
|
11
|
+
#
|
12
|
+
# user = User.first
|
13
|
+
# user.pets.select(:id).first.user_id
|
14
|
+
# # => ActiveModel::MissingAttributeError: missing attribute: user_id
|
15
|
+
class MissingAttributeError < NoMethodError
|
16
|
+
end
|
17
|
+
|
18
|
+
# == Active \Model \Attribute \Methods
|
19
|
+
#
|
20
|
+
# Provides a way to add prefixes and suffixes to your methods as
|
21
|
+
# well as handling the creation of <tt>ActiveRecord::Base</tt>-like
|
22
|
+
# class methods such as +table_name+.
|
23
|
+
#
|
24
|
+
# The requirements to implement <tt>ActiveModel::AttributeMethods</tt> are to:
|
25
|
+
#
|
26
|
+
# * <tt>include ActiveModel::AttributeMethods</tt> in your class.
|
27
|
+
# * Call each of its methods you want to add, such as +attribute_method_suffix+
|
28
|
+
# or +attribute_method_prefix+.
|
29
|
+
# * Call +define_attribute_methods+ after the other methods are called.
|
30
|
+
# * Define the various generic +_attribute+ methods that you have declared.
|
31
|
+
# * Define an +attributes+ method which returns a hash with each
|
32
|
+
# attribute name in your model as hash key and the attribute value as hash value.
|
33
|
+
# Hash keys must be strings.
|
34
|
+
#
|
35
|
+
# A minimal implementation could be:
|
36
|
+
#
|
37
|
+
# class Person
|
38
|
+
# include ActiveModel::AttributeMethods
|
39
|
+
#
|
40
|
+
# attribute_method_affix prefix: 'reset_', suffix: '_to_default!'
|
41
|
+
# attribute_method_suffix '_contrived?'
|
42
|
+
# attribute_method_prefix 'clear_'
|
43
|
+
# define_attribute_methods :name
|
44
|
+
#
|
45
|
+
# attr_accessor :name
|
46
|
+
#
|
47
|
+
# def attributes
|
48
|
+
# { 'name' => @name }
|
49
|
+
# end
|
50
|
+
#
|
51
|
+
# private
|
52
|
+
#
|
53
|
+
# def attribute_contrived?(attr)
|
54
|
+
# true
|
55
|
+
# end
|
56
|
+
#
|
57
|
+
# def clear_attribute(attr)
|
58
|
+
# send("#{attr}=", nil)
|
59
|
+
# end
|
60
|
+
#
|
61
|
+
# def reset_attribute_to_default!(attr)
|
62
|
+
# send("#{attr}=", 'Default Name')
|
63
|
+
# end
|
64
|
+
# end
|
65
|
+
module AttributeMethods
|
66
|
+
extend ActiveSupport::Concern
|
67
|
+
|
68
|
+
NAME_COMPILABLE_REGEXP = /\A[a-zA-Z_]\w*[!?=]?\z/
|
69
|
+
CALL_COMPILABLE_REGEXP = /\A[a-zA-Z_]\w*[!?]?\z/
|
70
|
+
|
71
|
+
included do
|
72
|
+
class_attribute :attribute_aliases, instance_writer: false, default: {}
|
73
|
+
class_attribute :attribute_method_matchers, instance_writer: false, default: [ ClassMethods::AttributeMethodMatcher.new ]
|
74
|
+
end
|
75
|
+
|
76
|
+
module ClassMethods
|
77
|
+
# Declares a method available for all attributes with the given prefix.
|
78
|
+
# Uses +method_missing+ and <tt>respond_to?</tt> to rewrite the method.
|
79
|
+
#
|
80
|
+
# #{prefix}#{attr}(*args, &block)
|
81
|
+
#
|
82
|
+
# to
|
83
|
+
#
|
84
|
+
# #{prefix}attribute(#{attr}, *args, &block)
|
85
|
+
#
|
86
|
+
# An instance method <tt>#{prefix}attribute</tt> must exist and accept
|
87
|
+
# at least the +attr+ argument.
|
88
|
+
#
|
89
|
+
# class Person
|
90
|
+
# include ActiveModel::AttributeMethods
|
91
|
+
#
|
92
|
+
# attr_accessor :name
|
93
|
+
# attribute_method_prefix 'clear_'
|
94
|
+
# define_attribute_methods :name
|
95
|
+
#
|
96
|
+
# private
|
97
|
+
#
|
98
|
+
# def clear_attribute(attr)
|
99
|
+
# send("#{attr}=", nil)
|
100
|
+
# end
|
101
|
+
# end
|
102
|
+
#
|
103
|
+
# person = Person.new
|
104
|
+
# person.name = 'Bob'
|
105
|
+
# person.name # => "Bob"
|
106
|
+
# person.clear_name
|
107
|
+
# person.name # => nil
|
108
|
+
def attribute_method_prefix(*prefixes)
|
109
|
+
self.attribute_method_matchers += prefixes.map! { |prefix| AttributeMethodMatcher.new prefix: prefix }
|
110
|
+
undefine_attribute_methods
|
111
|
+
end
|
112
|
+
|
113
|
+
# Declares a method available for all attributes with the given suffix.
|
114
|
+
# Uses +method_missing+ and <tt>respond_to?</tt> to rewrite the method.
|
115
|
+
#
|
116
|
+
# #{attr}#{suffix}(*args, &block)
|
117
|
+
#
|
118
|
+
# to
|
119
|
+
#
|
120
|
+
# attribute#{suffix}(#{attr}, *args, &block)
|
121
|
+
#
|
122
|
+
# An <tt>attribute#{suffix}</tt> instance method must exist and accept at
|
123
|
+
# least the +attr+ argument.
|
124
|
+
#
|
125
|
+
# class Person
|
126
|
+
# include ActiveModel::AttributeMethods
|
127
|
+
#
|
128
|
+
# attr_accessor :name
|
129
|
+
# attribute_method_suffix '_short?'
|
130
|
+
# define_attribute_methods :name
|
131
|
+
#
|
132
|
+
# private
|
133
|
+
#
|
134
|
+
# def attribute_short?(attr)
|
135
|
+
# send(attr).length < 5
|
136
|
+
# end
|
137
|
+
# end
|
138
|
+
#
|
139
|
+
# person = Person.new
|
140
|
+
# person.name = 'Bob'
|
141
|
+
# person.name # => "Bob"
|
142
|
+
# person.name_short? # => true
|
143
|
+
def attribute_method_suffix(*suffixes)
|
144
|
+
self.attribute_method_matchers += suffixes.map! { |suffix| AttributeMethodMatcher.new suffix: suffix }
|
145
|
+
undefine_attribute_methods
|
146
|
+
end
|
147
|
+
|
148
|
+
# Declares a method available for all attributes with the given prefix
|
149
|
+
# and suffix. Uses +method_missing+ and <tt>respond_to?</tt> to rewrite
|
150
|
+
# the method.
|
151
|
+
#
|
152
|
+
# #{prefix}#{attr}#{suffix}(*args, &block)
|
153
|
+
#
|
154
|
+
# to
|
155
|
+
#
|
156
|
+
# #{prefix}attribute#{suffix}(#{attr}, *args, &block)
|
157
|
+
#
|
158
|
+
# An <tt>#{prefix}attribute#{suffix}</tt> instance method must exist and
|
159
|
+
# accept at least the +attr+ argument.
|
160
|
+
#
|
161
|
+
# class Person
|
162
|
+
# include ActiveModel::AttributeMethods
|
163
|
+
#
|
164
|
+
# attr_accessor :name
|
165
|
+
# attribute_method_affix prefix: 'reset_', suffix: '_to_default!'
|
166
|
+
# define_attribute_methods :name
|
167
|
+
#
|
168
|
+
# private
|
169
|
+
#
|
170
|
+
# def reset_attribute_to_default!(attr)
|
171
|
+
# send("#{attr}=", 'Default Name')
|
172
|
+
# end
|
173
|
+
# end
|
174
|
+
#
|
175
|
+
# person = Person.new
|
176
|
+
# person.name # => 'Gem'
|
177
|
+
# person.reset_name_to_default!
|
178
|
+
# person.name # => 'Default Name'
|
179
|
+
def attribute_method_affix(*affixes)
|
180
|
+
self.attribute_method_matchers += affixes.map! { |affix| AttributeMethodMatcher.new prefix: affix[:prefix], suffix: affix[:suffix] }
|
181
|
+
undefine_attribute_methods
|
182
|
+
end
|
183
|
+
|
184
|
+
# Allows you to make aliases for attributes.
|
185
|
+
#
|
186
|
+
# class Person
|
187
|
+
# include ActiveModel::AttributeMethods
|
188
|
+
#
|
189
|
+
# attr_accessor :name
|
190
|
+
# attribute_method_suffix '_short?'
|
191
|
+
# define_attribute_methods :name
|
192
|
+
#
|
193
|
+
# alias_attribute :nickname, :name
|
194
|
+
#
|
195
|
+
# private
|
196
|
+
#
|
197
|
+
# def attribute_short?(attr)
|
198
|
+
# send(attr).length < 5
|
199
|
+
# end
|
200
|
+
# end
|
201
|
+
#
|
202
|
+
# person = Person.new
|
203
|
+
# person.name = 'Bob'
|
204
|
+
# person.name # => "Bob"
|
205
|
+
# person.nickname # => "Bob"
|
206
|
+
# person.name_short? # => true
|
207
|
+
# person.nickname_short? # => true
|
208
|
+
def alias_attribute(new_name, old_name)
|
209
|
+
self.attribute_aliases = attribute_aliases.merge(new_name.to_s => old_name.to_s)
|
210
|
+
attribute_method_matchers.each do |matcher|
|
211
|
+
matcher_new = matcher.method_name(new_name).to_s
|
212
|
+
matcher_old = matcher.method_name(old_name).to_s
|
213
|
+
define_proxy_call false, self, matcher_new, matcher_old
|
214
|
+
end
|
215
|
+
end
|
216
|
+
|
217
|
+
# Is +new_name+ an alias?
|
218
|
+
def attribute_alias?(new_name)
|
219
|
+
attribute_aliases.key? new_name.to_s
|
220
|
+
end
|
221
|
+
|
222
|
+
# Returns the original name for the alias +name+
|
223
|
+
def attribute_alias(name)
|
224
|
+
attribute_aliases[name.to_s]
|
225
|
+
end
|
226
|
+
|
227
|
+
# Declares the attributes that should be prefixed and suffixed by
|
228
|
+
# <tt>ActiveModel::AttributeMethods</tt>.
|
229
|
+
#
|
230
|
+
# To use, pass attribute names (as strings or symbols). Be sure to declare
|
231
|
+
# +define_attribute_methods+ after you define any prefix, suffix or affix
|
232
|
+
# methods, or they will not hook in.
|
233
|
+
#
|
234
|
+
# class Person
|
235
|
+
# include ActiveModel::AttributeMethods
|
236
|
+
#
|
237
|
+
# attr_accessor :name, :age, :address
|
238
|
+
# attribute_method_prefix 'clear_'
|
239
|
+
#
|
240
|
+
# # Call to define_attribute_methods must appear after the
|
241
|
+
# # attribute_method_prefix, attribute_method_suffix or
|
242
|
+
# # attribute_method_affix declarations.
|
243
|
+
# define_attribute_methods :name, :age, :address
|
244
|
+
#
|
245
|
+
# private
|
246
|
+
#
|
247
|
+
# def clear_attribute(attr)
|
248
|
+
# send("#{attr}=", nil)
|
249
|
+
# end
|
250
|
+
# end
|
251
|
+
def define_attribute_methods(*attr_names)
|
252
|
+
attr_names.flatten.each { |attr_name| define_attribute_method(attr_name) }
|
253
|
+
end
|
254
|
+
|
255
|
+
# Declares an attribute that should be prefixed and suffixed by
|
256
|
+
# <tt>ActiveModel::AttributeMethods</tt>.
|
257
|
+
#
|
258
|
+
# To use, pass an attribute name (as string or symbol). Be sure to declare
|
259
|
+
# +define_attribute_method+ after you define any prefix, suffix or affix
|
260
|
+
# method, or they will not hook in.
|
261
|
+
#
|
262
|
+
# class Person
|
263
|
+
# include ActiveModel::AttributeMethods
|
264
|
+
#
|
265
|
+
# attr_accessor :name
|
266
|
+
# attribute_method_suffix '_short?'
|
267
|
+
#
|
268
|
+
# # Call to define_attribute_method must appear after the
|
269
|
+
# # attribute_method_prefix, attribute_method_suffix or
|
270
|
+
# # attribute_method_affix declarations.
|
271
|
+
# define_attribute_method :name
|
272
|
+
#
|
273
|
+
# private
|
274
|
+
#
|
275
|
+
# def attribute_short?(attr)
|
276
|
+
# send(attr).length < 5
|
277
|
+
# end
|
278
|
+
# end
|
279
|
+
#
|
280
|
+
# person = Person.new
|
281
|
+
# person.name = 'Bob'
|
282
|
+
# person.name # => "Bob"
|
283
|
+
# person.name_short? # => true
|
284
|
+
def define_attribute_method(attr_name)
|
285
|
+
attribute_method_matchers.each do |matcher|
|
286
|
+
method_name = matcher.method_name(attr_name)
|
287
|
+
|
288
|
+
unless instance_method_already_implemented?(method_name)
|
289
|
+
generate_method = "define_method_#{matcher.method_missing_target}"
|
290
|
+
|
291
|
+
if respond_to?(generate_method, true)
|
292
|
+
send(generate_method, attr_name.to_s)
|
293
|
+
else
|
294
|
+
define_proxy_call true, generated_attribute_methods, method_name, matcher.method_missing_target, attr_name.to_s
|
295
|
+
end
|
296
|
+
end
|
297
|
+
end
|
298
|
+
attribute_method_matchers_cache.clear
|
299
|
+
end
|
300
|
+
|
301
|
+
# Removes all the previously dynamically defined methods from the class.
|
302
|
+
#
|
303
|
+
# class Person
|
304
|
+
# include ActiveModel::AttributeMethods
|
305
|
+
#
|
306
|
+
# attr_accessor :name
|
307
|
+
# attribute_method_suffix '_short?'
|
308
|
+
# define_attribute_method :name
|
309
|
+
#
|
310
|
+
# private
|
311
|
+
#
|
312
|
+
# def attribute_short?(attr)
|
313
|
+
# send(attr).length < 5
|
314
|
+
# end
|
315
|
+
# end
|
316
|
+
#
|
317
|
+
# person = Person.new
|
318
|
+
# person.name = 'Bob'
|
319
|
+
# person.name_short? # => true
|
320
|
+
#
|
321
|
+
# Person.undefine_attribute_methods
|
322
|
+
#
|
323
|
+
# person.name_short? # => NoMethodError
|
324
|
+
def undefine_attribute_methods
|
325
|
+
generated_attribute_methods.module_eval do
|
326
|
+
instance_methods.each { |m| undef_method(m) }
|
327
|
+
end
|
328
|
+
attribute_method_matchers_cache.clear
|
329
|
+
end
|
330
|
+
|
331
|
+
private
|
332
|
+
def generated_attribute_methods
|
333
|
+
@generated_attribute_methods ||= Module.new.tap { |mod| include mod }
|
334
|
+
end
|
335
|
+
|
336
|
+
def instance_method_already_implemented?(method_name)
|
337
|
+
generated_attribute_methods.method_defined?(method_name)
|
338
|
+
end
|
339
|
+
|
340
|
+
# The methods +method_missing+ and +respond_to?+ of this module are
|
341
|
+
# invoked often in a typical rails, both of which invoke the method
|
342
|
+
# +matched_attribute_method+. The latter method iterates through an
|
343
|
+
# array doing regular expression matches, which results in a lot of
|
344
|
+
# object creations. Most of the time it returns a +nil+ match. As the
|
345
|
+
# match result is always the same given a +method_name+, this cache is
|
346
|
+
# used to alleviate the GC, which ultimately also speeds up the app
|
347
|
+
# significantly (in our case our test suite finishes 10% faster with
|
348
|
+
# this cache).
|
349
|
+
def attribute_method_matchers_cache
|
350
|
+
@attribute_method_matchers_cache ||= Concurrent::Map.new(initial_capacity: 4)
|
351
|
+
end
|
352
|
+
|
353
|
+
def attribute_method_matchers_matching(method_name)
|
354
|
+
attribute_method_matchers_cache.compute_if_absent(method_name) do
|
355
|
+
# Must try to match prefixes/suffixes first, or else the matcher with no prefix/suffix
|
356
|
+
# will match every time.
|
357
|
+
matchers = attribute_method_matchers.partition(&:plain?).reverse.flatten(1)
|
358
|
+
matchers.map { |method| method.match(method_name) }.compact
|
359
|
+
end
|
360
|
+
end
|
361
|
+
|
362
|
+
# Define a method `name` in `mod` that dispatches to `send`
|
363
|
+
# using the given `extra` args. This falls back on `define_method`
|
364
|
+
# and `send` if the given names cannot be compiled.
|
365
|
+
def define_proxy_call(include_private, mod, name, send, *extra)
|
366
|
+
defn = if NAME_COMPILABLE_REGEXP.match?(name)
|
367
|
+
"def #{name}(*args)"
|
368
|
+
else
|
369
|
+
"define_method(:'#{name}') do |*args|"
|
370
|
+
end
|
371
|
+
|
372
|
+
extra = (extra.map!(&:inspect) << "*args").join(", ".freeze)
|
373
|
+
|
374
|
+
target = if CALL_COMPILABLE_REGEXP.match?(send)
|
375
|
+
"#{"self." unless include_private}#{send}(#{extra})"
|
376
|
+
else
|
377
|
+
"send(:'#{send}', #{extra})"
|
378
|
+
end
|
379
|
+
|
380
|
+
mod.module_eval <<-RUBY, __FILE__, __LINE__ + 1
|
381
|
+
#{defn}
|
382
|
+
#{target}
|
383
|
+
end
|
384
|
+
RUBY
|
385
|
+
end
|
386
|
+
|
387
|
+
class AttributeMethodMatcher #:nodoc:
|
388
|
+
attr_reader :prefix, :suffix, :method_missing_target
|
389
|
+
|
390
|
+
AttributeMethodMatch = Struct.new(:target, :attr_name, :method_name)
|
391
|
+
|
392
|
+
def initialize(options = {})
|
393
|
+
@prefix, @suffix = options.fetch(:prefix, ""), options.fetch(:suffix, "")
|
394
|
+
@regex = /^(?:#{Regexp.escape(@prefix)})(.*)(?:#{Regexp.escape(@suffix)})$/
|
395
|
+
@method_missing_target = "#{@prefix}attribute#{@suffix}"
|
396
|
+
@method_name = "#{prefix}%s#{suffix}"
|
397
|
+
end
|
398
|
+
|
399
|
+
def match(method_name)
|
400
|
+
if @regex =~ method_name
|
401
|
+
AttributeMethodMatch.new(method_missing_target, $1, method_name)
|
402
|
+
end
|
403
|
+
end
|
404
|
+
|
405
|
+
def method_name(attr_name)
|
406
|
+
@method_name % attr_name
|
407
|
+
end
|
408
|
+
|
409
|
+
def plain?
|
410
|
+
prefix.empty? && suffix.empty?
|
411
|
+
end
|
412
|
+
end
|
413
|
+
end
|
414
|
+
|
415
|
+
# Allows access to the object attributes, which are held in the hash
|
416
|
+
# returned by <tt>attributes</tt>, as though they were first-class
|
417
|
+
# methods. So a +Person+ class with a +name+ attribute can for example use
|
418
|
+
# <tt>Person#name</tt> and <tt>Person#name=</tt> and never directly use
|
419
|
+
# the attributes hash -- except for multiple assignments with
|
420
|
+
# <tt>ActiveRecord::Base#attributes=</tt>.
|
421
|
+
#
|
422
|
+
# It's also possible to instantiate related objects, so a <tt>Client</tt>
|
423
|
+
# class belonging to the +clients+ table with a +master_id+ foreign key
|
424
|
+
# can instantiate master through <tt>Client#master</tt>.
|
425
|
+
def method_missing(method, *args, &block)
|
426
|
+
if respond_to_without_attributes?(method, true)
|
427
|
+
super
|
428
|
+
else
|
429
|
+
match = matched_attribute_method(method.to_s)
|
430
|
+
match ? attribute_missing(match, *args, &block) : super
|
431
|
+
end
|
432
|
+
end
|
433
|
+
|
434
|
+
# +attribute_missing+ is like +method_missing+, but for attributes. When
|
435
|
+
# +method_missing+ is called we check to see if there is a matching
|
436
|
+
# attribute method. If so, we tell +attribute_missing+ to dispatch the
|
437
|
+
# attribute. This method can be overloaded to customize the behavior.
|
438
|
+
def attribute_missing(match, *args, &block)
|
439
|
+
__send__(match.target, match.attr_name, *args, &block)
|
440
|
+
end
|
441
|
+
|
442
|
+
# A +Person+ instance with a +name+ attribute can ask
|
443
|
+
# <tt>person.respond_to?(:name)</tt>, <tt>person.respond_to?(:name=)</tt>,
|
444
|
+
# and <tt>person.respond_to?(:name?)</tt> which will all return +true+.
|
445
|
+
alias :respond_to_without_attributes? :respond_to?
|
446
|
+
def respond_to?(method, include_private_methods = false)
|
447
|
+
if super
|
448
|
+
true
|
449
|
+
elsif !include_private_methods && super(method, true)
|
450
|
+
# If we're here then we haven't found among non-private methods
|
451
|
+
# but found among all methods. Which means that the given method is private.
|
452
|
+
false
|
453
|
+
else
|
454
|
+
!matched_attribute_method(method.to_s).nil?
|
455
|
+
end
|
456
|
+
end
|
457
|
+
|
458
|
+
private
|
459
|
+
def attribute_method?(attr_name)
|
460
|
+
respond_to_without_attributes?(:attributes) && attributes.include?(attr_name)
|
461
|
+
end
|
462
|
+
|
463
|
+
# Returns a struct representing the matching attribute method.
|
464
|
+
# The struct's attributes are prefix, base and suffix.
|
465
|
+
def matched_attribute_method(method_name)
|
466
|
+
matches = self.class.send(:attribute_method_matchers_matching, method_name)
|
467
|
+
matches.detect { |match| attribute_method?(match.attr_name) }
|
468
|
+
end
|
469
|
+
|
470
|
+
def missing_attribute(attr_name, stack)
|
471
|
+
raise ActiveModel::MissingAttributeError, "missing attribute: #{attr_name}", stack
|
472
|
+
end
|
473
|
+
|
474
|
+
def _read_attribute(attr)
|
475
|
+
__send__(attr)
|
476
|
+
end
|
477
|
+
end
|
478
|
+
end
|