cybrid_api_organization_ruby 0.124.85 → 0.124.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +4 -4
- data/README.md +5 -5
- data/cybrid_api_organization_ruby.gemspec +1 -1
- data/lib/cybrid_api_organization_ruby/api/organizations_organization_api.rb +1 -1
- data/lib/cybrid_api_organization_ruby/api/subscription_deliveries_organization_api.rb +1 -1
- data/lib/cybrid_api_organization_ruby/api/subscription_events_organization_api.rb +1 -1
- data/lib/cybrid_api_organization_ruby/api/subscriptions_organization_api.rb +1 -1
- data/lib/cybrid_api_organization_ruby/api_client.rb +1 -1
- data/lib/cybrid_api_organization_ruby/api_error.rb +1 -1
- data/lib/cybrid_api_organization_ruby/configuration.rb +1 -1
- data/lib/cybrid_api_organization_ruby/models/error_response_organization_model.rb +1 -1
- data/lib/cybrid_api_organization_ruby/models/organization_organization_model.rb +1 -1
- data/lib/cybrid_api_organization_ruby/models/patch_organization_organization_model.rb +1 -1
- data/lib/cybrid_api_organization_ruby/models/post_subscription_delivery_organization_model.rb +1 -1
- data/lib/cybrid_api_organization_ruby/models/post_subscription_organization_model.rb +1 -1
- data/lib/cybrid_api_organization_ruby/models/subscription_delivery_list_organization_model.rb +1 -1
- data/lib/cybrid_api_organization_ruby/models/subscription_delivery_organization_model.rb +1 -1
- data/lib/cybrid_api_organization_ruby/models/subscription_environment_organization_model.rb +1 -1
- data/lib/cybrid_api_organization_ruby/models/subscription_event_list_organization_model.rb +1 -1
- data/lib/cybrid_api_organization_ruby/models/subscription_event_organization_model.rb +1 -1
- data/lib/cybrid_api_organization_ruby/models/subscription_list_organization_model.rb +1 -1
- data/lib/cybrid_api_organization_ruby/models/subscription_organization_model.rb +1 -1
- data/lib/cybrid_api_organization_ruby/models/subscription_state_organization_model.rb +1 -1
- data/lib/cybrid_api_organization_ruby/models/subscription_type_organization_model.rb +1 -1
- data/lib/cybrid_api_organization_ruby/version.rb +2 -2
- data/lib/cybrid_api_organization_ruby.rb +1 -1
- data/spec/api/organizations_organization_api_spec.rb +1 -1
- data/spec/api/subscription_deliveries_organization_api_spec.rb +1 -1
- data/spec/api/subscription_events_organization_api_spec.rb +1 -1
- data/spec/api/subscriptions_organization_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/error_response_organization_model_spec.rb +1 -1
- data/spec/models/organization_organization_model_spec.rb +1 -1
- data/spec/models/patch_organization_organization_model_spec.rb +1 -1
- data/spec/models/post_subscription_delivery_organization_model_spec.rb +1 -1
- data/spec/models/post_subscription_organization_model_spec.rb +1 -1
- data/spec/models/subscription_delivery_list_organization_model_spec.rb +1 -1
- data/spec/models/subscription_delivery_organization_model_spec.rb +1 -1
- data/spec/models/subscription_environment_organization_model_spec.rb +1 -1
- data/spec/models/subscription_event_list_organization_model_spec.rb +1 -1
- data/spec/models/subscription_event_organization_model_spec.rb +1 -1
- data/spec/models/subscription_list_organization_model_spec.rb +1 -1
- data/spec/models/subscription_organization_model_spec.rb +1 -1
- data/spec/models/subscription_state_organization_model_spec.rb +1 -1
- data/spec/models/subscription_type_organization_model_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- data/vendor/bundle/ruby/3.3.0/cache/ethon-0.15.0.gem +0 -0
- data/vendor/bundle/ruby/3.3.0/cache/typhoeus-1.5.0.gem +0 -0
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/byebug-12.0.0/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/date-3.4.1/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/jaro_winkler-1.5.6/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/psych-5.2.6/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/racc-1.8.1/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/stringio-3.1.7/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/.github/workflows/ruby.yml +41 -0
- data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → ethon-0.15.0}/.gitignore +4 -4
- data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → ethon-0.15.0}/.rspec +0 -1
- data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/CHANGELOG.md +1 -29
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/Gemfile +43 -0
- data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → ethon-0.15.0}/Guardfile +3 -2
- data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/README.md +0 -23
- data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → ethon-0.15.0}/Rakefile +7 -5
- data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/ethon.gemspec +3 -6
- data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/lib/ethon/curls/classes.rb +2 -12
- data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/lib/ethon/curls/codes.rb +2 -3
- data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/lib/ethon/curls/options.rb +3 -4
- data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/lib/ethon/easy/callbacks.rb +1 -2
- data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/lib/ethon/easy/informations.rb +0 -3
- data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/lib/ethon/easy/response_callbacks.rb +1 -6
- data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/lib/ethon/version.rb +1 -1
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/profile/benchmarks.rb +104 -0
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/profile/memory_leaks.rb +114 -0
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/profile/perf_spec_helper.rb +37 -0
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/profile/support/memory_test_helpers.rb +76 -0
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/profile/support/os_memory_leak_tracker.rb +48 -0
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/profile/support/ruby_object_leak_tracker.rb +49 -0
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/curl_spec.rb +38 -0
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/easy/callbacks_spec.rb +59 -0
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/easy/debug_info_spec.rb +54 -0
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/easy/features_spec.rb +24 -0
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/easy/form_spec.rb +104 -0
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/easy/header_spec.rb +79 -0
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/easy/http/custom_spec.rb +177 -0
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/easy/http/delete_spec.rb +21 -0
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/easy/http/get_spec.rb +126 -0
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/easy/http/head_spec.rb +80 -0
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/easy/http/options_spec.rb +51 -0
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/easy/http/patch_spec.rb +51 -0
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/easy/http/post_spec.rb +317 -0
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/easy/http/put_spec.rb +168 -0
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/easy/http_spec.rb +64 -0
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/easy/informations_spec.rb +120 -0
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/easy/mirror_spec.rb +47 -0
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/easy/operations_spec.rb +268 -0
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/easy/options_spec.rb +193 -0
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/easy/queryable_spec.rb +235 -0
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/easy/response_callbacks_spec.rb +152 -0
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/easy/util_spec.rb +28 -0
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/easy_spec.rb +203 -0
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/libc_spec.rb +14 -0
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/loggable_spec.rb +22 -0
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/multi/operations_spec.rb +298 -0
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/multi/options_spec.rb +182 -0
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/multi/stack_spec.rb +80 -0
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/ethon/multi_spec.rb +152 -0
- data/vendor/bundle/ruby/3.3.0/gems/ethon-0.15.0/spec/spec_helper.rb +28 -0
- data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → ethon-0.15.0}/spec/support/localhost_server.rb +2 -1
- data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → ethon-0.15.0}/spec/support/server.rb +10 -11
- data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/CHANGELOG.md +43 -1
- data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/expectation.rb +4 -2
- data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/request/responseable.rb +1 -1
- data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/version.rb +1 -1
- data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/typhoeus.gemspec +14 -4
- data/vendor/bundle/ruby/3.3.0/specifications/{ethon-0.17.0.gemspec → ethon-0.15.0.gemspec} +5 -6
- data/vendor/bundle/ruby/3.3.0/specifications/typhoeus-1.5.0.gemspec +26 -0
- metadata +156 -160
- data/vendor/bundle/ruby/3.3.0/cache/ethon-0.17.0.gem +0 -0
- data/vendor/bundle/ruby/3.3.0/cache/typhoeus-1.4.1.gem +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/.github/workflows/ci.yml +0 -30
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/.github/workflows/experimental.yml +0 -33
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/Gemfile +0 -36
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/perf/profile.rb +0 -14
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/perf/vs_nethttp.rb +0 -64
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/rack/typhoeus/middleware/params_decoder/helper_spec.rb +0 -156
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/rack/typhoeus/middleware/params_decoder_spec.rb +0 -31
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/spec_helper.rb +0 -29
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/support/memory_cache.rb +0 -15
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/adapters/faraday_spec.rb +0 -339
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/cache/dalli_spec.rb +0 -41
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/cache/redis_spec.rb +0 -41
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/config_spec.rb +0 -15
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/easy_factory_spec.rb +0 -143
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/errors/no_stub_spec.rb +0 -13
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/expectation_spec.rb +0 -280
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/hydra/addable_spec.rb +0 -22
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/hydra/before_spec.rb +0 -98
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/hydra/block_connection_spec.rb +0 -18
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/hydra/cacheable_spec.rb +0 -88
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/hydra/memoizable_spec.rb +0 -53
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/hydra/queueable_spec.rb +0 -98
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/hydra/runnable_spec.rb +0 -137
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/hydra/stubbable_spec.rb +0 -48
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/hydra_spec.rb +0 -22
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/pool_spec.rb +0 -137
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/request/actions_spec.rb +0 -19
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/request/before_spec.rb +0 -93
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/request/block_connection_spec.rb +0 -75
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/request/cacheable_spec.rb +0 -94
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/request/callbacks_spec.rb +0 -91
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/request/marshal_spec.rb +0 -60
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/request/memoizable_spec.rb +0 -34
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/request/operations_spec.rb +0 -101
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/request/responseable_spec.rb +0 -13
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/request/stubbable_spec.rb +0 -45
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/request_spec.rb +0 -256
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/response/header_spec.rb +0 -147
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/response/informations_spec.rb +0 -323
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/response/status_spec.rb +0 -256
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/response_spec.rb +0 -100
- data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus_spec.rb +0 -105
- data/vendor/bundle/ruby/3.3.0/specifications/typhoeus-1.4.1.gemspec +0 -24
- /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/LICENSE +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/lib/ethon/curl.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/lib/ethon/curls/constants.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/lib/ethon/curls/form_options.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/lib/ethon/curls/functions.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/lib/ethon/curls/infos.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/lib/ethon/curls/messages.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/lib/ethon/curls/settings.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/lib/ethon/easy/debug_info.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/lib/ethon/easy/features.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/lib/ethon/easy/form.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/lib/ethon/easy/header.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/lib/ethon/easy/http/actionable.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/lib/ethon/easy/http/custom.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/lib/ethon/easy/http/delete.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/lib/ethon/easy/http/get.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/lib/ethon/easy/http/head.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/lib/ethon/easy/http/options.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/lib/ethon/easy/http/patch.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/lib/ethon/easy/http/post.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/lib/ethon/easy/http/postable.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/lib/ethon/easy/http/put.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/lib/ethon/easy/http/putable.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/lib/ethon/easy/http.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/lib/ethon/easy/mirror.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/lib/ethon/easy/operations.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/lib/ethon/easy/options.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/lib/ethon/easy/params.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/lib/ethon/easy/queryable.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/lib/ethon/easy/util.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/lib/ethon/easy.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/lib/ethon/errors/ethon_error.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/lib/ethon/errors/global_init.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/lib/ethon/errors/invalid_option.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/lib/ethon/errors/invalid_value.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/lib/ethon/errors/multi_add.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/lib/ethon/errors/multi_fdset.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/lib/ethon/errors/multi_remove.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/lib/ethon/errors/multi_timeout.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/lib/ethon/errors/select.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/lib/ethon/errors.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/lib/ethon/libc.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/lib/ethon/loggable.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/lib/ethon/multi/operations.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/lib/ethon/multi/options.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/lib/ethon/multi/stack.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/lib/ethon/multi.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{ethon-0.17.0 → ethon-0.15.0}/lib/ethon.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/CONTRIBUTING.md +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/LICENSE +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/README.md +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/UPGRADE.md +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/rack/typhoeus/middleware/params_decoder/helper.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/rack/typhoeus/middleware/params_decoder.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/rack/typhoeus.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/adapters/faraday.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/cache/dalli.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/cache/rails.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/cache/redis.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/config.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/easy_factory.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/errors/no_stub.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/errors/typhoeus_error.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/errors.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/hydra/addable.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/hydra/before.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/hydra/block_connection.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/hydra/cacheable.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/hydra/memoizable.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/hydra/queueable.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/hydra/runnable.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/hydra/stubbable.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/hydra.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/pool.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/railtie.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/request/actions.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/request/before.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/request/block_connection.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/request/cacheable.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/request/callbacks.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/request/marshal.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/request/memoizable.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/request/operations.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/request/streamable.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/request/stubbable.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/request.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/response/cacheable.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/response/header.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/response/informations.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/response/status.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus/response.rb +0 -0
- /data/vendor/bundle/ruby/3.3.0/gems/{typhoeus-1.4.1 → typhoeus-1.5.0}/lib/typhoeus.rb +0 -0
@@ -1,147 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
describe Typhoeus::Response::Header do
|
4
|
-
let(:raw) { nil }
|
5
|
-
let(:header) { Typhoeus::Response::Header.new(raw) }
|
6
|
-
|
7
|
-
describe ".new" do
|
8
|
-
context "when string" do
|
9
|
-
let(:raw) { 'Date: Fri, 29 Jun 2012 10:09:23 GMT' }
|
10
|
-
|
11
|
-
it "sets Date" do
|
12
|
-
expect(header['Date']).to eq('Fri, 29 Jun 2012 10:09:23 GMT')
|
13
|
-
end
|
14
|
-
|
15
|
-
it "provides case insensitive access" do
|
16
|
-
expect(header['DaTe']).to eq('Fri, 29 Jun 2012 10:09:23 GMT')
|
17
|
-
end
|
18
|
-
|
19
|
-
it "provides symbol access" do
|
20
|
-
expect(header[:date]).to eq('Fri, 29 Jun 2012 10:09:23 GMT')
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
|
-
context "when hash" do
|
25
|
-
let(:raw) { { 'Date' => 'Fri, 29 Jun 2012 10:09:23 GMT' } }
|
26
|
-
|
27
|
-
it "sets Date" do
|
28
|
-
expect(header['Date']).to eq(raw['Date'])
|
29
|
-
end
|
30
|
-
|
31
|
-
it "provides case insensitive access" do
|
32
|
-
expect(header['DaTe']).to eq(raw['Date'])
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
36
|
-
|
37
|
-
describe "#parse" do
|
38
|
-
context "when no header" do
|
39
|
-
it "returns nil" do
|
40
|
-
expect(header).to be_empty
|
41
|
-
end
|
42
|
-
end
|
43
|
-
|
44
|
-
context "when header" do
|
45
|
-
let(:raw) do
|
46
|
-
'HTTP/1.1 200 OK
|
47
|
-
Set-Cookie: NID=61=LblqYgUOu; expires=Sat, 29-Dec-2012 10:09:23 GMT; path=/; domain=.google.de; HttpOnly
|
48
|
-
Date: Fri, 29 Jun 2012 10:09:23 GMT
|
49
|
-
Expires: -1
|
50
|
-
Cache-Control: private, max-age=0
|
51
|
-
Content-Type: text/html; charset=ISO-8859-1
|
52
|
-
Set-Cookie: PREF=ID=77e93yv0hPtejLou; expires=Sun, 29-Jun-2014 10:09:23 GMT; path=/; domain=.google.de
|
53
|
-
Set-Cookie: NID=61=LblqYgh5Ou; expires=Sat, 29-Dec-2012 10:09:23 GMT; path=/; domain=.google.de; HttpOnly
|
54
|
-
P3P: CP="This is not a P3P policy! See http://www.google.com/support/accounts/bin/answer.py?hl=en&answer=151657 for more info."
|
55
|
-
Server: gws
|
56
|
-
X-XSS-Protection: 1; mode=block
|
57
|
-
X-Frame-Options: SAMEORIGIN
|
58
|
-
Transfer-Encoding: chunked'.gsub(/^\s{8}/, '')
|
59
|
-
end
|
60
|
-
|
61
|
-
it "sets raw" do
|
62
|
-
expect(header.send(:raw)).to eq(raw)
|
63
|
-
end
|
64
|
-
|
65
|
-
it "sets Set-Cookie" do
|
66
|
-
expect(header['set-cookie'].size).to eq(3)
|
67
|
-
end
|
68
|
-
|
69
|
-
it "provides case insensitive access" do
|
70
|
-
expect(header['Set-CooKie'].size).to eq(3)
|
71
|
-
end
|
72
|
-
|
73
|
-
[
|
74
|
-
'NID=61=LblqYgUOu; expires=Sat, 29-Dec-2012 10:09:23 GMT; path=/; domain=.google.de; HttpOnly',
|
75
|
-
'PREF=ID=77e93yv0hPtejLou; expires=Sun, 29-Jun-2014 10:09:23 GMT; path=/; domain=.google.de',
|
76
|
-
'NID=61=LblqYgh5Ou; expires=Sat, 29-Dec-2012 10:09:23 GMT; path=/; domain=.google.de; HttpOnly'
|
77
|
-
].each_with_index do |cookie, i|
|
78
|
-
it "sets Cookie##{i}" do
|
79
|
-
expect(header['set-cookie']).to include(cookie)
|
80
|
-
end
|
81
|
-
end
|
82
|
-
|
83
|
-
{
|
84
|
-
'Date' => 'Fri, 29 Jun 2012 10:09:23 GMT', 'Expires' => '-1',
|
85
|
-
'Cache-Control' => 'private, max-age=0',
|
86
|
-
'Content-Type' => 'text/html; charset=ISO-8859-1',
|
87
|
-
'P3P' => 'CP="This is not a P3P policy! See http://www.google.com/support/accounts/bin/answer.py?hl=en&answer=151657 for more info."',
|
88
|
-
'Server' => 'gws', 'X-XSS-Protection' => '1; mode=block',
|
89
|
-
'X-Frame-Options' => 'SAMEORIGIN', 'Transfer-Encoding' => 'chunked'
|
90
|
-
}.each do |name, value|
|
91
|
-
it "sets #{name}" do
|
92
|
-
expect(header[name.downcase]).to eq(value)
|
93
|
-
end
|
94
|
-
end
|
95
|
-
|
96
|
-
context 'includes a multi-line header' do
|
97
|
-
let(:raw) do
|
98
|
-
'HTTP/1.1 200 OK
|
99
|
-
Date: Fri, 29 Jun 2012 10:09:23 GMT
|
100
|
-
Content-Security-Policy: default-src "self";
|
101
|
-
img-src * data: "self";
|
102
|
-
upgrade-insecure-requests;'.gsub(/^\s{10}/, '')
|
103
|
-
end
|
104
|
-
|
105
|
-
it "joins header parts" do
|
106
|
-
expect(header).to eq({
|
107
|
-
'Date' => 'Fri, 29 Jun 2012 10:09:23 GMT',
|
108
|
-
'Content-Security-Policy' => 'default-src "self"; img-src * data: "self"; upgrade-insecure-requests;'
|
109
|
-
})
|
110
|
-
end
|
111
|
-
end
|
112
|
-
|
113
|
-
context 'includes line with only whitespace' do
|
114
|
-
let(:raw) do
|
115
|
-
'HTTP/1.1 200 OK
|
116
|
-
Date: Fri, 29 Jun 2012 10:09:23 GMT
|
117
|
-
|
118
|
-
'.gsub(/^\s{10}/, '')
|
119
|
-
end
|
120
|
-
|
121
|
-
it 'ignores it' do
|
122
|
-
expect(header).to eq({ 'Date' => 'Fri, 29 Jun 2012 10:09:23 GMT' })
|
123
|
-
end
|
124
|
-
end
|
125
|
-
|
126
|
-
context 'with broken headers' do
|
127
|
-
let(:raw) do
|
128
|
-
'HTTP/1.1 200 OK
|
129
|
-
Date:
|
130
|
-
Content-Type
|
131
|
-
'.gsub(/^\s{10}/, '')
|
132
|
-
end
|
133
|
-
|
134
|
-
it 'returns empty string for invalid headers' do
|
135
|
-
expect(header.to_hash).to include({ 'Date' => '', 'Content-Type' => '' })
|
136
|
-
end
|
137
|
-
end
|
138
|
-
end
|
139
|
-
end
|
140
|
-
|
141
|
-
it "can be Marshal'd" do
|
142
|
-
header = Typhoeus::Response::Header.new("Foo: Bar")
|
143
|
-
expect {
|
144
|
-
Marshal.dump(header)
|
145
|
-
}.not_to raise_error
|
146
|
-
end
|
147
|
-
end
|
data/vendor/bundle/ruby/3.3.0/gems/typhoeus-1.4.1/spec/typhoeus/response/informations_spec.rb
DELETED
@@ -1,323 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
describe Typhoeus::Response::Informations do
|
4
|
-
let(:options) { {} }
|
5
|
-
let(:response) { Typhoeus::Response.new(options) }
|
6
|
-
|
7
|
-
describe "#return_code" do
|
8
|
-
let(:options) { { :return_code => :ok } }
|
9
|
-
|
10
|
-
it "returns return_code from options" do
|
11
|
-
expect(response.return_code).to be(:ok)
|
12
|
-
end
|
13
|
-
end
|
14
|
-
|
15
|
-
describe "#debug_info" do
|
16
|
-
let(:options) { { :debug_info => Ethon::Easy::DebugInfo.new } }
|
17
|
-
|
18
|
-
it "returns debug_info from options" do
|
19
|
-
expect(response.debug_info).to be_a(Ethon::Easy::DebugInfo)
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
|
-
describe "#return_message" do
|
24
|
-
let(:options) { { :return_code => :couldnt_connect } }
|
25
|
-
|
26
|
-
it "returns a message" do
|
27
|
-
expect(response.return_message).to eq("Couldn't connect to server")
|
28
|
-
end
|
29
|
-
|
30
|
-
describe "with nil return_code" do
|
31
|
-
let(:options) { { :return_code => nil } }
|
32
|
-
|
33
|
-
it "returns nil" do
|
34
|
-
expect(response.return_message).to be_nil
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|
38
|
-
|
39
|
-
describe "#response_body" do
|
40
|
-
context "when response_body" do
|
41
|
-
let(:options) { { :response_body => "body" } }
|
42
|
-
|
43
|
-
it "returns response_body from options" do
|
44
|
-
expect(response.response_body).to eq("body")
|
45
|
-
end
|
46
|
-
end
|
47
|
-
|
48
|
-
context "when body" do
|
49
|
-
let(:options) { { :body => "body" } }
|
50
|
-
|
51
|
-
it "returns body from options" do
|
52
|
-
expect(response.body).to eq("body")
|
53
|
-
end
|
54
|
-
end
|
55
|
-
end
|
56
|
-
|
57
|
-
describe "#response_headers" do
|
58
|
-
let(:options) { { :response_headers => "Length: 1" } }
|
59
|
-
|
60
|
-
context "when no mock" do
|
61
|
-
it "returns response_headers from options" do
|
62
|
-
expect(response.response_headers).to eq("Length: 1")
|
63
|
-
end
|
64
|
-
end
|
65
|
-
|
66
|
-
context "when mock" do
|
67
|
-
context "when no response_headers" do
|
68
|
-
context "when headers" do
|
69
|
-
let(:options) { { :mock => true, :headers => {"Length" => 1, "Content-Type" => "text/plain" } } }
|
70
|
-
|
71
|
-
it "constructs response_headers" do
|
72
|
-
expect(response.response_headers).to include("Length: 1")
|
73
|
-
expect(response.response_headers).to include("Content-Type: text/plain")
|
74
|
-
expect(response.response_headers).to include("\r\n")
|
75
|
-
end
|
76
|
-
end
|
77
|
-
|
78
|
-
context "when multiple values for a header" do
|
79
|
-
let(:options) { { :mock => true, :headers => {"Length" => 1, "Content-Type" => "text/plain", "set-cookie" => ["cookieone=one","cookietwo=two"] } } }
|
80
|
-
|
81
|
-
it "constructs response_headers" do
|
82
|
-
expect(response.response_headers).to include("Length: 1")
|
83
|
-
expect(response.response_headers).to include("Content-Type: text/plain")
|
84
|
-
expect(response.response_headers).to include("set-cookie: cookieone=one,cookietwo=two")
|
85
|
-
expect(response.response_headers).to include("\r\n")
|
86
|
-
end
|
87
|
-
end
|
88
|
-
end
|
89
|
-
end
|
90
|
-
end
|
91
|
-
|
92
|
-
describe "#response_code" do
|
93
|
-
context "when response_code" do
|
94
|
-
let(:options) { { :response_code => "200" } }
|
95
|
-
|
96
|
-
it "returns response_code from options" do
|
97
|
-
expect(response.response_code).to eq(200)
|
98
|
-
end
|
99
|
-
end
|
100
|
-
|
101
|
-
context "when code" do
|
102
|
-
let(:options) { { :code => "200" } }
|
103
|
-
|
104
|
-
it "returns code from options" do
|
105
|
-
expect(response.code).to eq(200)
|
106
|
-
end
|
107
|
-
end
|
108
|
-
end
|
109
|
-
|
110
|
-
describe "#httpauth_avail" do
|
111
|
-
let(:options) { { :httpauth_avail => "code" } }
|
112
|
-
|
113
|
-
it "returns httpauth_avail from options" do
|
114
|
-
expect(response.httpauth_avail).to eq("code")
|
115
|
-
end
|
116
|
-
end
|
117
|
-
|
118
|
-
describe "#total_time" do
|
119
|
-
let(:options) { { :total_time => 1 } }
|
120
|
-
|
121
|
-
it "returns total_time from options" do
|
122
|
-
expect(response.total_time).to eq(1)
|
123
|
-
end
|
124
|
-
end
|
125
|
-
|
126
|
-
describe "#starttransfer_time" do
|
127
|
-
let(:options) { { :starttransfer_time => 1 } }
|
128
|
-
|
129
|
-
it "returns starttransfer_time from options" do
|
130
|
-
expect(response.starttransfer_time).to eq(1)
|
131
|
-
end
|
132
|
-
end
|
133
|
-
|
134
|
-
describe "#appconnect_time" do
|
135
|
-
let(:options) { { :appconnect_time => 1 } }
|
136
|
-
|
137
|
-
it "returns appconnect_time from options" do
|
138
|
-
expect(response.appconnect_time).to eq(1)
|
139
|
-
end
|
140
|
-
end
|
141
|
-
|
142
|
-
describe "#pretransfer_time" do
|
143
|
-
let(:options) { { :pretransfer_time => 1 } }
|
144
|
-
|
145
|
-
it "returns pretransfer_time from options" do
|
146
|
-
expect(response.pretransfer_time).to eq(1)
|
147
|
-
end
|
148
|
-
end
|
149
|
-
|
150
|
-
describe "#connect_time" do
|
151
|
-
let(:options) { { :connect_time => 1 } }
|
152
|
-
|
153
|
-
it "returns connect_time from options" do
|
154
|
-
expect(response.connect_time).to eq(1)
|
155
|
-
end
|
156
|
-
end
|
157
|
-
|
158
|
-
describe "#namelookup_time" do
|
159
|
-
let(:options) { { :namelookup_time => 1 } }
|
160
|
-
|
161
|
-
it "returns namelookup_time from options" do
|
162
|
-
expect(response.namelookup_time).to eq(1)
|
163
|
-
end
|
164
|
-
end
|
165
|
-
|
166
|
-
describe "#redirect_time" do
|
167
|
-
let(:options) { { :redirect_time => 1 } }
|
168
|
-
|
169
|
-
it "returns redirect_time from options" do
|
170
|
-
expect(response.redirect_time).to eq(1)
|
171
|
-
end
|
172
|
-
end
|
173
|
-
|
174
|
-
describe "#effective_url" do
|
175
|
-
let(:options) { { :effective_url => "http://www.example.com" } }
|
176
|
-
|
177
|
-
it "returns effective_url from options" do
|
178
|
-
expect(response.effective_url).to eq("http://www.example.com")
|
179
|
-
end
|
180
|
-
end
|
181
|
-
|
182
|
-
describe "#primary_ip" do
|
183
|
-
let(:options) { { :primary_ip => "127.0.0.1" } }
|
184
|
-
|
185
|
-
it "returns primary_ip from options" do
|
186
|
-
expect(response.primary_ip).to eq("127.0.0.1")
|
187
|
-
end
|
188
|
-
end
|
189
|
-
|
190
|
-
describe "#redirect_count" do
|
191
|
-
let(:options) { { :redirect_count => 2 } }
|
192
|
-
|
193
|
-
it "returns redirect_count from options" do
|
194
|
-
expect(response.redirect_count).to eq(2)
|
195
|
-
end
|
196
|
-
end
|
197
|
-
|
198
|
-
describe "#redirect_url" do
|
199
|
-
let(:options) { { :redirect_url => "http://www.example.com" } }
|
200
|
-
|
201
|
-
it "returns redirect_url from options" do
|
202
|
-
expect(response.redirect_url).to eq("http://www.example.com")
|
203
|
-
end
|
204
|
-
end
|
205
|
-
|
206
|
-
describe "#request_size" do
|
207
|
-
let(:options) { { :request_size => 2 } }
|
208
|
-
|
209
|
-
it "returns request_size from options" do
|
210
|
-
expect(response.request_size).to eq(2)
|
211
|
-
end
|
212
|
-
end
|
213
|
-
|
214
|
-
describe "#size_upload" do
|
215
|
-
let(:options) { { :size_upload => 2.0 } }
|
216
|
-
|
217
|
-
it "returns size_upload from options" do
|
218
|
-
expect(response.size_upload).to eq(2.0)
|
219
|
-
end
|
220
|
-
end
|
221
|
-
|
222
|
-
describe "#size_download" do
|
223
|
-
let(:options) { { :size_download => 2.0 } }
|
224
|
-
|
225
|
-
it "returns size_download from options" do
|
226
|
-
expect(response.size_download).to eq(2.0)
|
227
|
-
end
|
228
|
-
end
|
229
|
-
|
230
|
-
describe "#speed_upload" do
|
231
|
-
let(:options) { { :speed_upload => 2.0 } }
|
232
|
-
|
233
|
-
it "returns speed_upload from options" do
|
234
|
-
expect(response.speed_upload).to eq(2.0)
|
235
|
-
end
|
236
|
-
end
|
237
|
-
|
238
|
-
describe "#speed_download" do
|
239
|
-
let(:options) { { :speed_download => 2.0 } }
|
240
|
-
|
241
|
-
it "returns speed_download from options" do
|
242
|
-
expect(response.speed_download).to eq(2.0)
|
243
|
-
end
|
244
|
-
end
|
245
|
-
|
246
|
-
describe "#headers" do
|
247
|
-
context "when no response_headers" do
|
248
|
-
it "returns nil" do
|
249
|
-
expect(response.headers).to be_nil
|
250
|
-
end
|
251
|
-
end
|
252
|
-
|
253
|
-
context "when response_headers" do
|
254
|
-
let(:options) { {:response_headers => "Expire: -1\nServer: gws"} }
|
255
|
-
|
256
|
-
it "returns nonempty headers" do
|
257
|
-
expect(response.headers).to_not be_empty
|
258
|
-
end
|
259
|
-
|
260
|
-
it "has Expire" do
|
261
|
-
expect(response.headers['expire']).to eq('-1')
|
262
|
-
end
|
263
|
-
|
264
|
-
it "has Server" do
|
265
|
-
expect(response.headers['server']).to eq('gws')
|
266
|
-
end
|
267
|
-
end
|
268
|
-
|
269
|
-
context "when multiple headers" do
|
270
|
-
let(:options) { {:response_headers => "Server: A\r\n\r\nServer: B"} }
|
271
|
-
|
272
|
-
it "returns the last" do
|
273
|
-
expect(response.headers['server']).to eq("B")
|
274
|
-
end
|
275
|
-
end
|
276
|
-
|
277
|
-
context "when mock" do
|
278
|
-
context "when headers" do
|
279
|
-
let(:options) { {:mock => true, :headers => {"Length" => "1"}} }
|
280
|
-
|
281
|
-
it "returns Typhoeus::Response::Header" do
|
282
|
-
expect(response.headers).to be_a(Typhoeus::Response::Header)
|
283
|
-
end
|
284
|
-
|
285
|
-
it "returns headers" do
|
286
|
-
expect(response.headers.to_hash).to include("Length" => "1")
|
287
|
-
end
|
288
|
-
end
|
289
|
-
end
|
290
|
-
|
291
|
-
context "when requesting" do
|
292
|
-
let(:response) { Typhoeus.get("localhost:3001") }
|
293
|
-
|
294
|
-
it "returns headers" do
|
295
|
-
expect(response.headers).to_not be_empty
|
296
|
-
end
|
297
|
-
end
|
298
|
-
end
|
299
|
-
|
300
|
-
describe "#redirections" do
|
301
|
-
context "when no response_headers" do
|
302
|
-
it "returns empty array" do
|
303
|
-
expect(response.redirections).to be_empty
|
304
|
-
end
|
305
|
-
end
|
306
|
-
|
307
|
-
context "when headers" do
|
308
|
-
let(:options) { {:response_headers => "Expire: -1\nServer: gws"} }
|
309
|
-
|
310
|
-
it "returns empty array" do
|
311
|
-
expect(response.redirections).to be_empty
|
312
|
-
end
|
313
|
-
end
|
314
|
-
|
315
|
-
context "when multiple headers" do
|
316
|
-
let(:options) { {:response_headers => "Server: A\r\n\r\nServer: B"} }
|
317
|
-
|
318
|
-
it "returns response from all but last headers" do
|
319
|
-
expect(response.redirections.size).to eq(1)
|
320
|
-
end
|
321
|
-
end
|
322
|
-
end
|
323
|
-
end
|