ric 0.11.19 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- checksums.yaml.gz.sig +3 -0
- data/Gemfile +21 -0
- data/HISTORY.yml +20 -0
- data/Makefile +53 -0
- data/Manifest +1362 -5
- data/README.md +4 -2
- data/Rakefile +71 -29
- data/VERSION +1 -1
- data/bin/{xcopy → ric-xcopy} +3 -13
- data/bin/septober +27 -23
- data/ric.gemspec +30 -30
- data/vendor/bundle/ruby/2.7.0/bin/allison +27 -0
- data/vendor/bundle/ruby/2.7.0/bin/lolcat +27 -0
- data/vendor/bundle/ruby/2.7.0/bin/rake +27 -0
- data/vendor/bundle/ruby/2.7.0/bin/rdoc +27 -0
- data/vendor/bundle/ruby/2.7.0/bin/ri +27 -0
- data/vendor/bundle/ruby/2.7.0/bin/rubyforge +27 -0
- data/vendor/bundle/ruby/2.7.0/cache/activemodel-6.1.4.4.gem +0 -0
- data/vendor/bundle/ruby/2.7.0/cache/activemodel-serializers-xml-1.0.2.gem +0 -0
- data/vendor/bundle/ruby/2.7.0/cache/activeresource-5.1.1.gem +0 -0
- data/vendor/bundle/ruby/2.7.0/cache/activesupport-6.1.4.4.gem +0 -0
- data/vendor/bundle/ruby/2.7.0/cache/allison-2.0.3.gem +0 -0
- data/vendor/bundle/ruby/2.7.0/cache/builder-3.2.4.gem +0 -0
- data/vendor/bundle/ruby/2.7.0/cache/concurrent-ruby-1.1.9.gem +0 -0
- data/vendor/bundle/ruby/2.7.0/cache/echoe-4.6.0.gem +0 -0
- data/vendor/bundle/ruby/2.7.0/cache/echoe-4.6.3.gem +0 -0
- data/vendor/bundle/ruby/2.7.0/cache/echoe-4.6.5.gem +0 -0
- data/vendor/bundle/ruby/2.7.0/cache/echoe-4.6.6.gem +0 -0
- data/vendor/bundle/ruby/2.7.0/cache/gemcutter-0.7.1.gem +0 -0
- data/vendor/bundle/ruby/2.7.0/cache/i18n-1.8.11.gem +0 -0
- data/vendor/bundle/ruby/2.7.0/cache/json_pure-2.6.1.gem +0 -0
- data/vendor/bundle/ruby/2.7.0/cache/lolcat-100.0.1.gem +0 -0
- data/vendor/bundle/ruby/2.7.0/cache/manpages-0.6.1.gem +0 -0
- data/vendor/bundle/ruby/2.7.0/cache/minitest-5.15.0.gem +0 -0
- data/vendor/bundle/ruby/2.7.0/cache/optimist-3.0.1.gem +0 -0
- data/vendor/bundle/ruby/2.7.0/cache/paint-2.2.1.gem +0 -0
- data/vendor/bundle/ruby/2.7.0/cache/power_assert-2.0.1.gem +0 -0
- data/vendor/bundle/ruby/2.7.0/cache/psych-4.0.3.gem +0 -0
- data/vendor/bundle/ruby/2.7.0/cache/rake-13.0.6.gem +0 -0
- data/vendor/bundle/ruby/2.7.0/cache/rdoc-6.4.0.gem +0 -0
- data/vendor/bundle/ruby/2.7.0/cache/rubyforge-2.0.4.gem +0 -0
- data/vendor/bundle/ruby/2.7.0/cache/stringio-3.0.0.gem +0 -0
- data/vendor/bundle/ruby/2.7.0/cache/test-unit-3.5.3.gem +0 -0
- data/vendor/bundle/ruby/2.7.0/cache/tzinfo-2.0.4.gem +0 -0
- data/vendor/bundle/ruby/2.7.0/cache/zeitwerk-2.5.3.gem +0 -0
- data/vendor/bundle/ruby/2.7.0/extensions/x86_64-darwin-20/2.7.0/psych-4.0.3/gem.build_complete +0 -0
- data/vendor/bundle/ruby/2.7.0/extensions/x86_64-darwin-20/2.7.0/psych-4.0.3/gem_make.out +41 -0
- data/vendor/bundle/ruby/2.7.0/extensions/x86_64-darwin-20/2.7.0/psych-4.0.3/psych.bundle +0 -0
- data/vendor/bundle/ruby/2.7.0/extensions/x86_64-darwin-20/2.7.0/stringio-3.0.0/gem.build_complete +0 -0
- data/vendor/bundle/ruby/2.7.0/extensions/x86_64-darwin-20/2.7.0/stringio-3.0.0/gem_make.out +137 -0
- data/vendor/bundle/ruby/2.7.0/extensions/x86_64-darwin-20/2.7.0/stringio-3.0.0/stringio.bundle +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/CHANGELOG.md +132 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/MIT-LICENSE +21 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/README.rdoc +266 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/attribute/user_provided_default.rb +51 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/attribute.rb +248 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/attribute_assignment.rb +55 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/attribute_methods.rb +555 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/attribute_mutation_tracker.rb +181 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/attribute_set/builder.rb +191 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/attribute_set/yaml_encoder.rb +40 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/attribute_set.rb +106 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/attributes.rb +132 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/callbacks.rb +155 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/conversion.rb +111 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/dirty.rb +293 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/error.rb +207 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/errors.rb +709 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/forbidden_attributes_protection.rb +31 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/gem_version.rb +17 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/lint.rb +118 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/locale/en.yml +36 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/model.rb +99 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/naming.rb +333 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/nested_error.rb +22 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/railtie.rb +20 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/secure_password.rb +128 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/serialization.rb +194 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/serializers/json.rb +154 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/translation.rb +70 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/type/big_integer.rb +14 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/type/binary.rb +52 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/type/boolean.rb +46 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/type/date.rb +52 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/type/date_time.rb +46 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/type/decimal.rb +69 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/type/float.rb +35 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/type/helpers/accepts_multiparameter_time.rb +49 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/type/helpers/mutable.rb +20 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/type/helpers/numeric.rb +48 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/type/helpers/time_value.rb +90 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/type/helpers/timezone.rb +19 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/type/helpers.rb +7 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/type/immutable_string.rb +35 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/type/integer.rb +67 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/type/registry.rb +70 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/type/string.rb +35 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/type/time.rb +46 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/type/value.rb +133 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/type.rb +53 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/validations/absence.rb +33 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/validations/acceptance.rb +113 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/validations/callbacks.rb +121 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/validations/clusivity.rb +57 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/validations/confirmation.rb +80 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/validations/exclusion.rb +49 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/validations/format.rb +113 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/validations/helper_methods.rb +15 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/validations/inclusion.rb +47 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/validations/length.rb +129 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/validations/numericality.rb +203 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/validations/presence.rb +39 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/validations/validates.rb +175 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/validations/with.rb +147 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/validations.rb +436 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/validator.rb +188 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model/version.rb +10 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-6.1.4.4/lib/active_model.rb +78 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-serializers-xml-1.0.2/CONTRIBUTING.md +99 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-serializers-xml-1.0.2/Gemfile +4 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-serializers-xml-1.0.2/MIT-LICENSE +21 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-serializers-xml-1.0.2/README.md +89 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-serializers-xml-1.0.2/Rakefile +10 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-serializers-xml-1.0.2/activemodel-serializers-xml.gemspec +25 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-serializers-xml-1.0.2/lib/active_model/serializers/version.rb +5 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-serializers-xml-1.0.2/lib/active_model/serializers/xml.rb +238 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-serializers-xml-1.0.2/lib/active_model/serializers.rb +23 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-serializers-xml-1.0.2/lib/active_record/serializers/xml_serializer.rb +194 -0
- data/vendor/bundle/ruby/2.7.0/gems/activemodel-serializers-xml-1.0.2/lib/activemodel-serializers-xml.rb +1 -0
- data/vendor/bundle/ruby/2.7.0/gems/activeresource-5.1.1/MIT-LICENSE +20 -0
- data/vendor/bundle/ruby/2.7.0/gems/activeresource-5.1.1/README.rdoc +285 -0
- data/vendor/bundle/ruby/2.7.0/gems/activeresource-5.1.1/lib/active_resource/active_job_serializer.rb +26 -0
- data/vendor/bundle/ruby/2.7.0/gems/activeresource-5.1.1/lib/active_resource/associations/builder/association.rb +33 -0
- data/vendor/bundle/ruby/2.7.0/gems/activeresource-5.1.1/lib/active_resource/associations/builder/belongs_to.rb +16 -0
- data/vendor/bundle/ruby/2.7.0/gems/activeresource-5.1.1/lib/active_resource/associations/builder/has_many.rb +14 -0
- data/vendor/bundle/ruby/2.7.0/gems/activeresource-5.1.1/lib/active_resource/associations/builder/has_one.rb +14 -0
- data/vendor/bundle/ruby/2.7.0/gems/activeresource-5.1.1/lib/active_resource/associations.rb +175 -0
- data/vendor/bundle/ruby/2.7.0/gems/activeresource-5.1.1/lib/active_resource/base.rb +1695 -0
- data/vendor/bundle/ruby/2.7.0/gems/activeresource-5.1.1/lib/active_resource/callbacks.rb +22 -0
- data/vendor/bundle/ruby/2.7.0/gems/activeresource-5.1.1/lib/active_resource/collection.rb +94 -0
- data/vendor/bundle/ruby/2.7.0/gems/activeresource-5.1.1/lib/active_resource/connection.rb +294 -0
- data/vendor/bundle/ruby/2.7.0/gems/activeresource-5.1.1/lib/active_resource/custom_methods.rb +129 -0
- data/vendor/bundle/ruby/2.7.0/gems/activeresource-5.1.1/lib/active_resource/exceptions.rb +84 -0
- data/vendor/bundle/ruby/2.7.0/gems/activeresource-5.1.1/lib/active_resource/formats/json_format.rb +28 -0
- data/vendor/bundle/ruby/2.7.0/gems/activeresource-5.1.1/lib/active_resource/formats/xml_format.rb +27 -0
- data/vendor/bundle/ruby/2.7.0/gems/activeresource-5.1.1/lib/active_resource/formats.rb +24 -0
- data/vendor/bundle/ruby/2.7.0/gems/activeresource-5.1.1/lib/active_resource/http_mock.rb +373 -0
- data/vendor/bundle/ruby/2.7.0/gems/activeresource-5.1.1/lib/active_resource/log_subscriber.rb +26 -0
- data/vendor/bundle/ruby/2.7.0/gems/activeresource-5.1.1/lib/active_resource/observing.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/activeresource-5.1.1/lib/active_resource/railtie.rb +25 -0
- data/vendor/bundle/ruby/2.7.0/gems/activeresource-5.1.1/lib/active_resource/reflection.rb +78 -0
- data/vendor/bundle/ruby/2.7.0/gems/activeresource-5.1.1/lib/active_resource/schema.rb +59 -0
- data/vendor/bundle/ruby/2.7.0/gems/activeresource-5.1.1/lib/active_resource/singleton.rb +113 -0
- data/vendor/bundle/ruby/2.7.0/gems/activeresource-5.1.1/lib/active_resource/threadsafe_attributes.rb +66 -0
- data/vendor/bundle/ruby/2.7.0/gems/activeresource-5.1.1/lib/active_resource/validations.rb +176 -0
- data/vendor/bundle/ruby/2.7.0/gems/activeresource-5.1.1/lib/active_resource/version.rb +12 -0
- data/vendor/bundle/ruby/2.7.0/gems/activeresource-5.1.1/lib/active_resource.rb +46 -0
- data/vendor/bundle/ruby/2.7.0/gems/activeresource-5.1.1/lib/activeresource.rb +3 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/CHANGELOG.md +665 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/MIT-LICENSE +20 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/README.rdoc +40 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/actionable_error.rb +48 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/all.rb +5 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/array_inquirer.rb +50 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/backtrace_cleaner.rb +131 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/benchmarkable.rb +51 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/builder.rb +8 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/cache/file_store.rb +196 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/cache/mem_cache_store.rb +213 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/cache/memory_store.rb +195 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/cache/null_store.rb +48 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/cache/redis_cache_store.rb +493 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/cache/strategy/local_cache.rb +209 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/cache/strategy/local_cache_middleware.rb +45 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/cache.rb +878 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/callbacks.rb +862 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/concern.rb +215 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/concurrency/load_interlock_aware_monitor.rb +35 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/concurrency/share_lock.rb +226 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/configurable.rb +146 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/configuration_file.rb +51 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/array/access.rb +104 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/array/conversions.rb +213 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/array/extract.rb +21 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/array/extract_options.rb +31 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/array/grouping.rb +109 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/array/inquiry.rb +19 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/array/wrap.rb +48 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/array.rb +9 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/benchmark.rb +16 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/big_decimal/conversions.rb +14 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/big_decimal.rb +3 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/class/attribute.rb +131 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/class/attribute_accessors.rb +6 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/class/subclasses.rb +33 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/class.rb +4 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/date/acts_like.rb +10 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/date/blank.rb +14 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/date/calculations.rb +146 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/date/conversions.rb +97 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/date/zones.rb +8 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/date.rb +7 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/date_and_time/calculations.rb +364 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/date_and_time/compatibility.rb +31 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/date_and_time/zones.rb +40 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/date_time/acts_like.rb +16 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/date_time/blank.rb +14 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/date_time/calculations.rb +211 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/date_time/compatibility.rb +18 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/date_time/conversions.rb +106 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/date_time.rb +7 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/digest/uuid.rb +53 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/digest.rb +3 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/enumerable.rb +260 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/file/atomic.rb +70 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/file.rb +3 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/hash/conversions.rb +263 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/hash/deep_merge.rb +34 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/hash/deep_transform_values.rb +46 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/hash/except.rb +24 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/hash/indifferent_access.rb +24 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/hash/keys.rb +143 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/hash/reverse_merge.rb +25 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/hash/slice.rb +27 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/hash.rb +10 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/integer/inflections.rb +31 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/integer/multiple.rb +12 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/integer/time.rb +22 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/integer.rb +5 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/kernel/concern.rb +14 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/kernel/reporting.rb +45 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/kernel/singleton_class.rb +8 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/kernel.rb +5 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/load_error.rb +9 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/marshal.rb +26 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/module/aliasing.rb +31 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/module/anonymous.rb +30 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/module/attr_internal.rb +38 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/module/attribute_accessors.rb +206 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb +148 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/module/concerning.rb +140 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/module/delegation.rb +330 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/module/deprecation.rb +25 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/module/introspection.rb +63 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/module/redefine_method.rb +40 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/module/remove_method.rb +17 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/module.rb +13 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/name_error.rb +65 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/numeric/bytes.rb +66 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/numeric/conversions.rb +140 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/numeric/time.rb +66 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/numeric.rb +5 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/object/acts_like.rb +21 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/object/blank.rb +155 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/object/conversions.rb +6 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/object/deep_dup.rb +55 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/object/duplicable.rb +49 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/object/inclusion.rb +29 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/object/instance_variables.rb +30 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/object/json.rb +239 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/object/to_param.rb +3 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/object/to_query.rb +89 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/object/try.rb +158 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/object/with_options.rb +82 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/object.rb +16 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/range/compare_range.rb +82 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/range/conversions.rb +41 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/range/each.rb +24 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/range/include_time_with_zone.rb +28 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/range/overlaps.rb +10 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/range.rb +7 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/regexp.rb +14 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/securerandom.rb +45 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/string/access.rb +95 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/string/behavior.rb +8 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/string/conversions.rb +60 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/string/exclude.rb +13 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/string/filters.rb +145 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/string/indent.rb +45 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/string/inflections.rb +293 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/string/inquiry.rb +16 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/string/multibyte.rb +58 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/string/output_safety.rb +315 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/string/starts_ends_with.rb +6 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/string/strip.rb +27 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/string/zones.rb +16 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/string.rb +15 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/symbol/starts_ends_with.rb +14 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/symbol.rb +3 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/time/acts_like.rb +10 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/time/calculations.rb +363 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/time/compatibility.rb +16 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/time/conversions.rb +74 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/time/zones.rb +113 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/time.rb +7 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/uri.rb +29 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext.rb +5 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/current_attributes/test_helper.rb +13 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/current_attributes.rb +209 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/dependencies/autoload.rb +79 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/dependencies/interlock.rb +57 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/dependencies/zeitwerk_integration.rb +117 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/dependencies.rb +828 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/deprecation/behaviors.rb +122 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/deprecation/constant_accessor.rb +52 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/deprecation/disallowed.rb +56 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/deprecation/instance_delegator.rb +38 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/deprecation/method_wrappers.rb +85 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/deprecation/proxy_wrappers.rb +177 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/deprecation/reporting.rb +157 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/deprecation.rb +51 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/descendants_tracker.rb +112 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/digest.rb +20 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/duration/iso8601_parser.rb +123 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/duration/iso8601_serializer.rb +59 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/duration.rb +484 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/encrypted_configuration.rb +45 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/encrypted_file.rb +117 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/environment_inquirer.rb +20 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/evented_file_update_checker.rb +170 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/execution_wrapper.rb +129 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/executor.rb +8 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/file_update_checker.rb +162 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/fork_tracker.rb +64 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/gem_version.rb +17 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/gzip.rb +38 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/hash_with_indifferent_access.rb +423 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/i18n.rb +16 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/i18n_railtie.rb +125 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/inflections.rb +72 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/inflector/inflections.rb +255 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/inflector/methods.rb +401 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/inflector/transliterate.rb +147 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/inflector.rb +9 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/json/decoding.rb +75 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/json/encoding.rb +138 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/json.rb +4 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/key_generator.rb +41 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/lazy_load_hooks.rb +81 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/locale/en.rb +33 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/locale/en.yml +139 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/log_subscriber/test_helper.rb +106 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/log_subscriber.rb +142 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/logger.rb +93 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/logger_silence.rb +21 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/logger_thread_safe_level.rb +78 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/message_encryptor.rb +224 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/message_verifier.rb +205 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/messages/metadata.rb +80 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/messages/rotation_configuration.rb +23 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/messages/rotator.rb +57 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/multibyte/chars.rb +177 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/multibyte/unicode.rb +82 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/multibyte.rb +23 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/notifications/fanout.rb +259 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/notifications/instrumenter.rb +155 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/notifications.rb +280 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/number_helper/number_converter.rb +183 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/number_helper/number_to_currency_converter.rb +41 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/number_helper/number_to_delimited_converter.rb +30 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/number_helper/number_to_human_converter.rb +69 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/number_helper/number_to_human_size_converter.rb +60 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/number_helper/number_to_percentage_converter.rb +16 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/number_helper/number_to_phone_converter.rb +59 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/number_helper/number_to_rounded_converter.rb +59 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/number_helper/rounding_helper.rb +50 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/number_helper.rb +397 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/option_merger.rb +46 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/ordered_hash.rb +50 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/ordered_options.rb +95 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/parameter_filter.rb +133 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/per_thread_registry.rb +60 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/proxy_object.rb +15 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/rails.rb +26 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/railtie.rb +102 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/reloader.rb +130 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/rescuable.rb +174 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/secure_compare_rotator.rb +51 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/security_utils.rb +38 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/string_inquirer.rb +35 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/subscriber.rb +174 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/tagged_logging.rb +113 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/test_case.rb +163 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/testing/assertions.rb +235 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/testing/autorun.rb +7 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/testing/constant_lookup.rb +51 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/testing/declarative.rb +28 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/testing/deprecation.rb +38 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/testing/file_fixtures.rb +38 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/testing/isolation.rb +110 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/testing/method_call_assertions.rb +70 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/testing/parallelization/server.rb +78 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/testing/parallelization/worker.rb +100 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/testing/parallelization.rb +51 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/testing/setup_and_teardown.rb +55 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/testing/stream.rb +43 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/testing/tagged_logging.rb +27 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/testing/time_helpers.rb +235 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/time.rb +20 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/time_with_zone.rb +585 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/values/time_zone.rb +580 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/version.rb +10 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/xml_mini/jdom.rb +182 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/xml_mini/libxml.rb +80 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/xml_mini/libxmlsax.rb +83 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/xml_mini/nokogiri.rb +83 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/xml_mini/nokogirisax.rb +86 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/xml_mini/rexml.rb +137 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/xml_mini.rb +201 -0
- data/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support.rb +108 -0
- data/vendor/bundle/ruby/2.7.0/gems/allison-2.0.3/CHANGELOG +18 -0
- data/vendor/bundle/ruby/2.7.0/gems/allison-2.0.3/LICENSE +184 -0
- data/vendor/bundle/ruby/2.7.0/gems/allison-2.0.3/Manifest +24 -0
- data/vendor/bundle/ruby/2.7.0/gems/allison-2.0.3/README +67 -0
- data/vendor/bundle/ruby/2.7.0/gems/allison-2.0.3/allison.gemspec +48 -0
- data/vendor/bundle/ruby/2.7.0/gems/allison-2.0.3/bin/allison +9 -0
- data/vendor/bundle/ruby/2.7.0/gems/allison-2.0.3/cache/BODY +570 -0
- data/vendor/bundle/ruby/2.7.0/gems/allison-2.0.3/cache/CLASS_INDEX +4 -0
- data/vendor/bundle/ruby/2.7.0/gems/allison-2.0.3/cache/CLASS_PAGE +1 -0
- data/vendor/bundle/ruby/2.7.0/gems/allison-2.0.3/cache/FILE_INDEX +4 -0
- data/vendor/bundle/ruby/2.7.0/gems/allison-2.0.3/cache/FILE_PAGE +1 -0
- data/vendor/bundle/ruby/2.7.0/gems/allison-2.0.3/cache/FONTS +1 -0
- data/vendor/bundle/ruby/2.7.0/gems/allison-2.0.3/cache/FR_INDEX_BODY +1 -0
- data/vendor/bundle/ruby/2.7.0/gems/allison-2.0.3/cache/INDEX +1 -0
- data/vendor/bundle/ruby/2.7.0/gems/allison-2.0.3/cache/JAVASCRIPT +316 -0
- data/vendor/bundle/ruby/2.7.0/gems/allison-2.0.3/cache/METHOD_INDEX +4 -0
- data/vendor/bundle/ruby/2.7.0/gems/allison-2.0.3/cache/METHOD_LIST +1 -0
- data/vendor/bundle/ruby/2.7.0/gems/allison-2.0.3/cache/SRC_PAGE +1 -0
- data/vendor/bundle/ruby/2.7.0/gems/allison-2.0.3/cache/STYLE +320 -0
- data/vendor/bundle/ruby/2.7.0/gems/allison-2.0.3/contrib/Rakefile +147 -0
- data/vendor/bundle/ruby/2.7.0/gems/allison-2.0.3/contrib/rdoc_patch.rb +252 -0
- data/vendor/bundle/ruby/2.7.0/gems/allison-2.0.3/contrib/rdoc_patch_test.rb +95 -0
- data/vendor/bundle/ruby/2.7.0/gems/allison-2.0.3/lib/allison.css +314 -0
- data/vendor/bundle/ruby/2.7.0/gems/allison-2.0.3/lib/allison.js +316 -0
- data/vendor/bundle/ruby/2.7.0/gems/allison-2.0.3/lib/allison.rb +276 -0
- data/vendor/bundle/ruby/2.7.0/gems/builder-3.2.4/CHANGES +119 -0
- data/vendor/bundle/ruby/2.7.0/gems/builder-3.2.4/MIT-LICENSE +20 -0
- data/vendor/bundle/ruby/2.7.0/gems/builder-3.2.4/README.md +258 -0
- data/vendor/bundle/ruby/2.7.0/gems/builder-3.2.4/Rakefile +194 -0
- data/vendor/bundle/ruby/2.7.0/gems/builder-3.2.4/builder.blurb +27 -0
- data/vendor/bundle/ruby/2.7.0/gems/builder-3.2.4/builder.gemspec +45 -0
- data/vendor/bundle/ruby/2.7.0/gems/builder-3.2.4/doc/jamis.rb +592 -0
- data/vendor/bundle/ruby/2.7.0/gems/builder-3.2.4/doc/releases/builder-1.2.4.rdoc +31 -0
- data/vendor/bundle/ruby/2.7.0/gems/builder-3.2.4/doc/releases/builder-2.0.0.rdoc +46 -0
- data/vendor/bundle/ruby/2.7.0/gems/builder-3.2.4/doc/releases/builder-2.1.1.rdoc +58 -0
- data/vendor/bundle/ruby/2.7.0/gems/builder-3.2.4/lib/blankslate.rb +138 -0
- data/vendor/bundle/ruby/2.7.0/gems/builder-3.2.4/lib/builder/blankslate.rb +24 -0
- data/vendor/bundle/ruby/2.7.0/gems/builder-3.2.4/lib/builder/version.rb +9 -0
- data/vendor/bundle/ruby/2.7.0/gems/builder-3.2.4/lib/builder/xchar.rb +198 -0
- data/vendor/bundle/ruby/2.7.0/gems/builder-3.2.4/lib/builder/xmlbase.rb +200 -0
- data/vendor/bundle/ruby/2.7.0/gems/builder-3.2.4/lib/builder/xmlevents.rb +64 -0
- data/vendor/bundle/ruby/2.7.0/gems/builder-3.2.4/lib/builder/xmlmarkup.rb +345 -0
- data/vendor/bundle/ruby/2.7.0/gems/builder-3.2.4/lib/builder.rb +14 -0
- data/vendor/bundle/ruby/2.7.0/gems/builder-3.2.4/rakelib/publish.rake +21 -0
- data/vendor/bundle/ruby/2.7.0/gems/builder-3.2.4/rakelib/tags.rake +63 -0
- data/vendor/bundle/ruby/2.7.0/gems/builder-3.2.4/rakelib/testing.rake +8 -0
- data/vendor/bundle/ruby/2.7.0/gems/builder-3.2.4/test/helper.rb +13 -0
- data/vendor/bundle/ruby/2.7.0/gems/builder-3.2.4/test/performance.rb +42 -0
- data/vendor/bundle/ruby/2.7.0/gems/builder-3.2.4/test/preload.rb +40 -0
- data/vendor/bundle/ruby/2.7.0/gems/builder-3.2.4/test/test_blankslate.rb +208 -0
- data/vendor/bundle/ruby/2.7.0/gems/builder-3.2.4/test/test_eventbuilder.rb +151 -0
- data/vendor/bundle/ruby/2.7.0/gems/builder-3.2.4/test/test_markupbuilder.rb +617 -0
- data/vendor/bundle/ruby/2.7.0/gems/builder-3.2.4/test/test_method_caching.rb +63 -0
- data/vendor/bundle/ruby/2.7.0/gems/builder-3.2.4/test/test_namecollision.rb +40 -0
- data/vendor/bundle/ruby/2.7.0/gems/builder-3.2.4/test/test_xchar.rb +85 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/CHANGELOG.md +528 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/Gemfile +42 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/LICENSE.txt +21 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/README.md +408 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/Rakefile +339 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/ext/concurrent-ruby/ConcurrentRubyService.java +17 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/ext/concurrent-ruby/com/concurrent_ruby/ext/AtomicReferenceLibrary.java +175 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/ext/concurrent-ruby/com/concurrent_ruby/ext/JRubyMapBackendLibrary.java +248 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/ext/concurrent-ruby/com/concurrent_ruby/ext/JavaAtomicBooleanLibrary.java +93 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/ext/concurrent-ruby/com/concurrent_ruby/ext/JavaAtomicFixnumLibrary.java +113 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/ext/concurrent-ruby/com/concurrent_ruby/ext/JavaSemaphoreLibrary.java +159 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/ext/concurrent-ruby/com/concurrent_ruby/ext/SynchronizationLibrary.java +307 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/ext/concurrent-ruby/com/concurrent_ruby/ext/jsr166e/ConcurrentHashMap.java +31 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/ext/concurrent-ruby/com/concurrent_ruby/ext/jsr166e/ConcurrentHashMapV8.java +3863 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/ext/concurrent-ruby/com/concurrent_ruby/ext/jsr166e/LongAdder.java +203 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/ext/concurrent-ruby/com/concurrent_ruby/ext/jsr166e/Striped64.java +342 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/ext/concurrent-ruby/com/concurrent_ruby/ext/jsr166e/nounsafe/ConcurrentHashMapV8.java +3800 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/ext/concurrent-ruby/com/concurrent_ruby/ext/jsr166e/nounsafe/LongAdder.java +204 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/ext/concurrent-ruby/com/concurrent_ruby/ext/jsr166e/nounsafe/Striped64.java +291 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/ext/concurrent-ruby/com/concurrent_ruby/ext/jsr166y/ThreadLocalRandom.java +199 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/agent.rb +587 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/array.rb +66 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/async.rb +448 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/atom.rb +222 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/atomic/abstract_thread_local_var.rb +66 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/atomic/atomic_boolean.rb +126 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/atomic/atomic_fixnum.rb +143 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb +164 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/atomic/atomic_reference.rb +204 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/atomic/count_down_latch.rb +100 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/atomic/cyclic_barrier.rb +128 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/atomic/event.rb +109 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/atomic/java_count_down_latch.rb +42 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/atomic/java_thread_local_var.rb +37 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/atomic/mutex_atomic_boolean.rb +62 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/atomic/mutex_atomic_fixnum.rb +75 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/atomic/mutex_count_down_latch.rb +44 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/atomic/mutex_semaphore.rb +115 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/atomic/read_write_lock.rb +254 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/atomic/reentrant_read_write_lock.rb +379 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/atomic/ruby_thread_local_var.rb +181 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/atomic/semaphore.rb +145 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/atomic/thread_local_var.rb +104 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/atomic_reference/mutex_atomic.rb +56 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/atomic_reference/numeric_cas_wrapper.rb +28 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/atomics.rb +10 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/collection/copy_on_notify_observer_set.rb +107 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/collection/copy_on_write_observer_set.rb +111 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/collection/java_non_concurrent_priority_queue.rb +84 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb +158 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/collection/map/atomic_reference_map_backend.rb +927 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/collection/map/mri_map_backend.rb +66 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/collection/map/non_concurrent_map_backend.rb +140 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/collection/map/synchronized_map_backend.rb +82 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/collection/map/truffleruby_map_backend.rb +14 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/collection/non_concurrent_priority_queue.rb +143 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb +160 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/concern/deprecation.rb +34 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/concern/dereferenceable.rb +73 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/concern/logging.rb +32 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/concern/obligation.rb +220 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/concern/observable.rb +110 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/concurrent_ruby.jar +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/configuration.rb +188 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/constants.rb +8 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/dataflow.rb +81 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/delay.rb +199 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/errors.rb +69 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/exchanger.rb +352 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executor/abstract_executor_service.rb +128 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executor/cached_thread_pool.rb +62 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executor/executor_service.rb +185 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executor/fixed_thread_pool.rb +210 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executor/immediate_executor.rb +66 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executor/indirect_immediate_executor.rb +44 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executor/java_executor_service.rb +103 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executor/java_single_thread_executor.rb +30 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executor/java_thread_pool_executor.rb +136 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executor/ruby_executor_service.rb +76 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executor/ruby_single_thread_executor.rb +21 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb +377 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executor/safe_task_executor.rb +35 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executor/serial_executor_service.rb +34 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executor/serialized_execution.rb +107 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executor/serialized_execution_delegator.rb +28 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executor/simple_executor_service.rb +100 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executor/single_thread_executor.rb +57 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executor/thread_pool_executor.rb +88 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executor/timer_set.rb +172 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executors.rb +20 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/future.rb +141 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/hash.rb +59 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/immutable_struct.rb +101 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/ivar.rb +207 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/map.rb +347 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/maybe.rb +229 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/mutable_struct.rb +239 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/mvar.rb +242 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/options.rb +42 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/promise.rb +580 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/promises.rb +2167 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/re_include.rb +58 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/scheduled_task.rb +318 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/set.rb +74 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/settable_struct.rb +139 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/synchronization/abstract_lockable_object.rb +98 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/synchronization/abstract_object.rb +24 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/synchronization/abstract_struct.rb +171 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/synchronization/condition.rb +60 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/synchronization/jruby_lockable_object.rb +13 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/synchronization/jruby_object.rb +45 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/synchronization/lock.rb +36 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/synchronization/lockable_object.rb +74 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/synchronization/mri_object.rb +44 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb +88 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/synchronization/object.rb +183 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/synchronization/rbx_lockable_object.rb +71 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/synchronization/rbx_object.rb +49 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/synchronization/truffleruby_object.rb +47 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/synchronization/volatile.rb +36 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/synchronization.rb +30 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/thread_safe/synchronized_delegator.rb +50 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/thread_safe/util/adder.rb +74 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/thread_safe/util/cheap_lockable.rb +118 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb +88 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/thread_safe/util/power_of_two_tuple.rb +38 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/thread_safe/util/striped64.rb +246 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/thread_safe/util/volatile.rb +75 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/thread_safe/util/xor_shift_random.rb +50 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/thread_safe/util.rb +16 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/timer_task.rb +333 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/tuple.rb +86 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/tvar.rb +261 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/utility/engine.rb +56 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/utility/monotonic_time.rb +58 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/utility/native_extension_loader.rb +79 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/utility/native_integer.rb +53 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/utility/processor_counter.rb +163 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/version.rb +3 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent-ruby.rb +1 -0
- data/vendor/bundle/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent.rb +134 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.0/CHANGELOG +101 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.0/LICENSE +184 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.0/MIT-LICENSE +21 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.0/Manifest +18 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.0/README +97 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.0/Rakefile +13 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.0/echoe.gemspec +46 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.0/lib/echoe/extensions.rb +61 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.0/lib/echoe/platform.rb +36 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.0/lib/echoe/rubygems.rb +41 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.0/lib/echoe.rb +796 -0
- data/{LICENSE → vendor/bundle/ruby/2.7.0/gems/echoe-4.6.0/vendor/rake/MIT-LICENSE} +1 -1
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.0/vendor/rake/lib/rake/contrib/compositepublisher.rb +24 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.0/vendor/rake/lib/rake/contrib/ftptools.rb +153 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.0/vendor/rake/lib/rake/contrib/publisher.rb +75 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.0/vendor/rake/lib/rake/contrib/rubyforgepublisher.rb +18 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.0/vendor/rake/lib/rake/contrib/sshpublisher.rb +43 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.0/vendor/rake/lib/rake/contrib/sys.rb +209 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.3/CHANGELOG +107 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.3/LICENSE +184 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.3/MIT-LICENSE +21 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.3/Manifest +18 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.3/README +97 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.3/Rakefile +13 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.3/echoe.gemspec +46 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.3/lib/echoe/extensions.rb +61 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.3/lib/echoe/platform.rb +37 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.3/lib/echoe/rubygems.rb +41 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.3/lib/echoe.rb +795 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.3/vendor/rake/MIT-LICENSE +21 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.3/vendor/rake/lib/rake/contrib/compositepublisher.rb +24 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.3/vendor/rake/lib/rake/contrib/ftptools.rb +153 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.3/vendor/rake/lib/rake/contrib/publisher.rb +75 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.3/vendor/rake/lib/rake/contrib/rubyforgepublisher.rb +18 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.3/vendor/rake/lib/rake/contrib/sshpublisher.rb +43 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.3/vendor/rake/lib/rake/contrib/sys.rb +209 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.5/CHANGELOG +111 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.5/LICENSE +184 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.5/MIT-LICENSE +21 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.5/Manifest +19 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.5/README.rdoc +97 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.5/Rakefile +15 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.5/echoe.gemspec +45 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.5/echoe.pem +21 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.5/lib/echoe/extensions.rb +61 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.5/lib/echoe/platform.rb +37 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.5/lib/echoe/rubygems.rb +41 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.5/lib/echoe.rb +793 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.5/vendor/rake/MIT-LICENSE +21 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.5/vendor/rake/lib/rake/contrib/compositepublisher.rb +24 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.5/vendor/rake/lib/rake/contrib/ftptools.rb +153 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.5/vendor/rake/lib/rake/contrib/publisher.rb +75 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.5/vendor/rake/lib/rake/contrib/rubyforgepublisher.rb +18 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.5/vendor/rake/lib/rake/contrib/sshpublisher.rb +43 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.5/vendor/rake/lib/rake/contrib/sys.rb +209 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.6/CHANGELOG +113 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.6/LICENSE +184 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.6/MIT-LICENSE +21 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.6/Manifest +19 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.6/README.rdoc +97 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.6/Rakefile +15 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.6/echoe.gemspec +45 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.6/echoe.pem +21 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.6/lib/echoe/extensions.rb +61 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.6/lib/echoe/platform.rb +37 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.6/lib/echoe/rubygems.rb +41 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.6/lib/echoe.rb +793 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.6/vendor/rake/MIT-LICENSE +21 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.6/vendor/rake/lib/rake/contrib/compositepublisher.rb +24 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.6/vendor/rake/lib/rake/contrib/ftptools.rb +153 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.6/vendor/rake/lib/rake/contrib/publisher.rb +75 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.6/vendor/rake/lib/rake/contrib/rubyforgepublisher.rb +18 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.6/vendor/rake/lib/rake/contrib/sshpublisher.rb +43 -0
- data/vendor/bundle/ruby/2.7.0/gems/echoe-4.6.6/vendor/rake/lib/rake/contrib/sys.rb +209 -0
- data/vendor/bundle/ruby/2.7.0/gems/gemcutter-0.7.1/Gemfile +7 -0
- data/vendor/bundle/ruby/2.7.0/gems/gemcutter-0.7.1/MIT-LICENSE +22 -0
- data/vendor/bundle/ruby/2.7.0/gems/gemcutter-0.7.1/README.md +99 -0
- data/vendor/bundle/ruby/2.7.0/gems/gemcutter-0.7.1/Rakefile +13 -0
- data/vendor/bundle/ruby/2.7.0/gems/gemcutter-0.7.1/lib/gemcutter/version.rb +3 -0
- data/vendor/bundle/ruby/2.7.0/gems/gemcutter-0.7.1/lib/rubygems/commands/migrate_command.rb +14 -0
- data/vendor/bundle/ruby/2.7.0/gems/gemcutter-0.7.1/lib/rubygems/commands/tumble_command.rb +13 -0
- data/vendor/bundle/ruby/2.7.0/gems/gemcutter-0.7.1/lib/rubygems/commands/webhook_command.rb +117 -0
- data/vendor/bundle/ruby/2.7.0/gems/gemcutter-0.7.1/lib/rubygems/commands/yank_command.rb +86 -0
- data/vendor/bundle/ruby/2.7.0/gems/gemcutter-0.7.1/lib/rubygems_plugin.rb +7 -0
- data/vendor/bundle/ruby/2.7.0/gems/gemcutter-0.7.1/test/helper.rb +41 -0
- data/vendor/bundle/ruby/2.7.0/gems/gemcutter-0.7.1/test/webhook_command_test.rb +240 -0
- data/vendor/bundle/ruby/2.7.0/gems/gemcutter-0.7.1/test/yank_command_test.rb +157 -0
- data/vendor/bundle/ruby/2.7.0/gems/i18n-1.8.11/MIT-LICENSE +20 -0
- data/vendor/bundle/ruby/2.7.0/gems/i18n-1.8.11/README.md +122 -0
- data/vendor/bundle/ruby/2.7.0/gems/i18n-1.8.11/lib/i18n/backend/base.rb +289 -0
- data/vendor/bundle/ruby/2.7.0/gems/i18n-1.8.11/lib/i18n/backend/cache.rb +113 -0
- data/vendor/bundle/ruby/2.7.0/gems/i18n-1.8.11/lib/i18n/backend/cache_file.rb +36 -0
- data/vendor/bundle/ruby/2.7.0/gems/i18n-1.8.11/lib/i18n/backend/cascade.rb +56 -0
- data/vendor/bundle/ruby/2.7.0/gems/i18n-1.8.11/lib/i18n/backend/chain.rb +130 -0
- data/vendor/bundle/ruby/2.7.0/gems/i18n-1.8.11/lib/i18n/backend/fallbacks.rb +97 -0
- data/vendor/bundle/ruby/2.7.0/gems/i18n-1.8.11/lib/i18n/backend/flatten.rb +118 -0
- data/vendor/bundle/ruby/2.7.0/gems/i18n-1.8.11/lib/i18n/backend/gettext.rb +85 -0
- data/vendor/bundle/ruby/2.7.0/gems/i18n-1.8.11/lib/i18n/backend/interpolation_compiler.rb +123 -0
- data/vendor/bundle/ruby/2.7.0/gems/i18n-1.8.11/lib/i18n/backend/key_value.rb +206 -0
- data/vendor/bundle/ruby/2.7.0/gems/i18n-1.8.11/lib/i18n/backend/memoize.rb +54 -0
- data/vendor/bundle/ruby/2.7.0/gems/i18n-1.8.11/lib/i18n/backend/metadata.rb +71 -0
- data/vendor/bundle/ruby/2.7.0/gems/i18n-1.8.11/lib/i18n/backend/pluralization.rb +55 -0
- data/vendor/bundle/ruby/2.7.0/gems/i18n-1.8.11/lib/i18n/backend/simple.rb +108 -0
- data/vendor/bundle/ruby/2.7.0/gems/i18n-1.8.11/lib/i18n/backend/transliterator.rb +108 -0
- data/vendor/bundle/ruby/2.7.0/gems/i18n-1.8.11/lib/i18n/backend.rb +21 -0
- data/vendor/bundle/ruby/2.7.0/gems/i18n-1.8.11/lib/i18n/config.rb +165 -0
- data/vendor/bundle/ruby/2.7.0/gems/i18n-1.8.11/lib/i18n/core_ext/hash.rb +59 -0
- data/vendor/bundle/ruby/2.7.0/gems/i18n-1.8.11/lib/i18n/exceptions.rb +111 -0
- data/vendor/bundle/ruby/2.7.0/gems/i18n-1.8.11/lib/i18n/gettext/helpers.rb +75 -0
- data/vendor/bundle/ruby/2.7.0/gems/i18n-1.8.11/lib/i18n/gettext/po_parser.rb +329 -0
- data/vendor/bundle/ruby/2.7.0/gems/i18n-1.8.11/lib/i18n/gettext.rb +28 -0
- data/vendor/bundle/ruby/2.7.0/gems/i18n-1.8.11/lib/i18n/interpolate/ruby.rb +39 -0
- data/vendor/bundle/ruby/2.7.0/gems/i18n-1.8.11/lib/i18n/locale/fallbacks.rb +99 -0
- data/vendor/bundle/ruby/2.7.0/gems/i18n-1.8.11/lib/i18n/locale/tag/parents.rb +24 -0
- data/vendor/bundle/ruby/2.7.0/gems/i18n-1.8.11/lib/i18n/locale/tag/rfc4646.rb +74 -0
- data/vendor/bundle/ruby/2.7.0/gems/i18n-1.8.11/lib/i18n/locale/tag/simple.rb +39 -0
- data/vendor/bundle/ruby/2.7.0/gems/i18n-1.8.11/lib/i18n/locale/tag.rb +28 -0
- data/vendor/bundle/ruby/2.7.0/gems/i18n-1.8.11/lib/i18n/locale.rb +8 -0
- data/vendor/bundle/ruby/2.7.0/gems/i18n-1.8.11/lib/i18n/middleware.rb +17 -0
- data/vendor/bundle/ruby/2.7.0/gems/i18n-1.8.11/lib/i18n/tests/basics.rb +60 -0
- data/vendor/bundle/ruby/2.7.0/gems/i18n-1.8.11/lib/i18n/tests/defaults.rb +52 -0
- data/vendor/bundle/ruby/2.7.0/gems/i18n-1.8.11/lib/i18n/tests/interpolation.rb +163 -0
- data/vendor/bundle/ruby/2.7.0/gems/i18n-1.8.11/lib/i18n/tests/link.rb +66 -0
- data/vendor/bundle/ruby/2.7.0/gems/i18n-1.8.11/lib/i18n/tests/localization/date.rb +117 -0
- data/vendor/bundle/ruby/2.7.0/gems/i18n-1.8.11/lib/i18n/tests/localization/date_time.rb +103 -0
- data/vendor/bundle/ruby/2.7.0/gems/i18n-1.8.11/lib/i18n/tests/localization/procs.rb +117 -0
- data/vendor/bundle/ruby/2.7.0/gems/i18n-1.8.11/lib/i18n/tests/localization/time.rb +103 -0
- data/vendor/bundle/ruby/2.7.0/gems/i18n-1.8.11/lib/i18n/tests/localization.rb +19 -0
- data/vendor/bundle/ruby/2.7.0/gems/i18n-1.8.11/lib/i18n/tests/lookup.rb +81 -0
- data/vendor/bundle/ruby/2.7.0/gems/i18n-1.8.11/lib/i18n/tests/pluralization.rb +35 -0
- data/vendor/bundle/ruby/2.7.0/gems/i18n-1.8.11/lib/i18n/tests/procs.rb +60 -0
- data/vendor/bundle/ruby/2.7.0/gems/i18n-1.8.11/lib/i18n/tests.rb +14 -0
- data/vendor/bundle/ruby/2.7.0/gems/i18n-1.8.11/lib/i18n/version.rb +5 -0
- data/vendor/bundle/ruby/2.7.0/gems/i18n-1.8.11/lib/i18n.rb +415 -0
- data/vendor/bundle/ruby/2.7.0/gems/json_pure-2.6.1/CHANGES.md +457 -0
- data/vendor/bundle/ruby/2.7.0/gems/json_pure-2.6.1/LICENSE +56 -0
- data/vendor/bundle/ruby/2.7.0/gems/json_pure-2.6.1/README.md +425 -0
- data/vendor/bundle/ruby/2.7.0/gems/json_pure-2.6.1/VERSION +1 -0
- data/vendor/bundle/ruby/2.7.0/gems/json_pure-2.6.1/json_pure.gemspec +55 -0
- data/vendor/bundle/ruby/2.7.0/gems/json_pure-2.6.1/lib/json/add/bigdecimal.rb +29 -0
- data/vendor/bundle/ruby/2.7.0/gems/json_pure-2.6.1/lib/json/add/complex.rb +28 -0
- data/vendor/bundle/ruby/2.7.0/gems/json_pure-2.6.1/lib/json/add/core.rb +12 -0
- data/vendor/bundle/ruby/2.7.0/gems/json_pure-2.6.1/lib/json/add/date.rb +34 -0
- data/vendor/bundle/ruby/2.7.0/gems/json_pure-2.6.1/lib/json/add/date_time.rb +50 -0
- data/vendor/bundle/ruby/2.7.0/gems/json_pure-2.6.1/lib/json/add/exception.rb +31 -0
- data/vendor/bundle/ruby/2.7.0/gems/json_pure-2.6.1/lib/json/add/ostruct.rb +31 -0
- data/vendor/bundle/ruby/2.7.0/gems/json_pure-2.6.1/lib/json/add/range.rb +29 -0
- data/vendor/bundle/ruby/2.7.0/gems/json_pure-2.6.1/lib/json/add/rational.rb +27 -0
- data/vendor/bundle/ruby/2.7.0/gems/json_pure-2.6.1/lib/json/add/regexp.rb +30 -0
- data/vendor/bundle/ruby/2.7.0/gems/json_pure-2.6.1/lib/json/add/set.rb +29 -0
- data/vendor/bundle/ruby/2.7.0/gems/json_pure-2.6.1/lib/json/add/struct.rb +30 -0
- data/vendor/bundle/ruby/2.7.0/gems/json_pure-2.6.1/lib/json/add/symbol.rb +25 -0
- data/vendor/bundle/ruby/2.7.0/gems/json_pure-2.6.1/lib/json/add/time.rb +38 -0
- data/vendor/bundle/ruby/2.7.0/gems/json_pure-2.6.1/lib/json/common.rb +703 -0
- data/vendor/bundle/ruby/2.7.0/gems/json_pure-2.6.1/lib/json/ext.rb +15 -0
- data/vendor/bundle/ruby/2.7.0/gems/json_pure-2.6.1/lib/json/generic_object.rb +71 -0
- data/vendor/bundle/ruby/2.7.0/gems/json_pure-2.6.1/lib/json/pure/generator.rb +479 -0
- data/vendor/bundle/ruby/2.7.0/gems/json_pure-2.6.1/lib/json/pure/parser.rb +337 -0
- data/vendor/bundle/ruby/2.7.0/gems/json_pure-2.6.1/lib/json/pure.rb +15 -0
- data/vendor/bundle/ruby/2.7.0/gems/json_pure-2.6.1/lib/json/version.rb +9 -0
- data/vendor/bundle/ruby/2.7.0/gems/json_pure-2.6.1/lib/json.rb +583 -0
- data/vendor/bundle/ruby/2.7.0/gems/lolcat-100.0.1/Gemfile +2 -0
- data/vendor/bundle/ruby/2.7.0/gems/lolcat-100.0.1/LICENSE +25 -0
- data/vendor/bundle/ruby/2.7.0/gems/lolcat-100.0.1/README.md +19 -0
- data/vendor/bundle/ruby/2.7.0/gems/lolcat-100.0.1/Rakefile +1 -0
- data/vendor/bundle/ruby/2.7.0/gems/lolcat-100.0.1/ass/nom.jpg +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/lolcat-100.0.1/ass/screenshot.png +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/lolcat-100.0.1/bin/lolcat +32 -0
- data/vendor/bundle/ruby/2.7.0/gems/lolcat-100.0.1/lib/lolcat/cat.rb +135 -0
- data/vendor/bundle/ruby/2.7.0/gems/lolcat-100.0.1/lib/lolcat/lol.rb +122 -0
- data/vendor/bundle/ruby/2.7.0/gems/lolcat-100.0.1/lib/lolcat/version.rb +3 -0
- data/vendor/bundle/ruby/2.7.0/gems/lolcat-100.0.1/lib/lolcat.rb +28 -0
- data/vendor/bundle/ruby/2.7.0/gems/lolcat-100.0.1/lolcat.gemspec +23 -0
- data/vendor/bundle/ruby/2.7.0/gems/lolcat-100.0.1/man/lolcat.6 +100 -0
- data/vendor/bundle/ruby/2.7.0/gems/manpages-0.6.1/CHANGELOG.md +121 -0
- data/vendor/bundle/ruby/2.7.0/gems/manpages-0.6.1/CODE_OF_CONDUCT.md +49 -0
- data/vendor/bundle/ruby/2.7.0/gems/manpages-0.6.1/Gemfile +3 -0
- data/vendor/bundle/ruby/2.7.0/gems/manpages-0.6.1/Gemfile.lock +57 -0
- data/vendor/bundle/ruby/2.7.0/gems/manpages-0.6.1/LICENSE +21 -0
- data/vendor/bundle/ruby/2.7.0/gems/manpages-0.6.1/README.md +65 -0
- data/vendor/bundle/ruby/2.7.0/gems/manpages-0.6.1/Rakefile +9 -0
- data/vendor/bundle/ruby/2.7.0/gems/manpages-0.6.1/lib/manpages/gem_version.rb +21 -0
- data/vendor/bundle/ruby/2.7.0/gems/manpages-0.6.1/lib/manpages/install.rb +35 -0
- data/vendor/bundle/ruby/2.7.0/gems/manpages-0.6.1/lib/manpages/man_files.rb +29 -0
- data/vendor/bundle/ruby/2.7.0/gems/manpages-0.6.1/lib/manpages/uninstall.rb +27 -0
- data/vendor/bundle/ruby/2.7.0/gems/manpages-0.6.1/lib/manpages/version.rb +3 -0
- data/vendor/bundle/ruby/2.7.0/gems/manpages-0.6.1/lib/manpages.rb +8 -0
- data/vendor/bundle/ruby/2.7.0/gems/manpages-0.6.1/lib/rubygems/commands/manpages_command.rb +45 -0
- data/vendor/bundle/ruby/2.7.0/gems/manpages-0.6.1/lib/rubygems_plugin.rb +20 -0
- data/vendor/bundle/ruby/2.7.0/gems/manpages-0.6.1/manpages.gemspec +30 -0
- data/vendor/bundle/ruby/2.7.0/gems/manpages-0.6.1/rbenv/hooks/install-man.bash +13 -0
- data/vendor/bundle/ruby/2.7.0/gems/manpages-0.6.1/rbenv/hooks/version-name-change-man.bash +14 -0
- data/vendor/bundle/ruby/2.7.0/gems/manpages-0.6.1/rbenv/rbenv_hook_install.sh +35 -0
- data/vendor/bundle/ruby/2.7.0/gems/manpages-0.6.1/rbenv/remove_hook_folders.sh +19 -0
- data/vendor/bundle/ruby/2.7.0/gems/manpages-0.6.1/rbenv/vars.sh +6 -0
- data/vendor/bundle/ruby/2.7.0/gems/minitest-5.15.0/History.rdoc +1430 -0
- data/vendor/bundle/ruby/2.7.0/gems/minitest-5.15.0/Manifest.txt +27 -0
- data/vendor/bundle/ruby/2.7.0/gems/minitest-5.15.0/README.rdoc +803 -0
- data/vendor/bundle/ruby/2.7.0/gems/minitest-5.15.0/Rakefile +74 -0
- data/vendor/bundle/ruby/2.7.0/gems/minitest-5.15.0/design_rationale.rb +52 -0
- data/vendor/bundle/ruby/2.7.0/gems/minitest-5.15.0/lib/hoe/minitest.rb +28 -0
- data/vendor/bundle/ruby/2.7.0/gems/minitest-5.15.0/lib/minitest/assertions.rb +806 -0
- data/vendor/bundle/ruby/2.7.0/gems/minitest-5.15.0/lib/minitest/autorun.rb +13 -0
- data/vendor/bundle/ruby/2.7.0/gems/minitest-5.15.0/lib/minitest/benchmark.rb +455 -0
- data/vendor/bundle/ruby/2.7.0/gems/minitest-5.15.0/lib/minitest/expectations.rb +303 -0
- data/vendor/bundle/ruby/2.7.0/gems/minitest-5.15.0/lib/minitest/hell.rb +11 -0
- data/vendor/bundle/ruby/2.7.0/gems/minitest-5.15.0/lib/minitest/mock.rb +244 -0
- data/vendor/bundle/ruby/2.7.0/gems/minitest-5.15.0/lib/minitest/parallel.rb +70 -0
- data/vendor/bundle/ruby/2.7.0/gems/minitest-5.15.0/lib/minitest/pride.rb +4 -0
- data/vendor/bundle/ruby/2.7.0/gems/minitest-5.15.0/lib/minitest/pride_plugin.rb +142 -0
- data/vendor/bundle/ruby/2.7.0/gems/minitest-5.15.0/lib/minitest/spec.rb +343 -0
- data/vendor/bundle/ruby/2.7.0/gems/minitest-5.15.0/lib/minitest/test.rb +230 -0
- data/vendor/bundle/ruby/2.7.0/gems/minitest-5.15.0/lib/minitest/unit.rb +45 -0
- data/vendor/bundle/ruby/2.7.0/gems/minitest-5.15.0/lib/minitest.rb +1069 -0
- data/vendor/bundle/ruby/2.7.0/gems/minitest-5.15.0/test/minitest/metametameta.rb +136 -0
- data/vendor/bundle/ruby/2.7.0/gems/minitest-5.15.0/test/minitest/test_minitest_assertions.rb +1588 -0
- data/vendor/bundle/ruby/2.7.0/gems/minitest-5.15.0/test/minitest/test_minitest_benchmark.rb +137 -0
- data/vendor/bundle/ruby/2.7.0/gems/minitest-5.15.0/test/minitest/test_minitest_mock.rb +885 -0
- data/vendor/bundle/ruby/2.7.0/gems/minitest-5.15.0/test/minitest/test_minitest_reporter.rb +311 -0
- data/vendor/bundle/ruby/2.7.0/gems/minitest-5.15.0/test/minitest/test_minitest_spec.rb +1062 -0
- data/vendor/bundle/ruby/2.7.0/gems/minitest-5.15.0/test/minitest/test_minitest_test.rb +1109 -0
- data/vendor/bundle/ruby/2.7.0/gems/optimist-3.0.1/FAQ.txt +92 -0
- data/vendor/bundle/ruby/2.7.0/gems/optimist-3.0.1/Gemfile +4 -0
- data/vendor/bundle/ruby/2.7.0/gems/optimist-3.0.1/History.txt +175 -0
- data/vendor/bundle/ruby/2.7.0/gems/optimist-3.0.1/LICENSE.txt +23 -0
- data/vendor/bundle/ruby/2.7.0/gems/optimist-3.0.1/README.md +60 -0
- data/vendor/bundle/ruby/2.7.0/gems/optimist-3.0.1/Rakefile +15 -0
- data/vendor/bundle/ruby/2.7.0/gems/optimist-3.0.1/lib/optimist.rb +1014 -0
- data/vendor/bundle/ruby/2.7.0/gems/optimist-3.0.1/optimist.gemspec +35 -0
- data/vendor/bundle/ruby/2.7.0/gems/optimist-3.0.1/test/optimist/command_line_error_test.rb +27 -0
- data/vendor/bundle/ruby/2.7.0/gems/optimist-3.0.1/test/optimist/help_needed_test.rb +19 -0
- data/vendor/bundle/ruby/2.7.0/gems/optimist-3.0.1/test/optimist/parser_educate_test.rb +175 -0
- data/vendor/bundle/ruby/2.7.0/gems/optimist-3.0.1/test/optimist/parser_opt_test.rb +14 -0
- data/vendor/bundle/ruby/2.7.0/gems/optimist-3.0.1/test/optimist/parser_parse_test.rb +79 -0
- data/vendor/bundle/ruby/2.7.0/gems/optimist-3.0.1/test/optimist/parser_test.rb +1220 -0
- data/vendor/bundle/ruby/2.7.0/gems/optimist-3.0.1/test/optimist/version_needed_test.rb +19 -0
- data/vendor/bundle/ruby/2.7.0/gems/optimist-3.0.1/test/optimist_test.rb +190 -0
- data/vendor/bundle/ruby/2.7.0/gems/optimist-3.0.1/test/support/assert_helpers.rb +46 -0
- data/vendor/bundle/ruby/2.7.0/gems/optimist-3.0.1/test/test_helper.rb +22 -0
- data/vendor/bundle/ruby/2.7.0/gems/paint-2.2.1/CHANGELOG.md +112 -0
- data/vendor/bundle/ruby/2.7.0/gems/paint-2.2.1/MIT-LICENSE.txt +22 -0
- data/vendor/bundle/ruby/2.7.0/gems/paint-2.2.1/README.md +194 -0
- data/vendor/bundle/ruby/2.7.0/gems/paint-2.2.1/Rakefile +54 -0
- data/vendor/bundle/ruby/2.7.0/gems/paint-2.2.1/data/rgb_colors.marshal.gz +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/paint-2.2.1/lib/paint/constants.rb +102 -0
- data/vendor/bundle/ruby/2.7.0/gems/paint-2.2.1/lib/paint/pa.rb +11 -0
- data/vendor/bundle/ruby/2.7.0/gems/paint-2.2.1/lib/paint/rgb_colors.rb +12 -0
- data/vendor/bundle/ruby/2.7.0/gems/paint-2.2.1/lib/paint/util.rb +14 -0
- data/vendor/bundle/ruby/2.7.0/gems/paint-2.2.1/lib/paint/version.rb +5 -0
- data/vendor/bundle/ruby/2.7.0/gems/paint-2.2.1/lib/paint.rb +257 -0
- data/vendor/bundle/ruby/2.7.0/gems/paint-2.2.1/paint.gemspec +43 -0
- data/vendor/bundle/ruby/2.7.0/gems/power_assert-2.0.1/BSDL +22 -0
- data/vendor/bundle/ruby/2.7.0/gems/power_assert-2.0.1/COPYING +57 -0
- data/vendor/bundle/ruby/2.7.0/gems/power_assert-2.0.1/Gemfile +9 -0
- data/vendor/bundle/ruby/2.7.0/gems/power_assert-2.0.1/LEGAL +4 -0
- data/vendor/bundle/ruby/2.7.0/gems/power_assert-2.0.1/README.md +98 -0
- data/vendor/bundle/ruby/2.7.0/gems/power_assert-2.0.1/Rakefile +59 -0
- data/vendor/bundle/ruby/2.7.0/gems/power_assert-2.0.1/lib/power_assert/colorize.rb +7 -0
- data/vendor/bundle/ruby/2.7.0/gems/power_assert-2.0.1/lib/power_assert/configuration.rb +46 -0
- data/vendor/bundle/ruby/2.7.0/gems/power_assert-2.0.1/lib/power_assert/context.rb +233 -0
- data/vendor/bundle/ruby/2.7.0/gems/power_assert-2.0.1/lib/power_assert/enable_tracepoint_events.rb +58 -0
- data/vendor/bundle/ruby/2.7.0/gems/power_assert-2.0.1/lib/power_assert/inspector.rb +62 -0
- data/vendor/bundle/ruby/2.7.0/gems/power_assert-2.0.1/lib/power_assert/parser.rb +251 -0
- data/vendor/bundle/ruby/2.7.0/gems/power_assert-2.0.1/lib/power_assert/version.rb +3 -0
- data/vendor/bundle/ruby/2.7.0/gems/power_assert-2.0.1/lib/power_assert.rb +91 -0
- data/vendor/bundle/ruby/2.7.0/gems/power_assert-2.0.1/power_assert.gemspec +31 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/Gemfile +9 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/LICENSE +21 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/Mavenfile +7 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/README.md +72 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/Rakefile +41 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/bin/console +7 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/bin/setup +6 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/ext/psych/Makefile +274 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/ext/psych/depend +5 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/ext/psych/extconf.rb +43 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/ext/psych/psych.bundle +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/ext/psych/psych.c +37 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/ext/psych/psych.h +17 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/ext/psych/psych_emitter.c +555 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/ext/psych/psych_emitter.h +8 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/ext/psych/psych_parser.c +579 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/ext/psych/psych_parser.h +6 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/ext/psych/psych_to_ruby.c +39 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/ext/psych/psych_to_ruby.h +8 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/ext/psych/psych_yaml_tree.c +12 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/ext/psych/psych_yaml_tree.h +8 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/ext/psych/yaml/LICENSE +19 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/ext/psych/yaml/api.c +1393 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/ext/psych/yaml/config.h +80 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/ext/psych/yaml/dumper.c +394 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/ext/psych/yaml/emitter.c +2358 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/ext/psych/yaml/loader.c +544 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/ext/psych/yaml/parser.c +1375 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/ext/psych/yaml/reader.c +469 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/ext/psych/yaml/scanner.c +3598 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/ext/psych/yaml/writer.c +141 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/ext/psych/yaml/yaml.h +1985 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/ext/psych/yaml/yaml_private.h +688 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/lib/psych/class_loader.rb +104 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/lib/psych/coder.rb +95 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/lib/psych/core_ext.rb +19 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/lib/psych/exception.rb +14 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/lib/psych/handler.rb +255 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/lib/psych/handlers/document_stream.rb +23 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/lib/psych/handlers/recorder.rb +40 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/lib/psych/json/ruby_events.rb +20 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/lib/psych/json/stream.rb +17 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/lib/psych/json/tree_builder.rb +13 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/lib/psych/json/yaml_events.rb +30 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/lib/psych/nodes/alias.rb +21 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/lib/psych/nodes/document.rb +63 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/lib/psych/nodes/mapping.rb +59 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/lib/psych/nodes/node.rb +75 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/lib/psych/nodes/scalar.rb +70 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/lib/psych/nodes/sequence.rb +84 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/lib/psych/nodes/stream.rb +40 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/lib/psych/nodes.rb +78 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/lib/psych/omap.rb +5 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/lib/psych/parser.rb +52 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/lib/psych/scalar_scanner.rb +135 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/lib/psych/set.rb +5 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/lib/psych/stream.rb +38 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/lib/psych/streaming.rb +28 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/lib/psych/syntax_error.rb +22 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/lib/psych/tree_builder.rb +137 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/lib/psych/versions.rb +10 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/lib/psych/visitors/depth_first.rb +27 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/lib/psych/visitors/emitter.rb +52 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/lib/psych/visitors/json_tree.rb +25 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/lib/psych/visitors/to_ruby.rb +434 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/lib/psych/visitors/visitor.rb +34 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/lib/psych/visitors/yaml_tree.rb +587 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/lib/psych/visitors.rb +7 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/lib/psych/y.rb +10 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/lib/psych.bundle +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/lib/psych.rb +741 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-4.0.3/psych.gemspec +69 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/History.rdoc +2403 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/MIT-LICENSE +21 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/README.rdoc +155 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/doc/command_line_usage.rdoc +158 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/doc/example/Rakefile1 +38 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/doc/example/Rakefile2 +35 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/doc/example/a.c +6 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/doc/example/b.c +6 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/doc/example/main.c +11 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/doc/glossary.rdoc +42 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/doc/jamis.rb +592 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/doc/proto_rake.rdoc +127 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/doc/rake.1 +156 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/doc/rakefile.rdoc +622 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/doc/rational.rdoc +151 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/exe/rake +27 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/lib/rake/application.rb +831 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/lib/rake/backtrace.rb +24 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/lib/rake/clean.rb +78 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/lib/rake/cloneable.rb +17 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/lib/rake/cpu_counter.rb +107 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/lib/rake/default_loader.rb +15 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/lib/rake/dsl_definition.rb +195 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/lib/rake/early_time.rb +22 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/lib/rake/ext/core.rb +26 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/lib/rake/ext/string.rb +176 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/lib/rake/file_creation_task.rb +25 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/lib/rake/file_list.rb +435 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/lib/rake/file_task.rb +54 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/lib/rake/file_utils.rb +134 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/lib/rake/file_utils_ext.rb +134 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/lib/rake/invocation_chain.rb +57 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/lib/rake/invocation_exception_mixin.rb +17 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/lib/rake/late_time.rb +18 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/lib/rake/linked_list.rb +112 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/lib/rake/loaders/makefile.rb +54 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/lib/rake/multi_task.rb +14 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/lib/rake/name_space.rb +38 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/lib/rake/packagetask.rb +222 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/lib/rake/phony.rb +16 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/lib/rake/private_reader.rb +21 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/lib/rake/promise.rb +100 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/lib/rake/pseudo_status.rb +30 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/lib/rake/rake_module.rb +67 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/lib/rake/rake_test_loader.rb +27 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/lib/rake/rule_recursion_overflow_error.rb +20 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/lib/rake/scope.rb +43 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/lib/rake/task.rb +434 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/lib/rake/task_argument_error.rb +8 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/lib/rake/task_arguments.rb +109 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/lib/rake/task_manager.rb +331 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/lib/rake/tasklib.rb +12 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/lib/rake/testtask.rb +189 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/lib/rake/thread_history_display.rb +49 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/lib/rake/thread_pool.rb +163 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/lib/rake/trace_output.rb +23 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/lib/rake/version.rb +10 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/lib/rake/win32.rb +51 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/lib/rake.rb +71 -0
- data/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/rake.gemspec +100 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/CONTRIBUTING.rdoc +220 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/CVE-2013-0256.rdoc +49 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/ExampleMarkdown.md +37 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/ExampleRDoc.rdoc +208 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/Gemfile +12 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/History.rdoc +1666 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/LEGAL.rdoc +50 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/LICENSE.rdoc +57 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/README.rdoc +129 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/RI.rdoc +57 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/Rakefile +107 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/TODO.rdoc +59 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/bin/console +7 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/bin/setup +6 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/exe/rdoc +44 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/exe/ri +12 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/alias.rb +112 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/anon_class.rb +11 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/any_method.rb +364 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/attr.rb +176 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/class_module.rb +802 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/code_object.rb +421 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/code_objects.rb +6 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/comment.rb +250 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/constant.rb +187 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/context/section.rb +232 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/context.rb +1266 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/cross_reference.rb +210 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/encoding.rb +136 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/erb_partial.rb +19 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/erbio.rb +42 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/extend.rb +10 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/darkfish.rb +790 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/json_index.rb +300 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/markup.rb +160 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/pot/message_extractor.rb +68 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/pot/po.rb +84 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/pot/po_entry.rb +141 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/pot.rb +98 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/ri.rb +31 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/_footer.rhtml +5 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/_head.rhtml +20 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/_sidebar_VCS_info.rhtml +19 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/_sidebar_classes.rhtml +9 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/_sidebar_extends.rhtml +15 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/_sidebar_in_files.rhtml +9 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/_sidebar_includes.rhtml +15 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/_sidebar_installed.rhtml +15 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/_sidebar_methods.rhtml +12 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/_sidebar_navigation.rhtml +11 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/_sidebar_pages.rhtml +12 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/_sidebar_parent.rhtml +11 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/_sidebar_search.rhtml +14 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/_sidebar_sections.rhtml +11 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/_sidebar_table_of_contents.rhtml +18 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/class.rhtml +172 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/css/fonts.css +167 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/css/rdoc.css +639 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/fonts/Lato-Light.ttf +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/fonts/Lato-LightItalic.ttf +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/fonts/Lato-Regular.ttf +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/fonts/Lato-RegularItalic.ttf +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/fonts/SourceCodePro-Bold.ttf +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/fonts/SourceCodePro-Regular.ttf +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/images/add.png +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/images/arrow_up.png +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/images/brick.png +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/images/brick_link.png +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/images/bug.png +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/images/bullet_black.png +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/images/bullet_toggle_minus.png +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/images/bullet_toggle_plus.png +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/images/date.png +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/images/delete.png +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/images/find.png +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/images/loadingAnimation.gif +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/images/macFFBgHack.png +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/images/package.png +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/images/page_green.png +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/images/page_white_text.png +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/images/page_white_width.png +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/images/plugin.png +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/images/ruby.png +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/images/tag_blue.png +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/images/tag_green.png +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/images/transparent.png +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/images/wrench.png +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/images/wrench_orange.png +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/images/zoom.png +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/index.rhtml +22 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/js/darkfish.js +84 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/js/search.js +110 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/page.rhtml +18 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/servlet_not_found.rhtml +18 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/servlet_root.rhtml +62 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/table_of_contents.rhtml +58 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/json_index/js/navigation.js +105 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/json_index/js/searcher.js +229 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator.rb +51 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/ghost_method.rb +7 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/i18n/locale.rb +102 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/i18n/text.rb +126 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/i18n.rb +10 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/include.rb +10 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/known_classes.rb +73 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/markdown/entities.rb +2132 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/markdown/literals.kpeg +23 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/markdown/literals.rb +416 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/markdown.kpeg +1237 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/markdown.rb +16684 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/markup/attr_changer.rb +23 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/markup/attr_span.rb +36 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/markup/attribute_manager.rb +409 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/markup/attributes.rb +71 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/markup/blank_line.rb +28 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/markup/block_quote.rb +15 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/markup/document.rb +165 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/markup/formatter.rb +266 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/markup/hard_break.rb +32 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/markup/heading.rb +79 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/markup/include.rb +43 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/markup/indented_paragraph.rb +48 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/markup/list.rb +102 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/markup/list_item.rb +100 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/markup/paragraph.rb +29 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/markup/parser.rb +575 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/markup/pre_process.rb +298 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/markup/raw.rb +70 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/markup/regexp_handling.rb +41 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/markup/rule.rb +21 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/markup/table.rb +47 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/markup/to_ansi.rb +94 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/markup/to_bs.rb +77 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/markup/to_html.rb +444 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/markup/to_html_crossref.rb +176 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/markup/to_html_snippet.rb +285 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/markup/to_joined_paragraph.rb +47 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/markup/to_label.rb +75 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/markup/to_markdown.rb +192 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/markup/to_rdoc.rb +362 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/markup/to_table_of_contents.rb +89 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/markup/to_test.rb +70 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/markup/to_tt_only.rb +121 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/markup/verbatim.rb +84 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/markup.rb +867 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/meta_method.rb +7 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/method_attr.rb +419 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/mixin.rb +121 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/normal_class.rb +93 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/normal_module.rb +74 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/options.rb +1314 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/parser/c.rb +1237 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/parser/changelog.rb +335 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/parser/markdown.rb +24 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/parser/rd.rb +23 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/parser/ripper_state_lex.rb +590 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/parser/ruby.rb +2345 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/parser/ruby_tools.rb +167 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/parser/simple.rb +61 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/parser/text.rb +12 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/parser.rb +277 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/rd/block_parser.rb +1056 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/rd/block_parser.ry +639 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/rd/inline.rb +72 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/rd/inline_parser.rb +1208 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/rd/inline_parser.ry +593 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/rd.rb +100 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/rdoc.rb +551 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/require.rb +52 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/ri/driver.rb +1579 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/ri/formatter.rb +6 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/ri/paths.rb +171 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/ri/store.rb +7 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/ri/task.rb +71 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/ri.rb +21 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/rubygems_hook.rb +248 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/servlet.rb +451 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/single_class.rb +26 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/stats/normal.rb +58 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/stats/quiet.rb +60 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/stats/verbose.rb +46 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/stats.rb +462 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/store.rb +979 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/task.rb +329 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/text.rb +312 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/token_stream.rb +119 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/tom_doc.rb +263 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/top_level.rb +289 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/version.rb +8 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc.rb +201 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/man/ri.1 +247 -0
- data/vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/rdoc.gemspec +249 -0
- data/vendor/bundle/ruby/2.7.0/gems/rubyforge-2.0.4/History.txt +128 -0
- data/vendor/bundle/ruby/2.7.0/gems/rubyforge-2.0.4/Manifest.txt +9 -0
- data/vendor/bundle/ruby/2.7.0/gems/rubyforge-2.0.4/README.txt +55 -0
- data/vendor/bundle/ruby/2.7.0/gems/rubyforge-2.0.4/Rakefile +40 -0
- data/vendor/bundle/ruby/2.7.0/gems/rubyforge-2.0.4/bin/rubyforge +222 -0
- data/vendor/bundle/ruby/2.7.0/gems/rubyforge-2.0.4/lib/rubyforge/client.rb +124 -0
- data/vendor/bundle/ruby/2.7.0/gems/rubyforge-2.0.4/lib/rubyforge.rb +389 -0
- data/vendor/bundle/ruby/2.7.0/gems/rubyforge-2.0.4/test/test_rubyforge.rb +329 -0
- data/vendor/bundle/ruby/2.7.0/gems/rubyforge-2.0.4/test/test_rubyforge_client.rb +57 -0
- data/vendor/bundle/ruby/2.7.0/gems/stringio-3.0.0/README.md +44 -0
- data/vendor/bundle/ruby/2.7.0/gems/stringio-3.0.0/ext/stringio/Makefile +267 -0
- data/vendor/bundle/ruby/2.7.0/gems/stringio-3.0.0/ext/stringio/extconf.rb +4 -0
- data/vendor/bundle/ruby/2.7.0/gems/stringio-3.0.0/ext/stringio/stringio.bundle +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/stringio-3.0.0/ext/stringio/stringio.c +1862 -0
- data/vendor/bundle/ruby/2.7.0/gems/stringio-3.0.0/lib/stringio.bundle +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/BSDL +24 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/COPYING +64 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/PSFL +271 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/README.md +98 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/Rakefile +57 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/doc/text/getting-started.md +246 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/doc/text/how-to.md +90 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/doc/text/news.md +1675 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/lib/test/unit/assertion-failed-error.rb +60 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/lib/test/unit/assertions.rb +2449 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/lib/test/unit/attribute-matcher.rb +26 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/lib/test/unit/attribute.rb +227 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/lib/test/unit/auto-runner-loader.rb +17 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/lib/test/unit/autorunner.rb +581 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/lib/test/unit/code-snippet-fetcher.rb +58 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/lib/test/unit/collector/descendant.rb +20 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/lib/test/unit/collector/dir.rb +110 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/lib/test/unit/collector/load.rb +199 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/lib/test/unit/collector/objectspace.rb +35 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/lib/test/unit/collector/xml.rb +249 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/lib/test/unit/collector.rb +104 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/lib/test/unit/color-scheme.rb +216 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/lib/test/unit/color.rb +134 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/lib/test/unit/data-sets.rb +127 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/lib/test/unit/data.rb +371 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/lib/test/unit/diff.rb +745 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/lib/test/unit/error.rb +158 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/lib/test/unit/exception-handler.rb +82 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/lib/test/unit/failure.rb +169 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/lib/test/unit/fault-location-detector.rb +100 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/lib/test/unit/fixture.rb +304 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/lib/test/unit/notification.rb +138 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/lib/test/unit/omission.rb +198 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/lib/test/unit/pending.rb +155 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/lib/test/unit/priority.rb +194 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/lib/test/unit/runner/console.rb +67 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/lib/test/unit/runner/emacs.rb +8 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/lib/test/unit/runner/xml.rb +15 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/lib/test/unit/test-suite-creator.rb +103 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/lib/test/unit/testcase.rb +938 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/lib/test/unit/testresult.rb +132 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/lib/test/unit/testsuite.rb +175 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/lib/test/unit/ui/console/outputlevel.rb +15 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/lib/test/unit/ui/console/testrunner.rb +759 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/lib/test/unit/ui/emacs/testrunner.rb +49 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/lib/test/unit/ui/testrunner.rb +53 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/lib/test/unit/ui/testrunnermediator.rb +114 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/lib/test/unit/ui/testrunnerutilities.rb +41 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/lib/test/unit/ui/xml/testrunner.rb +224 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/lib/test/unit/util/backtracefilter.rb +59 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/lib/test/unit/util/memory-usage.rb +47 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/lib/test/unit/util/method-owner-finder.rb +28 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/lib/test/unit/util/observable.rb +90 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/lib/test/unit/util/output.rb +32 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/lib/test/unit/util/procwrapper.rb +48 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/lib/test/unit/version.rb +5 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/lib/test/unit/warning.rb +3 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/lib/test/unit.rb +521 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/lib/test-unit.rb +19 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/sample/adder.rb +13 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/sample/subtracter.rb +12 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/sample/test_adder.rb +20 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/sample/test_subtracter.rb +20 -0
- data/vendor/bundle/ruby/2.7.0/gems/test-unit-3.5.3/sample/test_user.rb +23 -0
- data/vendor/bundle/ruby/2.7.0/gems/tzinfo-2.0.4/CHANGES.md +973 -0
- data/vendor/bundle/ruby/2.7.0/gems/tzinfo-2.0.4/LICENSE +19 -0
- data/vendor/bundle/ruby/2.7.0/gems/tzinfo-2.0.4/README.md +406 -0
- data/vendor/bundle/ruby/2.7.0/gems/tzinfo-2.0.4/lib/tzinfo/annual_rules.rb +71 -0
- data/vendor/bundle/ruby/2.7.0/gems/tzinfo-2.0.4/lib/tzinfo/country.rb +208 -0
- data/vendor/bundle/ruby/2.7.0/gems/tzinfo-2.0.4/lib/tzinfo/country_timezone.rb +93 -0
- data/vendor/bundle/ruby/2.7.0/gems/tzinfo-2.0.4/lib/tzinfo/data_source.rb +435 -0
- data/vendor/bundle/ruby/2.7.0/gems/tzinfo-2.0.4/lib/tzinfo/data_sources/constant_offset_data_timezone_info.rb +56 -0
- data/vendor/bundle/ruby/2.7.0/gems/tzinfo-2.0.4/lib/tzinfo/data_sources/country_info.rb +42 -0
- data/vendor/bundle/ruby/2.7.0/gems/tzinfo-2.0.4/lib/tzinfo/data_sources/data_timezone_info.rb +91 -0
- data/vendor/bundle/ruby/2.7.0/gems/tzinfo-2.0.4/lib/tzinfo/data_sources/linked_timezone_info.rb +33 -0
- data/vendor/bundle/ruby/2.7.0/gems/tzinfo-2.0.4/lib/tzinfo/data_sources/posix_time_zone_parser.rb +181 -0
- data/vendor/bundle/ruby/2.7.0/gems/tzinfo-2.0.4/lib/tzinfo/data_sources/ruby_data_source.rb +145 -0
- data/vendor/bundle/ruby/2.7.0/gems/tzinfo-2.0.4/lib/tzinfo/data_sources/timezone_info.rb +47 -0
- data/vendor/bundle/ruby/2.7.0/gems/tzinfo-2.0.4/lib/tzinfo/data_sources/transitions_data_timezone_info.rb +214 -0
- data/vendor/bundle/ruby/2.7.0/gems/tzinfo-2.0.4/lib/tzinfo/data_sources/zoneinfo_data_source.rb +580 -0
- data/vendor/bundle/ruby/2.7.0/gems/tzinfo-2.0.4/lib/tzinfo/data_sources/zoneinfo_reader.rb +486 -0
- data/vendor/bundle/ruby/2.7.0/gems/tzinfo-2.0.4/lib/tzinfo/data_sources.rb +8 -0
- data/vendor/bundle/ruby/2.7.0/gems/tzinfo-2.0.4/lib/tzinfo/data_timezone.rb +44 -0
- data/vendor/bundle/ruby/2.7.0/gems/tzinfo-2.0.4/lib/tzinfo/datetime_with_offset.rb +153 -0
- data/vendor/bundle/ruby/2.7.0/gems/tzinfo-2.0.4/lib/tzinfo/format1/country_definer.rb +17 -0
- data/vendor/bundle/ruby/2.7.0/gems/tzinfo-2.0.4/lib/tzinfo/format1/country_index_definition.rb +64 -0
- data/vendor/bundle/ruby/2.7.0/gems/tzinfo-2.0.4/lib/tzinfo/format1/timezone_definer.rb +64 -0
- data/vendor/bundle/ruby/2.7.0/gems/tzinfo-2.0.4/lib/tzinfo/format1/timezone_definition.rb +39 -0
- data/vendor/bundle/ruby/2.7.0/gems/tzinfo-2.0.4/lib/tzinfo/format1/timezone_index_definition.rb +77 -0
- data/vendor/bundle/ruby/2.7.0/gems/tzinfo-2.0.4/lib/tzinfo/format1.rb +10 -0
- data/vendor/bundle/ruby/2.7.0/gems/tzinfo-2.0.4/lib/tzinfo/format2/country_definer.rb +68 -0
- data/vendor/bundle/ruby/2.7.0/gems/tzinfo-2.0.4/lib/tzinfo/format2/country_index_definer.rb +68 -0
- data/vendor/bundle/ruby/2.7.0/gems/tzinfo-2.0.4/lib/tzinfo/format2/country_index_definition.rb +46 -0
- data/vendor/bundle/ruby/2.7.0/gems/tzinfo-2.0.4/lib/tzinfo/format2/timezone_definer.rb +94 -0
- data/vendor/bundle/ruby/2.7.0/gems/tzinfo-2.0.4/lib/tzinfo/format2/timezone_definition.rb +73 -0
- data/vendor/bundle/ruby/2.7.0/gems/tzinfo-2.0.4/lib/tzinfo/format2/timezone_index_definer.rb +45 -0
- data/vendor/bundle/ruby/2.7.0/gems/tzinfo-2.0.4/lib/tzinfo/format2/timezone_index_definition.rb +55 -0
- data/vendor/bundle/ruby/2.7.0/gems/tzinfo-2.0.4/lib/tzinfo/format2.rb +10 -0
- data/vendor/bundle/ruby/2.7.0/gems/tzinfo-2.0.4/lib/tzinfo/info_timezone.rb +35 -0
- data/vendor/bundle/ruby/2.7.0/gems/tzinfo-2.0.4/lib/tzinfo/linked_timezone.rb +44 -0
- data/vendor/bundle/ruby/2.7.0/gems/tzinfo-2.0.4/lib/tzinfo/offset_timezone_period.rb +42 -0
- data/vendor/bundle/ruby/2.7.0/gems/tzinfo-2.0.4/lib/tzinfo/string_deduper.rb +118 -0
- data/vendor/bundle/ruby/2.7.0/gems/tzinfo-2.0.4/lib/tzinfo/time_with_offset.rb +154 -0
- data/vendor/bundle/ruby/2.7.0/gems/tzinfo-2.0.4/lib/tzinfo/timestamp.rb +548 -0
- data/vendor/bundle/ruby/2.7.0/gems/tzinfo-2.0.4/lib/tzinfo/timestamp_with_offset.rb +85 -0
- data/vendor/bundle/ruby/2.7.0/gems/tzinfo-2.0.4/lib/tzinfo/timezone.rb +1160 -0
- data/vendor/bundle/ruby/2.7.0/gems/tzinfo-2.0.4/lib/tzinfo/timezone_offset.rb +111 -0
- data/vendor/bundle/ruby/2.7.0/gems/tzinfo-2.0.4/lib/tzinfo/timezone_period.rb +179 -0
- data/vendor/bundle/ruby/2.7.0/gems/tzinfo-2.0.4/lib/tzinfo/timezone_proxy.rb +96 -0
- data/vendor/bundle/ruby/2.7.0/gems/tzinfo-2.0.4/lib/tzinfo/timezone_transition.rb +98 -0
- data/vendor/bundle/ruby/2.7.0/gems/tzinfo-2.0.4/lib/tzinfo/transition_rule.rb +455 -0
- data/vendor/bundle/ruby/2.7.0/gems/tzinfo-2.0.4/lib/tzinfo/transitions_timezone_period.rb +63 -0
- data/vendor/bundle/ruby/2.7.0/gems/tzinfo-2.0.4/lib/tzinfo/untaint_ext.rb +18 -0
- data/vendor/bundle/ruby/2.7.0/gems/tzinfo-2.0.4/lib/tzinfo/version.rb +7 -0
- data/vendor/bundle/ruby/2.7.0/gems/tzinfo-2.0.4/lib/tzinfo/with_offset.rb +61 -0
- data/vendor/bundle/ruby/2.7.0/gems/tzinfo-2.0.4/lib/tzinfo.rb +73 -0
- data/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.5.3/MIT-LICENSE +20 -0
- data/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.5.3/README.md +1071 -0
- data/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.5.3/lib/zeitwerk/error.rb +12 -0
- data/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.5.3/lib/zeitwerk/explicit_namespace.rb +89 -0
- data/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.5.3/lib/zeitwerk/gem_inflector.rb +17 -0
- data/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.5.3/lib/zeitwerk/inflector.rb +46 -0
- data/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.5.3/lib/zeitwerk/kernel.rb +65 -0
- data/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.5.3/lib/zeitwerk/loader/callbacks.rb +92 -0
- data/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.5.3/lib/zeitwerk/loader/config.rb +321 -0
- data/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.5.3/lib/zeitwerk/loader/helpers.rb +97 -0
- data/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.5.3/lib/zeitwerk/loader.rb +510 -0
- data/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.5.3/lib/zeitwerk/real_mod_name.rb +22 -0
- data/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.5.3/lib/zeitwerk/registry.rb +145 -0
- data/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.5.3/lib/zeitwerk/version.rb +5 -0
- data/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.5.3/lib/zeitwerk.rb +24 -0
- data/vendor/bundle/ruby/2.7.0/specifications/activemodel-6.1.4.4.gemspec +32 -0
- data/vendor/bundle/ruby/2.7.0/specifications/activemodel-serializers-xml-1.0.2.gemspec +39 -0
- data/vendor/bundle/ruby/2.7.0/specifications/activeresource-5.1.1.gemspec +42 -0
- data/vendor/bundle/ruby/2.7.0/specifications/activesupport-6.1.4.4.gemspec +41 -0
- data/vendor/bundle/ruby/2.7.0/specifications/allison-2.0.3.gemspec +22 -0
- data/vendor/bundle/ruby/2.7.0/specifications/builder-3.2.4.gemspec +23 -0
- data/vendor/bundle/ruby/2.7.0/specifications/concurrent-ruby-1.1.9.gemspec +24 -0
- data/vendor/bundle/ruby/2.7.0/specifications/echoe-4.6.0.gemspec +41 -0
- data/vendor/bundle/ruby/2.7.0/specifications/echoe-4.6.3.gemspec +41 -0
- data/vendor/bundle/ruby/2.7.0/specifications/echoe-4.6.5.gemspec +40 -0
- data/vendor/bundle/ruby/2.7.0/specifications/echoe-4.6.6.gemspec +40 -0
- data/vendor/bundle/ruby/2.7.0/specifications/gemcutter-0.7.1.gemspec +40 -0
- data/vendor/bundle/ruby/2.7.0/specifications/i18n-1.8.11.gemspec +32 -0
- data/vendor/bundle/ruby/2.7.0/specifications/json_pure-2.6.1.gemspec +25 -0
- data/vendor/bundle/ruby/2.7.0/specifications/lolcat-100.0.1.gemspec +37 -0
- data/vendor/bundle/ruby/2.7.0/specifications/manpages-0.6.1.gemspec +39 -0
- data/vendor/bundle/ruby/2.7.0/specifications/minitest-5.15.0.gemspec +38 -0
- data/vendor/bundle/ruby/2.7.0/specifications/optimist-3.0.1.gemspec +35 -0
- data/vendor/bundle/ruby/2.7.0/specifications/paint-2.2.1.gemspec +47 -0
- data/vendor/bundle/ruby/2.7.0/specifications/power_assert-2.0.1.gemspec +46 -0
- data/vendor/bundle/ruby/2.7.0/specifications/psych-4.0.3.gemspec +36 -0
- data/vendor/bundle/ruby/2.7.0/specifications/rake-13.0.6.gemspec +26 -0
- data/vendor/bundle/ruby/2.7.0/specifications/rdoc-6.4.0.gemspec +36 -0
- data/vendor/bundle/ruby/2.7.0/specifications/rubyforge-2.0.4.gemspec +33 -0
- data/vendor/bundle/ruby/2.7.0/specifications/stringio-3.0.0.gemspec +36 -0
- data/vendor/bundle/ruby/2.7.0/specifications/test-unit-3.5.3.gemspec +41 -0
- data/vendor/bundle/ruby/2.7.0/specifications/tzinfo-2.0.4.gemspec +36 -0
- data/vendor/bundle/ruby/2.7.0/specifications/zeitwerk-2.5.3.gemspec +22 -0
- data.tar.gz.sig +0 -0
- metadata +1461 -100
- metadata.gz.sig +2 -0
- data/CHANGELOG +0 -7
- data/sbin/reboot.rb +0 -3
- data/sbin/ric_reboot.rb +0 -3
@@ -0,0 +1,2449 @@
|
|
1
|
+
# Author:: Nathaniel Talbott.
|
2
|
+
# Copyright:: Copyright (c) 2000-2003 Nathaniel Talbott. All rights reserved.
|
3
|
+
# Copyright (c) 2009-2013 Kouhei Sutou. All rights reserved.
|
4
|
+
# License:: Ruby license.
|
5
|
+
|
6
|
+
require 'test/unit/assertion-failed-error'
|
7
|
+
require 'test/unit/util/backtracefilter'
|
8
|
+
require 'test/unit/util/memory-usage'
|
9
|
+
require 'test/unit/util/method-owner-finder'
|
10
|
+
require 'test/unit/diff'
|
11
|
+
|
12
|
+
begin
|
13
|
+
require 'power_assert'
|
14
|
+
rescue LoadError, SyntaxError
|
15
|
+
end
|
16
|
+
|
17
|
+
module Test
|
18
|
+
module Unit
|
19
|
+
|
20
|
+
##
|
21
|
+
# Test::Unit::Assertions contains the standard Test::Unit assertions.
|
22
|
+
# Assertions is included in Test::Unit::TestCase.
|
23
|
+
#
|
24
|
+
# To include it in your own code and use its functionality, you simply
|
25
|
+
# need to rescue Test::Unit::AssertionFailedError. Additionally you may
|
26
|
+
# override add_assertion to get notified whenever an assertion is made.
|
27
|
+
#
|
28
|
+
# Notes:
|
29
|
+
#
|
30
|
+
# * The message to each assertion, if given, will be propagated with the
|
31
|
+
# failure.
|
32
|
+
# * It is easy to add your own assertions based on assert_block().
|
33
|
+
#
|
34
|
+
# @example Example Custom Assertion
|
35
|
+
#
|
36
|
+
# def deny(boolean, message=nil)
|
37
|
+
# message = build_message(message, '<?> is not false or nil.', boolean)
|
38
|
+
# assert_block(message) do
|
39
|
+
# not boolean
|
40
|
+
# end
|
41
|
+
# end
|
42
|
+
|
43
|
+
module Assertions
|
44
|
+
|
45
|
+
##
|
46
|
+
# The assertion upon which all other assertions are based. Passes if the
|
47
|
+
# block yields not false nor nil.
|
48
|
+
#
|
49
|
+
# @example
|
50
|
+
# assert_block "Couldn't do the thing" do
|
51
|
+
# do_the_thing
|
52
|
+
# end
|
53
|
+
def assert_block(message="assert_block failed.")
|
54
|
+
_wrap_assertion do
|
55
|
+
if (! yield)
|
56
|
+
options = {}
|
57
|
+
if message.respond_to?(:user_message)
|
58
|
+
options[:user_message] = message.user_message
|
59
|
+
end
|
60
|
+
raise AssertionFailedError.new(message.to_s, options)
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
# @private
|
66
|
+
NOT_SPECIFIED = Object.new
|
67
|
+
|
68
|
+
# @overload assert(object, message=nil)
|
69
|
+
#
|
70
|
+
# Asserts that `object` is not false nor nil.
|
71
|
+
#
|
72
|
+
# Normally, you don't need to use this assertion. Use more
|
73
|
+
# specific assertions such as #assert_equal and
|
74
|
+
# #assert_include.
|
75
|
+
#
|
76
|
+
# @example Pass patterns
|
77
|
+
# assert(true) # => pass
|
78
|
+
# assert([1, 2].include?(1)) # => pass
|
79
|
+
#
|
80
|
+
# @example Failure patterns
|
81
|
+
# assert(nil) # => failure
|
82
|
+
# assert(false) # => failure
|
83
|
+
# assert([1, 2].include?(5)) # => failure
|
84
|
+
#
|
85
|
+
# @param [Object] object The check target.
|
86
|
+
# @param [String] message The additional user message. It is
|
87
|
+
# showed when the assertion is failed.
|
88
|
+
# @return [void]
|
89
|
+
#
|
90
|
+
# @overload assert(message=nil) {}
|
91
|
+
#
|
92
|
+
# Asserts that the givens block returns not false nor nil.
|
93
|
+
#
|
94
|
+
# This style uses Power Assert. It means that you can see each
|
95
|
+
# object values in method chains on failure. See the following
|
96
|
+
# example about Power Assert.
|
97
|
+
#
|
98
|
+
# @example Power Assert
|
99
|
+
# coins = [1, 5, 50]
|
100
|
+
# target_coin = 10
|
101
|
+
# assert do
|
102
|
+
# coins.include?(target_coin)
|
103
|
+
# end
|
104
|
+
# # =>
|
105
|
+
# # coins.include?(target_coin)
|
106
|
+
# # | | |
|
107
|
+
# # | | 10
|
108
|
+
# # | false
|
109
|
+
# # [1, 5, 50]
|
110
|
+
#
|
111
|
+
# We recommend you to use Power Assert for predicate method
|
112
|
+
# checks rather than existing assertions such as
|
113
|
+
# #assert_include and #assert_predicate. Power Assert shows
|
114
|
+
# useful message for debugging.
|
115
|
+
#
|
116
|
+
# We don't recommend you use Power Assert for equality
|
117
|
+
# check. You should use #assert_equal for the case. Because
|
118
|
+
# #assert_equal shows more useful message for debugging.
|
119
|
+
#
|
120
|
+
# @example Pass patterns
|
121
|
+
# assert {true} # => pass
|
122
|
+
# assert {[1, 2].include?(1)} # => pass
|
123
|
+
#
|
124
|
+
# @example Failure patterns
|
125
|
+
# assert {nil} # => failure
|
126
|
+
# assert {false} # => failure
|
127
|
+
# assert {[1, 2].include?(5)} # => failure
|
128
|
+
#
|
129
|
+
# @param [String] message The additional user message. It is
|
130
|
+
# showed when the assertion is failed.
|
131
|
+
# @yield [] Given no parameters to the block.
|
132
|
+
# @yieldreturn [Object] The checked object.
|
133
|
+
# @return [void]
|
134
|
+
def assert(object=NOT_SPECIFIED, message=nil, &block)
|
135
|
+
_wrap_assertion do
|
136
|
+
have_object = !NOT_SPECIFIED.equal?(object)
|
137
|
+
if block
|
138
|
+
message = object if have_object
|
139
|
+
if defined?(PowerAssert)
|
140
|
+
PowerAssert.start(block, :assertion_method => __callee__) do |pa|
|
141
|
+
pa_message = AssertionMessage.delayed_literal(&pa.message_proc)
|
142
|
+
assertion_message = build_message(message, "?", pa_message)
|
143
|
+
assert_block(assertion_message) do
|
144
|
+
pa.yield
|
145
|
+
end
|
146
|
+
end
|
147
|
+
else
|
148
|
+
assert(yield, message)
|
149
|
+
end
|
150
|
+
else
|
151
|
+
unless have_object
|
152
|
+
raise ArgumentError, "wrong number of arguments (0 for 1..2)"
|
153
|
+
end
|
154
|
+
assertion_message = nil
|
155
|
+
case message
|
156
|
+
when nil, String, Proc
|
157
|
+
when AssertionMessage
|
158
|
+
assertion_message = message
|
159
|
+
else
|
160
|
+
error_message = "assertion message must be String, Proc or "
|
161
|
+
error_message += "#{AssertionMessage}: "
|
162
|
+
error_message += "<#{message.inspect}>(<#{message.class}>)"
|
163
|
+
raise ArgumentError, error_message, filter_backtrace(caller)
|
164
|
+
end
|
165
|
+
assertion_message ||= build_message(message,
|
166
|
+
"<?> is not true.",
|
167
|
+
object)
|
168
|
+
assert_block(assertion_message) do
|
169
|
+
object
|
170
|
+
end
|
171
|
+
end
|
172
|
+
end
|
173
|
+
end
|
174
|
+
|
175
|
+
# Asserts that `object` is false or nil.
|
176
|
+
#
|
177
|
+
# @note Just for minitest compatibility. :<
|
178
|
+
#
|
179
|
+
# @param [Object] object The object to be asserted.
|
180
|
+
# @return [void]
|
181
|
+
#
|
182
|
+
# @example Pass patterns
|
183
|
+
# refute(false) # => pass
|
184
|
+
# refute(nil) # => pass
|
185
|
+
#
|
186
|
+
# @example Failure patterns
|
187
|
+
# refute(true) # => failure
|
188
|
+
# refute("string") # => failure
|
189
|
+
#
|
190
|
+
# @since 2.5.3
|
191
|
+
def refute(object, message=nil)
|
192
|
+
_wrap_assertion do
|
193
|
+
assertion_message = nil
|
194
|
+
case message
|
195
|
+
when nil, String, Proc
|
196
|
+
when AssertionMessage
|
197
|
+
assertion_message = message
|
198
|
+
else
|
199
|
+
error_message = "assertion message must be String, Proc or "
|
200
|
+
error_message += "#{AssertionMessage}: "
|
201
|
+
error_message += "<#{message.inspect}>(<#{message.class}>)"
|
202
|
+
raise ArgumentError, error_message, filter_backtrace(caller)
|
203
|
+
end
|
204
|
+
assert_block("refute should not be called with a block.") do
|
205
|
+
!block_given?
|
206
|
+
end
|
207
|
+
assertion_message ||= build_message(message,
|
208
|
+
"<?> is neither nil or false.",
|
209
|
+
object)
|
210
|
+
assert_block(assertion_message) do
|
211
|
+
not object
|
212
|
+
end
|
213
|
+
end
|
214
|
+
end
|
215
|
+
|
216
|
+
##
|
217
|
+
# Passes if `expected` == `actual`.
|
218
|
+
#
|
219
|
+
# Note that the ordering of arguments is important, since a helpful
|
220
|
+
# error message is generated when this one fails that tells you the
|
221
|
+
# values of expected and actual.
|
222
|
+
#
|
223
|
+
# @example
|
224
|
+
# assert_equal 'MY STRING', 'my string'.upcase
|
225
|
+
def assert_equal(expected, actual, message=nil)
|
226
|
+
diff = AssertionMessage.delayed_diff(expected, actual)
|
227
|
+
if expected.respond_to?(:encoding) and
|
228
|
+
actual.respond_to?(:encoding) and
|
229
|
+
expected.encoding != actual.encoding
|
230
|
+
format = <<EOT
|
231
|
+
<?>(?) expected but was
|
232
|
+
<?>(?).?
|
233
|
+
EOT
|
234
|
+
full_message = build_message(message, format,
|
235
|
+
expected, expected.encoding.name,
|
236
|
+
actual, actual.encoding.name,
|
237
|
+
diff)
|
238
|
+
else
|
239
|
+
full_message = build_message(message, <<EOT, expected, actual, diff)
|
240
|
+
<?> expected but was
|
241
|
+
<?>.?
|
242
|
+
EOT
|
243
|
+
end
|
244
|
+
begin
|
245
|
+
assert_block(full_message) { expected == actual }
|
246
|
+
rescue AssertionFailedError => failure
|
247
|
+
_set_failed_information(failure, expected, actual)
|
248
|
+
raise failure # For JRuby. :<
|
249
|
+
end
|
250
|
+
end
|
251
|
+
|
252
|
+
##
|
253
|
+
# Passes if the block raises one of the expected
|
254
|
+
# exceptions. When an expected exception is an Exception
|
255
|
+
# object, passes if expected_exception == actual_exception.
|
256
|
+
#
|
257
|
+
# @example
|
258
|
+
# assert_raise(RuntimeError, LoadError) do
|
259
|
+
# raise 'Boom!!!'
|
260
|
+
# end # -> pass
|
261
|
+
#
|
262
|
+
# assert_raise do
|
263
|
+
# raise Exception, 'Any exception should be raised!!!'
|
264
|
+
# end # -> pass
|
265
|
+
#
|
266
|
+
# assert_raise(RuntimeError.new("XXX")) {raise "XXX"} # -> pass
|
267
|
+
# assert_raise(MyError.new("XXX")) {raise "XXX"} # -> fail
|
268
|
+
# assert_raise(RuntimeError.new("ZZZ")) {raise "XXX"} # -> fail
|
269
|
+
def assert_raise(*args, &block)
|
270
|
+
assert_expected_exception = Proc.new do |*_args|
|
271
|
+
message, assert_exception_helper, actual_exception = _args
|
272
|
+
expected = assert_exception_helper.expected_exceptions
|
273
|
+
diff = AssertionMessage.delayed_diff(expected, actual_exception)
|
274
|
+
full_message = build_message(message,
|
275
|
+
"<?> exception expected but was\n<?>.?",
|
276
|
+
expected, actual_exception, diff)
|
277
|
+
begin
|
278
|
+
assert_block(full_message) do
|
279
|
+
expected == [] or
|
280
|
+
assert_exception_helper.expected?(actual_exception)
|
281
|
+
end
|
282
|
+
rescue AssertionFailedError => failure
|
283
|
+
_set_failed_information(failure, expected, actual_exception)
|
284
|
+
raise failure # For JRuby. :<
|
285
|
+
end
|
286
|
+
end
|
287
|
+
_assert_raise(assert_expected_exception, *args, &block)
|
288
|
+
end
|
289
|
+
|
290
|
+
# Just for minitest compatibility. :<
|
291
|
+
alias_method :assert_raises, :assert_raise
|
292
|
+
|
293
|
+
# Passes if the block raises `expected_exception` with
|
294
|
+
# `expected_message`. `expected_message` can be a `String` or
|
295
|
+
# `Regexp`.
|
296
|
+
#
|
297
|
+
# @example Pass pattern: String
|
298
|
+
# assert_raise_with_message(RuntimeError, "Boom!!!") do
|
299
|
+
# raise "Boom!!!"
|
300
|
+
# end # -> pass
|
301
|
+
#
|
302
|
+
# @example Pass pattern: Regexp
|
303
|
+
# assert_raise_with_message(RuntimeError, /!!!/) do
|
304
|
+
# raise "Boom!!!"
|
305
|
+
# end # -> pass
|
306
|
+
#
|
307
|
+
# @example Failure pattern: Exception class isn't matched
|
308
|
+
# assert_raise_with_message(RuntimeError, "Boom!!!") do
|
309
|
+
# raise ArgumentError, "Boom!!!"
|
310
|
+
# end # -> failure
|
311
|
+
#
|
312
|
+
# @example Failure pattern: Exception message isn't matched
|
313
|
+
# assert_raise_with_message(RuntimeError, "Boom!!!") do
|
314
|
+
# raise "Hello"
|
315
|
+
# end # -> failure
|
316
|
+
#
|
317
|
+
# @since 3.4.3
|
318
|
+
def assert_raise_with_message(expected_exception_class,
|
319
|
+
expected_message,
|
320
|
+
message=nil,
|
321
|
+
&block)
|
322
|
+
assert_expected_exception = Proc.new do |*_args|
|
323
|
+
_message, assert_exception_helper, actual_exception = _args
|
324
|
+
diff = AssertionMessage.delayed_diff([
|
325
|
+
expected_exception_class,
|
326
|
+
expected_message,
|
327
|
+
],
|
328
|
+
[
|
329
|
+
actual_exception.class,
|
330
|
+
actual_exception.message,
|
331
|
+
])
|
332
|
+
full_message = build_message(message,
|
333
|
+
"<?>(<?>) exception expected but was\n" +
|
334
|
+
"<?>(<?>).?",
|
335
|
+
expected_exception_class,
|
336
|
+
expected_message,
|
337
|
+
actual_exception.class,
|
338
|
+
actual_exception.message,
|
339
|
+
diff)
|
340
|
+
begin
|
341
|
+
assert_block(full_message) do
|
342
|
+
assert_exception_helper.expected?(actual_exception) and
|
343
|
+
expected_message === actual_exception.message
|
344
|
+
end
|
345
|
+
rescue AssertionFailedError => failure
|
346
|
+
_set_failed_information(failure,
|
347
|
+
expected_exception_class,
|
348
|
+
actual_exception)
|
349
|
+
raise failure # For JRuby. :<
|
350
|
+
end
|
351
|
+
actual_exception
|
352
|
+
end
|
353
|
+
args = [expected_exception_class]
|
354
|
+
args << message if message
|
355
|
+
_assert_raise(assert_expected_exception, *args, &block)
|
356
|
+
end
|
357
|
+
|
358
|
+
##
|
359
|
+
# Passes if the block raises one of the given
|
360
|
+
# exceptions or sub exceptions of the given exceptions.
|
361
|
+
#
|
362
|
+
# @example
|
363
|
+
# assert_raise_kind_of(SystemCallError) do
|
364
|
+
# raise Errno::EACCES
|
365
|
+
# end
|
366
|
+
def assert_raise_kind_of(*args, &block)
|
367
|
+
assert_expected_exception = Proc.new do |*_args|
|
368
|
+
message, assert_exception_helper, actual_exception = _args
|
369
|
+
expected = assert_exception_helper.expected_exceptions
|
370
|
+
full_message = build_message(message,
|
371
|
+
"<?> family exception expected " +
|
372
|
+
"but was\n<?>.",
|
373
|
+
expected, actual_exception)
|
374
|
+
assert_block(full_message) do
|
375
|
+
assert_exception_helper.expected?(actual_exception, :kind_of?)
|
376
|
+
end
|
377
|
+
end
|
378
|
+
_assert_raise(assert_expected_exception, *args, &block)
|
379
|
+
end
|
380
|
+
|
381
|
+
|
382
|
+
##
|
383
|
+
# Passes if `object`.instance_of?(`klass`). When `klass` is
|
384
|
+
# an array of classes, it passes if any class
|
385
|
+
# satisfies +object.instance_of?(class).
|
386
|
+
#
|
387
|
+
# @example
|
388
|
+
# assert_instance_of(String, 'foo') # -> pass
|
389
|
+
# assert_instance_of([Fixnum, NilClass], 100) # -> pass
|
390
|
+
# assert_instance_of([Numeric, NilClass], 100) # -> fail
|
391
|
+
def assert_instance_of(klass, object, message=nil)
|
392
|
+
_wrap_assertion do
|
393
|
+
if klass.is_a?(Array)
|
394
|
+
klasses = klass
|
395
|
+
else
|
396
|
+
klasses = [klass]
|
397
|
+
end
|
398
|
+
assert_block("The first parameter to assert_instance_of should be " +
|
399
|
+
"a Class or an Array of Class.") do
|
400
|
+
klasses.all? {|k| k.is_a?(Class)}
|
401
|
+
end
|
402
|
+
klass_message = AssertionMessage.maybe_container(klass) do |value|
|
403
|
+
"<#{value}>"
|
404
|
+
end
|
405
|
+
full_message = build_message(message, <<EOT, object, klass_message, object.class)
|
406
|
+
<?> was expected to be instance_of\\?
|
407
|
+
? but was
|
408
|
+
<?>.
|
409
|
+
EOT
|
410
|
+
assert_block(full_message) do
|
411
|
+
klasses.any? {|k| object.instance_of?(k)}
|
412
|
+
end
|
413
|
+
end
|
414
|
+
end
|
415
|
+
|
416
|
+
##
|
417
|
+
# Passes if `object`.instance_of?(`klass`) does not hold.
|
418
|
+
# When `klass` is an array of classes, it passes if no class
|
419
|
+
# satisfies +object.instance_of?(class).
|
420
|
+
#
|
421
|
+
# @example
|
422
|
+
# assert_not_instance_of(String, 100) # -> pass
|
423
|
+
# assert_not_instance_of([Fixnum, NilClass], '100') # -> pass
|
424
|
+
# assert_not_instance_of([Numeric, NilClass], 100) # -> fail
|
425
|
+
#
|
426
|
+
# @since 3.0.0
|
427
|
+
def assert_not_instance_of(klass, object, message=nil)
|
428
|
+
_wrap_assertion do
|
429
|
+
if klass.is_a?(Array)
|
430
|
+
klasses = klass
|
431
|
+
else
|
432
|
+
klasses = [klass]
|
433
|
+
end
|
434
|
+
assert_block("The first parameter to assert_not_instance_of should be " +
|
435
|
+
"a Class or an Array of Class.") do
|
436
|
+
klasses.all? {|k| k.is_a?(Class)}
|
437
|
+
end
|
438
|
+
klass_message = AssertionMessage.maybe_container(klass) do |value|
|
439
|
+
"<#{value}>"
|
440
|
+
end
|
441
|
+
full_message = build_message(message,
|
442
|
+
"<?> was expected to not be instance_of\\?\n" +
|
443
|
+
"? but was.",
|
444
|
+
object,
|
445
|
+
klass_message)
|
446
|
+
assert_block(full_message) do
|
447
|
+
klasses.none? {|k| object.instance_of?(k)}
|
448
|
+
end
|
449
|
+
end
|
450
|
+
end
|
451
|
+
|
452
|
+
# Just for minitest compatibility. :<
|
453
|
+
#
|
454
|
+
# @since 3.0.0
|
455
|
+
alias_method :refute_instance_of, :assert_not_instance_of
|
456
|
+
|
457
|
+
##
|
458
|
+
# Passes if `object`.nil?.
|
459
|
+
#
|
460
|
+
# @example
|
461
|
+
# assert_nil [1, 2].uniq!
|
462
|
+
def assert_nil(object, message=nil)
|
463
|
+
full_message = build_message(message, <<EOT, object)
|
464
|
+
<?> was expected to be nil.
|
465
|
+
EOT
|
466
|
+
assert_block(full_message) { object.nil? }
|
467
|
+
end
|
468
|
+
|
469
|
+
##
|
470
|
+
# Passes if `object`.kind_of?(`klass`). When `klass` is
|
471
|
+
# an array of classes or modules, it passes if any
|
472
|
+
# class or module satisfies +object.kind_of?(class_or_module).
|
473
|
+
#
|
474
|
+
# @example
|
475
|
+
# assert_kind_of(Object, 'foo') # -> pass
|
476
|
+
# assert_kind_of([Fixnum, NilClass], 100) # -> pass
|
477
|
+
# assert_kind_of([Fixnum, NilClass], "string") # -> fail
|
478
|
+
def assert_kind_of(klass, object, message=nil)
|
479
|
+
_wrap_assertion do
|
480
|
+
if klass.is_a?(Array)
|
481
|
+
klasses = klass
|
482
|
+
else
|
483
|
+
klasses = [klass]
|
484
|
+
end
|
485
|
+
assert_block("The first parameter to assert_kind_of should be " +
|
486
|
+
"a kind_of Module or an Array of a kind_of Module.") do
|
487
|
+
klasses.all? {|k| k.kind_of?(Module)}
|
488
|
+
end
|
489
|
+
klass_message = AssertionMessage.maybe_container(klass) do |value|
|
490
|
+
"<#{value}>"
|
491
|
+
end
|
492
|
+
full_message = build_message(message,
|
493
|
+
"<?> was expected to be kind_of\\?\n" +
|
494
|
+
"? but was\n" +
|
495
|
+
"<?>.",
|
496
|
+
object,
|
497
|
+
klass_message,
|
498
|
+
object.class)
|
499
|
+
assert_block(full_message) do
|
500
|
+
klasses.any? {|k| object.kind_of?(k)}
|
501
|
+
end
|
502
|
+
end
|
503
|
+
end
|
504
|
+
|
505
|
+
##
|
506
|
+
# Passes if `object`.kind_of?(`klass`) does not hold.
|
507
|
+
# When `klass` is an array of classes or modules, it passes only if all
|
508
|
+
# classes (and modules) do not satisfy +object.kind_of?(class_or_module).
|
509
|
+
#
|
510
|
+
# @example
|
511
|
+
# assert_not_kind_of(Fixnum, 'foo') # -> pass
|
512
|
+
# assert_not_kind_of([Fixnum, NilClass], '0') # -> pass
|
513
|
+
# assert_not_kind_of([Fixnum, NilClass], 100) # -> fail
|
514
|
+
#
|
515
|
+
# @since 3.0.0
|
516
|
+
def assert_not_kind_of(klass, object, message=nil)
|
517
|
+
_wrap_assertion do
|
518
|
+
if klass.is_a?(Array)
|
519
|
+
klasses = klass
|
520
|
+
else
|
521
|
+
klasses = [klass]
|
522
|
+
end
|
523
|
+
assert_block("The first parameter to assert_not_kind_of should be " +
|
524
|
+
"a kind_of Module or an Array of a kind_of Module.") do
|
525
|
+
klasses.all? {|k| k.kind_of?(Module)}
|
526
|
+
end
|
527
|
+
klass_message = AssertionMessage.maybe_container(klass) do |value|
|
528
|
+
"<#{value}>"
|
529
|
+
end
|
530
|
+
full_message = build_message(message,
|
531
|
+
"<?> was expected to not be kind_of\\?\n" +
|
532
|
+
"? but was.",
|
533
|
+
object,
|
534
|
+
klass_message)
|
535
|
+
assert_block(full_message) do
|
536
|
+
klasses.none? {|k| object.kind_of?(k)}
|
537
|
+
end
|
538
|
+
end
|
539
|
+
end
|
540
|
+
|
541
|
+
# Just for minitest compatibility. :<
|
542
|
+
#
|
543
|
+
# @since 3.0.0
|
544
|
+
alias_method :refute_kind_of, :assert_not_kind_of
|
545
|
+
|
546
|
+
##
|
547
|
+
# Passes if `object` .respond_to? `method`
|
548
|
+
#
|
549
|
+
# @example
|
550
|
+
# assert_respond_to 'bugbear', :slice
|
551
|
+
def assert_respond_to(object, method, message=nil)
|
552
|
+
_wrap_assertion do
|
553
|
+
full_message = build_message(message,
|
554
|
+
"<?>.kind_of\\?(Symbol) or\n" +
|
555
|
+
"<?>.respond_to\\?(:to_str) expected",
|
556
|
+
method, method)
|
557
|
+
assert_block(full_message) do
|
558
|
+
method.kind_of?(Symbol) or method.respond_to?(:to_str)
|
559
|
+
end
|
560
|
+
full_message = build_message(message,
|
561
|
+
"<?>.respond_to\\?(?) expected\n" +
|
562
|
+
"(Class: <?>)",
|
563
|
+
object, method, object.class)
|
564
|
+
assert_block(full_message) {object.respond_to?(method)}
|
565
|
+
end
|
566
|
+
end
|
567
|
+
|
568
|
+
##
|
569
|
+
# Passes if `object` does not .respond_to? `method`.
|
570
|
+
#
|
571
|
+
# @example
|
572
|
+
# assert_not_respond_to('bugbear', :nonexistence) # -> pass
|
573
|
+
# assert_not_respond_to('bugbear', :size) # -> fail
|
574
|
+
def assert_not_respond_to(object, method, message=nil)
|
575
|
+
_wrap_assertion do
|
576
|
+
full_message = build_message(message,
|
577
|
+
"<?>.kind_of\\?(Symbol) or\n" +
|
578
|
+
"<?>.respond_to\\?(:to_str) expected",
|
579
|
+
method, method)
|
580
|
+
assert_block(full_message) do
|
581
|
+
method.kind_of?(Symbol) or method.respond_to?(:to_str)
|
582
|
+
end
|
583
|
+
full_message = build_message(message,
|
584
|
+
"!<?>.respond_to\\?(?) expected\n" +
|
585
|
+
"(Class: <?>)",
|
586
|
+
object, method, object.class)
|
587
|
+
assert_block(full_message) {!object.respond_to?(method)}
|
588
|
+
end
|
589
|
+
end
|
590
|
+
|
591
|
+
# Just for minitest compatibility. :<
|
592
|
+
#
|
593
|
+
# @since 2.5.3
|
594
|
+
alias_method :refute_respond_to, :assert_not_respond_to
|
595
|
+
|
596
|
+
##
|
597
|
+
# Passes if `pattern` =~ `string`.
|
598
|
+
#
|
599
|
+
# @example
|
600
|
+
# assert_match(/\d+/, 'five, 6, seven')
|
601
|
+
def assert_match(pattern, string, message=nil)
|
602
|
+
_wrap_assertion do
|
603
|
+
pattern = Regexp.new(Regexp.escape(pattern)) if pattern.is_a?(String)
|
604
|
+
full_message = build_message(message,
|
605
|
+
"<?> was expected to be =~\n<?>.",
|
606
|
+
pattern, string)
|
607
|
+
assert_block(full_message) { pattern =~ string }
|
608
|
+
end
|
609
|
+
end
|
610
|
+
|
611
|
+
##
|
612
|
+
# Passes if `actual` .equal? `expected` (i.e. they are the same
|
613
|
+
# instance).
|
614
|
+
#
|
615
|
+
# @example
|
616
|
+
# o = Object.new
|
617
|
+
# assert_same o, o
|
618
|
+
def assert_same(expected, actual, message=nil)
|
619
|
+
full_message = build_message(message, <<EOT, expected, expected.__id__, actual, actual.__id__)
|
620
|
+
<?>
|
621
|
+
with id <?> was expected to be equal\\? to
|
622
|
+
<?>
|
623
|
+
with id <?>.
|
624
|
+
EOT
|
625
|
+
assert_block(full_message) { actual.equal?(expected) }
|
626
|
+
end
|
627
|
+
|
628
|
+
##
|
629
|
+
# Compares the `object1` with `object2` using `operator`.
|
630
|
+
#
|
631
|
+
# Passes if object1.__send__(operator, object2) is not false nor nil.
|
632
|
+
#
|
633
|
+
# @example
|
634
|
+
# assert_operator 5, :>=, 4
|
635
|
+
def assert_operator(object1, operator, object2, message=nil)
|
636
|
+
_wrap_assertion do
|
637
|
+
full_message = build_message(nil, "<?>\ngiven as the operator for #assert_operator must be a Symbol or #respond_to\\?(:to_str).", operator)
|
638
|
+
assert_block(full_message){operator.kind_of?(Symbol) || operator.respond_to?(:to_str)}
|
639
|
+
full_message = build_message(message, <<EOT, object1, AssertionMessage.literal(operator), object2)
|
640
|
+
<?> was expected to be
|
641
|
+
?
|
642
|
+
<?>.
|
643
|
+
EOT
|
644
|
+
assert_block(full_message) { object1.__send__(operator, object2) }
|
645
|
+
end
|
646
|
+
end
|
647
|
+
|
648
|
+
##
|
649
|
+
# Compares the `object1` with `object2` using `operator`.
|
650
|
+
#
|
651
|
+
# Passes if object1.__send__(operator, object2) is false or nil.
|
652
|
+
#
|
653
|
+
# @example
|
654
|
+
# assert_not_operator(5, :<, 4) # => pass
|
655
|
+
# assert_not_operator(5, :>, 4) # => fail
|
656
|
+
#
|
657
|
+
# @since 3.0.0
|
658
|
+
def assert_not_operator(object1, operator, object2, message=nil)
|
659
|
+
_wrap_assertion do
|
660
|
+
full_message = build_message(nil, "<?>\ngiven as the operator for #assert_not_operator must be a Symbol or #respond_to\\?(:to_str).", operator)
|
661
|
+
assert_block(full_message){operator.kind_of?(Symbol) || operator.respond_to?(:to_str)}
|
662
|
+
full_message = build_message(message, <<EOT, object1, AssertionMessage.literal(operator), object2)
|
663
|
+
<?> was expected to not be
|
664
|
+
?
|
665
|
+
<?>.
|
666
|
+
EOT
|
667
|
+
assert_block(full_message) { ! object1.__send__(operator, object2) }
|
668
|
+
end
|
669
|
+
end
|
670
|
+
|
671
|
+
# Just for minitest compatibility. :<
|
672
|
+
#
|
673
|
+
# @since 3.0.0
|
674
|
+
alias_method :refute_operator, :assert_not_operator
|
675
|
+
|
676
|
+
##
|
677
|
+
# Passes if block does not raise an exception.
|
678
|
+
#
|
679
|
+
# @example
|
680
|
+
# assert_nothing_raised do
|
681
|
+
# [1, 2].uniq
|
682
|
+
# end
|
683
|
+
def assert_nothing_raised(*args)
|
684
|
+
_wrap_assertion do
|
685
|
+
if args.last.is_a?(String)
|
686
|
+
message = args.pop
|
687
|
+
else
|
688
|
+
message = ""
|
689
|
+
end
|
690
|
+
|
691
|
+
assert_exception_helper = AssertExceptionHelper.new(self, args)
|
692
|
+
begin
|
693
|
+
yield
|
694
|
+
rescue Exception => e
|
695
|
+
if ((args.empty? && !e.instance_of?(AssertionFailedError)) ||
|
696
|
+
assert_exception_helper.expected?(e))
|
697
|
+
failure_message = build_message(message, "Exception raised:\n?", e)
|
698
|
+
assert_block(failure_message) {false}
|
699
|
+
else
|
700
|
+
raise
|
701
|
+
end
|
702
|
+
end
|
703
|
+
end
|
704
|
+
end
|
705
|
+
|
706
|
+
##
|
707
|
+
# Flunk always fails.
|
708
|
+
#
|
709
|
+
# @example
|
710
|
+
# flunk 'Not done testing yet.'
|
711
|
+
def flunk(message="Flunked")
|
712
|
+
assert_block(build_message(message)){false}
|
713
|
+
end
|
714
|
+
|
715
|
+
##
|
716
|
+
# Passes if ! `actual` .equal? `expected`
|
717
|
+
#
|
718
|
+
# @example
|
719
|
+
# assert_not_same Object.new, Object.new
|
720
|
+
def assert_not_same(expected, actual, message=nil)
|
721
|
+
full_message = build_message(message, <<EOT, expected, expected.__id__, actual, actual.__id__)
|
722
|
+
<?>
|
723
|
+
with id <?> was expected to not be equal\\? to
|
724
|
+
<?>
|
725
|
+
with id <?>.
|
726
|
+
EOT
|
727
|
+
assert_block(full_message) { !actual.equal?(expected) }
|
728
|
+
end
|
729
|
+
|
730
|
+
# Just for minitest compatibility. :<
|
731
|
+
#
|
732
|
+
# @since 2.5.3
|
733
|
+
alias_method :refute_same, :assert_not_same
|
734
|
+
|
735
|
+
##
|
736
|
+
# Passes if `expected` != `actual`
|
737
|
+
#
|
738
|
+
# @example
|
739
|
+
# assert_not_equal 'some string', 5
|
740
|
+
def assert_not_equal(expected, actual, message=nil)
|
741
|
+
full_message = build_message(message,
|
742
|
+
"<?> was expected to be != to\n<?>.",
|
743
|
+
expected, actual)
|
744
|
+
assert_block(full_message) { expected != actual }
|
745
|
+
end
|
746
|
+
|
747
|
+
# Just for minitest compatibility. :<
|
748
|
+
#
|
749
|
+
# @since 2.5.3
|
750
|
+
alias_method :refute_equal, :assert_not_equal
|
751
|
+
|
752
|
+
##
|
753
|
+
# Passes if ! `object` .nil?
|
754
|
+
#
|
755
|
+
# @example
|
756
|
+
# assert_not_nil '1 two 3'.sub!(/two/, '2')
|
757
|
+
def assert_not_nil(object, message=nil)
|
758
|
+
full_message = build_message(message,
|
759
|
+
"<?> was expected to not be nil.",
|
760
|
+
object)
|
761
|
+
assert_block(full_message){!object.nil?}
|
762
|
+
end
|
763
|
+
|
764
|
+
# Just for minitest compatibility. :<
|
765
|
+
#
|
766
|
+
# @since 2.5.3
|
767
|
+
alias_method :refute_nil, :assert_not_nil
|
768
|
+
|
769
|
+
##
|
770
|
+
# Passes if `regexp` !~ `string`
|
771
|
+
#
|
772
|
+
# @example
|
773
|
+
# assert_not_match(/two/, 'one 2 three') # -> pass
|
774
|
+
# assert_not_match(/three/, 'one 2 three') # -> fail
|
775
|
+
def assert_not_match(pattern, string, message=nil)
|
776
|
+
_wrap_assertion do
|
777
|
+
pattern = Regexp.new(Regexp.escape(pattern)) if pattern.is_a?(String)
|
778
|
+
full_message = build_message(message,
|
779
|
+
"<?> was expected to not match\n<?>.",
|
780
|
+
pattern, string)
|
781
|
+
assert_block(full_message) { pattern !~ string }
|
782
|
+
end
|
783
|
+
end
|
784
|
+
|
785
|
+
# Just for minitest compatibility. :<
|
786
|
+
#
|
787
|
+
# @since 2.5.3
|
788
|
+
alias_method :refute_match, :assert_not_match
|
789
|
+
|
790
|
+
##
|
791
|
+
# @deprecated Use {#assert_not_match} instead.
|
792
|
+
#
|
793
|
+
# Passes if `regexp` !~ `string`
|
794
|
+
#
|
795
|
+
# @example
|
796
|
+
# assert_no_match(/two/, 'one 2 three') # -> pass
|
797
|
+
# assert_no_match(/three/, 'one 2 three') # -> fail
|
798
|
+
def assert_no_match(regexp, string, message="")
|
799
|
+
_wrap_assertion do
|
800
|
+
assert_instance_of(Regexp, regexp,
|
801
|
+
"The first argument to assert_no_match " +
|
802
|
+
"should be a Regexp.")
|
803
|
+
assert_not_match(regexp, string, message)
|
804
|
+
end
|
805
|
+
end
|
806
|
+
|
807
|
+
# @private
|
808
|
+
class ThrowTagExtractor
|
809
|
+
@@have_uncaught_throw_error = const_defined?(:UncaughtThrowError)
|
810
|
+
|
811
|
+
UncaughtThrowPatterns = {
|
812
|
+
NameError => /^uncaught throw `(.+)'$/,
|
813
|
+
ArgumentError => /^uncaught throw (`.+'|.+)$/,
|
814
|
+
ThreadError => /^uncaught throw `(.+)' in thread /,
|
815
|
+
}
|
816
|
+
|
817
|
+
def initialize(error)
|
818
|
+
@error = error
|
819
|
+
end
|
820
|
+
|
821
|
+
def extract_tag
|
822
|
+
tag = nil
|
823
|
+
if @@have_uncaught_throw_error
|
824
|
+
return nil unless @error.is_a?(UncaughtThrowError)
|
825
|
+
tag = @error.tag
|
826
|
+
else
|
827
|
+
pattern = UncaughtThrowPatterns[@error.class]
|
828
|
+
return nil if pattern.nil?
|
829
|
+
return nil unless pattern =~ @error.message
|
830
|
+
tag = $1
|
831
|
+
end
|
832
|
+
normalize_tag(tag)
|
833
|
+
end
|
834
|
+
|
835
|
+
private
|
836
|
+
def normalize_tag(tag)
|
837
|
+
case tag
|
838
|
+
when /\A:/
|
839
|
+
tag[1..-1].intern
|
840
|
+
when /\A`(.+)'\z/
|
841
|
+
$1.intern
|
842
|
+
when String
|
843
|
+
tag.intern
|
844
|
+
else
|
845
|
+
tag
|
846
|
+
end
|
847
|
+
end
|
848
|
+
end
|
849
|
+
|
850
|
+
##
|
851
|
+
# Passes if the block throws `expected_object`
|
852
|
+
#
|
853
|
+
# @example
|
854
|
+
# assert_throw(:done) do
|
855
|
+
# throw(:done)
|
856
|
+
# end
|
857
|
+
def assert_throw(expected_object, message=nil, &proc)
|
858
|
+
_wrap_assertion do
|
859
|
+
begin
|
860
|
+
catch([]) {}
|
861
|
+
rescue TypeError
|
862
|
+
assert_instance_of(Symbol, expected_object,
|
863
|
+
"assert_throws expects the symbol that should be thrown for its first argument")
|
864
|
+
end
|
865
|
+
assert_block("Should have passed a block to assert_throw.") do
|
866
|
+
block_given?
|
867
|
+
end
|
868
|
+
caught = true
|
869
|
+
begin
|
870
|
+
catch(expected_object) do
|
871
|
+
proc.call
|
872
|
+
caught = false
|
873
|
+
end
|
874
|
+
full_message = build_message(message,
|
875
|
+
"<?> should have been thrown.",
|
876
|
+
expected_object)
|
877
|
+
assert_block(full_message) {caught}
|
878
|
+
rescue => error
|
879
|
+
extractor = ThrowTagExtractor.new(error)
|
880
|
+
tag = extractor.extract_tag
|
881
|
+
raise if tag.nil?
|
882
|
+
full_message = build_message(message,
|
883
|
+
"<?> was expected to be thrown but\n" +
|
884
|
+
"<?> was thrown.",
|
885
|
+
expected_object, tag)
|
886
|
+
flunk(full_message)
|
887
|
+
end
|
888
|
+
end
|
889
|
+
end
|
890
|
+
|
891
|
+
# Just for minitest compatibility. :<
|
892
|
+
#
|
893
|
+
# @since 2.5.3
|
894
|
+
alias_method :assert_throws, :assert_throw
|
895
|
+
|
896
|
+
##
|
897
|
+
# Passes if block does not throw anything.
|
898
|
+
#
|
899
|
+
# @example
|
900
|
+
# assert_nothing_thrown do
|
901
|
+
# [1, 2].uniq
|
902
|
+
# end
|
903
|
+
def assert_nothing_thrown(message=nil, &proc)
|
904
|
+
_wrap_assertion do
|
905
|
+
assert(block_given?, "Should have passed a block to assert_nothing_thrown")
|
906
|
+
begin
|
907
|
+
proc.call
|
908
|
+
rescue => error
|
909
|
+
extractor = ThrowTagExtractor.new(error)
|
910
|
+
tag = extractor.extract_tag
|
911
|
+
raise if tag.nil?
|
912
|
+
full_message = build_message(message,
|
913
|
+
"<?> was thrown when nothing was expected",
|
914
|
+
tag)
|
915
|
+
flunk(full_message)
|
916
|
+
end
|
917
|
+
assert(true, "Expected nothing to be thrown")
|
918
|
+
end
|
919
|
+
end
|
920
|
+
|
921
|
+
##
|
922
|
+
# Passes if `expected_float` and `actual_float` are equal
|
923
|
+
# within `delta` tolerance.
|
924
|
+
#
|
925
|
+
# @example
|
926
|
+
# assert_in_delta 0.05, (50000.0 / 10**6), 0.00001
|
927
|
+
def assert_in_delta(expected_float, actual_float, delta=0.001, message="")
|
928
|
+
_wrap_assertion do
|
929
|
+
_assert_in_delta_validate_arguments(expected_float,
|
930
|
+
actual_float,
|
931
|
+
delta)
|
932
|
+
full_message = _assert_in_delta_message(expected_float,
|
933
|
+
actual_float,
|
934
|
+
delta,
|
935
|
+
message)
|
936
|
+
assert_block(full_message) do
|
937
|
+
(expected_float.to_f - actual_float.to_f).abs <= delta.to_f
|
938
|
+
end
|
939
|
+
end
|
940
|
+
end
|
941
|
+
|
942
|
+
##
|
943
|
+
# Passes if `expected_float` and `actual_float` are
|
944
|
+
# not equal within `delta` tolerance.
|
945
|
+
#
|
946
|
+
# @example
|
947
|
+
# assert_not_in_delta(0.05, (50000.0 / 10**6), 0.00002) # -> pass
|
948
|
+
# assert_not_in_delta(0.05, (50000.0 / 10**6), 0.00001) # -> fail
|
949
|
+
def assert_not_in_delta(expected_float, actual_float, delta=0.001, message="")
|
950
|
+
_wrap_assertion do
|
951
|
+
_assert_in_delta_validate_arguments(expected_float,
|
952
|
+
actual_float,
|
953
|
+
delta)
|
954
|
+
full_message = _assert_in_delta_message(expected_float,
|
955
|
+
actual_float,
|
956
|
+
delta,
|
957
|
+
message,
|
958
|
+
:negative_assertion => true)
|
959
|
+
assert_block(full_message) do
|
960
|
+
(expected_float.to_f - actual_float.to_f).abs > delta.to_f
|
961
|
+
end
|
962
|
+
end
|
963
|
+
end
|
964
|
+
|
965
|
+
# Just for minitest compatibility. :<
|
966
|
+
#
|
967
|
+
# @since 2.5.3
|
968
|
+
alias_method :refute_in_delta, :assert_not_in_delta
|
969
|
+
|
970
|
+
private
|
971
|
+
def _assert_in_delta_validate_arguments(expected_float,
|
972
|
+
actual_float,
|
973
|
+
delta)
|
974
|
+
{
|
975
|
+
expected_float => "first float",
|
976
|
+
actual_float => "second float",
|
977
|
+
delta => "delta"
|
978
|
+
}.each do |float, name|
|
979
|
+
assert_respond_to(float, :to_f,
|
980
|
+
"The arguments must respond to to_f; " +
|
981
|
+
"the #{name} did not")
|
982
|
+
end
|
983
|
+
delta = delta.to_f
|
984
|
+
assert_operator(delta, :>=, 0.0, "The delta should not be negative")
|
985
|
+
end
|
986
|
+
|
987
|
+
def _assert_in_delta_message(expected_float, actual_float, delta,
|
988
|
+
message, options={})
|
989
|
+
if options[:negative_assertion]
|
990
|
+
format = <<-EOT
|
991
|
+
<?> -/+ <?> was expected to not include
|
992
|
+
<?>.
|
993
|
+
EOT
|
994
|
+
else
|
995
|
+
format = <<-EOT
|
996
|
+
<?> -/+ <?> was expected to include
|
997
|
+
<?>.
|
998
|
+
EOT
|
999
|
+
end
|
1000
|
+
arguments = [expected_float, delta, actual_float]
|
1001
|
+
normalized_expected = expected_float.to_f
|
1002
|
+
normalized_actual = actual_float.to_f
|
1003
|
+
normalized_delta = delta.to_f
|
1004
|
+
relation_format = nil
|
1005
|
+
relation_arguments = nil
|
1006
|
+
if normalized_actual < normalized_expected - normalized_delta
|
1007
|
+
relation_format = "<<?> < <?>-<?>[?] <= <?>+<?>[?]>"
|
1008
|
+
relation_arguments = [actual_float,
|
1009
|
+
expected_float, delta,
|
1010
|
+
normalized_expected - normalized_delta,
|
1011
|
+
expected_float, delta,
|
1012
|
+
normalized_expected + normalized_delta]
|
1013
|
+
elsif normalized_actual <= normalized_expected + normalized_delta
|
1014
|
+
relation_format = "<<?>-<?>[?] <= <?> <= <?>+<?>[?]>"
|
1015
|
+
relation_arguments = [expected_float, delta,
|
1016
|
+
normalized_expected - normalized_delta,
|
1017
|
+
actual_float,
|
1018
|
+
expected_float, delta,
|
1019
|
+
normalized_expected + normalized_delta]
|
1020
|
+
else
|
1021
|
+
relation_format = "<<?>-<?>[?] <= <?>+<?>[?] < <?>>"
|
1022
|
+
relation_arguments = [expected_float, delta,
|
1023
|
+
normalized_expected - normalized_delta,
|
1024
|
+
expected_float, delta,
|
1025
|
+
normalized_expected + normalized_delta,
|
1026
|
+
actual_float]
|
1027
|
+
end
|
1028
|
+
|
1029
|
+
if relation_format
|
1030
|
+
format += <<-EOT
|
1031
|
+
|
1032
|
+
Relation:
|
1033
|
+
#{relation_format}
|
1034
|
+
EOT
|
1035
|
+
arguments.concat(relation_arguments)
|
1036
|
+
end
|
1037
|
+
|
1038
|
+
build_message(message, format, *arguments)
|
1039
|
+
end
|
1040
|
+
|
1041
|
+
public
|
1042
|
+
##
|
1043
|
+
# Passes if `expected_float` and `actual_float` are equal
|
1044
|
+
# within `epsilon` relative error of `expected_float`.
|
1045
|
+
#
|
1046
|
+
# @example
|
1047
|
+
# assert_in_epsilon(10000.0, 9900.0, 0.1) # -> pass
|
1048
|
+
# assert_in_epsilon(10000.0, 9899.0, 0.1) # -> fail
|
1049
|
+
def assert_in_epsilon(expected_float, actual_float, epsilon=0.001,
|
1050
|
+
message="")
|
1051
|
+
_wrap_assertion do
|
1052
|
+
_assert_in_epsilon_validate_arguments(expected_float,
|
1053
|
+
actual_float,
|
1054
|
+
epsilon)
|
1055
|
+
full_message = _assert_in_epsilon_message(expected_float,
|
1056
|
+
actual_float,
|
1057
|
+
epsilon,
|
1058
|
+
message)
|
1059
|
+
assert_block(full_message) do
|
1060
|
+
normalized_expected_float = expected_float.to_f
|
1061
|
+
if normalized_expected_float.zero?
|
1062
|
+
delta = epsilon.to_f ** 2
|
1063
|
+
else
|
1064
|
+
delta = normalized_expected_float * epsilon.to_f
|
1065
|
+
end
|
1066
|
+
delta = delta.abs
|
1067
|
+
(normalized_expected_float - actual_float.to_f).abs <= delta
|
1068
|
+
end
|
1069
|
+
end
|
1070
|
+
end
|
1071
|
+
|
1072
|
+
##
|
1073
|
+
# Passes if `expected_float` and `actual_float` are
|
1074
|
+
# not equal within `epsilon` relative error of
|
1075
|
+
# `expected_float`.
|
1076
|
+
#
|
1077
|
+
# @example
|
1078
|
+
# assert_not_in_epsilon(10000.0, 9900.0, 0.1) # -> fail
|
1079
|
+
# assert_not_in_epsilon(10000.0, 9899.0, 0.1) # -> pass
|
1080
|
+
def assert_not_in_epsilon(expected_float, actual_float, epsilon=0.001,
|
1081
|
+
message="")
|
1082
|
+
_wrap_assertion do
|
1083
|
+
_assert_in_epsilon_validate_arguments(expected_float,
|
1084
|
+
actual_float,
|
1085
|
+
epsilon)
|
1086
|
+
full_message = _assert_in_epsilon_message(expected_float,
|
1087
|
+
actual_float,
|
1088
|
+
epsilon,
|
1089
|
+
message,
|
1090
|
+
:negative_assertion => true)
|
1091
|
+
assert_block(full_message) do
|
1092
|
+
normalized_expected_float = expected_float.to_f
|
1093
|
+
delta = normalized_expected_float * epsilon.to_f
|
1094
|
+
(normalized_expected_float - actual_float.to_f).abs > delta
|
1095
|
+
end
|
1096
|
+
end
|
1097
|
+
end
|
1098
|
+
|
1099
|
+
# Just for minitest compatibility. :<
|
1100
|
+
#
|
1101
|
+
# @since 3.0.0
|
1102
|
+
alias_method :refute_in_epsilon, :assert_not_in_epsilon
|
1103
|
+
|
1104
|
+
private
|
1105
|
+
def _assert_in_epsilon_validate_arguments(expected_float,
|
1106
|
+
actual_float,
|
1107
|
+
epsilon)
|
1108
|
+
{
|
1109
|
+
expected_float => "first float",
|
1110
|
+
actual_float => "second float",
|
1111
|
+
epsilon => "epsilon"
|
1112
|
+
}.each do |float, name|
|
1113
|
+
assert_respond_to(float, :to_f,
|
1114
|
+
"The arguments must respond to to_f; " +
|
1115
|
+
"the #{name} did not")
|
1116
|
+
end
|
1117
|
+
epsilon = epsilon.to_f
|
1118
|
+
assert_operator(epsilon, :>=, 0.0, "The epsilon should not be negative")
|
1119
|
+
end
|
1120
|
+
|
1121
|
+
def _assert_in_epsilon_message(expected_float, actual_float, epsilon,
|
1122
|
+
message, options={})
|
1123
|
+
normalized_expected = expected_float.to_f
|
1124
|
+
normalized_actual = actual_float.to_f
|
1125
|
+
normalized_epsilon = epsilon.to_f
|
1126
|
+
delta = normalized_expected * normalized_epsilon
|
1127
|
+
|
1128
|
+
if options[:negative_assertion]
|
1129
|
+
format = <<-EOT
|
1130
|
+
<?> -/+ (<?> * <?>)[?] was expected to not include
|
1131
|
+
<?>.
|
1132
|
+
EOT
|
1133
|
+
else
|
1134
|
+
format = <<-EOT
|
1135
|
+
<?> -/+ (<?> * <?>)[?] was expected to include
|
1136
|
+
<?>.
|
1137
|
+
EOT
|
1138
|
+
end
|
1139
|
+
arguments = [expected_float, expected_float, epsilon, delta,
|
1140
|
+
actual_float]
|
1141
|
+
|
1142
|
+
relation_format = nil
|
1143
|
+
relation_arguments = nil
|
1144
|
+
if normalized_actual < normalized_expected - delta
|
1145
|
+
relation_format = "<<?> < <?>-(<?>*<?>)[?] <= <?>+(<?>*<?>)[?]>"
|
1146
|
+
relation_arguments = [actual_float,
|
1147
|
+
expected_float, expected_float, epsilon,
|
1148
|
+
normalized_expected - delta,
|
1149
|
+
expected_float, expected_float, epsilon,
|
1150
|
+
normalized_expected + delta]
|
1151
|
+
elsif normalized_actual <= normalized_expected + delta
|
1152
|
+
relation_format = "<<?>-(<?>*<?>)[?] <= <?> <= <?>+(<?>*<?>)[?]>"
|
1153
|
+
relation_arguments = [expected_float, expected_float, epsilon,
|
1154
|
+
normalized_expected - delta,
|
1155
|
+
actual_float,
|
1156
|
+
expected_float, expected_float, epsilon,
|
1157
|
+
normalized_expected + delta]
|
1158
|
+
else
|
1159
|
+
relation_format = "<<?>-(<?>*<?>)[?] <= <?>+(<?>*<?>)[?] < <?>>"
|
1160
|
+
relation_arguments = [expected_float, expected_float, epsilon,
|
1161
|
+
normalized_expected - delta,
|
1162
|
+
expected_float, expected_float, epsilon,
|
1163
|
+
normalized_expected + delta,
|
1164
|
+
actual_float]
|
1165
|
+
end
|
1166
|
+
|
1167
|
+
if relation_format
|
1168
|
+
format += <<-EOT
|
1169
|
+
|
1170
|
+
Relation:
|
1171
|
+
#{relation_format}
|
1172
|
+
EOT
|
1173
|
+
arguments.concat(relation_arguments)
|
1174
|
+
end
|
1175
|
+
|
1176
|
+
build_message(message, format, *arguments)
|
1177
|
+
end
|
1178
|
+
|
1179
|
+
public
|
1180
|
+
##
|
1181
|
+
# Passes if the method `__send__` returns not false nor nil.
|
1182
|
+
#
|
1183
|
+
# `send_array` is composed of:
|
1184
|
+
# * A receiver
|
1185
|
+
# * A method
|
1186
|
+
# * Arguments to the method
|
1187
|
+
#
|
1188
|
+
# @example
|
1189
|
+
# assert_send([[1, 2], :member?, 1]) # -> pass
|
1190
|
+
# assert_send([[1, 2], :member?, 4]) # -> fail
|
1191
|
+
def assert_send(send_array, message=nil)
|
1192
|
+
_wrap_assertion do
|
1193
|
+
assert_instance_of(Array, send_array,
|
1194
|
+
"assert_send requires an array " +
|
1195
|
+
"of send information")
|
1196
|
+
assert_operator(send_array.size, :>=, 2,
|
1197
|
+
"assert_send requires at least a receiver " +
|
1198
|
+
"and a message name")
|
1199
|
+
format = <<EOT
|
1200
|
+
<?> was expected to respond to
|
1201
|
+
<?(*?)> with a true value but was
|
1202
|
+
<?>.
|
1203
|
+
EOT
|
1204
|
+
receiver, message_name, *arguments = send_array
|
1205
|
+
result = nil
|
1206
|
+
full_message =
|
1207
|
+
build_message(message,
|
1208
|
+
format,
|
1209
|
+
receiver,
|
1210
|
+
AssertionMessage.literal(message_name.to_s),
|
1211
|
+
arguments,
|
1212
|
+
AssertionMessage.delayed_literal {result})
|
1213
|
+
assert_block(full_message) do
|
1214
|
+
result = receiver.__send__(message_name, *arguments)
|
1215
|
+
result
|
1216
|
+
end
|
1217
|
+
end
|
1218
|
+
end
|
1219
|
+
|
1220
|
+
##
|
1221
|
+
# Passes if the method `__send__` returns false or nil.
|
1222
|
+
#
|
1223
|
+
# `send_array` is composed of:
|
1224
|
+
# * A receiver
|
1225
|
+
# * A method
|
1226
|
+
# * Arguments to the method
|
1227
|
+
#
|
1228
|
+
# @example
|
1229
|
+
# assert_not_send([[1, 2], :member?, 1]) # -> fail
|
1230
|
+
# assert_not_send([[1, 2], :member?, 4]) # -> pass
|
1231
|
+
def assert_not_send(send_array, message=nil)
|
1232
|
+
_wrap_assertion do
|
1233
|
+
assert_instance_of(Array, send_array,
|
1234
|
+
"assert_not_send requires an array " +
|
1235
|
+
"of send information")
|
1236
|
+
assert_operator(send_array.size, :>=, 2,
|
1237
|
+
"assert_not_send requires at least a receiver " +
|
1238
|
+
"and a message name")
|
1239
|
+
format = <<EOT
|
1240
|
+
<?> was expected to respond to
|
1241
|
+
<?(*?)> with not a true value but was
|
1242
|
+
<?>.
|
1243
|
+
EOT
|
1244
|
+
receiver, message_name, *arguments = send_array
|
1245
|
+
result = nil
|
1246
|
+
full_message =
|
1247
|
+
build_message(message,
|
1248
|
+
format,
|
1249
|
+
receiver,
|
1250
|
+
AssertionMessage.literal(message_name.to_s),
|
1251
|
+
arguments,
|
1252
|
+
AssertionMessage.delayed_literal {result})
|
1253
|
+
assert_block(full_message) do
|
1254
|
+
result = receiver.__send__(message_name, *arguments)
|
1255
|
+
not result
|
1256
|
+
end
|
1257
|
+
end
|
1258
|
+
end
|
1259
|
+
|
1260
|
+
##
|
1261
|
+
# Passes if `actual` is a boolean value.
|
1262
|
+
#
|
1263
|
+
# @example
|
1264
|
+
# assert_boolean(true) # -> pass
|
1265
|
+
# assert_boolean(nil) # -> fail
|
1266
|
+
def assert_boolean(actual, message=nil)
|
1267
|
+
_wrap_assertion do
|
1268
|
+
assert_block(build_message(message,
|
1269
|
+
"<true> or <false> expected but was\n<?>",
|
1270
|
+
actual)) do
|
1271
|
+
true == actual || false == actual
|
1272
|
+
end
|
1273
|
+
end
|
1274
|
+
end
|
1275
|
+
|
1276
|
+
##
|
1277
|
+
# Passes if `actual` is true.
|
1278
|
+
#
|
1279
|
+
# @example
|
1280
|
+
# assert_true(true) # -> pass
|
1281
|
+
# assert_true(:true) # -> fail
|
1282
|
+
def assert_true(actual, message=nil)
|
1283
|
+
_wrap_assertion do
|
1284
|
+
assert_block(build_message(message,
|
1285
|
+
"<true> expected but was\n<?>",
|
1286
|
+
actual)) do
|
1287
|
+
true == actual
|
1288
|
+
end
|
1289
|
+
end
|
1290
|
+
end
|
1291
|
+
|
1292
|
+
##
|
1293
|
+
# Passes if `actual` is false.
|
1294
|
+
#
|
1295
|
+
# @example
|
1296
|
+
# assert_false(false) # -> pass
|
1297
|
+
# assert_false(nil) # -> fail
|
1298
|
+
def assert_false(actual, message=nil)
|
1299
|
+
_wrap_assertion do
|
1300
|
+
assert_block(build_message(message,
|
1301
|
+
"<false> expected but was\n<?>",
|
1302
|
+
actual)) do
|
1303
|
+
false == actual
|
1304
|
+
end
|
1305
|
+
end
|
1306
|
+
end
|
1307
|
+
|
1308
|
+
##
|
1309
|
+
# Passes if expression "`expected` `operator`
|
1310
|
+
# `actual`" is not false nor nil.
|
1311
|
+
#
|
1312
|
+
# @example
|
1313
|
+
# assert_compare(1, "<", 10) # -> pass
|
1314
|
+
# assert_compare(1, ">=", 10) # -> fail
|
1315
|
+
def assert_compare(expected, operator, actual, message=nil)
|
1316
|
+
_wrap_assertion do
|
1317
|
+
assert_send([["<", "<=", ">", ">="], :include?, operator.to_s])
|
1318
|
+
case operator.to_s
|
1319
|
+
when "<"
|
1320
|
+
operator_description = "less than"
|
1321
|
+
when "<="
|
1322
|
+
operator_description = "less than or equal to"
|
1323
|
+
when ">"
|
1324
|
+
operator_description = "greater than"
|
1325
|
+
when ">="
|
1326
|
+
operator_description = "greater than or equal to"
|
1327
|
+
end
|
1328
|
+
template = <<-EOT
|
1329
|
+
<?> #{operator} <?> should be true
|
1330
|
+
<?> was expected to be #{operator_description}
|
1331
|
+
<?>.
|
1332
|
+
EOT
|
1333
|
+
full_message = build_message(message, template,
|
1334
|
+
expected, actual,
|
1335
|
+
expected, actual)
|
1336
|
+
assert_block(full_message) do
|
1337
|
+
expected.__send__(operator, actual)
|
1338
|
+
end
|
1339
|
+
end
|
1340
|
+
end
|
1341
|
+
|
1342
|
+
##
|
1343
|
+
# Passes if assertion is failed in block.
|
1344
|
+
#
|
1345
|
+
# @example
|
1346
|
+
# assert_fail_assertion {assert_equal("A", "B")} # -> pass
|
1347
|
+
# assert_fail_assertion {assert_equal("A", "A")} # -> fail
|
1348
|
+
def assert_fail_assertion(message=nil)
|
1349
|
+
_wrap_assertion do
|
1350
|
+
full_message = build_message(message,
|
1351
|
+
"Failed assertion was expected.")
|
1352
|
+
assert_block(full_message) do
|
1353
|
+
begin
|
1354
|
+
yield
|
1355
|
+
false
|
1356
|
+
rescue AssertionFailedError
|
1357
|
+
true
|
1358
|
+
end
|
1359
|
+
end
|
1360
|
+
end
|
1361
|
+
end
|
1362
|
+
|
1363
|
+
##
|
1364
|
+
# Passes if an exception is raised in block and its
|
1365
|
+
# message is `expected`.
|
1366
|
+
#
|
1367
|
+
# @example
|
1368
|
+
# assert_raise_message("exception") {raise "exception"} # -> pass
|
1369
|
+
# assert_raise_message(/exc/i) {raise "exception"} # -> pass
|
1370
|
+
# assert_raise_message("exception") {raise "EXCEPTION"} # -> fail
|
1371
|
+
# assert_raise_message("exception") {} # -> fail
|
1372
|
+
def assert_raise_message(expected, message=nil)
|
1373
|
+
_wrap_assertion do
|
1374
|
+
full_message = build_message(message,
|
1375
|
+
"<?> exception message was expected " +
|
1376
|
+
"but none was thrown.",
|
1377
|
+
expected)
|
1378
|
+
exception = nil
|
1379
|
+
assert_block(full_message) do
|
1380
|
+
begin
|
1381
|
+
yield
|
1382
|
+
false
|
1383
|
+
rescue Exception => exception
|
1384
|
+
true
|
1385
|
+
end
|
1386
|
+
end
|
1387
|
+
|
1388
|
+
actual = exception.message
|
1389
|
+
diff = AssertionMessage.delayed_diff(expected, actual)
|
1390
|
+
full_message =
|
1391
|
+
build_message(message,
|
1392
|
+
"<?> exception message expected but was\n" +
|
1393
|
+
"<?>.?", expected, actual, diff)
|
1394
|
+
assert_block(full_message) do
|
1395
|
+
if expected.is_a?(Regexp)
|
1396
|
+
expected =~ actual
|
1397
|
+
else
|
1398
|
+
expected == actual
|
1399
|
+
end
|
1400
|
+
end
|
1401
|
+
end
|
1402
|
+
end
|
1403
|
+
|
1404
|
+
##
|
1405
|
+
# Passes if `object`.const_defined?(`constant_name`)
|
1406
|
+
#
|
1407
|
+
# @example
|
1408
|
+
# assert_const_defined(Test, :Unit) # -> pass
|
1409
|
+
# assert_const_defined(Object, :Nonexistent) # -> fail
|
1410
|
+
def assert_const_defined(object, constant_name, message=nil)
|
1411
|
+
_wrap_assertion do
|
1412
|
+
full_message = build_message(message,
|
1413
|
+
"<?>.const_defined\\?(<?>) expected.",
|
1414
|
+
object, constant_name)
|
1415
|
+
assert_block(full_message) do
|
1416
|
+
object.const_defined?(constant_name)
|
1417
|
+
end
|
1418
|
+
end
|
1419
|
+
end
|
1420
|
+
|
1421
|
+
##
|
1422
|
+
# Passes if !`object`.const_defined?(`constant_name`)
|
1423
|
+
#
|
1424
|
+
# @example
|
1425
|
+
# assert_not_const_defined(Object, :Nonexistent) # -> pass
|
1426
|
+
# assert_not_const_defined(Test, :Unit) # -> fail
|
1427
|
+
def assert_not_const_defined(object, constant_name, message=nil)
|
1428
|
+
_wrap_assertion do
|
1429
|
+
full_message = build_message(message,
|
1430
|
+
"!<?>.const_defined\\?(<?>) expected.",
|
1431
|
+
object, constant_name)
|
1432
|
+
assert_block(full_message) do
|
1433
|
+
!object.const_defined?(constant_name)
|
1434
|
+
end
|
1435
|
+
end
|
1436
|
+
end
|
1437
|
+
|
1438
|
+
##
|
1439
|
+
# Passes if `object`.`predicate` is not false nor nil.
|
1440
|
+
#
|
1441
|
+
# @example
|
1442
|
+
# assert_predicate([], :empty?) # -> pass
|
1443
|
+
# assert_predicate([1], :empty?) # -> fail
|
1444
|
+
def assert_predicate(object, predicate, message=nil)
|
1445
|
+
_wrap_assertion do
|
1446
|
+
assert_respond_to(object, predicate, message)
|
1447
|
+
actual = object.__send__(predicate)
|
1448
|
+
full_message = build_message(message,
|
1449
|
+
"<?>.? is true value expected but was\n" +
|
1450
|
+
"<?>",
|
1451
|
+
object,
|
1452
|
+
AssertionMessage.literal(predicate),
|
1453
|
+
actual)
|
1454
|
+
assert_block(full_message) do
|
1455
|
+
actual
|
1456
|
+
end
|
1457
|
+
end
|
1458
|
+
end
|
1459
|
+
|
1460
|
+
##
|
1461
|
+
# Passes if `object`.`predicate` is false or nil.
|
1462
|
+
#
|
1463
|
+
# @example
|
1464
|
+
# assert_not_predicate([1], :empty?) # -> pass
|
1465
|
+
# assert_not_predicate([], :empty?) # -> fail
|
1466
|
+
def assert_not_predicate(object, predicate, message=nil)
|
1467
|
+
_wrap_assertion do
|
1468
|
+
assert_respond_to(object, predicate, message)
|
1469
|
+
actual = object.__send__(predicate)
|
1470
|
+
full_message = build_message(message,
|
1471
|
+
"<?>.? is false value expected but was\n" +
|
1472
|
+
"<?>",
|
1473
|
+
object,
|
1474
|
+
AssertionMessage.literal(predicate),
|
1475
|
+
actual)
|
1476
|
+
assert_block(full_message) do
|
1477
|
+
not actual
|
1478
|
+
end
|
1479
|
+
end
|
1480
|
+
end
|
1481
|
+
|
1482
|
+
# Just for minitest compatibility. :<
|
1483
|
+
#
|
1484
|
+
# @since 3.0.0
|
1485
|
+
alias_method :refute_predicate, :assert_not_predicate
|
1486
|
+
|
1487
|
+
##
|
1488
|
+
# Passes if `object`#`alias_name` is an alias method of
|
1489
|
+
# `object`#`original_name`.
|
1490
|
+
#
|
1491
|
+
# @example
|
1492
|
+
# assert_alias_method([], :length, :size) # -> pass
|
1493
|
+
# assert_alias_method([], :size, :length) # -> pass
|
1494
|
+
# assert_alias_method([], :each, :size) # -> fail
|
1495
|
+
def assert_alias_method(object, alias_name, original_name, message=nil)
|
1496
|
+
_wrap_assertion do
|
1497
|
+
find_method_failure_message = Proc.new do |method_name|
|
1498
|
+
build_message(message,
|
1499
|
+
"<?>.? doesn't exist\n" +
|
1500
|
+
"(Class: <?>)",
|
1501
|
+
object,
|
1502
|
+
AssertionMessage.literal(method_name),
|
1503
|
+
object.class)
|
1504
|
+
end
|
1505
|
+
|
1506
|
+
alias_method = original_method = nil
|
1507
|
+
assert_block(find_method_failure_message.call(alias_name)) do
|
1508
|
+
begin
|
1509
|
+
alias_method = object.method(alias_name)
|
1510
|
+
true
|
1511
|
+
rescue NameError
|
1512
|
+
false
|
1513
|
+
end
|
1514
|
+
end
|
1515
|
+
assert_block(find_method_failure_message.call(original_name)) do
|
1516
|
+
begin
|
1517
|
+
original_method = object.method(original_name)
|
1518
|
+
true
|
1519
|
+
rescue NameError
|
1520
|
+
false
|
1521
|
+
end
|
1522
|
+
end
|
1523
|
+
|
1524
|
+
full_message = build_message(message,
|
1525
|
+
"<?> is alias of\n" +
|
1526
|
+
"<?> expected",
|
1527
|
+
alias_method,
|
1528
|
+
original_method)
|
1529
|
+
assert_block(full_message) do
|
1530
|
+
alias_method == original_method
|
1531
|
+
end
|
1532
|
+
end
|
1533
|
+
end
|
1534
|
+
|
1535
|
+
##
|
1536
|
+
# Passes if `path` exists.
|
1537
|
+
#
|
1538
|
+
# @example
|
1539
|
+
# assert_path_exist("/tmp") # -> pass
|
1540
|
+
# assert_path_exist("/bin/sh") # -> pass
|
1541
|
+
# assert_path_exist("/nonexistent") # -> fail
|
1542
|
+
def assert_path_exist(path, message=nil)
|
1543
|
+
_wrap_assertion do
|
1544
|
+
failure_message = build_message(message,
|
1545
|
+
"<?> was expected to exist",
|
1546
|
+
path)
|
1547
|
+
assert_block(failure_message) do
|
1548
|
+
File.exist?(path)
|
1549
|
+
end
|
1550
|
+
end
|
1551
|
+
end
|
1552
|
+
|
1553
|
+
##
|
1554
|
+
# Passes if `path` doesn't exist.
|
1555
|
+
#
|
1556
|
+
# @example
|
1557
|
+
# assert_path_not_exist("/nonexistent") # -> pass
|
1558
|
+
# assert_path_not_exist("/tmp") # -> fail
|
1559
|
+
# assert_path_not_exist("/bin/sh") # -> fail
|
1560
|
+
def assert_path_not_exist(path, message=nil)
|
1561
|
+
_wrap_assertion do
|
1562
|
+
failure_message = build_message(message,
|
1563
|
+
"<?> was expected to not exist",
|
1564
|
+
path)
|
1565
|
+
assert_block(failure_message) do
|
1566
|
+
not File.exist?(path)
|
1567
|
+
end
|
1568
|
+
end
|
1569
|
+
end
|
1570
|
+
|
1571
|
+
##
|
1572
|
+
# Passes if `collection` includes `object`.
|
1573
|
+
#
|
1574
|
+
# @example
|
1575
|
+
# assert_include([1, 10], 1) # -> pass
|
1576
|
+
# assert_include(1..10, 5) # -> pass
|
1577
|
+
# assert_include([1, 10], 5) # -> fail
|
1578
|
+
# assert_include(1..10, 20) # -> fail
|
1579
|
+
def assert_include(collection, object, message=nil)
|
1580
|
+
_wrap_assertion do
|
1581
|
+
assert_respond_to(collection, :include?,
|
1582
|
+
"The collection must respond to :include?.")
|
1583
|
+
full_message = build_message(message,
|
1584
|
+
"<?> was expected to include\n<?>.",
|
1585
|
+
collection,
|
1586
|
+
object)
|
1587
|
+
assert_block(full_message) do
|
1588
|
+
collection.include?(object)
|
1589
|
+
end
|
1590
|
+
end
|
1591
|
+
end
|
1592
|
+
|
1593
|
+
# Just for minitest compatibility. :<
|
1594
|
+
#
|
1595
|
+
# @since 2.5.3
|
1596
|
+
alias_method :assert_includes, :assert_include
|
1597
|
+
|
1598
|
+
##
|
1599
|
+
# Passes if `collection` doesn't include `object`.
|
1600
|
+
#
|
1601
|
+
# @example
|
1602
|
+
# assert_not_include([1, 10], 5) # -> pass
|
1603
|
+
# assert_not_include(1..10, 20) # -> pass
|
1604
|
+
# assert_not_include([1, 10], 1) # -> fail
|
1605
|
+
# assert_not_include(1..10, 5) # -> fail
|
1606
|
+
def assert_not_include(collection, object, message=nil)
|
1607
|
+
_wrap_assertion do
|
1608
|
+
assert_respond_to(collection, :include?,
|
1609
|
+
"The collection must respond to :include?.")
|
1610
|
+
full_message = build_message(message,
|
1611
|
+
"<?> was expected to not include\n<?>.",
|
1612
|
+
collection,
|
1613
|
+
object)
|
1614
|
+
assert_block(full_message) do
|
1615
|
+
not collection.include?(object)
|
1616
|
+
end
|
1617
|
+
end
|
1618
|
+
end
|
1619
|
+
|
1620
|
+
# Just for minitest compatibility. :<
|
1621
|
+
#
|
1622
|
+
# @since 3.0.0
|
1623
|
+
alias_method :assert_not_includes, :assert_not_include
|
1624
|
+
|
1625
|
+
# Just for minitest compatibility. :<
|
1626
|
+
#
|
1627
|
+
# @since 3.0.0
|
1628
|
+
alias_method :refute_includes, :assert_not_include
|
1629
|
+
|
1630
|
+
##
|
1631
|
+
# Passes if `object` is empty.
|
1632
|
+
#
|
1633
|
+
# @example
|
1634
|
+
# assert_empty("") # -> pass
|
1635
|
+
# assert_empty([]) # -> pass
|
1636
|
+
# assert_empty({}) # -> pass
|
1637
|
+
# assert_empty(" ") # -> fail
|
1638
|
+
# assert_empty([nil]) # -> fail
|
1639
|
+
# assert_empty({1 => 2}) # -> fail
|
1640
|
+
def assert_empty(object, message=nil)
|
1641
|
+
_wrap_assertion do
|
1642
|
+
assert_respond_to(object, :empty?,
|
1643
|
+
"The object must respond to :empty?.")
|
1644
|
+
full_message = build_message(message,
|
1645
|
+
"<?> was expected to be empty.",
|
1646
|
+
object)
|
1647
|
+
assert_block(full_message) do
|
1648
|
+
object.empty?
|
1649
|
+
end
|
1650
|
+
end
|
1651
|
+
end
|
1652
|
+
|
1653
|
+
##
|
1654
|
+
# Passes if `object` is not empty.
|
1655
|
+
#
|
1656
|
+
# @example
|
1657
|
+
# assert_not_empty(" ") # -> pass
|
1658
|
+
# assert_not_empty([nil]) # -> pass
|
1659
|
+
# assert_not_empty({1 => 2}) # -> pass
|
1660
|
+
# assert_not_empty("") # -> fail
|
1661
|
+
# assert_not_empty([]) # -> fail
|
1662
|
+
# assert_not_empty({}) # -> fail
|
1663
|
+
def assert_not_empty(object, message=nil)
|
1664
|
+
_wrap_assertion do
|
1665
|
+
assert_respond_to(object, :empty?,
|
1666
|
+
"The object must respond to :empty?.")
|
1667
|
+
full_message = build_message(message,
|
1668
|
+
"<?> was expected to not be empty.",
|
1669
|
+
object)
|
1670
|
+
assert_block(full_message) do
|
1671
|
+
not object.empty?
|
1672
|
+
end
|
1673
|
+
end
|
1674
|
+
end
|
1675
|
+
|
1676
|
+
# Just for minitest compatibility. :<
|
1677
|
+
#
|
1678
|
+
# @since 3.0.0
|
1679
|
+
alias_method :refute_empty, :assert_not_empty
|
1680
|
+
|
1681
|
+
# @overload assert_all(collection, message=nil, &block)
|
1682
|
+
#
|
1683
|
+
# Asserts that all `block.call(item)` where `item` is each
|
1684
|
+
# item in `collection` are not false nor nil.
|
1685
|
+
#
|
1686
|
+
# If `collection` is empty, this assertion is always passed
|
1687
|
+
# with any `block`.
|
1688
|
+
#
|
1689
|
+
# @example Pass patterns
|
1690
|
+
# assert_all([1, 2, 3]) {|item| item > 0} # => pass
|
1691
|
+
# assert_all([1, 2, 3], &:positive?) # => pass
|
1692
|
+
# assert_all([]) {|item| false} # => pass
|
1693
|
+
#
|
1694
|
+
# @example Failure pattern
|
1695
|
+
# assert_all([0, 1, 2], &:zero?) # => failure
|
1696
|
+
#
|
1697
|
+
# @param [#each] collection The check target.
|
1698
|
+
# @param [String] message The additional user message. It is
|
1699
|
+
# showed when the assertion is failed.
|
1700
|
+
# @yield [Object] Give each item in `collection` to the block.
|
1701
|
+
# @yieldreturn [Object] The checked object.
|
1702
|
+
# @return [void]
|
1703
|
+
#
|
1704
|
+
# @since 3.4.4
|
1705
|
+
def assert_all(collection, message=nil)
|
1706
|
+
_wrap_assertion do
|
1707
|
+
failed = false
|
1708
|
+
result = {}
|
1709
|
+
collection.each do |item|
|
1710
|
+
element_result = yield(item)
|
1711
|
+
failed = true unless element_result
|
1712
|
+
result[item] = element_result
|
1713
|
+
end
|
1714
|
+
format = <<-FORMAT
|
1715
|
+
<?> was expected to be all true values with the given block but was
|
1716
|
+
<?>
|
1717
|
+
FORMAT
|
1718
|
+
full_message = build_message(message,
|
1719
|
+
format,
|
1720
|
+
collection,
|
1721
|
+
result)
|
1722
|
+
assert_block(full_message) do
|
1723
|
+
not failed
|
1724
|
+
end
|
1725
|
+
end
|
1726
|
+
end
|
1727
|
+
|
1728
|
+
# Just for Ruby's tool/lib/test/unit compatibility.
|
1729
|
+
#
|
1730
|
+
# @since 3.4.3
|
1731
|
+
alias_method :assert_all?, :assert_all
|
1732
|
+
|
1733
|
+
# @overload assert_nothing_leaked_memory(max_increasable_size, target=:physical, message=nil, &block)
|
1734
|
+
#
|
1735
|
+
# Asserts that increased memory usage by `block.call` is less
|
1736
|
+
# than `max_increasable_size`. `GC.start` is called before and
|
1737
|
+
# after `block.call`.
|
1738
|
+
#
|
1739
|
+
# This assertion may be fragile. Because memory usage is
|
1740
|
+
# depends on the current Ruby process's memory
|
1741
|
+
# usage. Launching a new Ruby process for this will produce
|
1742
|
+
# more stable result but we need to specify target code as
|
1743
|
+
# `String` instead of block for the approach. We choose easy
|
1744
|
+
# to write API approach rather than more stable result
|
1745
|
+
# approach for this case.
|
1746
|
+
#
|
1747
|
+
# @example Pass pattern
|
1748
|
+
# require "objspace"
|
1749
|
+
# size_per_object = ObjectSpace.memsize_of("Hello")
|
1750
|
+
# # If memory isn't leaked, physical memory of almost created objects
|
1751
|
+
# # (1000 - 10 objects) must be freed.
|
1752
|
+
# assert_nothing_leaked_memory(size_per_object * 10) do
|
1753
|
+
# 1_000.times do
|
1754
|
+
# "Hello".dup
|
1755
|
+
# end
|
1756
|
+
# end # => pass
|
1757
|
+
#
|
1758
|
+
# @example Failure pattern
|
1759
|
+
# require "objspace"
|
1760
|
+
# size_per_object = ObjectSpace.memsize_of("Hello")
|
1761
|
+
# strings = []
|
1762
|
+
# assert_nothing_leaked_memory(size_per_object * 10) do
|
1763
|
+
# 10_000.times do
|
1764
|
+
# # Created objects aren't GC-ed because they are referred.
|
1765
|
+
# strings << "Hello".dup
|
1766
|
+
# end
|
1767
|
+
# end # => failure
|
1768
|
+
#
|
1769
|
+
# @param target [:physical, :virtual] which memory usage is
|
1770
|
+
# used for comparing. `:physical` means physical memory usage
|
1771
|
+
# also known as Resident Set Size (RSS). `:virtual` means
|
1772
|
+
# virtual memory usage.
|
1773
|
+
# @yield [] do anything you want to measure memory usage
|
1774
|
+
# in the block.
|
1775
|
+
# @yieldreturn [void]
|
1776
|
+
# @return [void]
|
1777
|
+
#
|
1778
|
+
# @since 3.4.5
|
1779
|
+
def assert_nothing_leaked_memory(max_increasable_size,
|
1780
|
+
target=:physical,
|
1781
|
+
message=nil)
|
1782
|
+
_wrap_assertion do
|
1783
|
+
GC.start
|
1784
|
+
before = Util::MemoryUsage.new
|
1785
|
+
unless before.collected?
|
1786
|
+
omit("memory usage collection isn't supported on this platform")
|
1787
|
+
end
|
1788
|
+
yield
|
1789
|
+
GC.start
|
1790
|
+
after = Util::MemoryUsage.new
|
1791
|
+
before_value = before.__send__(target)
|
1792
|
+
after_value = after.__send__(target)
|
1793
|
+
actual_increased_size = after_value - before_value
|
1794
|
+
template = <<-TEMPLATE
|
1795
|
+
<?> was expected to be less than
|
1796
|
+
<?>.
|
1797
|
+
TEMPLATE
|
1798
|
+
full_message = build_message(message,
|
1799
|
+
template,
|
1800
|
+
actual_increased_size,
|
1801
|
+
max_increasable_size)
|
1802
|
+
assert_block(full_message) do
|
1803
|
+
actual_increased_size < max_increasable_size
|
1804
|
+
end
|
1805
|
+
end
|
1806
|
+
end
|
1807
|
+
|
1808
|
+
##
|
1809
|
+
# Builds a failure message. `user_message` is added before the
|
1810
|
+
# `template` and `arguments` replaces the '?'s positionally in
|
1811
|
+
# the template.
|
1812
|
+
def build_message(user_message, template=nil, *arguments)
|
1813
|
+
template &&= template.chomp
|
1814
|
+
return AssertionMessage.new(user_message, template, arguments)
|
1815
|
+
end
|
1816
|
+
|
1817
|
+
private
|
1818
|
+
def _wrap_assertion(&block)
|
1819
|
+
@_assertion_wrapped ||= false
|
1820
|
+
if @_assertion_wrapped
|
1821
|
+
block.call
|
1822
|
+
else
|
1823
|
+
@_assertion_wrapped = true
|
1824
|
+
begin
|
1825
|
+
add_assertion
|
1826
|
+
block.call
|
1827
|
+
ensure
|
1828
|
+
@_assertion_wrapped = false
|
1829
|
+
end
|
1830
|
+
end
|
1831
|
+
end
|
1832
|
+
|
1833
|
+
public
|
1834
|
+
# Called whenever an assertion is made. Define this in classes
|
1835
|
+
# that include Test::Unit::Assertions to record assertion
|
1836
|
+
# counts.
|
1837
|
+
#
|
1838
|
+
# This is a public API for developers who extend test-unit.
|
1839
|
+
#
|
1840
|
+
# @return [void]
|
1841
|
+
def add_assertion
|
1842
|
+
end
|
1843
|
+
|
1844
|
+
##
|
1845
|
+
# Select whether or not to use the pretty-printer. If this option is set
|
1846
|
+
# to false before any assertions are made, pp.rb will not be required.
|
1847
|
+
def self.use_pp=(value)
|
1848
|
+
AssertionMessage.use_pp = value
|
1849
|
+
end
|
1850
|
+
|
1851
|
+
private
|
1852
|
+
def _assert_raise(assert_expected_exception, *args, &block)
|
1853
|
+
_wrap_assertion do
|
1854
|
+
if args.last.is_a?(String)
|
1855
|
+
message = args.pop
|
1856
|
+
else
|
1857
|
+
message = ""
|
1858
|
+
end
|
1859
|
+
|
1860
|
+
assert_exception_helper = AssertExceptionHelper.new(self, args)
|
1861
|
+
expected = assert_exception_helper.expected_exceptions
|
1862
|
+
actual_exception = nil
|
1863
|
+
full_message = build_message(message,
|
1864
|
+
"<?> exception was expected " +
|
1865
|
+
"but none was thrown.",
|
1866
|
+
expected)
|
1867
|
+
assert_block(full_message) do
|
1868
|
+
begin
|
1869
|
+
yield
|
1870
|
+
false
|
1871
|
+
rescue Exception => actual_exception
|
1872
|
+
true
|
1873
|
+
end
|
1874
|
+
end
|
1875
|
+
assert_expected_exception.call(message, assert_exception_helper,
|
1876
|
+
actual_exception)
|
1877
|
+
actual_exception
|
1878
|
+
end
|
1879
|
+
end
|
1880
|
+
|
1881
|
+
def _set_failed_information(failure, expected, actual)
|
1882
|
+
failure.expected = expected
|
1883
|
+
failure.actual = actual
|
1884
|
+
failure.inspected_expected = AssertionMessage.convert(expected)
|
1885
|
+
failure.inspected_actual = AssertionMessage.convert(actual)
|
1886
|
+
end
|
1887
|
+
|
1888
|
+
class AssertionMessage
|
1889
|
+
@use_pp = true
|
1890
|
+
class << self
|
1891
|
+
attr_accessor :use_pp
|
1892
|
+
|
1893
|
+
def literal(value)
|
1894
|
+
Literal.new(value)
|
1895
|
+
end
|
1896
|
+
|
1897
|
+
def delayed_literal(&block)
|
1898
|
+
DelayedLiteral.new(block)
|
1899
|
+
end
|
1900
|
+
|
1901
|
+
def maybe_container(value, &formatter)
|
1902
|
+
MaybeContainer.new(value, &formatter)
|
1903
|
+
end
|
1904
|
+
|
1905
|
+
MAX_DIFF_TARGET_STRING_SIZE = 1000
|
1906
|
+
def max_diff_target_string_size
|
1907
|
+
return @@max_diff_target_string_size if @@max_diff_target_string_size
|
1908
|
+
|
1909
|
+
size = ENV["TEST_UNIT_MAX_DIFF_TARGET_STRING_SIZE"]
|
1910
|
+
if size
|
1911
|
+
begin
|
1912
|
+
size = Integer(size)
|
1913
|
+
rescue ArgumentError
|
1914
|
+
size = nil
|
1915
|
+
end
|
1916
|
+
end
|
1917
|
+
size || MAX_DIFF_TARGET_STRING_SIZE
|
1918
|
+
end
|
1919
|
+
|
1920
|
+
@@max_diff_target_string_size = nil
|
1921
|
+
def max_diff_target_string_size=(size)
|
1922
|
+
@@max_diff_target_string_size = size
|
1923
|
+
end
|
1924
|
+
|
1925
|
+
def diff_target_string?(string)
|
1926
|
+
if string.respond_to?(:bytesize)
|
1927
|
+
string.bytesize < max_diff_target_string_size
|
1928
|
+
else
|
1929
|
+
string.size < max_diff_target_string_size
|
1930
|
+
end
|
1931
|
+
end
|
1932
|
+
|
1933
|
+
def ensure_diffable_string(string)
|
1934
|
+
if string.respond_to?(:encoding) and
|
1935
|
+
!string.encoding.ascii_compatible?
|
1936
|
+
string = string.dup.force_encoding("ASCII-8BIT")
|
1937
|
+
end
|
1938
|
+
string
|
1939
|
+
end
|
1940
|
+
|
1941
|
+
def prepare_for_diff(from, to)
|
1942
|
+
if !from.is_a?(String) or !to.is_a?(String)
|
1943
|
+
from = convert(from)
|
1944
|
+
to = convert(to)
|
1945
|
+
end
|
1946
|
+
|
1947
|
+
if diff_target_string?(from) and diff_target_string?(to)
|
1948
|
+
from = ensure_diffable_string(from)
|
1949
|
+
to = ensure_diffable_string(to)
|
1950
|
+
[from, to]
|
1951
|
+
else
|
1952
|
+
[nil, nil]
|
1953
|
+
end
|
1954
|
+
end
|
1955
|
+
|
1956
|
+
def delayed_diff(from, to)
|
1957
|
+
delayed_literal do
|
1958
|
+
from, to = prepare_for_diff(from, to)
|
1959
|
+
|
1960
|
+
diff = "" if from.nil? or to.nil?
|
1961
|
+
diff ||= Diff.readable(from, to)
|
1962
|
+
if /^[-+]/ !~ diff
|
1963
|
+
diff = ""
|
1964
|
+
elsif /^[ ?]/ =~ diff or /(?:.*\n){2,}/ =~ diff
|
1965
|
+
diff = "\n\ndiff:\n#{diff}"
|
1966
|
+
else
|
1967
|
+
diff = ""
|
1968
|
+
end
|
1969
|
+
|
1970
|
+
if Diff.need_fold?(diff)
|
1971
|
+
folded_diff = Diff.folded_readable(from, to)
|
1972
|
+
diff += "\n\nfolded diff:\n#{folded_diff}"
|
1973
|
+
end
|
1974
|
+
|
1975
|
+
diff
|
1976
|
+
end
|
1977
|
+
end
|
1978
|
+
|
1979
|
+
def convert(object)
|
1980
|
+
if object.is_a?(Exception)
|
1981
|
+
object = AssertExceptionHelper::WrappedException.new(object)
|
1982
|
+
end
|
1983
|
+
inspector = Inspector.new(object)
|
1984
|
+
if use_pp
|
1985
|
+
begin
|
1986
|
+
require "pp" unless defined?(PP)
|
1987
|
+
begin
|
1988
|
+
return PP.pp(inspector, String.new).chomp
|
1989
|
+
rescue NameError
|
1990
|
+
end
|
1991
|
+
rescue LoadError
|
1992
|
+
self.use_pp = false
|
1993
|
+
end
|
1994
|
+
end
|
1995
|
+
inspector.inspect
|
1996
|
+
end
|
1997
|
+
end
|
1998
|
+
|
1999
|
+
class Inspector
|
2000
|
+
include Comparable
|
2001
|
+
|
2002
|
+
class << self
|
2003
|
+
def cached_new(object, inspected_objects)
|
2004
|
+
inspected_objects[object.object_id] ||=
|
2005
|
+
new(object, inspected_objects)
|
2006
|
+
end
|
2007
|
+
|
2008
|
+
@@inspector_classes = []
|
2009
|
+
def inspector_classes
|
2010
|
+
@@inspector_classes
|
2011
|
+
end
|
2012
|
+
|
2013
|
+
def register_inspector_class(inspector_class)
|
2014
|
+
@@inspector_classes << inspector_class
|
2015
|
+
end
|
2016
|
+
|
2017
|
+
def unregister_inspector_class(inspector_class)
|
2018
|
+
@@inspector_classes.delete(inspector_class)
|
2019
|
+
end
|
2020
|
+
end
|
2021
|
+
|
2022
|
+
attr_reader :object
|
2023
|
+
def initialize(object, inspected_objects={})
|
2024
|
+
@inspected_objects = inspected_objects
|
2025
|
+
@object = object
|
2026
|
+
@inspected_objects[@object.object_id] = self
|
2027
|
+
@inspect_target = inspect_target
|
2028
|
+
end
|
2029
|
+
|
2030
|
+
alias_method :native_inspect, :inspect
|
2031
|
+
def inspect
|
2032
|
+
@inspect_target.inspect
|
2033
|
+
end
|
2034
|
+
|
2035
|
+
def pretty_print(q)
|
2036
|
+
@inspect_target.pretty_print(q)
|
2037
|
+
end
|
2038
|
+
|
2039
|
+
def pretty_print_cycle(q)
|
2040
|
+
@inspect_target.pretty_print_cycle(q)
|
2041
|
+
end
|
2042
|
+
|
2043
|
+
def <=>(other)
|
2044
|
+
if other.is_a?(self.class)
|
2045
|
+
@object <=> other.object
|
2046
|
+
else
|
2047
|
+
@object <=> other
|
2048
|
+
end
|
2049
|
+
end
|
2050
|
+
|
2051
|
+
private
|
2052
|
+
def inspect_target
|
2053
|
+
self.class.inspector_classes.each do |inspector_class|
|
2054
|
+
if inspector_class.target?(@object)
|
2055
|
+
return inspector_class.new(@object, @inspected_objects)
|
2056
|
+
end
|
2057
|
+
end
|
2058
|
+
@object
|
2059
|
+
end
|
2060
|
+
end
|
2061
|
+
|
2062
|
+
class NumericInspector
|
2063
|
+
Inspector.register_inspector_class(self)
|
2064
|
+
|
2065
|
+
class << self
|
2066
|
+
def target?(object)
|
2067
|
+
object.is_a?(Numeric)
|
2068
|
+
end
|
2069
|
+
end
|
2070
|
+
|
2071
|
+
def initialize(numeric, inspected_objects)
|
2072
|
+
@inspected_objects = inspected_objects
|
2073
|
+
@numeric = numeric
|
2074
|
+
end
|
2075
|
+
|
2076
|
+
def inspect
|
2077
|
+
@numeric.to_s
|
2078
|
+
end
|
2079
|
+
|
2080
|
+
def pretty_print(q)
|
2081
|
+
q.text(@numeric.to_s)
|
2082
|
+
end
|
2083
|
+
|
2084
|
+
def pretty_print_cycle(q)
|
2085
|
+
q.text(@numeric.to_s)
|
2086
|
+
end
|
2087
|
+
end
|
2088
|
+
|
2089
|
+
class HashInspector
|
2090
|
+
Inspector.register_inspector_class(self)
|
2091
|
+
|
2092
|
+
class << self
|
2093
|
+
def target?(object)
|
2094
|
+
object.is_a?(Hash) or ENV.equal?(object)
|
2095
|
+
end
|
2096
|
+
end
|
2097
|
+
|
2098
|
+
def initialize(hash, inspected_objects)
|
2099
|
+
@inspected_objects = inspected_objects
|
2100
|
+
@hash = {}
|
2101
|
+
hash.each do |key, value|
|
2102
|
+
key = Inspector.cached_new(key, @inspected_objects)
|
2103
|
+
value = Inspector.cached_new(value, @inspected_objects)
|
2104
|
+
@hash[key] = value
|
2105
|
+
end
|
2106
|
+
end
|
2107
|
+
|
2108
|
+
def inspect
|
2109
|
+
@hash.inspect
|
2110
|
+
end
|
2111
|
+
|
2112
|
+
def pretty_print(q)
|
2113
|
+
q.group(1, '{', '}') do
|
2114
|
+
q.seplist(self, nil, :each_pair) do |k, v|
|
2115
|
+
q.group do
|
2116
|
+
q.pp(k)
|
2117
|
+
q.text('=>')
|
2118
|
+
q.group(1) do
|
2119
|
+
q.breakable('')
|
2120
|
+
q.pp(v)
|
2121
|
+
end
|
2122
|
+
end
|
2123
|
+
end
|
2124
|
+
end
|
2125
|
+
end
|
2126
|
+
|
2127
|
+
def pretty_print_cycle(q)
|
2128
|
+
@hash.pretty_print_cycle(q)
|
2129
|
+
end
|
2130
|
+
|
2131
|
+
def each_pair
|
2132
|
+
keys = @hash.keys
|
2133
|
+
begin
|
2134
|
+
keys = keys.sort # FIXME: more cleverly
|
2135
|
+
rescue ArgumentError
|
2136
|
+
end
|
2137
|
+
keys.each do |key|
|
2138
|
+
yield(key, @hash[key])
|
2139
|
+
end
|
2140
|
+
end
|
2141
|
+
end
|
2142
|
+
|
2143
|
+
class ArrayInspector
|
2144
|
+
Inspector.register_inspector_class(self)
|
2145
|
+
|
2146
|
+
class << self
|
2147
|
+
def target?(object)
|
2148
|
+
object.is_a?(Array)
|
2149
|
+
end
|
2150
|
+
end
|
2151
|
+
|
2152
|
+
def initialize(array, inspected_objects)
|
2153
|
+
@inspected_objects = inspected_objects
|
2154
|
+
@array = array.collect do |element|
|
2155
|
+
Inspector.cached_new(element, @inspected_objects)
|
2156
|
+
end
|
2157
|
+
end
|
2158
|
+
|
2159
|
+
def inspect
|
2160
|
+
@array.inspect
|
2161
|
+
end
|
2162
|
+
|
2163
|
+
def pretty_print(q)
|
2164
|
+
q.group(1, '[', ']') do
|
2165
|
+
q.seplist(self) do |v|
|
2166
|
+
q.pp(v)
|
2167
|
+
end
|
2168
|
+
end
|
2169
|
+
end
|
2170
|
+
|
2171
|
+
def pretty_print_cycle(q)
|
2172
|
+
@array.pretty_print_cycle(q)
|
2173
|
+
end
|
2174
|
+
|
2175
|
+
def each(&block)
|
2176
|
+
@array.each(&block)
|
2177
|
+
end
|
2178
|
+
end
|
2179
|
+
|
2180
|
+
class Literal
|
2181
|
+
def initialize(value)
|
2182
|
+
@value = value
|
2183
|
+
end
|
2184
|
+
|
2185
|
+
def inspect
|
2186
|
+
@value.to_s
|
2187
|
+
end
|
2188
|
+
end
|
2189
|
+
|
2190
|
+
class DelayedLiteral
|
2191
|
+
def initialize(value)
|
2192
|
+
@value = value
|
2193
|
+
end
|
2194
|
+
|
2195
|
+
def inspect
|
2196
|
+
@value.call.to_s
|
2197
|
+
end
|
2198
|
+
end
|
2199
|
+
|
2200
|
+
class MaybeContainer
|
2201
|
+
def initialize(value, &formatter)
|
2202
|
+
@value = value
|
2203
|
+
@formatter = formatter
|
2204
|
+
end
|
2205
|
+
|
2206
|
+
def inspect
|
2207
|
+
if @value.is_a?(Array)
|
2208
|
+
values = @value.collect do |value|
|
2209
|
+
@formatter.call(AssertionMessage.convert(value))
|
2210
|
+
end
|
2211
|
+
"[#{values.join(', ')}]"
|
2212
|
+
else
|
2213
|
+
@formatter.call(AssertionMessage.convert(@value))
|
2214
|
+
end
|
2215
|
+
end
|
2216
|
+
end
|
2217
|
+
|
2218
|
+
class Template
|
2219
|
+
def self.create(string)
|
2220
|
+
parts = (string ? string.scan(/(?=[^\\])\?|(?:\\\?|[^\?])+/m) : [])
|
2221
|
+
self.new(parts)
|
2222
|
+
end
|
2223
|
+
|
2224
|
+
attr_reader :count
|
2225
|
+
|
2226
|
+
def initialize(parts)
|
2227
|
+
@parts = parts
|
2228
|
+
@count = parts.find_all{|e| e == '?'}.size
|
2229
|
+
end
|
2230
|
+
|
2231
|
+
def result(parameters)
|
2232
|
+
raise "The number of parameters does not match the number of substitutions." if(parameters.size != count)
|
2233
|
+
params = parameters.dup
|
2234
|
+
expanded_template = ""
|
2235
|
+
@parts.each do |part|
|
2236
|
+
if part == '?'
|
2237
|
+
param = params.shift
|
2238
|
+
if Object.const_defined?(:Encoding)
|
2239
|
+
expanded_template += concatenatable(param,
|
2240
|
+
expanded_template.encoding)
|
2241
|
+
else
|
2242
|
+
expanded_template += param
|
2243
|
+
end
|
2244
|
+
else
|
2245
|
+
expanded_template += part.gsub(/\\\?/m, '?')
|
2246
|
+
end
|
2247
|
+
end
|
2248
|
+
expanded_template
|
2249
|
+
end
|
2250
|
+
|
2251
|
+
private
|
2252
|
+
def concatenatable(text, encoding)
|
2253
|
+
if Encoding.compatible?(text, encoding)
|
2254
|
+
text
|
2255
|
+
else
|
2256
|
+
text.dup.force_encoding(encoding)
|
2257
|
+
end
|
2258
|
+
end
|
2259
|
+
end
|
2260
|
+
|
2261
|
+
include Util::BacktraceFilter
|
2262
|
+
|
2263
|
+
def initialize(user_message, template_string, parameters)
|
2264
|
+
@user_message = user_message
|
2265
|
+
@template_string = template_string
|
2266
|
+
@parameters = parameters
|
2267
|
+
end
|
2268
|
+
|
2269
|
+
def convert(object)
|
2270
|
+
self.class.convert(object)
|
2271
|
+
end
|
2272
|
+
|
2273
|
+
def template
|
2274
|
+
@template ||= Template.create(@template_string)
|
2275
|
+
end
|
2276
|
+
|
2277
|
+
def user_message
|
2278
|
+
return nil unless @user_message
|
2279
|
+
message = @user_message
|
2280
|
+
message = message.call if message.respond_to?(:call)
|
2281
|
+
message.to_s
|
2282
|
+
end
|
2283
|
+
|
2284
|
+
def to_s
|
2285
|
+
message_parts = []
|
2286
|
+
head = user_message
|
2287
|
+
if head and not head.empty?
|
2288
|
+
message_parts << add_period(head)
|
2289
|
+
end
|
2290
|
+
tail = template.result(@parameters.collect{|e| convert(e)})
|
2291
|
+
message_parts << tail unless(tail.empty?)
|
2292
|
+
message_parts.join("\n")
|
2293
|
+
end
|
2294
|
+
|
2295
|
+
private
|
2296
|
+
def add_period(string)
|
2297
|
+
(string =~ /\.\Z/ ? string : string + '.')
|
2298
|
+
end
|
2299
|
+
end
|
2300
|
+
|
2301
|
+
class AssertExceptionHelper
|
2302
|
+
class WrappedException
|
2303
|
+
attr_reader :exception
|
2304
|
+
def initialize(exception)
|
2305
|
+
@exception = exception
|
2306
|
+
end
|
2307
|
+
|
2308
|
+
def inspect
|
2309
|
+
if default_inspect?
|
2310
|
+
inspected = "#{@exception.class.inspect}(<#{@exception.message}>)"
|
2311
|
+
unless (@exception.backtrace || []).empty?
|
2312
|
+
inspected += "\n"
|
2313
|
+
@exception.backtrace.each do |trace|
|
2314
|
+
inspected << "#{trace}\n"
|
2315
|
+
end
|
2316
|
+
end
|
2317
|
+
inspected
|
2318
|
+
else
|
2319
|
+
@exception.inspect
|
2320
|
+
end
|
2321
|
+
end
|
2322
|
+
|
2323
|
+
def method_missing(name, *args, &block)
|
2324
|
+
@exception.__send__(name, *args, &block)
|
2325
|
+
end
|
2326
|
+
|
2327
|
+
private
|
2328
|
+
def default_inspect?
|
2329
|
+
inspect_method = @exception.method(:inspect)
|
2330
|
+
if inspect_method.respond_to?(:owner) and
|
2331
|
+
inspect_method.owner == Exception
|
2332
|
+
true
|
2333
|
+
else
|
2334
|
+
default_inspect_method = Exception.instance_method(:inspect)
|
2335
|
+
default_inspect_method.bind(@exception).call == @exception.inspect
|
2336
|
+
end
|
2337
|
+
end
|
2338
|
+
end
|
2339
|
+
|
2340
|
+
def initialize(test_case, expected_exceptions)
|
2341
|
+
@test_case = test_case
|
2342
|
+
@expected_exceptions = expected_exceptions
|
2343
|
+
@expected_classes, @expected_modules, @expected_objects =
|
2344
|
+
split_expected_exceptions(expected_exceptions)
|
2345
|
+
end
|
2346
|
+
|
2347
|
+
def expected_exceptions
|
2348
|
+
exceptions = @expected_exceptions.collect do |exception|
|
2349
|
+
if exception.is_a?(Exception)
|
2350
|
+
WrappedException.new(exception)
|
2351
|
+
else
|
2352
|
+
exception
|
2353
|
+
end
|
2354
|
+
end
|
2355
|
+
if exceptions.size == 1
|
2356
|
+
exceptions[0]
|
2357
|
+
else
|
2358
|
+
exceptions
|
2359
|
+
end
|
2360
|
+
end
|
2361
|
+
|
2362
|
+
def expected?(actual_exception, equality=nil)
|
2363
|
+
equality ||= :instance_of?
|
2364
|
+
expected_class?(actual_exception, equality) or
|
2365
|
+
expected_module?(actual_exception) or
|
2366
|
+
expected_object?(actual_exception)
|
2367
|
+
end
|
2368
|
+
|
2369
|
+
private
|
2370
|
+
def split_expected_exceptions(expected_exceptions)
|
2371
|
+
exception_modules = []
|
2372
|
+
exception_objects = []
|
2373
|
+
exception_classes = []
|
2374
|
+
expected_exceptions.each do |exception_type|
|
2375
|
+
if exception_type.instance_of?(Module)
|
2376
|
+
exception_modules << exception_type
|
2377
|
+
elsif exception_object?(exception_type)
|
2378
|
+
exception_objects << exception_type
|
2379
|
+
elsif exception_class?(exception_type)
|
2380
|
+
exception_classes << exception_type
|
2381
|
+
else
|
2382
|
+
full_message =
|
2383
|
+
@test_case.__send__(:build_message,
|
2384
|
+
nil,
|
2385
|
+
"<?> must be " +
|
2386
|
+
"a subclass of Exception, " +
|
2387
|
+
"an object of Exception subclasses " +
|
2388
|
+
"or a Module",
|
2389
|
+
exception_type)
|
2390
|
+
@test_case.flunk(full_message)
|
2391
|
+
end
|
2392
|
+
end
|
2393
|
+
[exception_classes, exception_modules, exception_objects]
|
2394
|
+
end
|
2395
|
+
|
2396
|
+
def exception_object?(exception_type)
|
2397
|
+
return true if exception_type.is_a?(Exception)
|
2398
|
+
|
2399
|
+
if Object.const_defined?(:Java)
|
2400
|
+
return true if exception_type.is_a?(Java::JavaLang::Throwable)
|
2401
|
+
end
|
2402
|
+
|
2403
|
+
false
|
2404
|
+
end
|
2405
|
+
|
2406
|
+
def exception_class?(exception_type)
|
2407
|
+
return true if exception_type <= Exception
|
2408
|
+
|
2409
|
+
if Object.const_defined?(:Java)
|
2410
|
+
return true if exception_type <= Java::JavaLang::Throwable
|
2411
|
+
end
|
2412
|
+
|
2413
|
+
false
|
2414
|
+
end
|
2415
|
+
|
2416
|
+
def expected_class?(actual_exception, equality)
|
2417
|
+
@expected_classes.any? do |expected_class|
|
2418
|
+
actual_exception.__send__(equality, expected_class)
|
2419
|
+
end
|
2420
|
+
end
|
2421
|
+
|
2422
|
+
def expected_module?(actual_exception)
|
2423
|
+
@expected_modules.any? do |expected_module|
|
2424
|
+
actual_exception.is_a?(expected_module)
|
2425
|
+
end
|
2426
|
+
end
|
2427
|
+
|
2428
|
+
def expected_object?(actual_exception)
|
2429
|
+
@expected_objects.any? do |expected_object|
|
2430
|
+
expected_object == actual_exception or
|
2431
|
+
fallback_exception_object_equal(expected_object, actual_exception)
|
2432
|
+
end
|
2433
|
+
end
|
2434
|
+
|
2435
|
+
def fallback_exception_object_equal(expected_object, actual_exception)
|
2436
|
+
owner = Util::MethodOwnerFinder.find(expected_object, :==)
|
2437
|
+
if owner == Kernel or owner == Exception
|
2438
|
+
expected_object.class == actual_exception.class and
|
2439
|
+
expected_object.message == actual_exception.message
|
2440
|
+
else
|
2441
|
+
false
|
2442
|
+
end
|
2443
|
+
end
|
2444
|
+
end
|
2445
|
+
|
2446
|
+
# :startdoc:
|
2447
|
+
end
|
2448
|
+
end
|
2449
|
+
end
|