passbase 1.2.0 → 1.3.0
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 +15 -5
- data/README.md +8 -8
- data/docs/Cursor.md +8 -7
- data/docs/Identity.md +24 -21
- data/docs/IdentityApi.md +155 -71
- data/docs/IdentityOwner.md +12 -11
- data/docs/IdentityResource.md +10 -9
- data/docs/PaginatedIdentities.md +10 -9
- data/docs/PaginatedResources.md +10 -9
- data/docs/ProjectApi.md +29 -12
- data/docs/ProjectSettings.md +18 -17
- data/docs/ProjectSettingsCustomizations.md +12 -11
- data/docs/ProjectSettingsVerificationSteps.md +10 -9
- data/docs/Resource.md +18 -17
- data/docs/ResourceFile.md +14 -13
- data/docs/ResourceInput.md +16 -15
- data/docs/User.md +12 -11
- data/docs/WatchlistResponse.md +16 -15
- data/lib/passbase.rb +1 -1
- data/lib/passbase/api/identity_api.rb +21 -16
- data/lib/passbase/api/project_api.rb +5 -4
- data/lib/passbase/api_client.rb +42 -51
- data/lib/passbase/api_error.rb +1 -1
- data/lib/passbase/configuration.rb +42 -13
- data/lib/passbase/models/cursor.rb +18 -8
- data/lib/passbase/models/identity.rb +29 -9
- data/lib/passbase/models/identity_owner.rb +18 -8
- data/lib/passbase/models/identity_resource.rb +18 -8
- data/lib/passbase/models/paginated_identities.rb +18 -8
- data/lib/passbase/models/paginated_resources.rb +18 -8
- data/lib/passbase/models/project_settings.rb +18 -8
- data/lib/passbase/models/project_settings_customizations.rb +18 -8
- data/lib/passbase/models/project_settings_verification_steps.rb +18 -8
- data/lib/passbase/models/resource.rb +18 -8
- data/lib/passbase/models/resource_file.rb +18 -8
- data/lib/passbase/models/resource_input.rb +18 -8
- data/lib/passbase/models/user.rb +18 -8
- data/lib/passbase/models/watchlist_response.rb +18 -8
- data/lib/passbase/version.rb +3 -3
- data/passbase.gemspec +4 -4
- data/spec/api/identity_api_spec.rb +1 -1
- data/spec/api/project_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +4 -4
- data/spec/models/cursor_spec.rb +4 -11
- data/spec/models/identity_owner_spec.rb +4 -11
- data/spec/models/identity_resource_spec.rb +4 -11
- data/spec/models/identity_spec.rb +11 -12
- data/spec/models/paginated_identities_spec.rb +4 -11
- data/spec/models/paginated_resources_spec.rb +4 -11
- data/spec/models/project_settings_customizations_spec.rb +4 -11
- data/spec/models/project_settings_spec.rb +5 -12
- data/spec/models/project_settings_verification_steps_spec.rb +4 -11
- data/spec/models/resource_file_spec.rb +4 -11
- data/spec/models/resource_input_spec.rb +4 -11
- data/spec/models/resource_spec.rb +5 -12
- data/spec/models/user_spec.rb +4 -11
- data/spec/models/watchlist_response_spec.rb +4 -11
- data/spec/spec_helper.rb +1 -1
- data/vendor/bundle/ruby/2.7.0/bin/htmldiff +1 -1
- data/vendor/bundle/ruby/2.7.0/bin/ldiff +1 -1
- data/vendor/bundle/ruby/2.7.0/cache/faraday-1.4.2.gem +0 -0
- data/vendor/bundle/ruby/2.7.0/cache/faraday-em_http-1.0.0.gem +0 -0
- data/vendor/bundle/ruby/2.7.0/cache/faraday-em_synchrony-1.0.0.gem +0 -0
- data/vendor/bundle/ruby/2.7.0/cache/faraday-excon-1.1.0.gem +0 -0
- data/vendor/bundle/ruby/2.7.0/cache/faraday-net_http-1.0.1.gem +0 -0
- data/vendor/bundle/ruby/2.7.0/cache/faraday-net_http_persistent-1.1.0.gem +0 -0
- data/vendor/bundle/ruby/2.7.0/cache/ruby2_keywords-0.0.4.gem +0 -0
- data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0/byebug-11.1.3/byebug/byebug.so +0 -0
- data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/{2.7.0-static → 2.7.0}/byebug-11.1.3/gem.build_complete +0 -0
- data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/{2.7.0-static → 2.7.0}/byebug-11.1.3/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/{2.7.0-static → 2.7.0}/jaro_winkler-1.5.4/gem.build_complete +0 -0
- data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0/jaro_winkler-1.5.4/gem_make.out +67 -0
- data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0/jaro_winkler-1.5.4/jaro_winkler/jaro_winkler_ext.so +0 -0
- data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/{2.7.0-static → 2.7.0}/psych-3.2.0/gem.build_complete +0 -0
- data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/{2.7.0-static → 2.7.0}/psych-3.2.0/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0/psych-3.2.0/mkmf.log +196 -0
- data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0/psych-3.2.0/psych.so +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/byebug-11.1.3/ext/byebug/Makefile +13 -13
- data/vendor/bundle/ruby/2.7.0/gems/byebug-11.1.3/ext/byebug/breakpoint.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/byebug-11.1.3/ext/byebug/byebug.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/byebug-11.1.3/ext/byebug/byebug.so +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/byebug-11.1.3/ext/byebug/context.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/byebug-11.1.3/ext/byebug/locker.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/byebug-11.1.3/ext/byebug/threads.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/byebug-11.1.3/lib/byebug/byebug.so +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/CHANGELOG.md +104 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/LICENSE.md +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/README.md +1 -2
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/Rakefile +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/examples/client_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/examples/client_test.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/lib/faraday.rb +55 -41
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/lib/faraday/adapter.rb +0 -8
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/lib/faraday/adapter/httpclient.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/lib/faraday/adapter/patron.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/lib/faraday/adapter/rack.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/lib/faraday/adapter/test.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/lib/faraday/adapter/typhoeus.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/lib/faraday/adapter_registry.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/lib/faraday/autoload.rb +0 -5
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/lib/faraday/connection.rb +8 -1
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/lib/faraday/dependency_loader.rb +1 -3
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/lib/faraday/encoders/flat_params_encoder.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/lib/faraday/encoders/nested_params_encoder.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/lib/faraday/error.rb +12 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/lib/faraday/file_part.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/lib/faraday/logging/formatter.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/faraday-1.4.2/lib/faraday/methods.rb +6 -0
- data/vendor/bundle/ruby/2.7.0/gems/faraday-1.4.2/lib/faraday/middleware.rb +31 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/lib/faraday/middleware_registry.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/lib/faraday/options.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/lib/faraday/options/connection_options.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/lib/faraday/options/env.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/lib/faraday/options/proxy_options.rb +4 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/lib/faraday/options/request_options.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/lib/faraday/options/ssl_options.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/lib/faraday/param_part.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/lib/faraday/parameters.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/lib/faraday/rack_builder.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/lib/faraday/request.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/lib/faraday/request/authorization.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/lib/faraday/request/basic_authentication.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/lib/faraday/request/instrumentation.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/lib/faraday/request/multipart.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/lib/faraday/request/retry.rb +2 -2
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/lib/faraday/request/token_authentication.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/lib/faraday/request/url_encoded.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/lib/faraday/response.rb +0 -6
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/lib/faraday/response/logger.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/lib/faraday/response/raise_error.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/lib/faraday/utils.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/lib/faraday/utils/headers.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/lib/faraday/utils/params_hash.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/faraday-1.4.2/lib/faraday/version.rb +5 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/external_adapters/faraday_specs_setup.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/faraday/adapter/em_http_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/faraday/adapter/em_synchrony_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/faraday/adapter/excon_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/faraday/adapter/httpclient_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/faraday/adapter/net_http_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/faraday/adapter/patron_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/faraday/adapter/rack_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/faraday/adapter/test_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/faraday/adapter/typhoeus_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/faraday/adapter_registry_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/faraday/adapter_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/faraday/composite_read_io_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/faraday/connection_spec.rb +38 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/faraday/error_spec.rb +15 -0
- data/vendor/bundle/ruby/2.7.0/gems/faraday-1.4.2/spec/faraday/middleware_spec.rb +52 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/faraday/options/env_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/faraday/options/options_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/faraday/options/proxy_options_spec.rb +7 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/faraday/options/request_options_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/faraday/params_encoders/flat_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/faraday/params_encoders/nested_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/faraday/rack_builder_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/faraday/request/authorization_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/faraday/request/instrumentation_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/faraday/request/multipart_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/faraday/request/retry_spec.rb +1 -1
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/faraday/request/url_encoded_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/faraday/request_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/faraday/response/logger_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/faraday/response/middleware_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/faraday/response/raise_error_spec.rb +30 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/faraday/response_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/faraday/utils/headers_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/faraday/utils_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/faraday_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/spec_helper.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/support/disabling_stub.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/support/fake_safe_buffer.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/support/helper_methods.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/support/shared_examples/adapter.rb +2 -1
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/support/shared_examples/params_encoder.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/support/shared_examples/request_method.rb +36 -8
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/support/streaming_response_checker.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/support/webmock_rack_app.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/faraday-em_http-1.0.0/LICENSE.md +21 -0
- data/vendor/bundle/ruby/2.7.0/gems/faraday-em_http-1.0.0/README.md +61 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-em_http-1.0.0}/lib/faraday/adapter/em_http.rb +22 -19
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-em_http-1.0.0}/lib/faraday/adapter/em_http_ssl_patch.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/faraday-em_http-1.0.0/lib/faraday/em_http.rb +11 -0
- data/vendor/bundle/ruby/2.7.0/gems/faraday-em_http-1.0.0/lib/faraday/em_http/version.rb +7 -0
- data/vendor/bundle/ruby/2.7.0/gems/faraday-em_synchrony-1.0.0/LICENSE.md +21 -0
- data/vendor/bundle/ruby/2.7.0/gems/faraday-em_synchrony-1.0.0/README.md +65 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-em_synchrony-1.0.0}/lib/faraday/adapter/em_synchrony.rb +16 -13
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-em_synchrony-1.0.0}/lib/faraday/adapter/em_synchrony/parallel_manager.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/faraday-em_synchrony-1.0.0/lib/faraday/em_synchrony.rb +12 -0
- data/vendor/bundle/ruby/2.7.0/gems/faraday-em_synchrony-1.0.0/lib/faraday/em_synchrony/version.rb +7 -0
- data/vendor/bundle/ruby/2.7.0/gems/faraday-excon-1.1.0/LICENSE.md +21 -0
- data/vendor/bundle/ruby/2.7.0/gems/faraday-excon-1.1.0/README.md +61 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-excon-1.1.0}/lib/faraday/adapter/excon.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/faraday-excon-1.1.0/lib/faraday/excon.rb +11 -0
- data/vendor/bundle/ruby/2.7.0/gems/faraday-excon-1.1.0/lib/faraday/excon/version.rb +7 -0
- data/vendor/bundle/ruby/2.7.0/gems/faraday-net_http-1.0.1/LICENSE.md +21 -0
- data/vendor/bundle/ruby/2.7.0/gems/faraday-net_http-1.0.1/README.md +57 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-net_http-1.0.1}/lib/faraday/adapter/net_http.rb +21 -27
- data/vendor/bundle/ruby/2.7.0/gems/faraday-net_http-1.0.1/lib/faraday/net_http.rb +10 -0
- data/vendor/bundle/ruby/2.7.0/gems/faraday-net_http-1.0.1/lib/faraday/net_http/version.rb +7 -0
- data/vendor/bundle/ruby/2.7.0/gems/faraday-net_http_persistent-1.1.0/LICENSE.md +21 -0
- data/vendor/bundle/ruby/2.7.0/gems/faraday-net_http_persistent-1.1.0/README.md +73 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-net_http_persistent-1.1.0}/lib/faraday/adapter/net_http_persistent.rb +11 -11
- data/vendor/bundle/ruby/2.7.0/gems/faraday-net_http_persistent-1.1.0/lib/faraday/net_http_persistent.rb +17 -0
- data/vendor/bundle/ruby/2.7.0/gems/faraday-net_http_persistent-1.1.0/lib/faraday/net_http_persistent/version.rb +7 -0
- data/vendor/bundle/ruby/2.7.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/Makefile +14 -14
- data/vendor/bundle/ruby/2.7.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/adj_matrix.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/codepoints.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/jaro.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/jaro_winkler.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/jaro_winkler_ext.so +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/jaro_winkler-1.5.4/lib/jaro_winkler/jaro_winkler_ext.so +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych/Makefile +14 -14
- data/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych/api.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych/dumper.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych/emitter.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych/loader.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych/parser.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych/psych.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych/psych_emitter.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych/psych_parser.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych/psych_to_ruby.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych/psych_yaml_tree.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych/reader.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych/scanner.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych/writer.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/ruby2_keywords-0.0.4/LICENSE +22 -0
- data/vendor/bundle/ruby/2.7.0/gems/{ruby2_keywords-0.0.2 → ruby2_keywords-0.0.4}/README.md +18 -2
- data/vendor/bundle/ruby/2.7.0/gems/ruby2_keywords-0.0.4/lib/ruby2_keywords.rb +57 -0
- data/vendor/bundle/ruby/2.7.0/specifications/ast-2.4.1.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/byebug-11.1.3.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/coderay-1.1.3.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/diff-lcs-1.4.4.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/{faraday-1.1.0.gemspec → faraday-1.4.2.gemspec} +0 -0
- data/vendor/bundle/ruby/2.7.0/specifications/faraday-em_http-1.0.0.gemspec +52 -0
- data/vendor/bundle/ruby/2.7.0/specifications/faraday-em_synchrony-1.0.0.gemspec +56 -0
- data/vendor/bundle/ruby/2.7.0/specifications/faraday-excon-1.1.0.gemspec +52 -0
- data/vendor/bundle/ruby/2.7.0/specifications/faraday-net_http-1.0.1.gemspec +50 -0
- data/vendor/bundle/ruby/2.7.0/specifications/faraday-net_http_persistent-1.1.0.gemspec +48 -0
- data/vendor/bundle/ruby/2.7.0/specifications/jaro_winkler-1.5.4.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/method_source-1.0.0.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/multipart-post-2.1.1.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/parallel-1.19.2.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/parser-2.7.1.4.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/pry-0.13.1.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/pry-byebug-3.9.0.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/psych-3.2.0.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/rainbow-3.0.0.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/rake-13.0.1.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/rspec-3.9.0.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/rspec-core-3.9.2.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/rspec-expectations-3.9.2.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/rspec-mocks-3.9.1.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/rspec-support-3.9.3.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/rubocop-0.66.0.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/ruby-progressbar-1.10.1.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/{ruby2_keywords-0.0.2.gemspec → ruby2_keywords-0.0.4.gemspec} +7 -6
- data/vendor/bundle/ruby/2.7.0/specifications/unicode-display_width-1.5.0.gemspec +2 -2
- data/walkthrough.md +1 -1
- metadata +171 -134
- data/vendor/bundle/ruby/2.7.0/cache/faraday-1.1.0.gem +0 -0
- data/vendor/bundle/ruby/2.7.0/cache/ruby2_keywords-0.0.2.gem +0 -0
- data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0-static/byebug-11.1.3/byebug/byebug.so +0 -0
- data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0-static/jaro_winkler-1.5.4/gem_make.out +0 -64
- data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0-static/jaro_winkler-1.5.4/jaro_winkler/jaro_winkler_ext.so +0 -0
- data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0-static/psych-3.2.0/mkmf.log +0 -197
- data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0-static/psych-3.2.0/psych.so +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/faraday-1.1.0/lib/faraday/middleware.rb +0 -21
- data/vendor/bundle/ruby/2.7.0/gems/faraday-1.1.0/spec/faraday/adapter/net_http_persistent_spec.rb +0 -57
- data/vendor/bundle/ruby/2.7.0/gems/faraday-1.1.0/spec/faraday/middleware_spec.rb +0 -26
- data/vendor/bundle/ruby/2.7.0/gems/ruby2_keywords-0.0.2/lib/ruby2_keywords.rb +0 -23
- data/vendor/bundle/ruby/2.7.0/gems/ruby2_keywords-0.0.2/ruby2_keywords.gemspec +0 -16
File without changes
|
data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/faraday/adapter/rack_spec.rb
RENAMED
File without changes
|
data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/faraday/adapter/test_spec.rb
RENAMED
File without changes
|
File without changes
|
File without changes
|
data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/faraday/adapter_spec.rb
RENAMED
File without changes
|
File without changes
|
data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/faraday/connection_spec.rb
RENAMED
@@ -18,6 +18,13 @@ shared_examples 'initializer with url' do
|
|
18
18
|
it { expect(subject.path_prefix).to eq('/fish') }
|
19
19
|
it { expect(subject.params).to eq('a' => '1') }
|
20
20
|
end
|
21
|
+
|
22
|
+
context 'with IPv6 address' do
|
23
|
+
let(:address) { 'http://[::1]:85/' }
|
24
|
+
|
25
|
+
it { expect(subject.host).to eq('[::1]') }
|
26
|
+
it { expect(subject.port).to eq(85) }
|
27
|
+
end
|
21
28
|
end
|
22
29
|
|
23
30
|
shared_examples 'default connection options' do
|
@@ -270,6 +277,29 @@ RSpec.describe Faraday::Connection do
|
|
270
277
|
expect(uri.to_s).to eq('http://sushi.com/sake/')
|
271
278
|
end
|
272
279
|
end
|
280
|
+
|
281
|
+
context 'with colon in path' do
|
282
|
+
let(:url) { 'http://service.com' }
|
283
|
+
|
284
|
+
it 'joins url to base when used absolute path' do
|
285
|
+
conn = Faraday.new(url: url)
|
286
|
+
uri = conn.build_exclusive_url('/service:search?limit=400')
|
287
|
+
expect(uri.to_s).to eq('http://service.com/service:search?limit=400')
|
288
|
+
end
|
289
|
+
|
290
|
+
it 'joins url to base when used relative path' do
|
291
|
+
conn = Faraday.new(url: url)
|
292
|
+
uri = conn.build_exclusive_url('service:search?limit=400')
|
293
|
+
expect(uri.to_s).to eq('http://service.com/service%3Asearch?limit=400')
|
294
|
+
end
|
295
|
+
|
296
|
+
it 'joins url to base when used with path prefix' do
|
297
|
+
conn = Faraday.new(url: url)
|
298
|
+
conn.path_prefix = '/api'
|
299
|
+
uri = conn.build_exclusive_url('service:search?limit=400')
|
300
|
+
expect(uri.to_s).to eq('http://service.com/api/service%3Asearch?limit=400')
|
301
|
+
end
|
302
|
+
end
|
273
303
|
end
|
274
304
|
|
275
305
|
describe '#build_url' do
|
@@ -412,6 +442,14 @@ RSpec.describe Faraday::Connection do
|
|
412
442
|
end
|
413
443
|
end
|
414
444
|
|
445
|
+
it 'allows when url in no proxy list with url_prefix' do
|
446
|
+
with_env 'http_proxy' => 'http://proxy.com', 'no_proxy' => 'example.com' do
|
447
|
+
conn = Faraday::Connection.new
|
448
|
+
conn.url_prefix = 'http://example.com'
|
449
|
+
expect(conn.proxy).to be_nil
|
450
|
+
end
|
451
|
+
end
|
452
|
+
|
415
453
|
it 'allows when prefixed url is not in no proxy list' do
|
416
454
|
with_env 'http_proxy' => 'http://proxy.com', 'no_proxy' => 'example.com' do
|
417
455
|
conn = Faraday::Connection.new('http://prefixedexample.com')
|
data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/faraday/error_spec.rb
RENAMED
@@ -13,6 +13,7 @@ RSpec.describe Faraday::ClientError do
|
|
13
13
|
it { expect(subject.message).to eq(exception.message) }
|
14
14
|
it { expect(subject.backtrace).to eq(exception.backtrace) }
|
15
15
|
it { expect(subject.inspect).to eq('#<Faraday::ClientError wrapped=#<RuntimeError: test>>') }
|
16
|
+
it { expect(subject.response_status).to be_nil }
|
16
17
|
end
|
17
18
|
|
18
19
|
context 'with response hash' do
|
@@ -22,6 +23,7 @@ RSpec.describe Faraday::ClientError do
|
|
22
23
|
it { expect(subject.response).to eq(exception) }
|
23
24
|
it { expect(subject.message).to eq('the server responded with status 400') }
|
24
25
|
it { expect(subject.inspect).to eq('#<Faraday::ClientError response={:status=>400}>') }
|
26
|
+
it { expect(subject.response_status).to eq(400) }
|
25
27
|
end
|
26
28
|
|
27
29
|
context 'with string' do
|
@@ -31,6 +33,7 @@ RSpec.describe Faraday::ClientError do
|
|
31
33
|
it { expect(subject.response).to be_nil }
|
32
34
|
it { expect(subject.message).to eq('custom message') }
|
33
35
|
it { expect(subject.inspect).to eq('#<Faraday::ClientError #<Faraday::ClientError: custom message>>') }
|
36
|
+
it { expect(subject.response_status).to be_nil }
|
34
37
|
end
|
35
38
|
|
36
39
|
context 'with anything else #to_s' do
|
@@ -40,6 +43,18 @@ RSpec.describe Faraday::ClientError do
|
|
40
43
|
it { expect(subject.response).to be_nil }
|
41
44
|
it { expect(subject.message).to eq('["error1", "error2"]') }
|
42
45
|
it { expect(subject.inspect).to eq('#<Faraday::ClientError #<Faraday::ClientError: ["error1", "error2"]>>') }
|
46
|
+
it { expect(subject.response_status).to be_nil }
|
47
|
+
end
|
48
|
+
|
49
|
+
context 'with exception string and response hash' do
|
50
|
+
let(:exception) { 'custom message' }
|
51
|
+
let(:response) { { status: 400 } }
|
52
|
+
|
53
|
+
it { expect(subject.wrapped_exception).to be_nil }
|
54
|
+
it { expect(subject.response).to eq(response) }
|
55
|
+
it { expect(subject.message).to eq('custom message') }
|
56
|
+
it { expect(subject.inspect).to eq('#<Faraday::ClientError response={:status=>400}>') }
|
57
|
+
it { expect(subject.response_status).to eq(400) }
|
43
58
|
end
|
44
59
|
end
|
45
60
|
end
|
@@ -0,0 +1,52 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
RSpec.describe Faraday::Middleware do
|
4
|
+
subject { described_class.new(app) }
|
5
|
+
let(:app) { double }
|
6
|
+
|
7
|
+
describe 'options' do
|
8
|
+
context 'when options are passed to the middleware' do
|
9
|
+
subject { described_class.new(app, options) }
|
10
|
+
let(:options) { { field: 'value' } }
|
11
|
+
|
12
|
+
it 'accepts options when initialized' do
|
13
|
+
expect(subject.options[:field]).to eq('value')
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
describe '#on_request' do
|
19
|
+
subject do
|
20
|
+
Class.new(described_class) do
|
21
|
+
def on_request(env)
|
22
|
+
# do nothing
|
23
|
+
end
|
24
|
+
end.new(app)
|
25
|
+
end
|
26
|
+
|
27
|
+
it 'is called by #call' do
|
28
|
+
expect(app).to receive(:call).and_return(app)
|
29
|
+
expect(app).to receive(:on_complete)
|
30
|
+
is_expected.to receive(:call).and_call_original
|
31
|
+
is_expected.to receive(:on_request)
|
32
|
+
subject.call(double)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
describe '#close' do
|
37
|
+
context "with app that doesn't support \#close" do
|
38
|
+
it 'should issue warning' do
|
39
|
+
is_expected.to receive(:warn)
|
40
|
+
subject.close
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
context "with app that supports \#close" do
|
45
|
+
it 'should issue warning' do
|
46
|
+
expect(app).to receive(:close)
|
47
|
+
is_expected.to_not receive(:warn)
|
48
|
+
subject.close
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/faraday/options/env_spec.rb
RENAMED
File without changes
|
File without changes
|
@@ -14,6 +14,13 @@ RSpec.describe Faraday::ProxyOptions do
|
|
14
14
|
expect(options.inspect).to match('#<Faraday::ProxyOptions uri=')
|
15
15
|
end
|
16
16
|
|
17
|
+
it 'defaults to http' do
|
18
|
+
options = Faraday::ProxyOptions.from 'example.org'
|
19
|
+
expect(options.port).to eq(80)
|
20
|
+
expect(options.host).to eq('example.org')
|
21
|
+
expect(options.scheme).to eq('http')
|
22
|
+
end
|
23
|
+
|
17
24
|
it 'works with nil' do
|
18
25
|
options = Faraday::ProxyOptions.from nil
|
19
26
|
expect(options).to be_a_kind_of(Faraday::ProxyOptions)
|
File without changes
|
File without changes
|
File without changes
|
data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/faraday/rack_builder_spec.rb
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -117,7 +117,7 @@ RSpec.describe Faraday::Request::Retry do
|
|
117
117
|
let(:options) { { max: 2, interval: 0.1, interval_randomness: 0.05 } }
|
118
118
|
let(:middleware) { Faraday::Request::Retry.new(nil, options) }
|
119
119
|
|
120
|
-
it { expect(middleware.send(:calculate_retry_interval, 2)).to be_between(0.1, 0.
|
120
|
+
it { expect(middleware.send(:calculate_retry_interval, 2)).to be_between(0.1, 0.105) }
|
121
121
|
end
|
122
122
|
end
|
123
123
|
|
File without changes
|
data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/faraday/request_spec.rb
RENAMED
File without changes
|
File without changes
|
File without changes
|
@@ -29,6 +29,9 @@ RSpec.describe Faraday::Response::RaiseError do
|
|
29
29
|
expect(ex.message).to eq('the server responded with status 400')
|
30
30
|
expect(ex.response[:headers]['X-Reason']).to eq('because')
|
31
31
|
expect(ex.response[:status]).to eq(400)
|
32
|
+
expect(ex.response_status).to eq(400)
|
33
|
+
expect(ex.response_body).to eq('keep looking')
|
34
|
+
expect(ex.response_headers['X-Reason']).to eq('because')
|
32
35
|
end
|
33
36
|
end
|
34
37
|
|
@@ -37,6 +40,9 @@ RSpec.describe Faraday::Response::RaiseError do
|
|
37
40
|
expect(ex.message).to eq('the server responded with status 401')
|
38
41
|
expect(ex.response[:headers]['X-Reason']).to eq('because')
|
39
42
|
expect(ex.response[:status]).to eq(401)
|
43
|
+
expect(ex.response_status).to eq(401)
|
44
|
+
expect(ex.response_body).to eq('keep looking')
|
45
|
+
expect(ex.response_headers['X-Reason']).to eq('because')
|
40
46
|
end
|
41
47
|
end
|
42
48
|
|
@@ -45,6 +51,9 @@ RSpec.describe Faraday::Response::RaiseError do
|
|
45
51
|
expect(ex.message).to eq('the server responded with status 403')
|
46
52
|
expect(ex.response[:headers]['X-Reason']).to eq('because')
|
47
53
|
expect(ex.response[:status]).to eq(403)
|
54
|
+
expect(ex.response_status).to eq(403)
|
55
|
+
expect(ex.response_body).to eq('keep looking')
|
56
|
+
expect(ex.response_headers['X-Reason']).to eq('because')
|
48
57
|
end
|
49
58
|
end
|
50
59
|
|
@@ -53,6 +62,9 @@ RSpec.describe Faraday::Response::RaiseError do
|
|
53
62
|
expect(ex.message).to eq('the server responded with status 404')
|
54
63
|
expect(ex.response[:headers]['X-Reason']).to eq('because')
|
55
64
|
expect(ex.response[:status]).to eq(404)
|
65
|
+
expect(ex.response_status).to eq(404)
|
66
|
+
expect(ex.response_body).to eq('keep looking')
|
67
|
+
expect(ex.response_headers['X-Reason']).to eq('because')
|
56
68
|
end
|
57
69
|
end
|
58
70
|
|
@@ -61,6 +73,9 @@ RSpec.describe Faraday::Response::RaiseError do
|
|
61
73
|
expect(ex.message).to eq('407 "Proxy Authentication Required"')
|
62
74
|
expect(ex.response[:headers]['X-Reason']).to eq('because')
|
63
75
|
expect(ex.response[:status]).to eq(407)
|
76
|
+
expect(ex.response_status).to eq(407)
|
77
|
+
expect(ex.response_body).to eq('keep looking')
|
78
|
+
expect(ex.response_headers['X-Reason']).to eq('because')
|
64
79
|
end
|
65
80
|
end
|
66
81
|
|
@@ -69,6 +84,9 @@ RSpec.describe Faraday::Response::RaiseError do
|
|
69
84
|
expect(ex.message).to eq('the server responded with status 409')
|
70
85
|
expect(ex.response[:headers]['X-Reason']).to eq('because')
|
71
86
|
expect(ex.response[:status]).to eq(409)
|
87
|
+
expect(ex.response_status).to eq(409)
|
88
|
+
expect(ex.response_body).to eq('keep looking')
|
89
|
+
expect(ex.response_headers['X-Reason']).to eq('because')
|
72
90
|
end
|
73
91
|
end
|
74
92
|
|
@@ -77,6 +95,9 @@ RSpec.describe Faraday::Response::RaiseError do
|
|
77
95
|
expect(ex.message).to eq('the server responded with status 422')
|
78
96
|
expect(ex.response[:headers]['X-Reason']).to eq('because')
|
79
97
|
expect(ex.response[:status]).to eq(422)
|
98
|
+
expect(ex.response_status).to eq(422)
|
99
|
+
expect(ex.response_body).to eq('keep looking')
|
100
|
+
expect(ex.response_headers['X-Reason']).to eq('because')
|
80
101
|
end
|
81
102
|
end
|
82
103
|
|
@@ -85,6 +106,9 @@ RSpec.describe Faraday::Response::RaiseError do
|
|
85
106
|
expect(ex.message).to eq('http status could not be derived from the server response')
|
86
107
|
expect(ex.response[:headers]['X-Reason']).to eq('nil')
|
87
108
|
expect(ex.response[:status]).to be_nil
|
109
|
+
expect(ex.response_status).to be_nil
|
110
|
+
expect(ex.response_body).to eq('fail')
|
111
|
+
expect(ex.response_headers['X-Reason']).to eq('nil')
|
88
112
|
end
|
89
113
|
end
|
90
114
|
|
@@ -93,6 +117,9 @@ RSpec.describe Faraday::Response::RaiseError do
|
|
93
117
|
expect(ex.message).to eq('the server responded with status 499')
|
94
118
|
expect(ex.response[:headers]['X-Reason']).to eq('because')
|
95
119
|
expect(ex.response[:status]).to eq(499)
|
120
|
+
expect(ex.response_status).to eq(499)
|
121
|
+
expect(ex.response_body).to eq('keep looking')
|
122
|
+
expect(ex.response_headers['X-Reason']).to eq('because')
|
96
123
|
end
|
97
124
|
end
|
98
125
|
|
@@ -101,6 +128,9 @@ RSpec.describe Faraday::Response::RaiseError do
|
|
101
128
|
expect(ex.message).to eq('the server responded with status 500')
|
102
129
|
expect(ex.response[:headers]['X-Error']).to eq('bailout')
|
103
130
|
expect(ex.response[:status]).to eq(500)
|
131
|
+
expect(ex.response_status).to eq(500)
|
132
|
+
expect(ex.response_body).to eq('fail')
|
133
|
+
expect(ex.response_headers['X-Error']).to eq('bailout')
|
104
134
|
end
|
105
135
|
end
|
106
136
|
|
data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/faraday/response_spec.rb
RENAMED
File without changes
|
File without changes
|
data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/faraday/utils_spec.rb
RENAMED
File without changes
|
File without changes
|
File without changes
|
data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/support/disabling_stub.rb
RENAMED
File without changes
|
data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/support/fake_safe_buffer.rb
RENAMED
File without changes
|
data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/support/helper_methods.rb
RENAMED
File without changes
|
@@ -33,6 +33,7 @@ shared_examples 'adapter examples' do |**options|
|
|
33
33
|
|
34
34
|
let(:protocol) { ssl_mode? ? 'https' : 'http' }
|
35
35
|
let(:remote) { "#{protocol}://example.com" }
|
36
|
+
let(:stub_remote) { remote }
|
36
37
|
|
37
38
|
let(:conn) do
|
38
39
|
conn_options[:ssl] ||= {}
|
@@ -46,7 +47,7 @@ shared_examples 'adapter examples' do |**options|
|
|
46
47
|
end
|
47
48
|
end
|
48
49
|
|
49
|
-
let!(:request_stub) { stub_request(http_method,
|
50
|
+
let!(:request_stub) { stub_request(http_method, stub_remote) }
|
50
51
|
|
51
52
|
after do
|
52
53
|
expect(request_stub).to have_been_requested unless request_stub.disabled?
|
File without changes
|
@@ -1,5 +1,19 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
shared_examples 'proxy examples' do
|
4
|
+
it 'handles requests with proxy' do
|
5
|
+
res = conn.public_send(http_method, '/')
|
6
|
+
|
7
|
+
expect(res.status).to eq(200)
|
8
|
+
end
|
9
|
+
|
10
|
+
it 'handles proxy failures' do
|
11
|
+
request_stub.to_return(status: 407)
|
12
|
+
|
13
|
+
expect { conn.public_send(http_method, '/') }.to raise_error(Faraday::ProxyAuthError)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
3
17
|
shared_examples 'a request method' do |http_method|
|
4
18
|
let(:query_or_body) { method_with_body?(http_method) ? :body : :query }
|
5
19
|
let(:response) { conn.public_send(http_method, '/') }
|
@@ -218,17 +232,31 @@ shared_examples 'a request method' do |http_method|
|
|
218
232
|
end
|
219
233
|
end
|
220
234
|
|
221
|
-
|
222
|
-
|
235
|
+
context 'when a proxy is provided as option' do
|
236
|
+
before do
|
237
|
+
conn_options[:proxy] = 'http://env-proxy.com:80'
|
238
|
+
end
|
223
239
|
|
224
|
-
|
225
|
-
expect(res.status).to eq(200)
|
240
|
+
include_examples 'proxy examples'
|
226
241
|
end
|
227
242
|
|
228
|
-
|
229
|
-
|
230
|
-
request_stub.to_return(status: 407)
|
243
|
+
context 'when http_proxy env variable is set' do
|
244
|
+
let(:proxy_url) { 'http://env-proxy.com:80' }
|
231
245
|
|
232
|
-
|
246
|
+
around do |example|
|
247
|
+
with_env 'http_proxy' => proxy_url do
|
248
|
+
example.run
|
249
|
+
end
|
250
|
+
end
|
251
|
+
|
252
|
+
include_examples 'proxy examples'
|
253
|
+
|
254
|
+
context 'when the env proxy is ignored' do
|
255
|
+
around do |example|
|
256
|
+
with_env_proxy_disabled(&example)
|
257
|
+
end
|
258
|
+
|
259
|
+
include_examples 'proxy examples'
|
260
|
+
end
|
233
261
|
end
|
234
262
|
end
|
File without changes
|
data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.1.0 → faraday-1.4.2}/spec/support/webmock_rack_app.rb
RENAMED
File without changes
|
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2020 Jan van der Pas
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|