ric 0.12.0 → 0.12.2
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 +1 -0
- data.tar.gz.sig +2 -0
- data/Gemfile +0 -1
- data/HISTORY.yml +2 -0
- data/LICENSE +1 -1
- data/Makefile +12 -2
- data/Manifest +1189 -4
- data/Rakefile +16 -9
- data/VERSION +1 -1
- data/ric.gemspec +31 -27
- data/vendor/bundle/ruby/2.5.0/bin/allison +27 -0
- data/vendor/bundle/ruby/2.5.0/bin/rake +27 -0
- data/vendor/bundle/ruby/2.5.0/bin/rdoc +27 -0
- data/vendor/bundle/ruby/2.5.0/bin/ri +27 -0
- data/vendor/bundle/ruby/2.5.0/bin/rubyforge +27 -0
- data/vendor/bundle/ruby/2.5.0/cache/activemodel-5.2.3.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/activemodel-serializers-xml-1.0.2.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/activeresource-5.1.0.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/activesupport-5.2.3.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/allison-2.0.3.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/builder-3.2.3.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/concurrent-ruby-1.1.5.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/echoe-4.6.6.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/i18n-1.6.0.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/json_pure-2.2.0.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/minitest-5.11.3.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/rake-12.3.2.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/rdoc-6.1.1.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/rubyforge-2.0.4.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/thread_safe-0.3.6.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/tzinfo-1.2.5.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/CHANGELOG.md +114 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/MIT-LICENSE +21 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/README.rdoc +264 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model.rb +77 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/attribute.rb +248 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/attribute/user_provided_default.rb +52 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/attribute_assignment.rb +57 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/attribute_methods.rb +478 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/attribute_mutation_tracker.rb +124 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/attribute_set.rb +114 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/attribute_set/builder.rb +126 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/attribute_set/yaml_encoder.rb +41 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/attributes.rb +111 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/callbacks.rb +153 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/conversion.rb +111 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/dirty.rb +343 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/errors.rb +517 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/forbidden_attributes_protection.rb +31 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/gem_version.rb +17 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/lint.rb +118 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/locale/en.yml +36 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/model.rb +99 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/naming.rb +318 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/railtie.rb +14 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/secure_password.rb +129 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/serialization.rb +192 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/serializers/json.rb +146 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/translation.rb +70 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/type.rb +53 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/type/big_integer.rb +15 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/type/binary.rb +52 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/type/boolean.rb +38 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/type/date.rb +57 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/type/date_time.rb +51 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/type/decimal.rb +70 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/type/float.rb +36 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/type/helpers.rb +7 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/type/helpers/accepts_multiparameter_time.rb +41 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/type/helpers/mutable.rb +20 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/type/helpers/numeric.rb +37 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/type/helpers/time_value.rb +68 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/type/helpers/timezone.rb +19 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/type/immutable_string.rb +32 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/type/integer.rb +70 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/type/registry.rb +70 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/type/string.rb +26 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/type/time.rb +51 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/type/value.rb +126 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/validations.rb +439 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/validations/absence.rb +33 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/validations/acceptance.rb +106 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/validations/callbacks.rb +122 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/validations/clusivity.rb +54 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/validations/confirmation.rb +80 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/validations/exclusion.rb +49 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/validations/format.rb +114 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/validations/helper_methods.rb +15 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/validations/inclusion.rb +47 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/validations/length.rb +129 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/validations/numericality.rb +189 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/validations/presence.rb +39 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/validations/validates.rb +174 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/validations/with.rb +147 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/validator.rb +183 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-5.2.3/lib/active_model/version.rb +10 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-serializers-xml-1.0.2/CONTRIBUTING.md +99 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-serializers-xml-1.0.2/Gemfile +4 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-serializers-xml-1.0.2/MIT-LICENSE +21 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-serializers-xml-1.0.2/README.md +89 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-serializers-xml-1.0.2/Rakefile +10 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-serializers-xml-1.0.2/activemodel-serializers-xml.gemspec +25 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-serializers-xml-1.0.2/lib/active_model/serializers.rb +23 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-serializers-xml-1.0.2/lib/active_model/serializers/version.rb +5 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-serializers-xml-1.0.2/lib/active_model/serializers/xml.rb +238 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-serializers-xml-1.0.2/lib/active_record/serializers/xml_serializer.rb +194 -0
- data/vendor/bundle/ruby/2.5.0/gems/activemodel-serializers-xml-1.0.2/lib/activemodel-serializers-xml.rb +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/activeresource-5.1.0/MIT-LICENSE +20 -0
- data/vendor/bundle/ruby/2.5.0/gems/activeresource-5.1.0/README.rdoc +285 -0
- data/vendor/bundle/ruby/2.5.0/gems/activeresource-5.1.0/lib/active_resource.rb +46 -0
- data/vendor/bundle/ruby/2.5.0/gems/activeresource-5.1.0/lib/active_resource/active_job_serializer.rb +26 -0
- data/vendor/bundle/ruby/2.5.0/gems/activeresource-5.1.0/lib/active_resource/associations.rb +175 -0
- data/vendor/bundle/ruby/2.5.0/gems/activeresource-5.1.0/lib/active_resource/associations/builder/association.rb +33 -0
- data/vendor/bundle/ruby/2.5.0/gems/activeresource-5.1.0/lib/active_resource/associations/builder/belongs_to.rb +16 -0
- data/vendor/bundle/ruby/2.5.0/gems/activeresource-5.1.0/lib/active_resource/associations/builder/has_many.rb +14 -0
- data/vendor/bundle/ruby/2.5.0/gems/activeresource-5.1.0/lib/active_resource/associations/builder/has_one.rb +14 -0
- data/vendor/bundle/ruby/2.5.0/gems/activeresource-5.1.0/lib/active_resource/base.rb +1695 -0
- data/vendor/bundle/ruby/2.5.0/gems/activeresource-5.1.0/lib/active_resource/callbacks.rb +22 -0
- data/vendor/bundle/ruby/2.5.0/gems/activeresource-5.1.0/lib/active_resource/collection.rb +94 -0
- data/vendor/bundle/ruby/2.5.0/gems/activeresource-5.1.0/lib/active_resource/connection.rb +294 -0
- data/vendor/bundle/ruby/2.5.0/gems/activeresource-5.1.0/lib/active_resource/custom_methods.rb +129 -0
- data/vendor/bundle/ruby/2.5.0/gems/activeresource-5.1.0/lib/active_resource/exceptions.rb +84 -0
- data/vendor/bundle/ruby/2.5.0/gems/activeresource-5.1.0/lib/active_resource/formats.rb +24 -0
- data/vendor/bundle/ruby/2.5.0/gems/activeresource-5.1.0/lib/active_resource/formats/json_format.rb +28 -0
- data/vendor/bundle/ruby/2.5.0/gems/activeresource-5.1.0/lib/active_resource/formats/xml_format.rb +27 -0
- data/vendor/bundle/ruby/2.5.0/gems/activeresource-5.1.0/lib/active_resource/http_mock.rb +373 -0
- data/vendor/bundle/ruby/2.5.0/gems/activeresource-5.1.0/lib/active_resource/log_subscriber.rb +26 -0
- data/vendor/bundle/ruby/2.5.0/gems/activeresource-5.1.0/lib/active_resource/observing.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/activeresource-5.1.0/lib/active_resource/railtie.rb +25 -0
- data/vendor/bundle/ruby/2.5.0/gems/activeresource-5.1.0/lib/active_resource/reflection.rb +78 -0
- data/vendor/bundle/ruby/2.5.0/gems/activeresource-5.1.0/lib/active_resource/schema.rb +59 -0
- data/vendor/bundle/ruby/2.5.0/gems/activeresource-5.1.0/lib/active_resource/singleton.rb +113 -0
- data/vendor/bundle/ruby/2.5.0/gems/activeresource-5.1.0/lib/active_resource/threadsafe_attributes.rb +66 -0
- data/vendor/bundle/ruby/2.5.0/gems/activeresource-5.1.0/lib/active_resource/validations.rb +176 -0
- data/vendor/bundle/ruby/2.5.0/gems/activeresource-5.1.0/lib/active_resource/version.rb +12 -0
- data/vendor/bundle/ruby/2.5.0/gems/activeresource-5.1.0/lib/activeresource.rb +3 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/CHANGELOG.md +602 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/MIT-LICENSE +20 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/README.rdoc +39 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support.rb +95 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/all.rb +5 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/array_inquirer.rb +48 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/backtrace_cleaner.rb +105 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/benchmarkable.rb +51 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/builder.rb +8 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/cache.rb +808 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/cache/file_store.rb +196 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/cache/mem_cache_store.rb +207 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/cache/memory_store.rb +169 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/cache/null_store.rb +43 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/cache/redis_cache_store.rb +461 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/cache/strategy/local_cache.rb +194 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/cache/strategy/local_cache_middleware.rb +45 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/callbacks.rb +845 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/concern.rb +148 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/concurrency/load_interlock_aware_monitor.rb +17 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/concurrency/share_lock.rb +227 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/configurable.rb +150 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext.rb +5 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/array.rb +9 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/array/access.rb +92 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/array/conversions.rb +213 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/array/extract_options.rb +31 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/array/grouping.rb +109 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/array/inquiry.rb +19 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/array/prepend_and_append.rb +9 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/array/wrap.rb +48 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/benchmark.rb +16 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/big_decimal.rb +3 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/big_decimal/conversions.rb +14 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/class.rb +4 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/class/attribute.rb +146 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/class/attribute_accessors.rb +6 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/class/subclasses.rb +54 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/date.rb +7 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/date/acts_like.rb +10 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/date/blank.rb +14 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/date/calculations.rb +145 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/date/conversions.rb +96 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/date/zones.rb +8 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/date_and_time/calculations.rb +374 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/date_and_time/compatibility.rb +16 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/date_and_time/zones.rb +41 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/date_time.rb +7 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/date_time/acts_like.rb +16 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/date_time/blank.rb +14 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/date_time/calculations.rb +211 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/date_time/compatibility.rb +18 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/date_time/conversions.rb +107 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/digest/uuid.rb +53 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/enumerable.rb +164 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/file.rb +3 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/file/atomic.rb +70 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/hash.rb +11 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/hash/compact.rb +29 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/hash/conversions.rb +263 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/hash/deep_merge.rb +34 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/hash/except.rb +24 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/hash/indifferent_access.rb +24 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/hash/keys.rb +172 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/hash/reverse_merge.rb +25 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/hash/slice.rb +48 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/hash/transform_values.rb +32 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/integer.rb +5 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/integer/inflections.rb +31 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/integer/multiple.rb +12 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/integer/time.rb +22 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/kernel.rb +6 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/kernel/agnostics.rb +13 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/kernel/concern.rb +14 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/kernel/reporting.rb +45 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/kernel/singleton_class.rb +8 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/load_error.rb +9 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/marshal.rb +24 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/module.rb +14 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/module/aliasing.rb +31 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/module/anonymous.rb +30 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/module/attr_internal.rb +38 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/module/attribute_accessors.rb +215 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb +150 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/module/concerning.rb +134 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/module/delegation.rb +287 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/module/deprecation.rb +25 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/module/introspection.rb +62 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/module/reachable.rb +11 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/module/redefine_method.rb +49 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/module/remove_method.rb +17 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/name_error.rb +38 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/numeric.rb +6 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/numeric/bytes.rb +66 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/numeric/conversions.rb +140 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/numeric/inquiry.rb +28 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/numeric/time.rb +66 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/object.rb +16 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/object/acts_like.rb +21 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/object/blank.rb +156 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/object/conversions.rb +6 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/object/deep_dup.rb +55 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/object/duplicable.rb +156 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/object/inclusion.rb +29 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/object/instance_variables.rb +30 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/object/json.rb +227 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/object/to_param.rb +3 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/object/to_query.rb +89 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/object/try.rb +148 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/object/with_options.rb +82 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/range.rb +7 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/range/compare_range.rb +61 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/range/conversions.rb +39 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/range/each.rb +25 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/range/include_range.rb +3 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/range/include_time_with_zone.rb +23 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/range/overlaps.rb +10 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/regexp.rb +11 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/securerandom.rb +25 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/string.rb +15 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/string/access.rb +106 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/string/behavior.rb +8 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/string/conversions.rb +59 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/string/exclude.rb +13 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/string/filters.rb +104 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/string/indent.rb +45 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/string/inflections.rb +254 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/string/inquiry.rb +15 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/string/multibyte.rb +57 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/string/output_safety.rb +258 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/string/starts_ends_with.rb +6 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/string/strip.rb +25 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/string/zones.rb +16 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/time.rb +7 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/time/acts_like.rb +10 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/time/calculations.rb +315 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/time/compatibility.rb +16 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/time/conversions.rb +72 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/time/zones.rb +113 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/core_ext/uri.rb +24 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/current_attributes.rb +195 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb +753 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies/autoload.rb +79 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies/interlock.rb +57 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/deprecation.rb +46 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/deprecation/behaviors.rb +109 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/deprecation/constant_accessor.rb +52 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/deprecation/instance_delegator.rb +39 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/deprecation/method_wrappers.rb +90 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/deprecation/proxy_wrappers.rb +154 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/deprecation/reporting.rb +114 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/descendants_tracker.rb +62 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/digest.rb +20 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/duration.rb +432 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/duration/iso8601_parser.rb +125 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/duration/iso8601_serializer.rb +55 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/encrypted_configuration.rb +49 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/encrypted_file.rb +99 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/evented_file_update_checker.rb +205 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/execution_wrapper.rb +128 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/executor.rb +8 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/file_update_checker.rb +163 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/gem_version.rb +17 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/gzip.rb +38 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/hash_with_indifferent_access.rb +395 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/i18n.rb +15 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/i18n_railtie.rb +118 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/inflections.rb +72 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/inflector.rb +9 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/inflector/inflections.rb +260 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/inflector/methods.rb +410 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/inflector/transliterate.rb +118 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/json.rb +4 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/json/decoding.rb +76 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/json/encoding.rb +130 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/key_generator.rb +73 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/lazy_load_hooks.rb +78 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/locale/en.yml +135 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/log_subscriber.rb +112 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/log_subscriber/test_helper.rb +106 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/logger.rb +108 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/logger_silence.rb +29 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/logger_thread_safe_level.rb +33 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/message_encryptor.rb +229 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/message_verifier.rb +205 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/messages/metadata.rb +71 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/messages/rotation_configuration.rb +22 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/messages/rotator.rb +56 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/multibyte.rb +23 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/multibyte/chars.rb +235 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/multibyte/unicode.rb +394 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/notifications.rb +216 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/notifications/fanout.rb +159 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/notifications/instrumenter.rb +93 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/number_helper.rb +371 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/number_helper/number_converter.rb +184 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/number_helper/number_to_currency_converter.rb +46 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/number_helper/number_to_delimited_converter.rb +29 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/number_helper/number_to_human_converter.rb +68 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/number_helper/number_to_human_size_converter.rb +59 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/number_helper/number_to_percentage_converter.rb +14 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/number_helper/number_to_phone_converter.rb +58 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/number_helper/number_to_rounded_converter.rb +54 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/number_helper/rounding_helper.rb +66 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/option_merger.rb +27 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/ordered_hash.rb +50 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/ordered_options.rb +85 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/per_thread_registry.rb +60 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/proxy_object.rb +15 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/rails.rb +35 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/railtie.rb +80 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/reloader.rb +131 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/rescuable.rb +174 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/security_utils.rb +31 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/string_inquirer.rb +34 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/subscriber.rb +130 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/tagged_logging.rb +79 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/test_case.rb +72 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/testing/assertions.rb +214 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/testing/autorun.rb +7 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/testing/constant_lookup.rb +51 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/testing/declarative.rb +28 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/testing/deprecation.rb +39 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/testing/file_fixtures.rb +36 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/testing/isolation.rb +110 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/testing/method_call_assertions.rb +43 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/testing/setup_and_teardown.rb +55 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/testing/stream.rb +44 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/testing/tagged_logging.rb +27 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/testing/time_helpers.rb +200 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/time.rb +20 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/time_with_zone.rb +551 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/values/time_zone.rb +565 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/values/unicode_tables.dat +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/version.rb +10 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/xml_mini.rb +209 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/xml_mini/jdom.rb +183 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/xml_mini/libxml.rb +80 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/xml_mini/libxmlsax.rb +83 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/xml_mini/nokogiri.rb +83 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/xml_mini/nokogirisax.rb +86 -0
- data/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.3/lib/active_support/xml_mini/rexml.rb +130 -0
- data/vendor/bundle/ruby/2.5.0/gems/allison-2.0.3/CHANGELOG +18 -0
- data/vendor/bundle/ruby/2.5.0/gems/allison-2.0.3/LICENSE +184 -0
- data/vendor/bundle/ruby/2.5.0/gems/allison-2.0.3/Manifest +24 -0
- data/vendor/bundle/ruby/2.5.0/gems/allison-2.0.3/README +67 -0
- data/vendor/bundle/ruby/2.5.0/gems/allison-2.0.3/allison.gemspec +48 -0
- data/vendor/bundle/ruby/2.5.0/gems/allison-2.0.3/bin/allison +9 -0
- data/vendor/bundle/ruby/2.5.0/gems/allison-2.0.3/cache/BODY +570 -0
- data/vendor/bundle/ruby/2.5.0/gems/allison-2.0.3/cache/CLASS_INDEX +4 -0
- data/vendor/bundle/ruby/2.5.0/gems/allison-2.0.3/cache/CLASS_PAGE +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/allison-2.0.3/cache/FILE_INDEX +4 -0
- data/vendor/bundle/ruby/2.5.0/gems/allison-2.0.3/cache/FILE_PAGE +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/allison-2.0.3/cache/FONTS +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/allison-2.0.3/cache/FR_INDEX_BODY +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/allison-2.0.3/cache/INDEX +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/allison-2.0.3/cache/JAVASCRIPT +316 -0
- data/vendor/bundle/ruby/2.5.0/gems/allison-2.0.3/cache/METHOD_INDEX +4 -0
- data/vendor/bundle/ruby/2.5.0/gems/allison-2.0.3/cache/METHOD_LIST +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/allison-2.0.3/cache/SRC_PAGE +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/allison-2.0.3/cache/STYLE +320 -0
- data/vendor/bundle/ruby/2.5.0/gems/allison-2.0.3/contrib/Rakefile +147 -0
- data/vendor/bundle/ruby/2.5.0/gems/allison-2.0.3/contrib/rdoc_patch.rb +252 -0
- data/vendor/bundle/ruby/2.5.0/gems/allison-2.0.3/contrib/rdoc_patch_test.rb +95 -0
- data/vendor/bundle/ruby/2.5.0/gems/allison-2.0.3/lib/allison.css +314 -0
- data/vendor/bundle/ruby/2.5.0/gems/allison-2.0.3/lib/allison.js +316 -0
- data/vendor/bundle/ruby/2.5.0/gems/allison-2.0.3/lib/allison.rb +276 -0
- data/vendor/bundle/ruby/2.5.0/gems/builder-3.2.3/CHANGES +107 -0
- data/vendor/bundle/ruby/2.5.0/gems/builder-3.2.3/MIT-LICENSE +20 -0
- data/vendor/bundle/ruby/2.5.0/gems/builder-3.2.3/README.md +258 -0
- data/vendor/bundle/ruby/2.5.0/gems/builder-3.2.3/Rakefile +195 -0
- data/vendor/bundle/ruby/2.5.0/gems/builder-3.2.3/doc/jamis.rb +591 -0
- data/vendor/bundle/ruby/2.5.0/gems/builder-3.2.3/doc/releases/builder-1.2.4.rdoc +31 -0
- data/vendor/bundle/ruby/2.5.0/gems/builder-3.2.3/doc/releases/builder-2.0.0.rdoc +46 -0
- data/vendor/bundle/ruby/2.5.0/gems/builder-3.2.3/doc/releases/builder-2.1.1.rdoc +58 -0
- data/vendor/bundle/ruby/2.5.0/gems/builder-3.2.3/lib/blankslate.rb +137 -0
- data/vendor/bundle/ruby/2.5.0/gems/builder-3.2.3/lib/builder.rb +13 -0
- data/vendor/bundle/ruby/2.5.0/gems/builder-3.2.3/lib/builder/blankslate.rb +23 -0
- data/vendor/bundle/ruby/2.5.0/gems/builder-3.2.3/lib/builder/version.rb +8 -0
- data/vendor/bundle/ruby/2.5.0/gems/builder-3.2.3/lib/builder/xchar.rb +197 -0
- data/vendor/bundle/ruby/2.5.0/gems/builder-3.2.3/lib/builder/xmlbase.rb +199 -0
- data/vendor/bundle/ruby/2.5.0/gems/builder-3.2.3/lib/builder/xmlevents.rb +63 -0
- data/vendor/bundle/ruby/2.5.0/gems/builder-3.2.3/lib/builder/xmlmarkup.rb +339 -0
- data/vendor/bundle/ruby/2.5.0/gems/builder-3.2.3/rakelib/publish.rake +20 -0
- data/vendor/bundle/ruby/2.5.0/gems/builder-3.2.3/rakelib/tags.rake +62 -0
- data/vendor/bundle/ruby/2.5.0/gems/builder-3.2.3/rakelib/testing.rake +7 -0
- data/vendor/bundle/ruby/2.5.0/gems/builder-3.2.3/test/helper.rb +12 -0
- data/vendor/bundle/ruby/2.5.0/gems/builder-3.2.3/test/performance.rb +41 -0
- data/vendor/bundle/ruby/2.5.0/gems/builder-3.2.3/test/preload.rb +39 -0
- data/vendor/bundle/ruby/2.5.0/gems/builder-3.2.3/test/test_blankslate.rb +213 -0
- data/vendor/bundle/ruby/2.5.0/gems/builder-3.2.3/test/test_eventbuilder.rb +150 -0
- data/vendor/bundle/ruby/2.5.0/gems/builder-3.2.3/test/test_markupbuilder.rb +611 -0
- data/vendor/bundle/ruby/2.5.0/gems/builder-3.2.3/test/test_method_caching.rb +62 -0
- data/vendor/bundle/ruby/2.5.0/gems/builder-3.2.3/test/test_namecollision.rb +39 -0
- data/vendor/bundle/ruby/2.5.0/gems/builder-3.2.3/test/test_xchar.rb +78 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/CHANGELOG.md +478 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/Gemfile +41 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/LICENSE.md +23 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/README.md +381 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/Rakefile +327 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/ext/concurrent-ruby/ConcurrentRubyService.java +17 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/ext/concurrent-ruby/com/concurrent_ruby/ext/AtomicReferenceLibrary.java +175 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/ext/concurrent-ruby/com/concurrent_ruby/ext/JRubyMapBackendLibrary.java +248 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/ext/concurrent-ruby/com/concurrent_ruby/ext/JavaAtomicBooleanLibrary.java +93 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/ext/concurrent-ruby/com/concurrent_ruby/ext/JavaAtomicFixnumLibrary.java +113 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/ext/concurrent-ruby/com/concurrent_ruby/ext/JavaSemaphoreLibrary.java +159 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/ext/concurrent-ruby/com/concurrent_ruby/ext/SynchronizationLibrary.java +307 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/ext/concurrent-ruby/com/concurrent_ruby/ext/jsr166e/ConcurrentHashMap.java +31 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/ext/concurrent-ruby/com/concurrent_ruby/ext/jsr166e/ConcurrentHashMapV8.java +3863 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/ext/concurrent-ruby/com/concurrent_ruby/ext/jsr166e/LongAdder.java +203 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/ext/concurrent-ruby/com/concurrent_ruby/ext/jsr166e/Striped64.java +342 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/ext/concurrent-ruby/com/concurrent_ruby/ext/jsr166e/nounsafe/ConcurrentHashMapV8.java +3800 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/ext/concurrent-ruby/com/concurrent_ruby/ext/jsr166e/nounsafe/LongAdder.java +204 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/ext/concurrent-ruby/com/concurrent_ruby/ext/jsr166e/nounsafe/Striped64.java +291 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/ext/concurrent-ruby/com/concurrent_ruby/ext/jsr166y/ThreadLocalRandom.java +199 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent-ruby.rb +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent.rb +134 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/agent.rb +587 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/array.rb +66 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/async.rb +459 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/atom.rb +222 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/atomic/abstract_thread_local_var.rb +66 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/atomic/atomic_boolean.rb +126 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/atomic/atomic_fixnum.rb +143 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/atomic/atomic_markable_reference.rb +164 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/atomic/atomic_reference.rb +204 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/atomic/count_down_latch.rb +100 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/atomic/cyclic_barrier.rb +128 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/atomic/event.rb +109 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/atomic/java_count_down_latch.rb +42 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/atomic/java_thread_local_var.rb +37 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/atomic/mutex_atomic_boolean.rb +62 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/atomic/mutex_atomic_fixnum.rb +75 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/atomic/mutex_count_down_latch.rb +44 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/atomic/mutex_semaphore.rb +115 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/atomic/read_write_lock.rb +254 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/atomic/reentrant_read_write_lock.rb +379 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/atomic/ruby_thread_local_var.rb +161 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/atomic/semaphore.rb +145 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/atomic/thread_local_var.rb +104 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/atomic_reference/mutex_atomic.rb +56 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/atomic_reference/numeric_cas_wrapper.rb +28 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/atomics.rb +10 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/collection/copy_on_notify_observer_set.rb +107 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/collection/copy_on_write_observer_set.rb +111 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/collection/java_non_concurrent_priority_queue.rb +84 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/collection/lock_free_stack.rb +158 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/collection/map/atomic_reference_map_backend.rb +927 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/collection/map/mri_map_backend.rb +66 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/collection/map/non_concurrent_map_backend.rb +140 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/collection/map/synchronized_map_backend.rb +82 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/collection/non_concurrent_priority_queue.rb +143 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/collection/ruby_non_concurrent_priority_queue.rb +150 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/concern/deprecation.rb +34 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/concern/dereferenceable.rb +73 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/concern/logging.rb +32 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/concern/obligation.rb +220 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/concern/observable.rb +110 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/concurrent_ruby.jar +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/configuration.rb +184 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/constants.rb +8 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/dataflow.rb +81 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/delay.rb +199 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/errors.rb +69 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/exchanger.rb +352 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/executor/abstract_executor_service.rb +134 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/executor/cached_thread_pool.rb +62 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/executor/executor_service.rb +185 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/executor/fixed_thread_pool.rb +206 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/executor/immediate_executor.rb +66 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/executor/indirect_immediate_executor.rb +44 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/executor/java_executor_service.rb +91 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/executor/java_single_thread_executor.rb +29 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/executor/java_thread_pool_executor.rb +123 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/executor/ruby_executor_service.rb +78 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/executor/ruby_single_thread_executor.rb +22 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/executor/ruby_thread_pool_executor.rb +362 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/executor/safe_task_executor.rb +35 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/executor/serial_executor_service.rb +34 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/executor/serialized_execution.rb +107 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/executor/serialized_execution_delegator.rb +28 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/executor/simple_executor_service.rb +100 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/executor/single_thread_executor.rb +56 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/executor/thread_pool_executor.rb +87 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/executor/timer_set.rb +173 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/executors.rb +20 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/future.rb +141 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/hash.rb +59 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/immutable_struct.rb +93 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/ivar.rb +207 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/map.rb +337 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/maybe.rb +229 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/mutable_struct.rb +229 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/mvar.rb +242 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/options.rb +42 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/promise.rb +579 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/promises.rb +2167 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/re_include.rb +58 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/scheduled_task.rb +318 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/set.rb +66 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/settable_struct.rb +129 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/synchronization.rb +30 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/synchronization/abstract_lockable_object.rb +98 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/synchronization/abstract_object.rb +24 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/synchronization/abstract_struct.rb +160 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/synchronization/condition.rb +60 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/synchronization/jruby_lockable_object.rb +13 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/synchronization/jruby_object.rb +45 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/synchronization/lock.rb +36 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/synchronization/lockable_object.rb +74 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/synchronization/mri_object.rb +44 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/synchronization/mutex_lockable_object.rb +76 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/synchronization/object.rb +183 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/synchronization/rbx_lockable_object.rb +65 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/synchronization/rbx_object.rb +49 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/synchronization/truffleruby_object.rb +47 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/synchronization/volatile.rb +36 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/thread_safe/synchronized_delegator.rb +50 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/thread_safe/util.rb +16 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/thread_safe/util/adder.rb +74 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/thread_safe/util/cheap_lockable.rb +118 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/thread_safe/util/data_structures.rb +63 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/thread_safe/util/power_of_two_tuple.rb +38 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/thread_safe/util/striped64.rb +246 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/thread_safe/util/volatile.rb +75 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/thread_safe/util/xor_shift_random.rb +50 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/timer_task.rb +334 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/tuple.rb +86 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/tvar.rb +258 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/utility/at_exit.rb +97 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/utility/engine.rb +56 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/utility/monotonic_time.rb +58 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/utility/native_extension_loader.rb +79 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/utility/native_integer.rb +53 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/utility/processor_counter.rb +158 -0
- data/vendor/bundle/ruby/2.5.0/gems/concurrent-ruby-1.1.5/lib/concurrent/version.rb +3 -0
- data/vendor/bundle/ruby/2.5.0/gems/echoe-4.6.6/CHANGELOG +113 -0
- data/vendor/bundle/ruby/2.5.0/gems/echoe-4.6.6/LICENSE +184 -0
- data/vendor/bundle/ruby/2.5.0/gems/echoe-4.6.6/MIT-LICENSE +21 -0
- data/vendor/bundle/ruby/2.5.0/gems/echoe-4.6.6/Manifest +19 -0
- data/vendor/bundle/ruby/2.5.0/gems/echoe-4.6.6/README.rdoc +97 -0
- data/vendor/bundle/ruby/2.5.0/gems/echoe-4.6.6/Rakefile +15 -0
- data/vendor/bundle/ruby/2.5.0/gems/echoe-4.6.6/echoe.gemspec +45 -0
- data/vendor/bundle/ruby/2.5.0/gems/echoe-4.6.6/echoe.pem +21 -0
- data/vendor/bundle/ruby/2.5.0/gems/echoe-4.6.6/lib/echoe.rb +793 -0
- data/vendor/bundle/ruby/2.5.0/gems/echoe-4.6.6/lib/echoe/extensions.rb +61 -0
- data/vendor/bundle/ruby/2.5.0/gems/echoe-4.6.6/lib/echoe/platform.rb +37 -0
- data/vendor/bundle/ruby/2.5.0/gems/echoe-4.6.6/lib/echoe/rubygems.rb +41 -0
- data/vendor/bundle/ruby/2.5.0/gems/echoe-4.6.6/vendor/rake/MIT-LICENSE +21 -0
- data/vendor/bundle/ruby/2.5.0/gems/echoe-4.6.6/vendor/rake/lib/rake/contrib/compositepublisher.rb +24 -0
- data/vendor/bundle/ruby/2.5.0/gems/echoe-4.6.6/vendor/rake/lib/rake/contrib/ftptools.rb +153 -0
- data/vendor/bundle/ruby/2.5.0/gems/echoe-4.6.6/vendor/rake/lib/rake/contrib/publisher.rb +75 -0
- data/vendor/bundle/ruby/2.5.0/gems/echoe-4.6.6/vendor/rake/lib/rake/contrib/rubyforgepublisher.rb +18 -0
- data/vendor/bundle/ruby/2.5.0/gems/echoe-4.6.6/vendor/rake/lib/rake/contrib/sshpublisher.rb +43 -0
- data/vendor/bundle/ruby/2.5.0/gems/echoe-4.6.6/vendor/rake/lib/rake/contrib/sys.rb +209 -0
- data/vendor/bundle/ruby/2.5.0/gems/i18n-1.6.0/MIT-LICENSE +20 -0
- data/vendor/bundle/ruby/2.5.0/gems/i18n-1.6.0/README.md +125 -0
- data/vendor/bundle/ruby/2.5.0/gems/i18n-1.6.0/lib/i18n.rb +398 -0
- data/vendor/bundle/ruby/2.5.0/gems/i18n-1.6.0/lib/i18n/backend.rb +21 -0
- data/vendor/bundle/ruby/2.5.0/gems/i18n-1.6.0/lib/i18n/backend/base.rb +284 -0
- data/vendor/bundle/ruby/2.5.0/gems/i18n-1.6.0/lib/i18n/backend/cache.rb +113 -0
- data/vendor/bundle/ruby/2.5.0/gems/i18n-1.6.0/lib/i18n/backend/cache_file.rb +36 -0
- data/vendor/bundle/ruby/2.5.0/gems/i18n-1.6.0/lib/i18n/backend/cascade.rb +56 -0
- data/vendor/bundle/ruby/2.5.0/gems/i18n-1.6.0/lib/i18n/backend/chain.rb +127 -0
- data/vendor/bundle/ruby/2.5.0/gems/i18n-1.6.0/lib/i18n/backend/fallbacks.rb +84 -0
- data/vendor/bundle/ruby/2.5.0/gems/i18n-1.6.0/lib/i18n/backend/flatten.rb +115 -0
- data/vendor/bundle/ruby/2.5.0/gems/i18n-1.6.0/lib/i18n/backend/gettext.rb +85 -0
- data/vendor/bundle/ruby/2.5.0/gems/i18n-1.6.0/lib/i18n/backend/interpolation_compiler.rb +123 -0
- data/vendor/bundle/ruby/2.5.0/gems/i18n-1.6.0/lib/i18n/backend/key_value.rb +206 -0
- data/vendor/bundle/ruby/2.5.0/gems/i18n-1.6.0/lib/i18n/backend/memoize.rb +54 -0
- data/vendor/bundle/ruby/2.5.0/gems/i18n-1.6.0/lib/i18n/backend/metadata.rb +71 -0
- data/vendor/bundle/ruby/2.5.0/gems/i18n-1.6.0/lib/i18n/backend/pluralization.rb +55 -0
- data/vendor/bundle/ruby/2.5.0/gems/i18n-1.6.0/lib/i18n/backend/simple.rb +111 -0
- data/vendor/bundle/ruby/2.5.0/gems/i18n-1.6.0/lib/i18n/backend/transliterator.rb +108 -0
- data/vendor/bundle/ruby/2.5.0/gems/i18n-1.6.0/lib/i18n/config.rb +165 -0
- data/vendor/bundle/ruby/2.5.0/gems/i18n-1.6.0/lib/i18n/core_ext/hash.rb +47 -0
- data/vendor/bundle/ruby/2.5.0/gems/i18n-1.6.0/lib/i18n/exceptions.rb +111 -0
- data/vendor/bundle/ruby/2.5.0/gems/i18n-1.6.0/lib/i18n/gettext.rb +28 -0
- data/vendor/bundle/ruby/2.5.0/gems/i18n-1.6.0/lib/i18n/gettext/helpers.rb +75 -0
- data/vendor/bundle/ruby/2.5.0/gems/i18n-1.6.0/lib/i18n/gettext/po_parser.rb +329 -0
- data/vendor/bundle/ruby/2.5.0/gems/i18n-1.6.0/lib/i18n/interpolate/ruby.rb +39 -0
- data/vendor/bundle/ruby/2.5.0/gems/i18n-1.6.0/lib/i18n/locale.rb +8 -0
- data/vendor/bundle/ruby/2.5.0/gems/i18n-1.6.0/lib/i18n/locale/fallbacks.rb +96 -0
- data/vendor/bundle/ruby/2.5.0/gems/i18n-1.6.0/lib/i18n/locale/tag.rb +28 -0
- data/vendor/bundle/ruby/2.5.0/gems/i18n-1.6.0/lib/i18n/locale/tag/parents.rb +22 -0
- data/vendor/bundle/ruby/2.5.0/gems/i18n-1.6.0/lib/i18n/locale/tag/rfc4646.rb +74 -0
- data/vendor/bundle/ruby/2.5.0/gems/i18n-1.6.0/lib/i18n/locale/tag/simple.rb +39 -0
- data/vendor/bundle/ruby/2.5.0/gems/i18n-1.6.0/lib/i18n/middleware.rb +17 -0
- data/vendor/bundle/ruby/2.5.0/gems/i18n-1.6.0/lib/i18n/tests.rb +14 -0
- data/vendor/bundle/ruby/2.5.0/gems/i18n-1.6.0/lib/i18n/tests/basics.rb +60 -0
- data/vendor/bundle/ruby/2.5.0/gems/i18n-1.6.0/lib/i18n/tests/defaults.rb +52 -0
- data/vendor/bundle/ruby/2.5.0/gems/i18n-1.6.0/lib/i18n/tests/interpolation.rb +159 -0
- data/vendor/bundle/ruby/2.5.0/gems/i18n-1.6.0/lib/i18n/tests/link.rb +56 -0
- data/vendor/bundle/ruby/2.5.0/gems/i18n-1.6.0/lib/i18n/tests/localization.rb +19 -0
- data/vendor/bundle/ruby/2.5.0/gems/i18n-1.6.0/lib/i18n/tests/localization/date.rb +117 -0
- data/vendor/bundle/ruby/2.5.0/gems/i18n-1.6.0/lib/i18n/tests/localization/date_time.rb +103 -0
- data/vendor/bundle/ruby/2.5.0/gems/i18n-1.6.0/lib/i18n/tests/localization/procs.rb +116 -0
- data/vendor/bundle/ruby/2.5.0/gems/i18n-1.6.0/lib/i18n/tests/localization/time.rb +103 -0
- data/vendor/bundle/ruby/2.5.0/gems/i18n-1.6.0/lib/i18n/tests/lookup.rb +81 -0
- data/vendor/bundle/ruby/2.5.0/gems/i18n-1.6.0/lib/i18n/tests/pluralization.rb +35 -0
- data/vendor/bundle/ruby/2.5.0/gems/i18n-1.6.0/lib/i18n/tests/procs.rb +55 -0
- data/vendor/bundle/ruby/2.5.0/gems/i18n-1.6.0/lib/i18n/version.rb +5 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/CHANGES.md +391 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/Gemfile +14 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/README-json-jruby.md +33 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/README.md +409 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/Rakefile +408 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/VERSION +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/ext/json/ext/fbuffer/fbuffer.h +187 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/ext/json/ext/generator/depend +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/ext/json/ext/generator/extconf.rb +4 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/ext/json/ext/generator/generator.c +1444 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/ext/json/ext/generator/generator.h +171 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/ext/json/ext/parser/depend +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/ext/json/ext/parser/extconf.rb +6 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/ext/json/ext/parser/parser.c +2131 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/ext/json/ext/parser/parser.h +91 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/ext/json/ext/parser/parser.rl +891 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/ext/json/extconf.rb +2 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/install.rb +23 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/java/src/json/ext/ByteListTranscoder.java +166 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/java/src/json/ext/Generator.java +443 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/java/src/json/ext/GeneratorMethods.java +231 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/java/src/json/ext/GeneratorService.java +42 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/java/src/json/ext/GeneratorState.java +490 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/java/src/json/ext/OptionsReader.java +113 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/java/src/json/ext/Parser.java +2362 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/java/src/json/ext/Parser.rl +893 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/java/src/json/ext/ParserService.java +34 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/java/src/json/ext/RuntimeInfo.java +116 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/java/src/json/ext/StringDecoder.java +166 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/java/src/json/ext/StringEncoder.java +111 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/java/src/json/ext/Utils.java +88 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/json-java.gemspec +38 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/json.gemspec +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/json_pure.gemspec +38 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/lib/json.rb +63 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/lib/json/add/bigdecimal.rb +29 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/lib/json/add/complex.rb +29 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/lib/json/add/core.rb +12 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/lib/json/add/date.rb +34 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/lib/json/add/date_time.rb +50 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/lib/json/add/exception.rb +31 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/lib/json/add/ostruct.rb +31 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/lib/json/add/range.rb +29 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/lib/json/add/rational.rb +28 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/lib/json/add/regexp.rb +30 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/lib/json/add/set.rb +29 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/lib/json/add/struct.rb +30 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/lib/json/add/symbol.rb +25 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/lib/json/add/time.rb +38 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/lib/json/common.rb +456 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/lib/json/ext.rb +15 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/lib/json/generic_object.rb +71 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/lib/json/pure.rb +15 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/lib/json/pure/generator.rb +458 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/lib/json/pure/parser.rb +311 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/lib/json/version.rb +9 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/references/rfc7159.txt +899 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/tests/fixtures/fail10.json +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/tests/fixtures/fail11.json +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/tests/fixtures/fail12.json +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/tests/fixtures/fail13.json +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/tests/fixtures/fail14.json +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/tests/fixtures/fail18.json +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/tests/fixtures/fail19.json +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/tests/fixtures/fail2.json +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/tests/fixtures/fail20.json +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/tests/fixtures/fail21.json +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/tests/fixtures/fail22.json +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/tests/fixtures/fail23.json +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/tests/fixtures/fail24.json +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/tests/fixtures/fail25.json +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/tests/fixtures/fail27.json +2 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/tests/fixtures/fail28.json +2 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/tests/fixtures/fail3.json +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/tests/fixtures/fail4.json +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/tests/fixtures/fail5.json +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/tests/fixtures/fail6.json +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/tests/fixtures/fail7.json +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/tests/fixtures/fail8.json +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/tests/fixtures/fail9.json +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/tests/fixtures/obsolete_fail1.json +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/tests/fixtures/pass1.json +56 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/tests/fixtures/pass15.json +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/tests/fixtures/pass16.json +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/tests/fixtures/pass17.json +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/tests/fixtures/pass2.json +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/tests/fixtures/pass26.json +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/tests/fixtures/pass3.json +6 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/tests/json_addition_test.rb +203 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/tests/json_common_interface_test.rb +126 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/tests/json_encoding_test.rb +107 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/tests/json_ext_parser_test.rb +15 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/tests/json_fixtures_test.rb +32 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/tests/json_generator_test.rb +377 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/tests/json_generic_object_test.rb +82 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/tests/json_parser_test.rb +472 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/tests/json_string_matching_test.rb +38 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/tests/test_helper.rb +17 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/tools/diff.sh +18 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/tools/fuzz.rb +131 -0
- data/vendor/bundle/ruby/2.5.0/gems/json_pure-2.2.0/tools/server.rb +62 -0
- data/vendor/bundle/ruby/2.5.0/gems/minitest-5.11.3/History.rdoc +1310 -0
- data/vendor/bundle/ruby/2.5.0/gems/minitest-5.11.3/Manifest.txt +26 -0
- data/vendor/bundle/ruby/2.5.0/gems/minitest-5.11.3/README.rdoc +746 -0
- data/vendor/bundle/ruby/2.5.0/gems/minitest-5.11.3/Rakefile +86 -0
- data/vendor/bundle/ruby/2.5.0/gems/minitest-5.11.3/design_rationale.rb +52 -0
- data/vendor/bundle/ruby/2.5.0/gems/minitest-5.11.3/lib/hoe/minitest.rb +32 -0
- data/vendor/bundle/ruby/2.5.0/gems/minitest-5.11.3/lib/minitest.rb +987 -0
- data/vendor/bundle/ruby/2.5.0/gems/minitest-5.11.3/lib/minitest/assertions.rb +693 -0
- data/vendor/bundle/ruby/2.5.0/gems/minitest-5.11.3/lib/minitest/autorun.rb +13 -0
- data/vendor/bundle/ruby/2.5.0/gems/minitest-5.11.3/lib/minitest/benchmark.rb +455 -0
- data/vendor/bundle/ruby/2.5.0/gems/minitest-5.11.3/lib/minitest/expectations.rb +284 -0
- data/vendor/bundle/ruby/2.5.0/gems/minitest-5.11.3/lib/minitest/hell.rb +11 -0
- data/vendor/bundle/ruby/2.5.0/gems/minitest-5.11.3/lib/minitest/mock.rb +240 -0
- data/vendor/bundle/ruby/2.5.0/gems/minitest-5.11.3/lib/minitest/parallel.rb +70 -0
- data/vendor/bundle/ruby/2.5.0/gems/minitest-5.11.3/lib/minitest/pride.rb +4 -0
- data/vendor/bundle/ruby/2.5.0/gems/minitest-5.11.3/lib/minitest/pride_plugin.rb +142 -0
- data/vendor/bundle/ruby/2.5.0/gems/minitest-5.11.3/lib/minitest/spec.rb +331 -0
- data/vendor/bundle/ruby/2.5.0/gems/minitest-5.11.3/lib/minitest/test.rb +220 -0
- data/vendor/bundle/ruby/2.5.0/gems/minitest-5.11.3/lib/minitest/unit.rb +45 -0
- data/vendor/bundle/ruby/2.5.0/gems/minitest-5.11.3/test/minitest/metametameta.rb +102 -0
- data/vendor/bundle/ruby/2.5.0/gems/minitest-5.11.3/test/minitest/test_minitest_benchmark.rb +137 -0
- data/vendor/bundle/ruby/2.5.0/gems/minitest-5.11.3/test/minitest/test_minitest_mock.rb +874 -0
- data/vendor/bundle/ruby/2.5.0/gems/minitest-5.11.3/test/minitest/test_minitest_reporter.rb +299 -0
- data/vendor/bundle/ruby/2.5.0/gems/minitest-5.11.3/test/minitest/test_minitest_spec.rb +987 -0
- data/vendor/bundle/ruby/2.5.0/gems/minitest-5.11.3/test/minitest/test_minitest_test.rb +2142 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/CONTRIBUTING.rdoc +43 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/Gemfile +3 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/History.rdoc +2333 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/MIT-LICENSE +21 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/README.rdoc +156 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/Rakefile +41 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/bin/bundle +105 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/bin/console +7 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/bin/rake +29 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/bin/rdoc +29 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/bin/rubocop +29 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/bin/setup +6 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/doc/command_line_usage.rdoc +158 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/doc/example/Rakefile1 +38 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/doc/example/Rakefile2 +35 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/doc/example/a.c +6 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/doc/example/b.c +6 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/doc/example/main.c +11 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/doc/glossary.rdoc +42 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/doc/jamis.rb +592 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/doc/proto_rake.rdoc +127 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/doc/rake.1 +156 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/doc/rakefile.rdoc +622 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/doc/rational.rdoc +151 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/exe/rake +27 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/lib/rake.rb +71 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/lib/rake/application.rb +824 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/lib/rake/backtrace.rb +24 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/lib/rake/clean.rb +78 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/lib/rake/cloneable.rb +17 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/lib/rake/cpu_counter.rb +107 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/lib/rake/default_loader.rb +15 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/lib/rake/dsl_definition.rb +195 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/lib/rake/early_time.rb +22 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/lib/rake/ext/core.rb +26 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/lib/rake/ext/string.rb +176 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/lib/rake/file_creation_task.rb +25 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/lib/rake/file_list.rb +435 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/lib/rake/file_task.rb +54 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/lib/rake/file_utils.rb +137 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/lib/rake/file_utils_ext.rb +145 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/lib/rake/invocation_chain.rb +57 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/lib/rake/invocation_exception_mixin.rb +17 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/lib/rake/late_time.rb +18 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/lib/rake/linked_list.rb +112 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/lib/rake/loaders/makefile.rb +54 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/lib/rake/multi_task.rb +14 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/lib/rake/name_space.rb +38 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/lib/rake/packagetask.rb +207 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/lib/rake/phony.rb +16 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/lib/rake/private_reader.rb +21 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/lib/rake/promise.rb +100 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/lib/rake/pseudo_status.rb +30 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/lib/rake/rake_module.rb +67 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/lib/rake/rake_test_loader.rb +27 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/lib/rake/rule_recursion_overflow_error.rb +20 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/lib/rake/scope.rb +43 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/lib/rake/task.rb +413 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/lib/rake/task_argument_error.rb +8 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/lib/rake/task_arguments.rb +109 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/lib/rake/task_manager.rb +323 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/lib/rake/tasklib.rb +12 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/lib/rake/testtask.rb +224 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/lib/rake/thread_history_display.rb +49 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/lib/rake/thread_pool.rb +163 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/lib/rake/trace_output.rb +23 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/lib/rake/version.rb +10 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/lib/rake/win32.rb +51 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/rake.gemspec +42 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/CONTRIBUTING.rdoc +220 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/CVE-2013-0256.rdoc +49 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/ExampleMarkdown.md +37 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/ExampleRDoc.rdoc +208 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/Gemfile +3 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/History.rdoc +1666 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/LEGAL.rdoc +50 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/LICENSE.rdoc +57 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/README.rdoc +130 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/RI.rdoc +57 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/Rakefile +91 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/TODO.rdoc +59 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/appveyor.yml +36 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/bin/console +7 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/bin/setup +6 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/exe/rdoc +44 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/exe/ri +12 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc.rb +180 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/alias.rb +112 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/anon_class.rb +11 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/any_method.rb +316 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/attr.rb +176 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/class_module.rb +802 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/code_object.rb +421 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/code_objects.rb +6 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/comment.rb +239 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/constant.rb +187 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/context.rb +1258 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/context/section.rb +245 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/cross_reference.rb +202 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/encoding.rb +136 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/erb_partial.rb +19 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/erbio.rb +42 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/extend.rb +10 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator.rb +51 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/darkfish.rb +790 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/json_index.rb +300 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/markup.rb +160 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/pot.rb +98 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/pot/message_extractor.rb +68 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/pot/po.rb +84 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/pot/po_entry.rb +141 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/ri.rb +31 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/_footer.rhtml +5 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/_head.rhtml +20 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/_sidebar_VCS_info.rhtml +19 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/_sidebar_classes.rhtml +9 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/_sidebar_extends.rhtml +15 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/_sidebar_in_files.rhtml +9 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/_sidebar_includes.rhtml +15 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/_sidebar_installed.rhtml +15 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/_sidebar_methods.rhtml +12 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/_sidebar_navigation.rhtml +11 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/_sidebar_pages.rhtml +12 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/_sidebar_parent.rhtml +11 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/_sidebar_search.rhtml +14 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/_sidebar_sections.rhtml +11 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/_sidebar_table_of_contents.rhtml +18 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/class.rhtml +172 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/css/fonts.css +167 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/css/rdoc.css +590 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/fonts/Lato-Light.ttf +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/fonts/Lato-LightItalic.ttf +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/fonts/Lato-Regular.ttf +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/fonts/Lato-RegularItalic.ttf +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/fonts/SourceCodePro-Bold.ttf +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/fonts/SourceCodePro-Regular.ttf +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/images/add.png +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/images/arrow_up.png +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/images/brick.png +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/images/brick_link.png +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/images/bug.png +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/images/bullet_black.png +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/images/bullet_toggle_minus.png +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/images/bullet_toggle_plus.png +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/images/date.png +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/images/delete.png +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/images/find.png +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/images/loadingAnimation.gif +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/images/macFFBgHack.png +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/images/package.png +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/images/page_green.png +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/images/page_white_text.png +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/images/page_white_width.png +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/images/plugin.png +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/images/ruby.png +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/images/tag_blue.png +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/images/tag_green.png +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/images/transparent.png +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/images/wrench.png +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/images/wrench_orange.png +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/images/zoom.png +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/index.rhtml +23 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/js/darkfish.js +161 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/js/jquery.js +4 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/js/search.js +109 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/page.rhtml +18 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/servlet_not_found.rhtml +18 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/servlet_root.rhtml +63 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/table_of_contents.rhtml +58 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/json_index/js/navigation.js +141 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/json_index/js/searcher.js +229 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/ghost_method.rb +7 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/i18n.rb +10 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/i18n/locale.rb +102 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/i18n/text.rb +126 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/include.rb +10 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/known_classes.rb +73 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/markdown.kpeg +1219 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/markdown/entities.rb +2132 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/markdown/literals.kpeg +23 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/markup.rb +868 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/markup/attr_changer.rb +23 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/markup/attr_span.rb +30 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/markup/attribute_manager.rb +344 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/markup/attributes.rb +71 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/markup/blank_line.rb +28 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/markup/block_quote.rb +15 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/markup/document.rb +165 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/markup/formatter.rb +266 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/markup/formatter_test_case.rb +764 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/markup/hard_break.rb +32 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/markup/heading.rb +79 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/markup/include.rb +43 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/markup/indented_paragraph.rb +48 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/markup/list.rb +102 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/markup/list_item.rb +100 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/markup/paragraph.rb +29 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/markup/parser.rb +559 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/markup/pre_process.rb +296 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/markup/raw.rb +70 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/markup/regexp_handling.rb +41 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/markup/rule.rb +21 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/markup/text_formatter_test_case.rb +115 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/markup/to_ansi.rb +94 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/markup/to_bs.rb +77 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/markup/to_html.rb +404 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/markup/to_html_crossref.rb +164 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/markup/to_html_snippet.rb +285 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/markup/to_joined_paragraph.rb +46 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/markup/to_label.rb +75 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/markup/to_markdown.rb +192 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/markup/to_rdoc.rb +334 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/markup/to_table_of_contents.rb +88 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/markup/to_test.rb +70 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/markup/to_tt_only.rb +121 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/markup/verbatim.rb +84 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/meta_method.rb +7 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/method_attr.rb +419 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/mixin.rb +121 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/normal_class.rb +93 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/normal_module.rb +74 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/options.rb +1235 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/parser.rb +277 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/parser/c.rb +1269 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/parser/changelog.rb +204 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/parser/markdown.rb +24 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/parser/rd.rb +23 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/parser/ripper_state_lex.rb +589 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/parser/ruby.rb +2317 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/parser/ruby_tools.rb +167 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/parser/simple.rb +61 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/parser/text.rb +12 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/rd.rb +100 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/rd/block_parser.ry +639 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/rd/inline.rb +72 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/rd/inline_parser.ry +593 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/rdoc.rb +566 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/require.rb +52 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/ri.rb +21 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/ri/driver.rb +1568 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/ri/formatter.rb +6 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/ri/paths.rb +185 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/ri/store.rb +7 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/ri/task.rb +71 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/rubygems_hook.rb +246 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/servlet.rb +443 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/single_class.rb +26 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/stats.rb +462 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/stats/normal.rb +58 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/stats/quiet.rb +60 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/stats/verbose.rb +46 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/store.rb +987 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/task.rb +329 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/text.rb +298 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/token_stream.rb +114 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/tom_doc.rb +264 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/top_level.rb +289 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/version.rb +8 -0
- data/vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/rdoc.gemspec +62 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubyforge-2.0.4/History.txt +128 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubyforge-2.0.4/Manifest.txt +9 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubyforge-2.0.4/README.txt +55 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubyforge-2.0.4/Rakefile +40 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubyforge-2.0.4/bin/rubyforge +222 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubyforge-2.0.4/lib/rubyforge.rb +389 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubyforge-2.0.4/lib/rubyforge/client.rb +124 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubyforge-2.0.4/test/test_rubyforge.rb +329 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubyforge-2.0.4/test/test_rubyforge_client.rb +57 -0
- data/vendor/bundle/ruby/2.5.0/gems/thread_safe-0.3.6/Gemfile +20 -0
- data/vendor/bundle/ruby/2.5.0/gems/thread_safe-0.3.6/LICENSE +144 -0
- data/vendor/bundle/ruby/2.5.0/gems/thread_safe-0.3.6/README.md +60 -0
- data/vendor/bundle/ruby/2.5.0/gems/thread_safe-0.3.6/Rakefile +62 -0
- data/vendor/bundle/ruby/2.5.0/gems/thread_safe-0.3.6/examples/bench_cache.rb +35 -0
- data/vendor/bundle/ruby/2.5.0/gems/thread_safe-0.3.6/ext/org/jruby/ext/thread_safe/JRubyCacheBackendLibrary.java +245 -0
- data/vendor/bundle/ruby/2.5.0/gems/thread_safe-0.3.6/ext/org/jruby/ext/thread_safe/jsr166e/ConcurrentHashMap.java +31 -0
- data/vendor/bundle/ruby/2.5.0/gems/thread_safe-0.3.6/ext/org/jruby/ext/thread_safe/jsr166e/ConcurrentHashMapV8.java +3863 -0
- data/vendor/bundle/ruby/2.5.0/gems/thread_safe-0.3.6/ext/org/jruby/ext/thread_safe/jsr166e/LongAdder.java +203 -0
- data/vendor/bundle/ruby/2.5.0/gems/thread_safe-0.3.6/ext/org/jruby/ext/thread_safe/jsr166e/Striped64.java +342 -0
- data/vendor/bundle/ruby/2.5.0/gems/thread_safe-0.3.6/ext/org/jruby/ext/thread_safe/jsr166e/nounsafe/ConcurrentHashMapV8.java +3800 -0
- data/vendor/bundle/ruby/2.5.0/gems/thread_safe-0.3.6/ext/org/jruby/ext/thread_safe/jsr166e/nounsafe/LongAdder.java +204 -0
- data/vendor/bundle/ruby/2.5.0/gems/thread_safe-0.3.6/ext/org/jruby/ext/thread_safe/jsr166e/nounsafe/Striped64.java +291 -0
- data/vendor/bundle/ruby/2.5.0/gems/thread_safe-0.3.6/ext/org/jruby/ext/thread_safe/jsr166y/ThreadLocalRandom.java +199 -0
- data/vendor/bundle/ruby/2.5.0/gems/thread_safe-0.3.6/ext/thread_safe/JrubyCacheBackendService.java +15 -0
- data/vendor/bundle/ruby/2.5.0/gems/thread_safe-0.3.6/lib/thread_safe.rb +65 -0
- data/vendor/bundle/ruby/2.5.0/gems/thread_safe-0.3.6/lib/thread_safe/atomic_reference_cache_backend.rb +908 -0
- data/vendor/bundle/ruby/2.5.0/gems/thread_safe-0.3.6/lib/thread_safe/cache.rb +161 -0
- data/vendor/bundle/ruby/2.5.0/gems/thread_safe-0.3.6/lib/thread_safe/mri_cache_backend.rb +60 -0
- data/vendor/bundle/ruby/2.5.0/gems/thread_safe-0.3.6/lib/thread_safe/non_concurrent_cache_backend.rb +135 -0
- data/vendor/bundle/ruby/2.5.0/gems/thread_safe-0.3.6/lib/thread_safe/synchronized_cache_backend.rb +77 -0
- data/vendor/bundle/ruby/2.5.0/gems/thread_safe-0.3.6/lib/thread_safe/synchronized_delegator.rb +43 -0
- data/vendor/bundle/ruby/2.5.0/gems/thread_safe-0.3.6/lib/thread_safe/util.rb +16 -0
- data/vendor/bundle/ruby/2.5.0/gems/thread_safe-0.3.6/lib/thread_safe/util/adder.rb +62 -0
- data/vendor/bundle/ruby/2.5.0/gems/thread_safe-0.3.6/lib/thread_safe/util/atomic_reference.rb +44 -0
- data/vendor/bundle/ruby/2.5.0/gems/thread_safe-0.3.6/lib/thread_safe/util/cheap_lockable.rb +106 -0
- data/vendor/bundle/ruby/2.5.0/gems/thread_safe-0.3.6/lib/thread_safe/util/power_of_two_tuple.rb +26 -0
- data/vendor/bundle/ruby/2.5.0/gems/thread_safe-0.3.6/lib/thread_safe/util/striped64.rb +222 -0
- data/vendor/bundle/ruby/2.5.0/gems/thread_safe-0.3.6/lib/thread_safe/util/volatile.rb +64 -0
- data/vendor/bundle/ruby/2.5.0/gems/thread_safe-0.3.6/lib/thread_safe/util/volatile_tuple.rb +46 -0
- data/vendor/bundle/ruby/2.5.0/gems/thread_safe-0.3.6/lib/thread_safe/util/xor_shift_random.rb +41 -0
- data/vendor/bundle/ruby/2.5.0/gems/thread_safe-0.3.6/lib/thread_safe/version.rb +21 -0
- data/vendor/bundle/ruby/2.5.0/gems/thread_safe-0.3.6/spec/spec_helper.rb +31 -0
- data/vendor/bundle/ruby/2.5.0/gems/thread_safe-0.3.6/spec/src/thread_safe/SecurityManager.java +21 -0
- data/vendor/bundle/ruby/2.5.0/gems/thread_safe-0.3.6/spec/support/threads.rb +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/thread_safe-0.3.6/spec/support/threadsafe_test.rb +75 -0
- data/vendor/bundle/ruby/2.5.0/gems/thread_safe-0.3.6/spec/thread_safe/array_spec.rb +18 -0
- data/vendor/bundle/ruby/2.5.0/gems/thread_safe-0.3.6/spec/thread_safe/cache_loops_spec.rb +507 -0
- data/vendor/bundle/ruby/2.5.0/gems/thread_safe-0.3.6/spec/thread_safe/cache_spec.rb +943 -0
- data/vendor/bundle/ruby/2.5.0/gems/thread_safe-0.3.6/spec/thread_safe/hash_spec.rb +17 -0
- data/vendor/bundle/ruby/2.5.0/gems/thread_safe-0.3.6/spec/thread_safe/no_unsafe_spec.rb +27 -0
- data/vendor/bundle/ruby/2.5.0/gems/thread_safe-0.3.6/spec/thread_safe/synchronized_delegator_spec.rb +85 -0
- data/vendor/bundle/ruby/2.5.0/gems/thread_safe-0.3.6/tasks/update_doc.rake +45 -0
- data/vendor/bundle/ruby/2.5.0/gems/thread_safe-0.3.6/thread_safe.gemspec +26 -0
- data/vendor/bundle/ruby/2.5.0/gems/thread_safe-0.3.6/yard-template/default/fulldoc/html/css/common.css +125 -0
- data/vendor/bundle/ruby/2.5.0/gems/thread_safe-0.3.6/yard-template/default/layout/html/footer.erb +16 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/CHANGES.md +786 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/LICENSE +19 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/README.md +151 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/Rakefile +107 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/lib/tzinfo.rb +40 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/lib/tzinfo/country.rb +196 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/lib/tzinfo/country_index_definition.rb +31 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/lib/tzinfo/country_info.rb +42 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/lib/tzinfo/country_timezone.rb +135 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/lib/tzinfo/data_source.rb +190 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/lib/tzinfo/data_timezone.rb +58 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/lib/tzinfo/data_timezone_info.rb +55 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/lib/tzinfo/info_timezone.rb +30 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/lib/tzinfo/linked_timezone.rb +63 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/lib/tzinfo/linked_timezone_info.rb +26 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/lib/tzinfo/offset_rationals.rb +77 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/lib/tzinfo/ruby_core_support.rb +146 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/lib/tzinfo/ruby_country_info.rb +74 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/lib/tzinfo/ruby_data_source.rb +136 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/lib/tzinfo/time_or_datetime.rb +340 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/lib/tzinfo/timezone.rb +669 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/lib/tzinfo/timezone_definition.rb +36 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/lib/tzinfo/timezone_index_definition.rb +54 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/lib/tzinfo/timezone_info.rb +30 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/lib/tzinfo/timezone_offset.rb +101 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/lib/tzinfo/timezone_period.rb +245 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/lib/tzinfo/timezone_proxy.rb +105 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/lib/tzinfo/timezone_transition.rb +130 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/lib/tzinfo/timezone_transition_definition.rb +104 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/lib/tzinfo/transition_data_timezone_info.rb +274 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/lib/tzinfo/zoneinfo_country_info.rb +37 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/lib/tzinfo/zoneinfo_data_source.rb +488 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/lib/tzinfo/zoneinfo_timezone_info.rb +296 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/tc_country.rb +234 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/tc_country_index_definition.rb +69 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/tc_country_info.rb +16 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/tc_country_timezone.rb +173 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/tc_data_source.rb +218 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/tc_data_timezone.rb +99 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/tc_data_timezone_info.rb +18 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/tc_info_timezone.rb +34 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/tc_linked_timezone.rb +155 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/tc_linked_timezone_info.rb +23 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/tc_offset_rationals.rb +23 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/tc_ruby_core_support.rb +168 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/tc_ruby_country_info.rb +110 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/tc_ruby_data_source.rb +143 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/tc_time_or_datetime.rb +654 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/tc_timezone.rb +1350 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/tc_timezone_definition.rb +113 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/tc_timezone_index_definition.rb +73 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/tc_timezone_info.rb +11 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/tc_timezone_london.rb +143 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/tc_timezone_melbourne.rb +142 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/tc_timezone_new_york.rb +142 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/tc_timezone_offset.rb +126 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/tc_timezone_period.rb +555 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/tc_timezone_proxy.rb +136 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/tc_timezone_transition.rb +366 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/tc_timezone_transition_definition.rb +295 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/tc_timezone_utc.rb +27 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/tc_transition_data_timezone_info.rb +423 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/tc_zoneinfo_country_info.rb +78 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/tc_zoneinfo_data_source.rb +1195 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/tc_zoneinfo_timezone_info.rb +1232 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/test_utils.rb +163 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/ts_all.rb +7 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/ts_all_ruby.rb +5 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/ts_all_zoneinfo.rb +7 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/tzinfo-data/tzinfo/data.rb +8 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/tzinfo-data/tzinfo/data/definitions/America/Argentina/Buenos_Aires.rb +89 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/tzinfo-data/tzinfo/data/definitions/America/New_York.rb +315 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/tzinfo-data/tzinfo/data/definitions/Australia/Melbourne.rb +218 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/tzinfo-data/tzinfo/data/definitions/EST.rb +19 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/tzinfo-data/tzinfo/data/definitions/Etc/GMT__m__1.rb +21 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/tzinfo-data/tzinfo/data/definitions/Etc/GMT__p__1.rb +21 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/tzinfo-data/tzinfo/data/definitions/Etc/UTC.rb +21 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/tzinfo-data/tzinfo/data/definitions/Europe/Amsterdam.rb +261 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/tzinfo-data/tzinfo/data/definitions/Europe/Andorra.rb +186 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/tzinfo-data/tzinfo/data/definitions/Europe/London.rb +321 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/tzinfo-data/tzinfo/data/definitions/Europe/Paris.rb +265 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/tzinfo-data/tzinfo/data/definitions/Europe/Prague.rb +220 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/tzinfo-data/tzinfo/data/definitions/UTC.rb +16 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/tzinfo-data/tzinfo/data/indexes/countries.rb +927 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/tzinfo-data/tzinfo/data/indexes/timezones.rb +596 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/tzinfo-data/tzinfo/data/version.rb +14 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/zoneinfo/America/Argentina/Buenos_Aires +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/zoneinfo/America/New_York +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/zoneinfo/Australia/Melbourne +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/zoneinfo/EST +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/zoneinfo/Etc/UTC +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/zoneinfo/Europe/Amsterdam +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/zoneinfo/Europe/Andorra +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/zoneinfo/Europe/London +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/zoneinfo/Europe/Paris +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/zoneinfo/Europe/Prague +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/zoneinfo/Factory +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/zoneinfo/iso3166.tab +275 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/zoneinfo/leapseconds +61 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/zoneinfo/posix/Europe/London +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/zoneinfo/posixrules +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/zoneinfo/right/Europe/London +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/zoneinfo/zone.tab +439 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/zoneinfo/zone1970.tab +369 -0
- data/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/tzinfo.gemspec +21 -0
- data/vendor/bundle/ruby/2.5.0/specifications/activemodel-5.2.3.gemspec +34 -0
- data/vendor/bundle/ruby/2.5.0/specifications/activemodel-serializers-xml-1.0.2.gemspec +46 -0
- data/vendor/bundle/ruby/2.5.0/specifications/activeresource-5.1.0.gemspec +48 -0
- data/vendor/bundle/ruby/2.5.0/specifications/activesupport-5.2.3.gemspec +44 -0
- data/vendor/bundle/ruby/2.5.0/specifications/allison-2.0.3.gemspec +23 -0
- data/vendor/bundle/ruby/2.5.0/specifications/builder-3.2.3.gemspec +21 -0
- data/vendor/bundle/ruby/2.5.0/specifications/concurrent-ruby-1.1.5.gemspec +24 -0
- data/vendor/bundle/ruby/2.5.0/specifications/echoe-4.6.6.gemspec +46 -0
- data/vendor/bundle/ruby/2.5.0/specifications/i18n-1.6.0.gemspec +35 -0
- data/vendor/bundle/ruby/2.5.0/specifications/json_pure-2.2.0.gemspec +39 -0
- data/vendor/bundle/ruby/2.5.0/specifications/minitest-5.11.3.gemspec +39 -0
- data/vendor/bundle/ruby/2.5.0/specifications/rake-12.3.2.gemspec +49 -0
- data/vendor/bundle/ruby/2.5.0/specifications/rdoc-6.1.1.gemspec +50 -0
- data/vendor/bundle/ruby/2.5.0/specifications/rubyforge-2.0.4.gemspec +36 -0
- data/vendor/bundle/ruby/2.5.0/specifications/thread_safe-0.3.6.gemspec +38 -0
- data/vendor/bundle/ruby/2.5.0/specifications/tzinfo-1.2.5.gemspec +37 -0
- metadata +1283 -91
- metadata.gz.sig +2 -0
- data/sbin/rake-deploy1.sh +0 -9
- data/sbin/rake-deploy2.sh +0 -11
- data/sbin/reboot.rb +0 -3
- data/sbin/ric_reboot.rb +0 -3
@@ -0,0 +1 @@
|
|
1
|
+
generator.o: generator.c generator.h $(srcdir)/../fbuffer/fbuffer.h
|
@@ -0,0 +1,1444 @@
|
|
1
|
+
#include "../fbuffer/fbuffer.h"
|
2
|
+
#include "generator.h"
|
3
|
+
|
4
|
+
#ifdef HAVE_RUBY_ENCODING_H
|
5
|
+
static VALUE CEncoding_UTF_8;
|
6
|
+
static ID i_encoding, i_encode;
|
7
|
+
#endif
|
8
|
+
|
9
|
+
static VALUE mJSON, mExt, mGenerator, cState, mGeneratorMethods, mObject,
|
10
|
+
mHash, mArray,
|
11
|
+
#ifdef RUBY_INTEGER_UNIFICATION
|
12
|
+
mInteger,
|
13
|
+
#else
|
14
|
+
mFixnum, mBignum,
|
15
|
+
#endif
|
16
|
+
mFloat, mString, mString_Extend,
|
17
|
+
mTrueClass, mFalseClass, mNilClass, eGeneratorError,
|
18
|
+
eNestingError, CRegexp_MULTILINE, CJSON_SAFE_STATE_PROTOTYPE,
|
19
|
+
i_SAFE_STATE_PROTOTYPE;
|
20
|
+
|
21
|
+
static ID i_to_s, i_to_json, i_new, i_indent, i_space, i_space_before,
|
22
|
+
i_object_nl, i_array_nl, i_max_nesting, i_allow_nan, i_ascii_only,
|
23
|
+
i_pack, i_unpack, i_create_id, i_extend, i_key_p,
|
24
|
+
i_aref, i_send, i_respond_to_p, i_match, i_keys, i_depth,
|
25
|
+
i_buffer_initial_length, i_dup;
|
26
|
+
|
27
|
+
/*
|
28
|
+
* Copyright 2001-2004 Unicode, Inc.
|
29
|
+
*
|
30
|
+
* Disclaimer
|
31
|
+
*
|
32
|
+
* This source code is provided as is by Unicode, Inc. No claims are
|
33
|
+
* made as to fitness for any particular purpose. No warranties of any
|
34
|
+
* kind are expressed or implied. The recipient agrees to determine
|
35
|
+
* applicability of information provided. If this file has been
|
36
|
+
* purchased on magnetic or optical media from Unicode, Inc., the
|
37
|
+
* sole remedy for any claim will be exchange of defective media
|
38
|
+
* within 90 days of receipt.
|
39
|
+
*
|
40
|
+
* Limitations on Rights to Redistribute This Code
|
41
|
+
*
|
42
|
+
* Unicode, Inc. hereby grants the right to freely use the information
|
43
|
+
* supplied in this file in the creation of products supporting the
|
44
|
+
* Unicode Standard, and to make copies of this file in any form
|
45
|
+
* for internal or external distribution as long as this notice
|
46
|
+
* remains attached.
|
47
|
+
*/
|
48
|
+
|
49
|
+
/*
|
50
|
+
* Index into the table below with the first byte of a UTF-8 sequence to
|
51
|
+
* get the number of trailing bytes that are supposed to follow it.
|
52
|
+
* Note that *legal* UTF-8 values can't have 4 or 5-bytes. The table is
|
53
|
+
* left as-is for anyone who may want to do such conversion, which was
|
54
|
+
* allowed in earlier algorithms.
|
55
|
+
*/
|
56
|
+
static const char trailingBytesForUTF8[256] = {
|
57
|
+
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
58
|
+
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
59
|
+
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
60
|
+
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
61
|
+
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
62
|
+
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
63
|
+
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
|
64
|
+
2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2, 3,3,3,3,3,3,3,3,4,4,4,4,5,5,5,5
|
65
|
+
};
|
66
|
+
|
67
|
+
/*
|
68
|
+
* Magic values subtracted from a buffer value during UTF8 conversion.
|
69
|
+
* This table contains as many values as there might be trailing bytes
|
70
|
+
* in a UTF-8 sequence.
|
71
|
+
*/
|
72
|
+
static const UTF32 offsetsFromUTF8[6] = { 0x00000000UL, 0x00003080UL, 0x000E2080UL,
|
73
|
+
0x03C82080UL, 0xFA082080UL, 0x82082080UL };
|
74
|
+
|
75
|
+
/*
|
76
|
+
* Utility routine to tell whether a sequence of bytes is legal UTF-8.
|
77
|
+
* This must be called with the length pre-determined by the first byte.
|
78
|
+
* If not calling this from ConvertUTF8to*, then the length can be set by:
|
79
|
+
* length = trailingBytesForUTF8[*source]+1;
|
80
|
+
* and the sequence is illegal right away if there aren't that many bytes
|
81
|
+
* available.
|
82
|
+
* If presented with a length > 4, this returns 0. The Unicode
|
83
|
+
* definition of UTF-8 goes up to 4-byte sequences.
|
84
|
+
*/
|
85
|
+
static unsigned char isLegalUTF8(const UTF8 *source, unsigned long length)
|
86
|
+
{
|
87
|
+
UTF8 a;
|
88
|
+
const UTF8 *srcptr = source+length;
|
89
|
+
switch (length) {
|
90
|
+
default: return 0;
|
91
|
+
/* Everything else falls through when "1"... */
|
92
|
+
case 4: if ((a = (*--srcptr)) < 0x80 || a > 0xBF) return 0;
|
93
|
+
case 3: if ((a = (*--srcptr)) < 0x80 || a > 0xBF) return 0;
|
94
|
+
case 2: if ((a = (*--srcptr)) > 0xBF) return 0;
|
95
|
+
|
96
|
+
switch (*source) {
|
97
|
+
/* no fall-through in this inner switch */
|
98
|
+
case 0xE0: if (a < 0xA0) return 0; break;
|
99
|
+
case 0xED: if (a > 0x9F) return 0; break;
|
100
|
+
case 0xF0: if (a < 0x90) return 0; break;
|
101
|
+
case 0xF4: if (a > 0x8F) return 0; break;
|
102
|
+
default: if (a < 0x80) return 0;
|
103
|
+
}
|
104
|
+
|
105
|
+
case 1: if (*source >= 0x80 && *source < 0xC2) return 0;
|
106
|
+
}
|
107
|
+
if (*source > 0xF4) return 0;
|
108
|
+
return 1;
|
109
|
+
}
|
110
|
+
|
111
|
+
/* Escapes the UTF16 character and stores the result in the buffer buf. */
|
112
|
+
static void unicode_escape(char *buf, UTF16 character)
|
113
|
+
{
|
114
|
+
const char *digits = "0123456789abcdef";
|
115
|
+
|
116
|
+
buf[2] = digits[character >> 12];
|
117
|
+
buf[3] = digits[(character >> 8) & 0xf];
|
118
|
+
buf[4] = digits[(character >> 4) & 0xf];
|
119
|
+
buf[5] = digits[character & 0xf];
|
120
|
+
}
|
121
|
+
|
122
|
+
/* Escapes the UTF16 character and stores the result in the buffer buf, then
|
123
|
+
* the buffer buf is appended to the FBuffer buffer. */
|
124
|
+
static void unicode_escape_to_buffer(FBuffer *buffer, char buf[6], UTF16
|
125
|
+
character)
|
126
|
+
{
|
127
|
+
unicode_escape(buf, character);
|
128
|
+
fbuffer_append(buffer, buf, 6);
|
129
|
+
}
|
130
|
+
|
131
|
+
/* Converts string to a JSON string in FBuffer buffer, where all but the ASCII
|
132
|
+
* and control characters are JSON escaped. */
|
133
|
+
static void convert_UTF8_to_JSON_ASCII(FBuffer *buffer, VALUE string)
|
134
|
+
{
|
135
|
+
const UTF8 *source = (UTF8 *) RSTRING_PTR(string);
|
136
|
+
const UTF8 *sourceEnd = source + RSTRING_LEN(string);
|
137
|
+
char buf[6] = { '\\', 'u' };
|
138
|
+
|
139
|
+
while (source < sourceEnd) {
|
140
|
+
UTF32 ch = 0;
|
141
|
+
unsigned short extraBytesToRead = trailingBytesForUTF8[*source];
|
142
|
+
if (source + extraBytesToRead >= sourceEnd) {
|
143
|
+
rb_raise(rb_path2class("JSON::GeneratorError"),
|
144
|
+
"partial character in source, but hit end");
|
145
|
+
}
|
146
|
+
if (!isLegalUTF8(source, extraBytesToRead+1)) {
|
147
|
+
rb_raise(rb_path2class("JSON::GeneratorError"),
|
148
|
+
"source sequence is illegal/malformed utf-8");
|
149
|
+
}
|
150
|
+
/*
|
151
|
+
* The cases all fall through. See "Note A" below.
|
152
|
+
*/
|
153
|
+
switch (extraBytesToRead) {
|
154
|
+
case 5: ch += *source++; ch <<= 6; /* remember, illegal UTF-8 */
|
155
|
+
case 4: ch += *source++; ch <<= 6; /* remember, illegal UTF-8 */
|
156
|
+
case 3: ch += *source++; ch <<= 6;
|
157
|
+
case 2: ch += *source++; ch <<= 6;
|
158
|
+
case 1: ch += *source++; ch <<= 6;
|
159
|
+
case 0: ch += *source++;
|
160
|
+
}
|
161
|
+
ch -= offsetsFromUTF8[extraBytesToRead];
|
162
|
+
|
163
|
+
if (ch <= UNI_MAX_BMP) { /* Target is a character <= 0xFFFF */
|
164
|
+
/* UTF-16 surrogate values are illegal in UTF-32 */
|
165
|
+
if (ch >= UNI_SUR_HIGH_START && ch <= UNI_SUR_LOW_END) {
|
166
|
+
#if UNI_STRICT_CONVERSION
|
167
|
+
source -= (extraBytesToRead+1); /* return to the illegal value itself */
|
168
|
+
rb_raise(rb_path2class("JSON::GeneratorError"),
|
169
|
+
"source sequence is illegal/malformed utf-8");
|
170
|
+
#else
|
171
|
+
unicode_escape_to_buffer(buffer, buf, UNI_REPLACEMENT_CHAR);
|
172
|
+
#endif
|
173
|
+
} else {
|
174
|
+
/* normal case */
|
175
|
+
if (ch >= 0x20 && ch <= 0x7f) {
|
176
|
+
switch (ch) {
|
177
|
+
case '\\':
|
178
|
+
fbuffer_append(buffer, "\\\\", 2);
|
179
|
+
break;
|
180
|
+
case '"':
|
181
|
+
fbuffer_append(buffer, "\\\"", 2);
|
182
|
+
break;
|
183
|
+
default:
|
184
|
+
fbuffer_append_char(buffer, (char)ch);
|
185
|
+
break;
|
186
|
+
}
|
187
|
+
} else {
|
188
|
+
switch (ch) {
|
189
|
+
case '\n':
|
190
|
+
fbuffer_append(buffer, "\\n", 2);
|
191
|
+
break;
|
192
|
+
case '\r':
|
193
|
+
fbuffer_append(buffer, "\\r", 2);
|
194
|
+
break;
|
195
|
+
case '\t':
|
196
|
+
fbuffer_append(buffer, "\\t", 2);
|
197
|
+
break;
|
198
|
+
case '\f':
|
199
|
+
fbuffer_append(buffer, "\\f", 2);
|
200
|
+
break;
|
201
|
+
case '\b':
|
202
|
+
fbuffer_append(buffer, "\\b", 2);
|
203
|
+
break;
|
204
|
+
default:
|
205
|
+
unicode_escape_to_buffer(buffer, buf, (UTF16) ch);
|
206
|
+
break;
|
207
|
+
}
|
208
|
+
}
|
209
|
+
}
|
210
|
+
} else if (ch > UNI_MAX_UTF16) {
|
211
|
+
#if UNI_STRICT_CONVERSION
|
212
|
+
source -= (extraBytesToRead+1); /* return to the start */
|
213
|
+
rb_raise(rb_path2class("JSON::GeneratorError"),
|
214
|
+
"source sequence is illegal/malformed utf8");
|
215
|
+
#else
|
216
|
+
unicode_escape_to_buffer(buffer, buf, UNI_REPLACEMENT_CHAR);
|
217
|
+
#endif
|
218
|
+
} else {
|
219
|
+
/* target is a character in range 0xFFFF - 0x10FFFF. */
|
220
|
+
ch -= halfBase;
|
221
|
+
unicode_escape_to_buffer(buffer, buf, (UTF16)((ch >> halfShift) + UNI_SUR_HIGH_START));
|
222
|
+
unicode_escape_to_buffer(buffer, buf, (UTF16)((ch & halfMask) + UNI_SUR_LOW_START));
|
223
|
+
}
|
224
|
+
}
|
225
|
+
RB_GC_GUARD(string);
|
226
|
+
}
|
227
|
+
|
228
|
+
/* Converts string to a JSON string in FBuffer buffer, where only the
|
229
|
+
* characters required by the JSON standard are JSON escaped. The remaining
|
230
|
+
* characters (should be UTF8) are just passed through and appended to the
|
231
|
+
* result. */
|
232
|
+
static void convert_UTF8_to_JSON(FBuffer *buffer, VALUE string)
|
233
|
+
{
|
234
|
+
const char *ptr = RSTRING_PTR(string), *p;
|
235
|
+
unsigned long len = RSTRING_LEN(string), start = 0, end = 0;
|
236
|
+
const char *escape = NULL;
|
237
|
+
int escape_len;
|
238
|
+
unsigned char c;
|
239
|
+
char buf[6] = { '\\', 'u' };
|
240
|
+
|
241
|
+
for (start = 0, end = 0; end < len;) {
|
242
|
+
p = ptr + end;
|
243
|
+
c = (unsigned char) *p;
|
244
|
+
if (c < 0x20) {
|
245
|
+
switch (c) {
|
246
|
+
case '\n':
|
247
|
+
escape = "\\n";
|
248
|
+
escape_len = 2;
|
249
|
+
break;
|
250
|
+
case '\r':
|
251
|
+
escape = "\\r";
|
252
|
+
escape_len = 2;
|
253
|
+
break;
|
254
|
+
case '\t':
|
255
|
+
escape = "\\t";
|
256
|
+
escape_len = 2;
|
257
|
+
break;
|
258
|
+
case '\f':
|
259
|
+
escape = "\\f";
|
260
|
+
escape_len = 2;
|
261
|
+
break;
|
262
|
+
case '\b':
|
263
|
+
escape = "\\b";
|
264
|
+
escape_len = 2;
|
265
|
+
break;
|
266
|
+
default:
|
267
|
+
unicode_escape(buf, (UTF16) *p);
|
268
|
+
escape = buf;
|
269
|
+
escape_len = 6;
|
270
|
+
break;
|
271
|
+
}
|
272
|
+
} else {
|
273
|
+
switch (c) {
|
274
|
+
case '\\':
|
275
|
+
escape = "\\\\";
|
276
|
+
escape_len = 2;
|
277
|
+
break;
|
278
|
+
case '"':
|
279
|
+
escape = "\\\"";
|
280
|
+
escape_len = 2;
|
281
|
+
break;
|
282
|
+
default:
|
283
|
+
{
|
284
|
+
unsigned short clen = trailingBytesForUTF8[c] + 1;
|
285
|
+
if (end + clen > len) {
|
286
|
+
rb_raise(rb_path2class("JSON::GeneratorError"),
|
287
|
+
"partial character in source, but hit end");
|
288
|
+
}
|
289
|
+
if (!isLegalUTF8((UTF8 *) p, clen)) {
|
290
|
+
rb_raise(rb_path2class("JSON::GeneratorError"),
|
291
|
+
"source sequence is illegal/malformed utf-8");
|
292
|
+
}
|
293
|
+
end += clen;
|
294
|
+
}
|
295
|
+
continue;
|
296
|
+
break;
|
297
|
+
}
|
298
|
+
}
|
299
|
+
fbuffer_append(buffer, ptr + start, end - start);
|
300
|
+
fbuffer_append(buffer, escape, escape_len);
|
301
|
+
start = ++end;
|
302
|
+
escape = NULL;
|
303
|
+
}
|
304
|
+
fbuffer_append(buffer, ptr + start, end - start);
|
305
|
+
}
|
306
|
+
|
307
|
+
static char *fstrndup(const char *ptr, unsigned long len) {
|
308
|
+
char *result;
|
309
|
+
if (len <= 0) return NULL;
|
310
|
+
result = ALLOC_N(char, len);
|
311
|
+
memcpy(result, ptr, len);
|
312
|
+
return result;
|
313
|
+
}
|
314
|
+
|
315
|
+
/*
|
316
|
+
* Document-module: JSON::Ext::Generator
|
317
|
+
*
|
318
|
+
* This is the JSON generator implemented as a C extension. It can be
|
319
|
+
* configured to be used by setting
|
320
|
+
*
|
321
|
+
* JSON.generator = JSON::Ext::Generator
|
322
|
+
*
|
323
|
+
* with the method generator= in JSON.
|
324
|
+
*
|
325
|
+
*/
|
326
|
+
|
327
|
+
/*
|
328
|
+
* call-seq: to_json(state = nil)
|
329
|
+
*
|
330
|
+
* Returns a JSON string containing a JSON object, that is generated from
|
331
|
+
* this Hash instance.
|
332
|
+
* _state_ is a JSON::State object, that can also be used to configure the
|
333
|
+
* produced JSON string output further.
|
334
|
+
*/
|
335
|
+
static VALUE mHash_to_json(int argc, VALUE *argv, VALUE self)
|
336
|
+
{
|
337
|
+
GENERATE_JSON(object);
|
338
|
+
}
|
339
|
+
|
340
|
+
/*
|
341
|
+
* call-seq: to_json(state = nil)
|
342
|
+
*
|
343
|
+
* Returns a JSON string containing a JSON array, that is generated from
|
344
|
+
* this Array instance.
|
345
|
+
* _state_ is a JSON::State object, that can also be used to configure the
|
346
|
+
* produced JSON string output further.
|
347
|
+
*/
|
348
|
+
static VALUE mArray_to_json(int argc, VALUE *argv, VALUE self) {
|
349
|
+
GENERATE_JSON(array);
|
350
|
+
}
|
351
|
+
|
352
|
+
#ifdef RUBY_INTEGER_UNIFICATION
|
353
|
+
/*
|
354
|
+
* call-seq: to_json(*)
|
355
|
+
*
|
356
|
+
* Returns a JSON string representation for this Integer number.
|
357
|
+
*/
|
358
|
+
static VALUE mInteger_to_json(int argc, VALUE *argv, VALUE self)
|
359
|
+
{
|
360
|
+
GENERATE_JSON(integer);
|
361
|
+
}
|
362
|
+
|
363
|
+
#else
|
364
|
+
/*
|
365
|
+
* call-seq: to_json(*)
|
366
|
+
*
|
367
|
+
* Returns a JSON string representation for this Integer number.
|
368
|
+
*/
|
369
|
+
static VALUE mFixnum_to_json(int argc, VALUE *argv, VALUE self)
|
370
|
+
{
|
371
|
+
GENERATE_JSON(fixnum);
|
372
|
+
}
|
373
|
+
|
374
|
+
/*
|
375
|
+
* call-seq: to_json(*)
|
376
|
+
*
|
377
|
+
* Returns a JSON string representation for this Integer number.
|
378
|
+
*/
|
379
|
+
static VALUE mBignum_to_json(int argc, VALUE *argv, VALUE self)
|
380
|
+
{
|
381
|
+
GENERATE_JSON(bignum);
|
382
|
+
}
|
383
|
+
#endif
|
384
|
+
|
385
|
+
/*
|
386
|
+
* call-seq: to_json(*)
|
387
|
+
*
|
388
|
+
* Returns a JSON string representation for this Float number.
|
389
|
+
*/
|
390
|
+
static VALUE mFloat_to_json(int argc, VALUE *argv, VALUE self)
|
391
|
+
{
|
392
|
+
GENERATE_JSON(float);
|
393
|
+
}
|
394
|
+
|
395
|
+
/*
|
396
|
+
* call-seq: String.included(modul)
|
397
|
+
*
|
398
|
+
* Extends _modul_ with the String::Extend module.
|
399
|
+
*/
|
400
|
+
static VALUE mString_included_s(VALUE self, VALUE modul) {
|
401
|
+
VALUE result = rb_funcall(modul, i_extend, 1, mString_Extend);
|
402
|
+
return result;
|
403
|
+
}
|
404
|
+
|
405
|
+
/*
|
406
|
+
* call-seq: to_json(*)
|
407
|
+
*
|
408
|
+
* This string should be encoded with UTF-8 A call to this method
|
409
|
+
* returns a JSON string encoded with UTF16 big endian characters as
|
410
|
+
* \u????.
|
411
|
+
*/
|
412
|
+
static VALUE mString_to_json(int argc, VALUE *argv, VALUE self)
|
413
|
+
{
|
414
|
+
GENERATE_JSON(string);
|
415
|
+
}
|
416
|
+
|
417
|
+
/*
|
418
|
+
* call-seq: to_json_raw_object()
|
419
|
+
*
|
420
|
+
* This method creates a raw object hash, that can be nested into
|
421
|
+
* other data structures and will be generated as a raw string. This
|
422
|
+
* method should be used, if you want to convert raw strings to JSON
|
423
|
+
* instead of UTF-8 strings, e. g. binary data.
|
424
|
+
*/
|
425
|
+
static VALUE mString_to_json_raw_object(VALUE self)
|
426
|
+
{
|
427
|
+
VALUE ary;
|
428
|
+
VALUE result = rb_hash_new();
|
429
|
+
rb_hash_aset(result, rb_funcall(mJSON, i_create_id, 0), rb_class_name(rb_obj_class(self)));
|
430
|
+
ary = rb_funcall(self, i_unpack, 1, rb_str_new2("C*"));
|
431
|
+
rb_hash_aset(result, rb_str_new2("raw"), ary);
|
432
|
+
return result;
|
433
|
+
}
|
434
|
+
|
435
|
+
/*
|
436
|
+
* call-seq: to_json_raw(*args)
|
437
|
+
*
|
438
|
+
* This method creates a JSON text from the result of a call to
|
439
|
+
* to_json_raw_object of this String.
|
440
|
+
*/
|
441
|
+
static VALUE mString_to_json_raw(int argc, VALUE *argv, VALUE self)
|
442
|
+
{
|
443
|
+
VALUE obj = mString_to_json_raw_object(self);
|
444
|
+
Check_Type(obj, T_HASH);
|
445
|
+
return mHash_to_json(argc, argv, obj);
|
446
|
+
}
|
447
|
+
|
448
|
+
/*
|
449
|
+
* call-seq: json_create(o)
|
450
|
+
*
|
451
|
+
* Raw Strings are JSON Objects (the raw bytes are stored in an array for the
|
452
|
+
* key "raw"). The Ruby String can be created by this module method.
|
453
|
+
*/
|
454
|
+
static VALUE mString_Extend_json_create(VALUE self, VALUE o)
|
455
|
+
{
|
456
|
+
VALUE ary;
|
457
|
+
Check_Type(o, T_HASH);
|
458
|
+
ary = rb_hash_aref(o, rb_str_new2("raw"));
|
459
|
+
return rb_funcall(ary, i_pack, 1, rb_str_new2("C*"));
|
460
|
+
}
|
461
|
+
|
462
|
+
/*
|
463
|
+
* call-seq: to_json(*)
|
464
|
+
*
|
465
|
+
* Returns a JSON string for true: 'true'.
|
466
|
+
*/
|
467
|
+
static VALUE mTrueClass_to_json(int argc, VALUE *argv, VALUE self)
|
468
|
+
{
|
469
|
+
GENERATE_JSON(true);
|
470
|
+
}
|
471
|
+
|
472
|
+
/*
|
473
|
+
* call-seq: to_json(*)
|
474
|
+
*
|
475
|
+
* Returns a JSON string for false: 'false'.
|
476
|
+
*/
|
477
|
+
static VALUE mFalseClass_to_json(int argc, VALUE *argv, VALUE self)
|
478
|
+
{
|
479
|
+
GENERATE_JSON(false);
|
480
|
+
}
|
481
|
+
|
482
|
+
/*
|
483
|
+
* call-seq: to_json(*)
|
484
|
+
*
|
485
|
+
* Returns a JSON string for nil: 'null'.
|
486
|
+
*/
|
487
|
+
static VALUE mNilClass_to_json(int argc, VALUE *argv, VALUE self)
|
488
|
+
{
|
489
|
+
GENERATE_JSON(null);
|
490
|
+
}
|
491
|
+
|
492
|
+
/*
|
493
|
+
* call-seq: to_json(*)
|
494
|
+
*
|
495
|
+
* Converts this object to a string (calling #to_s), converts
|
496
|
+
* it to a JSON string, and returns the result. This is a fallback, if no
|
497
|
+
* special method #to_json was defined for some object.
|
498
|
+
*/
|
499
|
+
static VALUE mObject_to_json(int argc, VALUE *argv, VALUE self)
|
500
|
+
{
|
501
|
+
VALUE state;
|
502
|
+
VALUE string = rb_funcall(self, i_to_s, 0);
|
503
|
+
rb_scan_args(argc, argv, "01", &state);
|
504
|
+
Check_Type(string, T_STRING);
|
505
|
+
state = cState_from_state_s(cState, state);
|
506
|
+
return cState_partial_generate(state, string);
|
507
|
+
}
|
508
|
+
|
509
|
+
static void State_free(void *ptr)
|
510
|
+
{
|
511
|
+
JSON_Generator_State *state = ptr;
|
512
|
+
if (state->indent) ruby_xfree(state->indent);
|
513
|
+
if (state->space) ruby_xfree(state->space);
|
514
|
+
if (state->space_before) ruby_xfree(state->space_before);
|
515
|
+
if (state->object_nl) ruby_xfree(state->object_nl);
|
516
|
+
if (state->array_nl) ruby_xfree(state->array_nl);
|
517
|
+
if (state->array_delim) fbuffer_free(state->array_delim);
|
518
|
+
if (state->object_delim) fbuffer_free(state->object_delim);
|
519
|
+
if (state->object_delim2) fbuffer_free(state->object_delim2);
|
520
|
+
ruby_xfree(state);
|
521
|
+
}
|
522
|
+
|
523
|
+
static size_t State_memsize(const void *ptr)
|
524
|
+
{
|
525
|
+
const JSON_Generator_State *state = ptr;
|
526
|
+
size_t size = sizeof(*state);
|
527
|
+
if (state->indent) size += state->indent_len + 1;
|
528
|
+
if (state->space) size += state->space_len + 1;
|
529
|
+
if (state->space_before) size += state->space_before_len + 1;
|
530
|
+
if (state->object_nl) size += state->object_nl_len + 1;
|
531
|
+
if (state->array_nl) size += state->array_nl_len + 1;
|
532
|
+
if (state->array_delim) size += FBUFFER_CAPA(state->array_delim);
|
533
|
+
if (state->object_delim) size += FBUFFER_CAPA(state->object_delim);
|
534
|
+
if (state->object_delim2) size += FBUFFER_CAPA(state->object_delim2);
|
535
|
+
return size;
|
536
|
+
}
|
537
|
+
|
538
|
+
#ifdef NEW_TYPEDDATA_WRAPPER
|
539
|
+
static const rb_data_type_t JSON_Generator_State_type = {
|
540
|
+
"JSON/Generator/State",
|
541
|
+
{NULL, State_free, State_memsize,},
|
542
|
+
#ifdef RUBY_TYPED_FREE_IMMEDIATELY
|
543
|
+
0, 0,
|
544
|
+
RUBY_TYPED_FREE_IMMEDIATELY,
|
545
|
+
#endif
|
546
|
+
};
|
547
|
+
#endif
|
548
|
+
|
549
|
+
static VALUE cState_s_allocate(VALUE klass)
|
550
|
+
{
|
551
|
+
JSON_Generator_State *state;
|
552
|
+
return TypedData_Make_Struct(klass, JSON_Generator_State,
|
553
|
+
&JSON_Generator_State_type, state);
|
554
|
+
}
|
555
|
+
|
556
|
+
/*
|
557
|
+
* call-seq: configure(opts)
|
558
|
+
*
|
559
|
+
* Configure this State instance with the Hash _opts_, and return
|
560
|
+
* itself.
|
561
|
+
*/
|
562
|
+
static VALUE cState_configure(VALUE self, VALUE opts)
|
563
|
+
{
|
564
|
+
VALUE tmp;
|
565
|
+
GET_STATE(self);
|
566
|
+
tmp = rb_check_convert_type(opts, T_HASH, "Hash", "to_hash");
|
567
|
+
if (NIL_P(tmp)) tmp = rb_convert_type(opts, T_HASH, "Hash", "to_h");
|
568
|
+
opts = tmp;
|
569
|
+
tmp = rb_hash_aref(opts, ID2SYM(i_indent));
|
570
|
+
if (RTEST(tmp)) {
|
571
|
+
unsigned long len;
|
572
|
+
Check_Type(tmp, T_STRING);
|
573
|
+
len = RSTRING_LEN(tmp);
|
574
|
+
state->indent = fstrndup(RSTRING_PTR(tmp), len + 1);
|
575
|
+
state->indent_len = len;
|
576
|
+
}
|
577
|
+
tmp = rb_hash_aref(opts, ID2SYM(i_space));
|
578
|
+
if (RTEST(tmp)) {
|
579
|
+
unsigned long len;
|
580
|
+
Check_Type(tmp, T_STRING);
|
581
|
+
len = RSTRING_LEN(tmp);
|
582
|
+
state->space = fstrndup(RSTRING_PTR(tmp), len + 1);
|
583
|
+
state->space_len = len;
|
584
|
+
}
|
585
|
+
tmp = rb_hash_aref(opts, ID2SYM(i_space_before));
|
586
|
+
if (RTEST(tmp)) {
|
587
|
+
unsigned long len;
|
588
|
+
Check_Type(tmp, T_STRING);
|
589
|
+
len = RSTRING_LEN(tmp);
|
590
|
+
state->space_before = fstrndup(RSTRING_PTR(tmp), len + 1);
|
591
|
+
state->space_before_len = len;
|
592
|
+
}
|
593
|
+
tmp = rb_hash_aref(opts, ID2SYM(i_array_nl));
|
594
|
+
if (RTEST(tmp)) {
|
595
|
+
unsigned long len;
|
596
|
+
Check_Type(tmp, T_STRING);
|
597
|
+
len = RSTRING_LEN(tmp);
|
598
|
+
state->array_nl = fstrndup(RSTRING_PTR(tmp), len + 1);
|
599
|
+
state->array_nl_len = len;
|
600
|
+
}
|
601
|
+
tmp = rb_hash_aref(opts, ID2SYM(i_object_nl));
|
602
|
+
if (RTEST(tmp)) {
|
603
|
+
unsigned long len;
|
604
|
+
Check_Type(tmp, T_STRING);
|
605
|
+
len = RSTRING_LEN(tmp);
|
606
|
+
state->object_nl = fstrndup(RSTRING_PTR(tmp), len + 1);
|
607
|
+
state->object_nl_len = len;
|
608
|
+
}
|
609
|
+
tmp = ID2SYM(i_max_nesting);
|
610
|
+
state->max_nesting = 100;
|
611
|
+
if (option_given_p(opts, tmp)) {
|
612
|
+
VALUE max_nesting = rb_hash_aref(opts, tmp);
|
613
|
+
if (RTEST(max_nesting)) {
|
614
|
+
Check_Type(max_nesting, T_FIXNUM);
|
615
|
+
state->max_nesting = FIX2LONG(max_nesting);
|
616
|
+
} else {
|
617
|
+
state->max_nesting = 0;
|
618
|
+
}
|
619
|
+
}
|
620
|
+
tmp = ID2SYM(i_depth);
|
621
|
+
state->depth = 0;
|
622
|
+
if (option_given_p(opts, tmp)) {
|
623
|
+
VALUE depth = rb_hash_aref(opts, tmp);
|
624
|
+
if (RTEST(depth)) {
|
625
|
+
Check_Type(depth, T_FIXNUM);
|
626
|
+
state->depth = FIX2LONG(depth);
|
627
|
+
} else {
|
628
|
+
state->depth = 0;
|
629
|
+
}
|
630
|
+
}
|
631
|
+
tmp = ID2SYM(i_buffer_initial_length);
|
632
|
+
if (option_given_p(opts, tmp)) {
|
633
|
+
VALUE buffer_initial_length = rb_hash_aref(opts, tmp);
|
634
|
+
if (RTEST(buffer_initial_length)) {
|
635
|
+
long initial_length;
|
636
|
+
Check_Type(buffer_initial_length, T_FIXNUM);
|
637
|
+
initial_length = FIX2LONG(buffer_initial_length);
|
638
|
+
if (initial_length > 0) state->buffer_initial_length = initial_length;
|
639
|
+
}
|
640
|
+
}
|
641
|
+
tmp = rb_hash_aref(opts, ID2SYM(i_allow_nan));
|
642
|
+
state->allow_nan = RTEST(tmp);
|
643
|
+
tmp = rb_hash_aref(opts, ID2SYM(i_ascii_only));
|
644
|
+
state->ascii_only = RTEST(tmp);
|
645
|
+
return self;
|
646
|
+
}
|
647
|
+
|
648
|
+
static void set_state_ivars(VALUE hash, VALUE state)
|
649
|
+
{
|
650
|
+
VALUE ivars = rb_obj_instance_variables(state);
|
651
|
+
int i = 0;
|
652
|
+
for (i = 0; i < RARRAY_LEN(ivars); i++) {
|
653
|
+
VALUE key = rb_funcall(rb_ary_entry(ivars, i), i_to_s, 0);
|
654
|
+
long key_len = RSTRING_LEN(key);
|
655
|
+
VALUE value = rb_iv_get(state, StringValueCStr(key));
|
656
|
+
rb_hash_aset(hash, rb_str_intern(rb_str_substr(key, 1, key_len - 1)), value);
|
657
|
+
}
|
658
|
+
}
|
659
|
+
|
660
|
+
/*
|
661
|
+
* call-seq: to_h
|
662
|
+
*
|
663
|
+
* Returns the configuration instance variables as a hash, that can be
|
664
|
+
* passed to the configure method.
|
665
|
+
*/
|
666
|
+
static VALUE cState_to_h(VALUE self)
|
667
|
+
{
|
668
|
+
VALUE result = rb_hash_new();
|
669
|
+
GET_STATE(self);
|
670
|
+
set_state_ivars(result, self);
|
671
|
+
rb_hash_aset(result, ID2SYM(i_indent), rb_str_new(state->indent, state->indent_len));
|
672
|
+
rb_hash_aset(result, ID2SYM(i_space), rb_str_new(state->space, state->space_len));
|
673
|
+
rb_hash_aset(result, ID2SYM(i_space_before), rb_str_new(state->space_before, state->space_before_len));
|
674
|
+
rb_hash_aset(result, ID2SYM(i_object_nl), rb_str_new(state->object_nl, state->object_nl_len));
|
675
|
+
rb_hash_aset(result, ID2SYM(i_array_nl), rb_str_new(state->array_nl, state->array_nl_len));
|
676
|
+
rb_hash_aset(result, ID2SYM(i_allow_nan), state->allow_nan ? Qtrue : Qfalse);
|
677
|
+
rb_hash_aset(result, ID2SYM(i_ascii_only), state->ascii_only ? Qtrue : Qfalse);
|
678
|
+
rb_hash_aset(result, ID2SYM(i_max_nesting), LONG2FIX(state->max_nesting));
|
679
|
+
rb_hash_aset(result, ID2SYM(i_depth), LONG2FIX(state->depth));
|
680
|
+
rb_hash_aset(result, ID2SYM(i_buffer_initial_length), LONG2FIX(state->buffer_initial_length));
|
681
|
+
return result;
|
682
|
+
}
|
683
|
+
|
684
|
+
/*
|
685
|
+
* call-seq: [](name)
|
686
|
+
*
|
687
|
+
* Returns the value returned by method +name+.
|
688
|
+
*/
|
689
|
+
static VALUE cState_aref(VALUE self, VALUE name)
|
690
|
+
{
|
691
|
+
name = rb_funcall(name, i_to_s, 0);
|
692
|
+
if (RTEST(rb_funcall(self, i_respond_to_p, 1, name))) {
|
693
|
+
return rb_funcall(self, i_send, 1, name);
|
694
|
+
} else {
|
695
|
+
return rb_ivar_get(self, rb_intern_str(rb_str_concat(rb_str_new2("@"), name)));
|
696
|
+
}
|
697
|
+
}
|
698
|
+
|
699
|
+
/*
|
700
|
+
* call-seq: []=(name, value)
|
701
|
+
*
|
702
|
+
* Sets the attribute name to value.
|
703
|
+
*/
|
704
|
+
static VALUE cState_aset(VALUE self, VALUE name, VALUE value)
|
705
|
+
{
|
706
|
+
VALUE name_writer;
|
707
|
+
|
708
|
+
name = rb_funcall(name, i_to_s, 0);
|
709
|
+
name_writer = rb_str_cat2(rb_str_dup(name), "=");
|
710
|
+
if (RTEST(rb_funcall(self, i_respond_to_p, 1, name_writer))) {
|
711
|
+
return rb_funcall(self, i_send, 2, name_writer, value);
|
712
|
+
} else {
|
713
|
+
rb_ivar_set(self, rb_intern_str(rb_str_concat(rb_str_new2("@"), name)), value);
|
714
|
+
}
|
715
|
+
return Qnil;
|
716
|
+
}
|
717
|
+
|
718
|
+
static void generate_json_object(FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj)
|
719
|
+
{
|
720
|
+
char *object_nl = state->object_nl;
|
721
|
+
long object_nl_len = state->object_nl_len;
|
722
|
+
char *indent = state->indent;
|
723
|
+
long indent_len = state->indent_len;
|
724
|
+
long max_nesting = state->max_nesting;
|
725
|
+
char *delim = FBUFFER_PTR(state->object_delim);
|
726
|
+
long delim_len = FBUFFER_LEN(state->object_delim);
|
727
|
+
char *delim2 = FBUFFER_PTR(state->object_delim2);
|
728
|
+
long delim2_len = FBUFFER_LEN(state->object_delim2);
|
729
|
+
long depth = ++state->depth;
|
730
|
+
int i, j;
|
731
|
+
VALUE key, key_to_s, keys;
|
732
|
+
if (max_nesting != 0 && depth > max_nesting) {
|
733
|
+
fbuffer_free(buffer);
|
734
|
+
rb_raise(eNestingError, "nesting of %ld is too deep", --state->depth);
|
735
|
+
}
|
736
|
+
fbuffer_append_char(buffer, '{');
|
737
|
+
keys = rb_funcall(obj, i_keys, 0);
|
738
|
+
for(i = 0; i < RARRAY_LEN(keys); i++) {
|
739
|
+
if (i > 0) fbuffer_append(buffer, delim, delim_len);
|
740
|
+
if (object_nl) {
|
741
|
+
fbuffer_append(buffer, object_nl, object_nl_len);
|
742
|
+
}
|
743
|
+
if (indent) {
|
744
|
+
for (j = 0; j < depth; j++) {
|
745
|
+
fbuffer_append(buffer, indent, indent_len);
|
746
|
+
}
|
747
|
+
}
|
748
|
+
key = rb_ary_entry(keys, i);
|
749
|
+
key_to_s = rb_funcall(key, i_to_s, 0);
|
750
|
+
Check_Type(key_to_s, T_STRING);
|
751
|
+
generate_json(buffer, Vstate, state, key_to_s);
|
752
|
+
fbuffer_append(buffer, delim2, delim2_len);
|
753
|
+
generate_json(buffer, Vstate, state, rb_hash_aref(obj, key));
|
754
|
+
}
|
755
|
+
depth = --state->depth;
|
756
|
+
if (object_nl) {
|
757
|
+
fbuffer_append(buffer, object_nl, object_nl_len);
|
758
|
+
if (indent) {
|
759
|
+
for (j = 0; j < depth; j++) {
|
760
|
+
fbuffer_append(buffer, indent, indent_len);
|
761
|
+
}
|
762
|
+
}
|
763
|
+
}
|
764
|
+
fbuffer_append_char(buffer, '}');
|
765
|
+
}
|
766
|
+
|
767
|
+
static void generate_json_array(FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj)
|
768
|
+
{
|
769
|
+
char *array_nl = state->array_nl;
|
770
|
+
long array_nl_len = state->array_nl_len;
|
771
|
+
char *indent = state->indent;
|
772
|
+
long indent_len = state->indent_len;
|
773
|
+
long max_nesting = state->max_nesting;
|
774
|
+
char *delim = FBUFFER_PTR(state->array_delim);
|
775
|
+
long delim_len = FBUFFER_LEN(state->array_delim);
|
776
|
+
long depth = ++state->depth;
|
777
|
+
int i, j;
|
778
|
+
if (max_nesting != 0 && depth > max_nesting) {
|
779
|
+
fbuffer_free(buffer);
|
780
|
+
rb_raise(eNestingError, "nesting of %ld is too deep", --state->depth);
|
781
|
+
}
|
782
|
+
fbuffer_append_char(buffer, '[');
|
783
|
+
if (array_nl) fbuffer_append(buffer, array_nl, array_nl_len);
|
784
|
+
for(i = 0; i < RARRAY_LEN(obj); i++) {
|
785
|
+
if (i > 0) fbuffer_append(buffer, delim, delim_len);
|
786
|
+
if (indent) {
|
787
|
+
for (j = 0; j < depth; j++) {
|
788
|
+
fbuffer_append(buffer, indent, indent_len);
|
789
|
+
}
|
790
|
+
}
|
791
|
+
generate_json(buffer, Vstate, state, rb_ary_entry(obj, i));
|
792
|
+
}
|
793
|
+
state->depth = --depth;
|
794
|
+
if (array_nl) {
|
795
|
+
fbuffer_append(buffer, array_nl, array_nl_len);
|
796
|
+
if (indent) {
|
797
|
+
for (j = 0; j < depth; j++) {
|
798
|
+
fbuffer_append(buffer, indent, indent_len);
|
799
|
+
}
|
800
|
+
}
|
801
|
+
}
|
802
|
+
fbuffer_append_char(buffer, ']');
|
803
|
+
}
|
804
|
+
|
805
|
+
static void generate_json_string(FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj)
|
806
|
+
{
|
807
|
+
fbuffer_append_char(buffer, '"');
|
808
|
+
#ifdef HAVE_RUBY_ENCODING_H
|
809
|
+
obj = rb_funcall(obj, i_encode, 1, CEncoding_UTF_8);
|
810
|
+
#endif
|
811
|
+
if (state->ascii_only) {
|
812
|
+
convert_UTF8_to_JSON_ASCII(buffer, obj);
|
813
|
+
} else {
|
814
|
+
convert_UTF8_to_JSON(buffer, obj);
|
815
|
+
}
|
816
|
+
fbuffer_append_char(buffer, '"');
|
817
|
+
}
|
818
|
+
|
819
|
+
static void generate_json_null(FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj)
|
820
|
+
{
|
821
|
+
fbuffer_append(buffer, "null", 4);
|
822
|
+
}
|
823
|
+
|
824
|
+
static void generate_json_false(FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj)
|
825
|
+
{
|
826
|
+
fbuffer_append(buffer, "false", 5);
|
827
|
+
}
|
828
|
+
|
829
|
+
static void generate_json_true(FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj)
|
830
|
+
{
|
831
|
+
fbuffer_append(buffer, "true", 4);
|
832
|
+
}
|
833
|
+
|
834
|
+
static void generate_json_fixnum(FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj)
|
835
|
+
{
|
836
|
+
fbuffer_append_long(buffer, FIX2LONG(obj));
|
837
|
+
}
|
838
|
+
|
839
|
+
static void generate_json_bignum(FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj)
|
840
|
+
{
|
841
|
+
VALUE tmp = rb_funcall(obj, i_to_s, 0);
|
842
|
+
fbuffer_append_str(buffer, tmp);
|
843
|
+
}
|
844
|
+
|
845
|
+
#ifdef RUBY_INTEGER_UNIFICATION
|
846
|
+
static void generate_json_integer(FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj)
|
847
|
+
{
|
848
|
+
if (FIXNUM_P(obj))
|
849
|
+
generate_json_fixnum(buffer, Vstate, state, obj);
|
850
|
+
else
|
851
|
+
generate_json_bignum(buffer, Vstate, state, obj);
|
852
|
+
}
|
853
|
+
#endif
|
854
|
+
static void generate_json_float(FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj)
|
855
|
+
{
|
856
|
+
double value = RFLOAT_VALUE(obj);
|
857
|
+
char allow_nan = state->allow_nan;
|
858
|
+
VALUE tmp = rb_funcall(obj, i_to_s, 0);
|
859
|
+
if (!allow_nan) {
|
860
|
+
if (isinf(value)) {
|
861
|
+
fbuffer_free(buffer);
|
862
|
+
rb_raise(eGeneratorError, "%u: %"PRIsVALUE" not allowed in JSON", __LINE__, RB_OBJ_STRING(tmp));
|
863
|
+
} else if (isnan(value)) {
|
864
|
+
fbuffer_free(buffer);
|
865
|
+
rb_raise(eGeneratorError, "%u: %"PRIsVALUE" not allowed in JSON", __LINE__, RB_OBJ_STRING(tmp));
|
866
|
+
}
|
867
|
+
}
|
868
|
+
fbuffer_append_str(buffer, tmp);
|
869
|
+
}
|
870
|
+
|
871
|
+
static void generate_json(FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj)
|
872
|
+
{
|
873
|
+
VALUE tmp;
|
874
|
+
VALUE klass = CLASS_OF(obj);
|
875
|
+
if (klass == rb_cHash) {
|
876
|
+
generate_json_object(buffer, Vstate, state, obj);
|
877
|
+
} else if (klass == rb_cArray) {
|
878
|
+
generate_json_array(buffer, Vstate, state, obj);
|
879
|
+
} else if (klass == rb_cString) {
|
880
|
+
generate_json_string(buffer, Vstate, state, obj);
|
881
|
+
} else if (obj == Qnil) {
|
882
|
+
generate_json_null(buffer, Vstate, state, obj);
|
883
|
+
} else if (obj == Qfalse) {
|
884
|
+
generate_json_false(buffer, Vstate, state, obj);
|
885
|
+
} else if (obj == Qtrue) {
|
886
|
+
generate_json_true(buffer, Vstate, state, obj);
|
887
|
+
} else if (FIXNUM_P(obj)) {
|
888
|
+
generate_json_fixnum(buffer, Vstate, state, obj);
|
889
|
+
} else if (RB_TYPE_P(obj, T_BIGNUM)) {
|
890
|
+
generate_json_bignum(buffer, Vstate, state, obj);
|
891
|
+
} else if (klass == rb_cFloat) {
|
892
|
+
generate_json_float(buffer, Vstate, state, obj);
|
893
|
+
} else if (rb_respond_to(obj, i_to_json)) {
|
894
|
+
tmp = rb_funcall(obj, i_to_json, 1, Vstate);
|
895
|
+
Check_Type(tmp, T_STRING);
|
896
|
+
fbuffer_append_str(buffer, tmp);
|
897
|
+
} else {
|
898
|
+
tmp = rb_funcall(obj, i_to_s, 0);
|
899
|
+
Check_Type(tmp, T_STRING);
|
900
|
+
generate_json_string(buffer, Vstate, state, tmp);
|
901
|
+
}
|
902
|
+
}
|
903
|
+
|
904
|
+
static FBuffer *cState_prepare_buffer(VALUE self)
|
905
|
+
{
|
906
|
+
FBuffer *buffer;
|
907
|
+
GET_STATE(self);
|
908
|
+
buffer = fbuffer_alloc(state->buffer_initial_length);
|
909
|
+
|
910
|
+
if (state->object_delim) {
|
911
|
+
fbuffer_clear(state->object_delim);
|
912
|
+
} else {
|
913
|
+
state->object_delim = fbuffer_alloc(16);
|
914
|
+
}
|
915
|
+
fbuffer_append_char(state->object_delim, ',');
|
916
|
+
if (state->object_delim2) {
|
917
|
+
fbuffer_clear(state->object_delim2);
|
918
|
+
} else {
|
919
|
+
state->object_delim2 = fbuffer_alloc(16);
|
920
|
+
}
|
921
|
+
if (state->space_before) fbuffer_append(state->object_delim2, state->space_before, state->space_before_len);
|
922
|
+
fbuffer_append_char(state->object_delim2, ':');
|
923
|
+
if (state->space) fbuffer_append(state->object_delim2, state->space, state->space_len);
|
924
|
+
|
925
|
+
if (state->array_delim) {
|
926
|
+
fbuffer_clear(state->array_delim);
|
927
|
+
} else {
|
928
|
+
state->array_delim = fbuffer_alloc(16);
|
929
|
+
}
|
930
|
+
fbuffer_append_char(state->array_delim, ',');
|
931
|
+
if (state->array_nl) fbuffer_append(state->array_delim, state->array_nl, state->array_nl_len);
|
932
|
+
return buffer;
|
933
|
+
}
|
934
|
+
|
935
|
+
static VALUE cState_partial_generate(VALUE self, VALUE obj)
|
936
|
+
{
|
937
|
+
FBuffer *buffer = cState_prepare_buffer(self);
|
938
|
+
GET_STATE(self);
|
939
|
+
generate_json(buffer, self, state, obj);
|
940
|
+
return fbuffer_to_s(buffer);
|
941
|
+
}
|
942
|
+
|
943
|
+
/*
|
944
|
+
* call-seq: generate(obj)
|
945
|
+
*
|
946
|
+
* Generates a valid JSON document from object +obj+ and returns the
|
947
|
+
* result. If no valid JSON document can be created this method raises a
|
948
|
+
* GeneratorError exception.
|
949
|
+
*/
|
950
|
+
static VALUE cState_generate(VALUE self, VALUE obj)
|
951
|
+
{
|
952
|
+
VALUE result = cState_partial_generate(self, obj);
|
953
|
+
GET_STATE(self);
|
954
|
+
(void)state;
|
955
|
+
return result;
|
956
|
+
}
|
957
|
+
|
958
|
+
/*
|
959
|
+
* call-seq: new(opts = {})
|
960
|
+
*
|
961
|
+
* Instantiates a new State object, configured by _opts_.
|
962
|
+
*
|
963
|
+
* _opts_ can have the following keys:
|
964
|
+
*
|
965
|
+
* * *indent*: a string used to indent levels (default: ''),
|
966
|
+
* * *space*: a string that is put after, a : or , delimiter (default: ''),
|
967
|
+
* * *space_before*: a string that is put before a : pair delimiter (default: ''),
|
968
|
+
* * *object_nl*: a string that is put at the end of a JSON object (default: ''),
|
969
|
+
* * *array_nl*: a string that is put at the end of a JSON array (default: ''),
|
970
|
+
* * *allow_nan*: true if NaN, Infinity, and -Infinity should be
|
971
|
+
* generated, otherwise an exception is thrown, if these values are
|
972
|
+
* encountered. This options defaults to false.
|
973
|
+
* * *buffer_initial_length*: sets the initial length of the generator's
|
974
|
+
* internal buffer.
|
975
|
+
*/
|
976
|
+
static VALUE cState_initialize(int argc, VALUE *argv, VALUE self)
|
977
|
+
{
|
978
|
+
VALUE opts;
|
979
|
+
GET_STATE(self);
|
980
|
+
state->max_nesting = 100;
|
981
|
+
state->buffer_initial_length = FBUFFER_INITIAL_LENGTH_DEFAULT;
|
982
|
+
rb_scan_args(argc, argv, "01", &opts);
|
983
|
+
if (!NIL_P(opts)) cState_configure(self, opts);
|
984
|
+
return self;
|
985
|
+
}
|
986
|
+
|
987
|
+
/*
|
988
|
+
* call-seq: initialize_copy(orig)
|
989
|
+
*
|
990
|
+
* Initializes this object from orig if it can be duplicated/cloned and returns
|
991
|
+
* it.
|
992
|
+
*/
|
993
|
+
static VALUE cState_init_copy(VALUE obj, VALUE orig)
|
994
|
+
{
|
995
|
+
JSON_Generator_State *objState, *origState;
|
996
|
+
|
997
|
+
if (obj == orig) return obj;
|
998
|
+
GET_STATE_TO(obj, objState);
|
999
|
+
GET_STATE_TO(orig, origState);
|
1000
|
+
if (!objState) rb_raise(rb_eArgError, "unallocated JSON::State");
|
1001
|
+
|
1002
|
+
MEMCPY(objState, origState, JSON_Generator_State, 1);
|
1003
|
+
objState->indent = fstrndup(origState->indent, origState->indent_len);
|
1004
|
+
objState->space = fstrndup(origState->space, origState->space_len);
|
1005
|
+
objState->space_before = fstrndup(origState->space_before, origState->space_before_len);
|
1006
|
+
objState->object_nl = fstrndup(origState->object_nl, origState->object_nl_len);
|
1007
|
+
objState->array_nl = fstrndup(origState->array_nl, origState->array_nl_len);
|
1008
|
+
if (origState->array_delim) objState->array_delim = fbuffer_dup(origState->array_delim);
|
1009
|
+
if (origState->object_delim) objState->object_delim = fbuffer_dup(origState->object_delim);
|
1010
|
+
if (origState->object_delim2) objState->object_delim2 = fbuffer_dup(origState->object_delim2);
|
1011
|
+
return obj;
|
1012
|
+
}
|
1013
|
+
|
1014
|
+
/*
|
1015
|
+
* call-seq: from_state(opts)
|
1016
|
+
*
|
1017
|
+
* Creates a State object from _opts_, which ought to be Hash to create a
|
1018
|
+
* new State instance configured by _opts_, something else to create an
|
1019
|
+
* unconfigured instance. If _opts_ is a State object, it is just returned.
|
1020
|
+
*/
|
1021
|
+
static VALUE cState_from_state_s(VALUE self, VALUE opts)
|
1022
|
+
{
|
1023
|
+
if (rb_obj_is_kind_of(opts, self)) {
|
1024
|
+
return opts;
|
1025
|
+
} else if (rb_obj_is_kind_of(opts, rb_cHash)) {
|
1026
|
+
return rb_funcall(self, i_new, 1, opts);
|
1027
|
+
} else {
|
1028
|
+
if (NIL_P(CJSON_SAFE_STATE_PROTOTYPE)) {
|
1029
|
+
CJSON_SAFE_STATE_PROTOTYPE = rb_const_get(mJSON, i_SAFE_STATE_PROTOTYPE);
|
1030
|
+
}
|
1031
|
+
return rb_funcall(CJSON_SAFE_STATE_PROTOTYPE, i_dup, 0);
|
1032
|
+
}
|
1033
|
+
}
|
1034
|
+
|
1035
|
+
/*
|
1036
|
+
* call-seq: indent()
|
1037
|
+
*
|
1038
|
+
* Returns the string that is used to indent levels in the JSON text.
|
1039
|
+
*/
|
1040
|
+
static VALUE cState_indent(VALUE self)
|
1041
|
+
{
|
1042
|
+
GET_STATE(self);
|
1043
|
+
return state->indent ? rb_str_new(state->indent, state->indent_len) : rb_str_new2("");
|
1044
|
+
}
|
1045
|
+
|
1046
|
+
/*
|
1047
|
+
* call-seq: indent=(indent)
|
1048
|
+
*
|
1049
|
+
* Sets the string that is used to indent levels in the JSON text.
|
1050
|
+
*/
|
1051
|
+
static VALUE cState_indent_set(VALUE self, VALUE indent)
|
1052
|
+
{
|
1053
|
+
unsigned long len;
|
1054
|
+
GET_STATE(self);
|
1055
|
+
Check_Type(indent, T_STRING);
|
1056
|
+
len = RSTRING_LEN(indent);
|
1057
|
+
if (len == 0) {
|
1058
|
+
if (state->indent) {
|
1059
|
+
ruby_xfree(state->indent);
|
1060
|
+
state->indent = NULL;
|
1061
|
+
state->indent_len = 0;
|
1062
|
+
}
|
1063
|
+
} else {
|
1064
|
+
if (state->indent) ruby_xfree(state->indent);
|
1065
|
+
state->indent = fstrndup(RSTRING_PTR(indent), len);
|
1066
|
+
state->indent_len = len;
|
1067
|
+
}
|
1068
|
+
return Qnil;
|
1069
|
+
}
|
1070
|
+
|
1071
|
+
/*
|
1072
|
+
* call-seq: space()
|
1073
|
+
*
|
1074
|
+
* Returns the string that is used to insert a space between the tokens in a JSON
|
1075
|
+
* string.
|
1076
|
+
*/
|
1077
|
+
static VALUE cState_space(VALUE self)
|
1078
|
+
{
|
1079
|
+
GET_STATE(self);
|
1080
|
+
return state->space ? rb_str_new(state->space, state->space_len) : rb_str_new2("");
|
1081
|
+
}
|
1082
|
+
|
1083
|
+
/*
|
1084
|
+
* call-seq: space=(space)
|
1085
|
+
*
|
1086
|
+
* Sets _space_ to the string that is used to insert a space between the tokens in a JSON
|
1087
|
+
* string.
|
1088
|
+
*/
|
1089
|
+
static VALUE cState_space_set(VALUE self, VALUE space)
|
1090
|
+
{
|
1091
|
+
unsigned long len;
|
1092
|
+
GET_STATE(self);
|
1093
|
+
Check_Type(space, T_STRING);
|
1094
|
+
len = RSTRING_LEN(space);
|
1095
|
+
if (len == 0) {
|
1096
|
+
if (state->space) {
|
1097
|
+
ruby_xfree(state->space);
|
1098
|
+
state->space = NULL;
|
1099
|
+
state->space_len = 0;
|
1100
|
+
}
|
1101
|
+
} else {
|
1102
|
+
if (state->space) ruby_xfree(state->space);
|
1103
|
+
state->space = fstrndup(RSTRING_PTR(space), len);
|
1104
|
+
state->space_len = len;
|
1105
|
+
}
|
1106
|
+
return Qnil;
|
1107
|
+
}
|
1108
|
+
|
1109
|
+
/*
|
1110
|
+
* call-seq: space_before()
|
1111
|
+
*
|
1112
|
+
* Returns the string that is used to insert a space before the ':' in JSON objects.
|
1113
|
+
*/
|
1114
|
+
static VALUE cState_space_before(VALUE self)
|
1115
|
+
{
|
1116
|
+
GET_STATE(self);
|
1117
|
+
return state->space_before ? rb_str_new(state->space_before, state->space_before_len) : rb_str_new2("");
|
1118
|
+
}
|
1119
|
+
|
1120
|
+
/*
|
1121
|
+
* call-seq: space_before=(space_before)
|
1122
|
+
*
|
1123
|
+
* Sets the string that is used to insert a space before the ':' in JSON objects.
|
1124
|
+
*/
|
1125
|
+
static VALUE cState_space_before_set(VALUE self, VALUE space_before)
|
1126
|
+
{
|
1127
|
+
unsigned long len;
|
1128
|
+
GET_STATE(self);
|
1129
|
+
Check_Type(space_before, T_STRING);
|
1130
|
+
len = RSTRING_LEN(space_before);
|
1131
|
+
if (len == 0) {
|
1132
|
+
if (state->space_before) {
|
1133
|
+
ruby_xfree(state->space_before);
|
1134
|
+
state->space_before = NULL;
|
1135
|
+
state->space_before_len = 0;
|
1136
|
+
}
|
1137
|
+
} else {
|
1138
|
+
if (state->space_before) ruby_xfree(state->space_before);
|
1139
|
+
state->space_before = fstrndup(RSTRING_PTR(space_before), len);
|
1140
|
+
state->space_before_len = len;
|
1141
|
+
}
|
1142
|
+
return Qnil;
|
1143
|
+
}
|
1144
|
+
|
1145
|
+
/*
|
1146
|
+
* call-seq: object_nl()
|
1147
|
+
*
|
1148
|
+
* This string is put at the end of a line that holds a JSON object (or
|
1149
|
+
* Hash).
|
1150
|
+
*/
|
1151
|
+
static VALUE cState_object_nl(VALUE self)
|
1152
|
+
{
|
1153
|
+
GET_STATE(self);
|
1154
|
+
return state->object_nl ? rb_str_new(state->object_nl, state->object_nl_len) : rb_str_new2("");
|
1155
|
+
}
|
1156
|
+
|
1157
|
+
/*
|
1158
|
+
* call-seq: object_nl=(object_nl)
|
1159
|
+
*
|
1160
|
+
* This string is put at the end of a line that holds a JSON object (or
|
1161
|
+
* Hash).
|
1162
|
+
*/
|
1163
|
+
static VALUE cState_object_nl_set(VALUE self, VALUE object_nl)
|
1164
|
+
{
|
1165
|
+
unsigned long len;
|
1166
|
+
GET_STATE(self);
|
1167
|
+
Check_Type(object_nl, T_STRING);
|
1168
|
+
len = RSTRING_LEN(object_nl);
|
1169
|
+
if (len == 0) {
|
1170
|
+
if (state->object_nl) {
|
1171
|
+
ruby_xfree(state->object_nl);
|
1172
|
+
state->object_nl = NULL;
|
1173
|
+
}
|
1174
|
+
} else {
|
1175
|
+
if (state->object_nl) ruby_xfree(state->object_nl);
|
1176
|
+
state->object_nl = fstrndup(RSTRING_PTR(object_nl), len);
|
1177
|
+
state->object_nl_len = len;
|
1178
|
+
}
|
1179
|
+
return Qnil;
|
1180
|
+
}
|
1181
|
+
|
1182
|
+
/*
|
1183
|
+
* call-seq: array_nl()
|
1184
|
+
*
|
1185
|
+
* This string is put at the end of a line that holds a JSON array.
|
1186
|
+
*/
|
1187
|
+
static VALUE cState_array_nl(VALUE self)
|
1188
|
+
{
|
1189
|
+
GET_STATE(self);
|
1190
|
+
return state->array_nl ? rb_str_new(state->array_nl, state->array_nl_len) : rb_str_new2("");
|
1191
|
+
}
|
1192
|
+
|
1193
|
+
/*
|
1194
|
+
* call-seq: array_nl=(array_nl)
|
1195
|
+
*
|
1196
|
+
* This string is put at the end of a line that holds a JSON array.
|
1197
|
+
*/
|
1198
|
+
static VALUE cState_array_nl_set(VALUE self, VALUE array_nl)
|
1199
|
+
{
|
1200
|
+
unsigned long len;
|
1201
|
+
GET_STATE(self);
|
1202
|
+
Check_Type(array_nl, T_STRING);
|
1203
|
+
len = RSTRING_LEN(array_nl);
|
1204
|
+
if (len == 0) {
|
1205
|
+
if (state->array_nl) {
|
1206
|
+
ruby_xfree(state->array_nl);
|
1207
|
+
state->array_nl = NULL;
|
1208
|
+
}
|
1209
|
+
} else {
|
1210
|
+
if (state->array_nl) ruby_xfree(state->array_nl);
|
1211
|
+
state->array_nl = fstrndup(RSTRING_PTR(array_nl), len);
|
1212
|
+
state->array_nl_len = len;
|
1213
|
+
}
|
1214
|
+
return Qnil;
|
1215
|
+
}
|
1216
|
+
|
1217
|
+
|
1218
|
+
/*
|
1219
|
+
* call-seq: check_circular?
|
1220
|
+
*
|
1221
|
+
* Returns true, if circular data structures should be checked,
|
1222
|
+
* otherwise returns false.
|
1223
|
+
*/
|
1224
|
+
static VALUE cState_check_circular_p(VALUE self)
|
1225
|
+
{
|
1226
|
+
GET_STATE(self);
|
1227
|
+
return state->max_nesting ? Qtrue : Qfalse;
|
1228
|
+
}
|
1229
|
+
|
1230
|
+
/*
|
1231
|
+
* call-seq: max_nesting
|
1232
|
+
*
|
1233
|
+
* This integer returns the maximum level of data structure nesting in
|
1234
|
+
* the generated JSON, max_nesting = 0 if no maximum is checked.
|
1235
|
+
*/
|
1236
|
+
static VALUE cState_max_nesting(VALUE self)
|
1237
|
+
{
|
1238
|
+
GET_STATE(self);
|
1239
|
+
return LONG2FIX(state->max_nesting);
|
1240
|
+
}
|
1241
|
+
|
1242
|
+
/*
|
1243
|
+
* call-seq: max_nesting=(depth)
|
1244
|
+
*
|
1245
|
+
* This sets the maximum level of data structure nesting in the generated JSON
|
1246
|
+
* to the integer depth, max_nesting = 0 if no maximum should be checked.
|
1247
|
+
*/
|
1248
|
+
static VALUE cState_max_nesting_set(VALUE self, VALUE depth)
|
1249
|
+
{
|
1250
|
+
GET_STATE(self);
|
1251
|
+
Check_Type(depth, T_FIXNUM);
|
1252
|
+
return state->max_nesting = FIX2LONG(depth);
|
1253
|
+
}
|
1254
|
+
|
1255
|
+
/*
|
1256
|
+
* call-seq: allow_nan?
|
1257
|
+
*
|
1258
|
+
* Returns true, if NaN, Infinity, and -Infinity should be generated, otherwise
|
1259
|
+
* returns false.
|
1260
|
+
*/
|
1261
|
+
static VALUE cState_allow_nan_p(VALUE self)
|
1262
|
+
{
|
1263
|
+
GET_STATE(self);
|
1264
|
+
return state->allow_nan ? Qtrue : Qfalse;
|
1265
|
+
}
|
1266
|
+
|
1267
|
+
/*
|
1268
|
+
* call-seq: ascii_only?
|
1269
|
+
*
|
1270
|
+
* Returns true, if NaN, Infinity, and -Infinity should be generated, otherwise
|
1271
|
+
* returns false.
|
1272
|
+
*/
|
1273
|
+
static VALUE cState_ascii_only_p(VALUE self)
|
1274
|
+
{
|
1275
|
+
GET_STATE(self);
|
1276
|
+
return state->ascii_only ? Qtrue : Qfalse;
|
1277
|
+
}
|
1278
|
+
|
1279
|
+
/*
|
1280
|
+
* call-seq: depth
|
1281
|
+
*
|
1282
|
+
* This integer returns the current depth of data structure nesting.
|
1283
|
+
*/
|
1284
|
+
static VALUE cState_depth(VALUE self)
|
1285
|
+
{
|
1286
|
+
GET_STATE(self);
|
1287
|
+
return LONG2FIX(state->depth);
|
1288
|
+
}
|
1289
|
+
|
1290
|
+
/*
|
1291
|
+
* call-seq: depth=(depth)
|
1292
|
+
*
|
1293
|
+
* This sets the maximum level of data structure nesting in the generated JSON
|
1294
|
+
* to the integer depth, max_nesting = 0 if no maximum should be checked.
|
1295
|
+
*/
|
1296
|
+
static VALUE cState_depth_set(VALUE self, VALUE depth)
|
1297
|
+
{
|
1298
|
+
GET_STATE(self);
|
1299
|
+
Check_Type(depth, T_FIXNUM);
|
1300
|
+
state->depth = FIX2LONG(depth);
|
1301
|
+
return Qnil;
|
1302
|
+
}
|
1303
|
+
|
1304
|
+
/*
|
1305
|
+
* call-seq: buffer_initial_length
|
1306
|
+
*
|
1307
|
+
* This integer returns the current initial length of the buffer.
|
1308
|
+
*/
|
1309
|
+
static VALUE cState_buffer_initial_length(VALUE self)
|
1310
|
+
{
|
1311
|
+
GET_STATE(self);
|
1312
|
+
return LONG2FIX(state->buffer_initial_length);
|
1313
|
+
}
|
1314
|
+
|
1315
|
+
/*
|
1316
|
+
* call-seq: buffer_initial_length=(length)
|
1317
|
+
*
|
1318
|
+
* This sets the initial length of the buffer to +length+, if +length+ > 0,
|
1319
|
+
* otherwise its value isn't changed.
|
1320
|
+
*/
|
1321
|
+
static VALUE cState_buffer_initial_length_set(VALUE self, VALUE buffer_initial_length)
|
1322
|
+
{
|
1323
|
+
long initial_length;
|
1324
|
+
GET_STATE(self);
|
1325
|
+
Check_Type(buffer_initial_length, T_FIXNUM);
|
1326
|
+
initial_length = FIX2LONG(buffer_initial_length);
|
1327
|
+
if (initial_length > 0) {
|
1328
|
+
state->buffer_initial_length = initial_length;
|
1329
|
+
}
|
1330
|
+
return Qnil;
|
1331
|
+
}
|
1332
|
+
|
1333
|
+
/*
|
1334
|
+
*
|
1335
|
+
*/
|
1336
|
+
void Init_generator(void)
|
1337
|
+
{
|
1338
|
+
#undef rb_intern
|
1339
|
+
rb_require("json/common");
|
1340
|
+
|
1341
|
+
mJSON = rb_define_module("JSON");
|
1342
|
+
mExt = rb_define_module_under(mJSON, "Ext");
|
1343
|
+
mGenerator = rb_define_module_under(mExt, "Generator");
|
1344
|
+
|
1345
|
+
eGeneratorError = rb_path2class("JSON::GeneratorError");
|
1346
|
+
eNestingError = rb_path2class("JSON::NestingError");
|
1347
|
+
|
1348
|
+
cState = rb_define_class_under(mGenerator, "State", rb_cObject);
|
1349
|
+
rb_define_alloc_func(cState, cState_s_allocate);
|
1350
|
+
rb_define_singleton_method(cState, "from_state", cState_from_state_s, 1);
|
1351
|
+
rb_define_method(cState, "initialize", cState_initialize, -1);
|
1352
|
+
rb_define_method(cState, "initialize_copy", cState_init_copy, 1);
|
1353
|
+
rb_define_method(cState, "indent", cState_indent, 0);
|
1354
|
+
rb_define_method(cState, "indent=", cState_indent_set, 1);
|
1355
|
+
rb_define_method(cState, "space", cState_space, 0);
|
1356
|
+
rb_define_method(cState, "space=", cState_space_set, 1);
|
1357
|
+
rb_define_method(cState, "space_before", cState_space_before, 0);
|
1358
|
+
rb_define_method(cState, "space_before=", cState_space_before_set, 1);
|
1359
|
+
rb_define_method(cState, "object_nl", cState_object_nl, 0);
|
1360
|
+
rb_define_method(cState, "object_nl=", cState_object_nl_set, 1);
|
1361
|
+
rb_define_method(cState, "array_nl", cState_array_nl, 0);
|
1362
|
+
rb_define_method(cState, "array_nl=", cState_array_nl_set, 1);
|
1363
|
+
rb_define_method(cState, "max_nesting", cState_max_nesting, 0);
|
1364
|
+
rb_define_method(cState, "max_nesting=", cState_max_nesting_set, 1);
|
1365
|
+
rb_define_method(cState, "check_circular?", cState_check_circular_p, 0);
|
1366
|
+
rb_define_method(cState, "allow_nan?", cState_allow_nan_p, 0);
|
1367
|
+
rb_define_method(cState, "ascii_only?", cState_ascii_only_p, 0);
|
1368
|
+
rb_define_method(cState, "depth", cState_depth, 0);
|
1369
|
+
rb_define_method(cState, "depth=", cState_depth_set, 1);
|
1370
|
+
rb_define_method(cState, "buffer_initial_length", cState_buffer_initial_length, 0);
|
1371
|
+
rb_define_method(cState, "buffer_initial_length=", cState_buffer_initial_length_set, 1);
|
1372
|
+
rb_define_method(cState, "configure", cState_configure, 1);
|
1373
|
+
rb_define_alias(cState, "merge", "configure");
|
1374
|
+
rb_define_method(cState, "to_h", cState_to_h, 0);
|
1375
|
+
rb_define_alias(cState, "to_hash", "to_h");
|
1376
|
+
rb_define_method(cState, "[]", cState_aref, 1);
|
1377
|
+
rb_define_method(cState, "[]=", cState_aset, 2);
|
1378
|
+
rb_define_method(cState, "generate", cState_generate, 1);
|
1379
|
+
|
1380
|
+
mGeneratorMethods = rb_define_module_under(mGenerator, "GeneratorMethods");
|
1381
|
+
mObject = rb_define_module_under(mGeneratorMethods, "Object");
|
1382
|
+
rb_define_method(mObject, "to_json", mObject_to_json, -1);
|
1383
|
+
mHash = rb_define_module_under(mGeneratorMethods, "Hash");
|
1384
|
+
rb_define_method(mHash, "to_json", mHash_to_json, -1);
|
1385
|
+
mArray = rb_define_module_under(mGeneratorMethods, "Array");
|
1386
|
+
rb_define_method(mArray, "to_json", mArray_to_json, -1);
|
1387
|
+
#ifdef RUBY_INTEGER_UNIFICATION
|
1388
|
+
mInteger = rb_define_module_under(mGeneratorMethods, "Integer");
|
1389
|
+
rb_define_method(mInteger, "to_json", mInteger_to_json, -1);
|
1390
|
+
#else
|
1391
|
+
mFixnum = rb_define_module_under(mGeneratorMethods, "Fixnum");
|
1392
|
+
rb_define_method(mFixnum, "to_json", mFixnum_to_json, -1);
|
1393
|
+
mBignum = rb_define_module_under(mGeneratorMethods, "Bignum");
|
1394
|
+
rb_define_method(mBignum, "to_json", mBignum_to_json, -1);
|
1395
|
+
#endif
|
1396
|
+
mFloat = rb_define_module_under(mGeneratorMethods, "Float");
|
1397
|
+
rb_define_method(mFloat, "to_json", mFloat_to_json, -1);
|
1398
|
+
mString = rb_define_module_under(mGeneratorMethods, "String");
|
1399
|
+
rb_define_singleton_method(mString, "included", mString_included_s, 1);
|
1400
|
+
rb_define_method(mString, "to_json", mString_to_json, -1);
|
1401
|
+
rb_define_method(mString, "to_json_raw", mString_to_json_raw, -1);
|
1402
|
+
rb_define_method(mString, "to_json_raw_object", mString_to_json_raw_object, 0);
|
1403
|
+
mString_Extend = rb_define_module_under(mString, "Extend");
|
1404
|
+
rb_define_method(mString_Extend, "json_create", mString_Extend_json_create, 1);
|
1405
|
+
mTrueClass = rb_define_module_under(mGeneratorMethods, "TrueClass");
|
1406
|
+
rb_define_method(mTrueClass, "to_json", mTrueClass_to_json, -1);
|
1407
|
+
mFalseClass = rb_define_module_under(mGeneratorMethods, "FalseClass");
|
1408
|
+
rb_define_method(mFalseClass, "to_json", mFalseClass_to_json, -1);
|
1409
|
+
mNilClass = rb_define_module_under(mGeneratorMethods, "NilClass");
|
1410
|
+
rb_define_method(mNilClass, "to_json", mNilClass_to_json, -1);
|
1411
|
+
|
1412
|
+
CRegexp_MULTILINE = rb_const_get(rb_cRegexp, rb_intern("MULTILINE"));
|
1413
|
+
i_to_s = rb_intern("to_s");
|
1414
|
+
i_to_json = rb_intern("to_json");
|
1415
|
+
i_new = rb_intern("new");
|
1416
|
+
i_indent = rb_intern("indent");
|
1417
|
+
i_space = rb_intern("space");
|
1418
|
+
i_space_before = rb_intern("space_before");
|
1419
|
+
i_object_nl = rb_intern("object_nl");
|
1420
|
+
i_array_nl = rb_intern("array_nl");
|
1421
|
+
i_max_nesting = rb_intern("max_nesting");
|
1422
|
+
i_allow_nan = rb_intern("allow_nan");
|
1423
|
+
i_ascii_only = rb_intern("ascii_only");
|
1424
|
+
i_depth = rb_intern("depth");
|
1425
|
+
i_buffer_initial_length = rb_intern("buffer_initial_length");
|
1426
|
+
i_pack = rb_intern("pack");
|
1427
|
+
i_unpack = rb_intern("unpack");
|
1428
|
+
i_create_id = rb_intern("create_id");
|
1429
|
+
i_extend = rb_intern("extend");
|
1430
|
+
i_key_p = rb_intern("key?");
|
1431
|
+
i_aref = rb_intern("[]");
|
1432
|
+
i_send = rb_intern("__send__");
|
1433
|
+
i_respond_to_p = rb_intern("respond_to?");
|
1434
|
+
i_match = rb_intern("match");
|
1435
|
+
i_keys = rb_intern("keys");
|
1436
|
+
i_dup = rb_intern("dup");
|
1437
|
+
#ifdef HAVE_RUBY_ENCODING_H
|
1438
|
+
CEncoding_UTF_8 = rb_funcall(rb_path2class("Encoding"), rb_intern("find"), 1, rb_str_new2("utf-8"));
|
1439
|
+
i_encoding = rb_intern("encoding");
|
1440
|
+
i_encode = rb_intern("encode");
|
1441
|
+
#endif
|
1442
|
+
i_SAFE_STATE_PROTOTYPE = rb_intern("SAFE_STATE_PROTOTYPE");
|
1443
|
+
CJSON_SAFE_STATE_PROTOTYPE = Qnil;
|
1444
|
+
}
|