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
@@ -0,0 +1,57 @@
|
|
1
|
+
# Faraday Net::HTTP adapter
|
2
|
+
|
3
|
+
This gem is a [Faraday][faraday] adapter for the [Net::HTTP][net-http] library. Faraday is an HTTP client library that provides a common interface over many adapters. Every adapter is defined into it's own gem. This gem defines the adapter for `Net::HTTP` the HTTP library that's included into the standard library of Ruby.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'faraday-net_http'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle install
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install faraday-net_http
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
Configure your Faraday connection to use this adapter like this:
|
24
|
+
|
25
|
+
```ruby
|
26
|
+
connection = Faraday.new(url, conn_options) do |conn|
|
27
|
+
conn.adapter(:net_http)
|
28
|
+
end
|
29
|
+
```
|
30
|
+
|
31
|
+
For more information on how to setup your Faraday connection and adapters usage, please refer to the [Faraday Website][faraday-website].
|
32
|
+
|
33
|
+
## Development
|
34
|
+
|
35
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
36
|
+
|
37
|
+
To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](rubygems).
|
38
|
+
|
39
|
+
## Contributing
|
40
|
+
|
41
|
+
Bug reports and pull requests are welcome on [GitHub][repo].
|
42
|
+
|
43
|
+
## License
|
44
|
+
|
45
|
+
The gem is available as open source under the terms of the [license][license].
|
46
|
+
|
47
|
+
## Code of Conduct
|
48
|
+
|
49
|
+
Everyone interacting in the Faraday Net::HTTP adapter project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct][code-of-conduct].
|
50
|
+
|
51
|
+
[faraday]: https://github.com/lostisland/faraday
|
52
|
+
[faraday-website]: https://lostisland.github.io/faraday
|
53
|
+
[net-http]: https://ruby-doc.org/stdlib-2.7.0/libdoc/net/http/rdoc/Net/HTTP.html
|
54
|
+
[rubygems]: https://rubygems.org
|
55
|
+
[repo]: https://github.com/lostisland/faraday-net_http
|
56
|
+
[license]: https://github.com/lostisland/faraday-net_http/blob/main/LICENSE.md
|
57
|
+
[code-of-conduct]: https://github.com/lostisland/faraday-net_http/blob/main/CODE_OF_CONDUCT.md
|
@@ -11,7 +11,6 @@ require 'zlib'
|
|
11
11
|
|
12
12
|
module Faraday
|
13
13
|
class Adapter
|
14
|
-
# Net::HTTP adapter.
|
15
14
|
class NetHttp < Faraday::Adapter
|
16
15
|
exceptions = [
|
17
16
|
IOError,
|
@@ -30,9 +29,7 @@ module Faraday
|
|
30
29
|
Zlib::GzipFile::Error
|
31
30
|
]
|
32
31
|
|
33
|
-
if defined?(::OpenSSL::SSL::SSLError)
|
34
|
-
exceptions << ::OpenSSL::SSL::SSLError
|
35
|
-
end
|
32
|
+
exceptions << ::OpenSSL::SSL::SSLError if defined?(::OpenSSL::SSL::SSLError)
|
36
33
|
exceptions << ::Net::OpenTimeout if defined?(::Net::OpenTimeout)
|
37
34
|
|
38
35
|
NET_HTTP_EXCEPTIONS = exceptions.freeze
|
@@ -44,23 +41,22 @@ module Faraday
|
|
44
41
|
|
45
42
|
def build_connection(env)
|
46
43
|
net_http_connection(env).tap do |http|
|
47
|
-
if http.respond_to?(:use_ssl=)
|
48
|
-
http.use_ssl = env[:url].scheme == 'https'
|
49
|
-
end
|
44
|
+
http.use_ssl = env[:url].scheme == 'https' if http.respond_to?(:use_ssl=)
|
50
45
|
configure_ssl(http, env[:ssl])
|
51
46
|
configure_request(http, env[:request])
|
52
47
|
end
|
53
48
|
end
|
54
49
|
|
55
50
|
def net_http_connection(env)
|
56
|
-
|
57
|
-
Net::HTTP::Proxy(proxy[:uri].hostname, proxy[:uri].port,
|
58
|
-
proxy[:user], proxy[:password])
|
59
|
-
else
|
60
|
-
Net::HTTP
|
61
|
-
end
|
51
|
+
proxy = env[:request][:proxy]
|
62
52
|
port = env[:url].port || (env[:url].scheme == 'https' ? 443 : 80)
|
63
|
-
|
53
|
+
if proxy
|
54
|
+
Net::HTTP.new(env[:url].hostname, port,
|
55
|
+
proxy[:uri].hostname, proxy[:uri].port,
|
56
|
+
proxy[:user], proxy[:password])
|
57
|
+
else
|
58
|
+
Net::HTTP.new(env[:url].hostname, port, nil)
|
59
|
+
end
|
64
60
|
end
|
65
61
|
|
66
62
|
def call(env)
|
@@ -69,9 +65,7 @@ module Faraday
|
|
69
65
|
begin
|
70
66
|
perform_request(http, env)
|
71
67
|
rescue *NET_HTTP_EXCEPTIONS => e
|
72
|
-
if defined?(OpenSSL) && e.is_a?(OpenSSL::SSL::SSLError)
|
73
|
-
raise Faraday::SSLError, e
|
74
|
-
end
|
68
|
+
raise Faraday::SSLError, e if defined?(OpenSSL) && e.is_a?(OpenSSL::SSL::SSLError)
|
75
69
|
|
76
70
|
raise Faraday::ConnectionFailed, e
|
77
71
|
end
|
@@ -182,7 +176,7 @@ module Faraday
|
|
182
176
|
end
|
183
177
|
|
184
178
|
if (sec = http.respond_to?(:write_timeout=) &&
|
185
|
-
|
179
|
+
request_timeout(:write, req))
|
186
180
|
http.write_timeout = sec
|
187
181
|
end
|
188
182
|
|
@@ -200,19 +194,19 @@ module Faraday
|
|
200
194
|
return ssl[:cert_store] if ssl[:cert_store]
|
201
195
|
|
202
196
|
@ssl_cert_store ||= begin
|
203
|
-
|
204
|
-
|
205
|
-
|
197
|
+
# Use the default cert store by default, i.e. system ca certs
|
198
|
+
OpenSSL::X509::Store.new.tap(&:set_default_paths)
|
199
|
+
end
|
206
200
|
end
|
207
201
|
|
208
202
|
def ssl_verify_mode(ssl)
|
209
203
|
ssl[:verify_mode] || begin
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
204
|
+
if ssl.fetch(:verify, true)
|
205
|
+
OpenSSL::SSL::VERIFY_PEER
|
206
|
+
else
|
207
|
+
OpenSSL::SSL::VERIFY_NONE
|
208
|
+
end
|
209
|
+
end
|
216
210
|
end
|
217
211
|
end
|
218
212
|
end
|
@@ -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.
|
@@ -0,0 +1,73 @@
|
|
1
|
+
# Faraday::NetHttpPersistent
|
2
|
+
|
3
|
+
[](https://rubygems.org/gems/faraday-net_http_persistent)
|
4
|
+
[](https://github.com/lostisland/faraday-net_http_persistent/actions?query=workflow%3ACI)
|
5
|
+
|
6
|
+
This gem is a [Faraday][faraday] adapter for the [Net::HTTP::Persistent gem][net-http-persistent].
|
7
|
+
|
8
|
+
## Installation
|
9
|
+
|
10
|
+
Add these lines to your application's Gemfile:
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
gem 'faraday-net_http_persistent'
|
14
|
+
gem 'net-http-persistent', '>= 3.1'
|
15
|
+
```
|
16
|
+
|
17
|
+
And then execute:
|
18
|
+
|
19
|
+
$ bundle
|
20
|
+
|
21
|
+
Or install them yourself as:
|
22
|
+
|
23
|
+
$ gem install net_http_persistent -v '>= 3.1'
|
24
|
+
$ gem install faraday-net_http_persistent
|
25
|
+
|
26
|
+
## Usage
|
27
|
+
|
28
|
+
Configure your Faraday connection to use this adapter instead of the default one:
|
29
|
+
|
30
|
+
```ruby
|
31
|
+
connection = Faraday.new(url, conn_options) do |conn|
|
32
|
+
# Your other middleware goes here...
|
33
|
+
conn.adapter :net_http_persistent
|
34
|
+
end
|
35
|
+
```
|
36
|
+
|
37
|
+
For more information on how to setup your Faraday connection and adapters usage,
|
38
|
+
please refer to the [Faraday Website][faraday-website].
|
39
|
+
|
40
|
+
## Development
|
41
|
+
|
42
|
+
After checking out the repo, run `bin/setup` to install dependencies.
|
43
|
+
Then, run `rake spec` to run the tests. You can also run `bin/console`
|
44
|
+
for an interactive prompt that will allow you to experiment.
|
45
|
+
|
46
|
+
To install this gem onto your local machine, run `bundle exec rake install`.
|
47
|
+
To release a new version, update the version number in `version.rb`,
|
48
|
+
and then run `bundle exec rake release`, which will create a git tag for the version,
|
49
|
+
push git commits and tags, and push the `.gem` file to [rubygems.org].
|
50
|
+
|
51
|
+
## Contributing
|
52
|
+
|
53
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/lostisland/faraday-net_http_persistent.
|
54
|
+
This project is intended to be a safe, welcoming space for collaboration,
|
55
|
+
and contributors are expected to adhere to the [Contributor Covenant][covenant] code of conduct.
|
56
|
+
|
57
|
+
## License
|
58
|
+
|
59
|
+
The gem is available as open source under the terms of the [MIT License][mit-license].
|
60
|
+
|
61
|
+
## Code of Conduct
|
62
|
+
|
63
|
+
This project is intended to be a safe, welcoming space for collaboration.
|
64
|
+
Everyone interacting in the Faraday::Http project’s codebases, issue trackers,
|
65
|
+
chat rooms and mailing lists is expected to follow the [code of conduct].
|
66
|
+
|
67
|
+
[code-of-conduct]: https://github.com/lostisland/faraday-http/blob/master/.github/CODE_OF_CONDUCT.md
|
68
|
+
[covenant]: http://contributor-covenant.org
|
69
|
+
[faraday]: https://github.com/lostisland/faraday
|
70
|
+
[faraday-website]: https://lostisland.github.io/faraday
|
71
|
+
[net-http-persistent]: https://github.com/drbrain/net-http-persistent
|
72
|
+
[mit-license]: https://opensource.org/licenses/MIT
|
73
|
+
[rubygems.org]: https://rubygems.org
|
@@ -4,21 +4,21 @@ module Faraday
|
|
4
4
|
class Adapter
|
5
5
|
# Net::HTTP::Persistent adapter.
|
6
6
|
class NetHttpPersistent < NetHttp
|
7
|
-
dependency
|
7
|
+
dependency "net/http/persistent"
|
8
8
|
|
9
9
|
private
|
10
10
|
|
11
11
|
def net_http_connection(env)
|
12
12
|
@cached_connection ||=
|
13
13
|
if Net::HTTP::Persistent.instance_method(:initialize)
|
14
|
-
|
15
|
-
options = {
|
14
|
+
.parameters.first == %i[key name]
|
15
|
+
options = {name: "Faraday"}
|
16
16
|
if @connection_options.key?(:pool_size)
|
17
17
|
options[:pool_size] = @connection_options[:pool_size]
|
18
18
|
end
|
19
19
|
Net::HTTP::Persistent.new(**options)
|
20
20
|
else
|
21
|
-
Net::HTTP::Persistent.new(
|
21
|
+
Net::HTTP::Persistent.new("Faraday")
|
22
22
|
end
|
23
23
|
|
24
24
|
proxy_uri = proxy_uri(env)
|
@@ -32,10 +32,10 @@ module Faraday
|
|
32
32
|
proxy_uri = nil
|
33
33
|
if (proxy = env[:request][:proxy])
|
34
34
|
proxy_uri = if proxy[:uri].is_a?(::URI::HTTP)
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
35
|
+
proxy[:uri].dup
|
36
|
+
else
|
37
|
+
::URI.parse(proxy[:uri].to_s)
|
38
|
+
end
|
39
39
|
proxy_uri.user = proxy_uri.password = nil
|
40
40
|
# awful patch for net-http-persistent 2.8
|
41
41
|
# not unescaping user/password
|
@@ -51,12 +51,12 @@ module Faraday
|
|
51
51
|
|
52
52
|
def perform_request(http, env)
|
53
53
|
http.request env[:url], create_request(env)
|
54
|
-
rescue Errno::ETIMEDOUT => e
|
54
|
+
rescue Errno::ETIMEDOUT, Net::OpenTimeout => e
|
55
55
|
raise Faraday::TimeoutError, e
|
56
56
|
rescue Net::HTTP::Persistent::Error => e
|
57
|
-
raise Faraday::TimeoutError, e if e.message.include?
|
57
|
+
raise Faraday::TimeoutError, e if e.message.include? "Timeout"
|
58
58
|
|
59
|
-
if e.message.include?
|
59
|
+
if e.message.include? "connection refused"
|
60
60
|
raise Faraday::ConnectionFailed, e
|
61
61
|
end
|
62
62
|
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "adapter/net_http_persistent"
|
4
|
+
require_relative "net_http_persistent/version"
|
5
|
+
|
6
|
+
module Faraday
|
7
|
+
module NetHttpPersistent
|
8
|
+
# Faraday allows you to register your middleware for easier configuration.
|
9
|
+
# This step is totally optional, but it basically allows users to use a custom symbol (in this case, `:net_http_persistent`),
|
10
|
+
# to use your adapter in their connections.
|
11
|
+
# After calling this line, the following are both valid ways to set the adapter in a connection:
|
12
|
+
# * conn.adapter Faraday::Adapter::NetNttpPersistent
|
13
|
+
# * conn.adapter :net_http_persistent
|
14
|
+
# Without this line, only the former method is valid.
|
15
|
+
Faraday::Adapter.register_middleware(net_http_persistent: Faraday::Adapter::NetHttpPersistent)
|
16
|
+
end
|
17
|
+
end
|
@@ -12,12 +12,12 @@ NULLCMD = :
|
|
12
12
|
#### Start of system configuration section. ####
|
13
13
|
|
14
14
|
srcdir = .
|
15
|
-
topdir = /opt/hostedtoolcache/Ruby/2.7.
|
15
|
+
topdir = /opt/hostedtoolcache/Ruby/2.7.3/x64/include/ruby-2.7.0
|
16
16
|
hdrdir = $(topdir)
|
17
|
-
arch_hdrdir = /opt/hostedtoolcache/Ruby/2.7.
|
17
|
+
arch_hdrdir = /opt/hostedtoolcache/Ruby/2.7.3/x64/include/ruby-2.7.0/x86_64-linux
|
18
18
|
PATH_SEPARATOR = :
|
19
19
|
VPATH = $(srcdir):$(arch_hdrdir)/ruby:$(hdrdir)/ruby
|
20
|
-
prefix = $(DESTDIR)/opt/hostedtoolcache/Ruby/2.7.
|
20
|
+
prefix = $(DESTDIR)/opt/hostedtoolcache/Ruby/2.7.3/x64
|
21
21
|
rubysitearchprefix = $(rubylibprefix)/$(sitearch)
|
22
22
|
rubyarchprefix = $(rubylibprefix)/$(arch)
|
23
23
|
rubylibprefix = $(libdir)/$(RUBY_BASE_NAME)
|
@@ -31,8 +31,8 @@ rubyhdrdir = $(includedir)/$(RUBY_VERSION_NAME)
|
|
31
31
|
vendorarchdir = $(vendorlibdir)/$(sitearch)
|
32
32
|
vendorlibdir = $(vendordir)/$(ruby_version)
|
33
33
|
vendordir = $(rubylibprefix)/vendor_ruby
|
34
|
-
sitearchdir = $(DESTDIR)./.gem.
|
35
|
-
sitelibdir = $(DESTDIR)./.gem.
|
34
|
+
sitearchdir = $(DESTDIR)./.gem.20210616-1929-wrfdxg
|
35
|
+
sitelibdir = $(DESTDIR)./.gem.20210616-1929-wrfdxg
|
36
36
|
sitedir = $(rubylibprefix)/site_ruby
|
37
37
|
rubyarchdir = $(rubylibdir)/$(arch)
|
38
38
|
rubylibdir = $(rubylibprefix)/$(ruby_version)
|
@@ -67,9 +67,9 @@ archdir = $(rubyarchdir)
|
|
67
67
|
CC_WRAPPER =
|
68
68
|
CC = gcc
|
69
69
|
CXX = g++
|
70
|
-
LIBRUBY = $(
|
70
|
+
LIBRUBY = $(LIBRUBY_SO)
|
71
71
|
LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
|
72
|
-
LIBRUBYARG_SHARED = -Wl,-rpath,$(libdir) -L$(libdir)
|
72
|
+
LIBRUBYARG_SHARED = -Wl,-rpath,$(libdir) -L$(libdir) -l$(RUBY_SO_NAME)
|
73
73
|
LIBRUBYARG_STATIC = -Wl,-rpath,$(libdir) -L$(libdir) -l$(RUBY_SO_NAME)-static $(MAINLIBS)
|
74
74
|
empty =
|
75
75
|
OUTFLAG = -o $(empty)
|
@@ -84,13 +84,13 @@ debugflags = -ggdb3
|
|
84
84
|
warnflags = -Wall -Wextra -Wdeprecated-declarations -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wwrite-strings -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable
|
85
85
|
cppflags =
|
86
86
|
CCDLFLAGS = -fPIC
|
87
|
-
CFLAGS = $(CCDLFLAGS) $(cflags) -std=c99 $(ARCH_FLAG)
|
87
|
+
CFLAGS = $(CCDLFLAGS) $(cflags) -fPIC -std=c99 $(ARCH_FLAG)
|
88
88
|
INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir)/ruby/backward -I$(hdrdir) -I$(srcdir)
|
89
89
|
DEFS =
|
90
|
-
CPPFLAGS = -DENABLE_PATH_CHECK=0 $(DEFS) $(cppflags)
|
90
|
+
CPPFLAGS = -I/opt/hostedtoolcache/Ruby/2.7.3/x64/include -DENABLE_PATH_CHECK=0 $(DEFS) $(cppflags)
|
91
91
|
CXXFLAGS = $(CCDLFLAGS) -g -O2 $(ARCH_FLAG)
|
92
|
-
ldflags = -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic
|
93
|
-
dldflags = -Wl,--compress-debug-sections=zlib
|
92
|
+
ldflags = -L. -L/opt/hostedtoolcache/Ruby/2.7.3/x64/lib -fstack-protector-strong -rdynamic -Wl,-export-dynamic
|
93
|
+
dldflags = -L/opt/hostedtoolcache/Ruby/2.7.3/x64/lib -Wl,--compress-debug-sections=zlib
|
94
94
|
ARCH_FLAG =
|
95
95
|
DLDFLAGS = $(ldflags) $(dldflags) $(ARCH_FLAG)
|
96
96
|
LDSHARED = $(CC) -shared
|
@@ -115,7 +115,7 @@ ruby_headers = $(hdrdir)/ruby.h $(hdrdir)/ruby/backward.h $(hdrdir)/ruby/ruby.h
|
|
115
115
|
RM = rm -f
|
116
116
|
RM_RF = $(RUBY) -run -e rm -- -rf
|
117
117
|
RMDIRS = rmdir --ignore-fail-on-non-empty -p
|
118
|
-
MAKEDIRS = /bin/mkdir -p
|
118
|
+
MAKEDIRS = /usr/bin/mkdir -p
|
119
119
|
INSTALL = /usr/bin/install -c
|
120
120
|
INSTALL_PROG = $(INSTALL) -m 0755
|
121
121
|
INSTALL_DATA = $(INSTALL) -m 644
|
@@ -137,11 +137,11 @@ extout =
|
|
137
137
|
extout_prefix =
|
138
138
|
target_prefix = /jaro_winkler
|
139
139
|
LOCAL_LIBS =
|
140
|
-
LIBS =
|
140
|
+
LIBS = $(LIBRUBYARG_SHARED) -lm -lc
|
141
141
|
ORIG_SRCS = adj_matrix.c codepoints.c jaro.c jaro_winkler.c
|
142
142
|
SRCS = $(ORIG_SRCS)
|
143
143
|
OBJS = adj_matrix.o codepoints.o jaro.o jaro_winkler.o
|
144
|
-
HDRS = $(srcdir)/
|
144
|
+
HDRS = $(srcdir)/adj_matrix.h $(srcdir)/jaro.h $(srcdir)/codepoints.h
|
145
145
|
LOCAL_HDRS =
|
146
146
|
TARGET = jaro_winkler_ext
|
147
147
|
TARGET_NAME = jaro_winkler_ext
|
Binary file
|
Binary file
|
Binary file
|