Mock Version: 3.5 Mock Version: 3.5 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/rubygem-faraday.spec'], chrootPath='/var/lib/mock/f38-build-side-42-init-devel-754352-27664/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/rubygem-faraday.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1674172800 Wrote: /builddir/build/SRPMS/rubygem-faraday-1.0.1-8.fc38.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/rubygem-faraday.spec'], chrootPath='/var/lib/mock/f38-build-side-42-init-devel-754352-27664/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/rubygem-faraday.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1674172800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.lx5nWX + umask 022 + cd /builddir/build/BUILD + mkdir -p multipart_parser/multipart_parser + cp /builddir/build/SOURCES/parser.rb /builddir/build/SOURCES/reader.rb multipart_parser/multipart_parser + cd /builddir/build/BUILD + rm -rf faraday-1.0.1 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/faraday-1.0.1.gem Unpacked gem: '/builddir/build/BUILD/faraday-1.0.1' + STATUS=0 + '[' 0 -ne 0 ']' + cd faraday-1.0.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/rubygem-faraday-1.0.1-Properly-fix-test-failure-with-Rack-2.1.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/faraday-1.0.1-net-http-persistent-3-error-kind.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.1cohwF + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd faraday-1.0.1 + gem build ../faraday-1.0.1.gemspec Successfully built RubyGem Name: faraday Version: 1.0.1 File: faraday-1.0.1.gem + mkdir -p ./usr/share/gems + CONFIGURE_ARGS='--with-cflags='\''-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer'\'' --with-cxxflags='\''-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer'\'' --with-ldflags='\''-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 '\'' ' + gem install -V --local --build-root . --force --document=ri,rdoc faraday-1.0.1.gem WARNING: You build with buildroot. Build root: /builddir/build/BUILD/faraday-1.0.1 Bin dir: /builddir/build/BUILD/faraday-1.0.1/usr/bin Gem home: /builddir/build/BUILD/faraday-1.0.1/usr/share/gems Plugins dir: /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/plugins /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/CHANGELOG.md /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/LICENSE.md /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/README.md /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/Rakefile /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/examples/client_spec.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/examples/client_test.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/lib/faraday.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/lib/faraday/adapter.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/lib/faraday/adapter/em_http.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/lib/faraday/adapter/em_http_ssl_patch.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/lib/faraday/adapter/em_synchrony.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/lib/faraday/adapter/em_synchrony/parallel_manager.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/lib/faraday/adapter/excon.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/lib/faraday/adapter/httpclient.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/lib/faraday/adapter/net_http.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/lib/faraday/adapter/net_http_persistent.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/lib/faraday/adapter/patron.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/lib/faraday/adapter/rack.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/lib/faraday/adapter/test.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/lib/faraday/adapter/typhoeus.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/lib/faraday/adapter_registry.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/lib/faraday/autoload.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/lib/faraday/connection.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/lib/faraday/dependency_loader.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/lib/faraday/encoders/flat_params_encoder.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/lib/faraday/encoders/nested_params_encoder.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/lib/faraday/error.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/lib/faraday/file_part.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/lib/faraday/logging/formatter.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/lib/faraday/middleware.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/lib/faraday/middleware_registry.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/lib/faraday/options.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/lib/faraday/options/connection_options.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/lib/faraday/options/env.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/lib/faraday/options/proxy_options.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/lib/faraday/options/request_options.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/lib/faraday/options/ssl_options.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/lib/faraday/param_part.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/lib/faraday/parameters.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/lib/faraday/rack_builder.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/lib/faraday/request.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/lib/faraday/request/authorization.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/lib/faraday/request/basic_authentication.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/lib/faraday/request/instrumentation.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/lib/faraday/request/multipart.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/lib/faraday/request/retry.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/lib/faraday/request/token_authentication.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/lib/faraday/request/url_encoded.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/lib/faraday/response.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/lib/faraday/response/logger.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/lib/faraday/response/raise_error.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/lib/faraday/utils.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/lib/faraday/utils/headers.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/lib/faraday/utils/params_hash.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/spec/external_adapters/faraday_specs_setup.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/spec/faraday/adapter/em_http_spec.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/spec/faraday/adapter/em_synchrony_spec.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/spec/faraday/adapter/excon_spec.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/spec/faraday/adapter/httpclient_spec.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/spec/faraday/adapter/net_http_persistent_spec.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/spec/faraday/adapter/net_http_spec.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/spec/faraday/adapter/patron_spec.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/spec/faraday/adapter/rack_spec.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/spec/faraday/adapter/typhoeus_spec.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/spec/faraday/adapter_registry_spec.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/spec/faraday/adapter_spec.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/spec/faraday/composite_read_io_spec.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/spec/faraday/connection_spec.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/spec/faraday/error_spec.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/spec/faraday/middleware_spec.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/spec/faraday/options/env_spec.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/spec/faraday/options/options_spec.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/spec/faraday/options/proxy_options_spec.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/spec/faraday/options/request_options_spec.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/spec/faraday/params_encoders/flat_spec.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/spec/faraday/params_encoders/nested_spec.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/spec/faraday/rack_builder_spec.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/spec/faraday/request/authorization_spec.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/spec/faraday/request/instrumentation_spec.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/spec/faraday/request/multipart_spec.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/spec/faraday/request/retry_spec.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/spec/faraday/request/url_encoded_spec.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/spec/faraday/request_spec.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/spec/faraday/response/logger_spec.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/spec/faraday/response/middleware_spec.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/spec/faraday/response/raise_error_spec.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/spec/faraday/response_spec.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/spec/faraday/utils/headers_spec.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/spec/faraday/utils_spec.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/spec/faraday_spec.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/spec/spec_helper.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/spec/support/disabling_stub.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/spec/support/fake_safe_buffer.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/spec/support/helper_methods.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/spec/support/shared_examples/adapter.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/spec/support/shared_examples/params_encoder.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/spec/support/shared_examples/request_method.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/spec/support/streaming_response_checker.rb /builddir/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1/spec/support/webmock_rack_app.rb Successfully installed faraday-1.0.1 Parsing documentation for faraday-1.0.1 Parsing sources... 2% [ 1/49] lib/faraday.rb 4% [ 2/49] lib/faraday/adapter.rb 6% [ 3/49] lib/faraday/adapter/em_http.rb 8% [ 4/49] lib/faraday/adapter/em_http_ssl_patch.rb 10% [ 5/49] lib/faraday/adapter/em_synchrony.rb 12% [ 6/49] lib/faraday/adapter/em_synchrony/parallel_manager.rb 14% [ 7/49] lib/faraday/adapter/excon.rb 16% [ 8/49] lib/faraday/adapter/httpclient.rb 18% [ 9/49] lib/faraday/adapter/net_http.rb 20% [10/49] lib/faraday/adapter/net_http_persistent.rb 22% [11/49] lib/faraday/adapter/patron.rb 24% [12/49] lib/faraday/adapter/rack.rb 26% [13/49] lib/faraday/adapter/test.rb 28% [14/49] lib/faraday/adapter/typhoeus.rb 30% [15/49] lib/faraday/adapter_registry.rb 32% [16/49] lib/faraday/autoload.rb 34% [17/49] lib/faraday/connection.rb 36% [18/49] lib/faraday/dependency_loader.rb 38% [19/49] lib/faraday/encoders/flat_params_encoder.rb 40% [20/49] lib/faraday/encoders/nested_params_encoder.rb 42% [21/49] lib/faraday/error.rb 44% [22/49] lib/faraday/file_part.rb 46% [23/49] lib/faraday/logging/formatter.rb 48% [24/49] lib/faraday/middleware.rb 51% [25/49] lib/faraday/middleware_registry.rb 53% [26/49] lib/faraday/options.rb 55% [27/49] lib/faraday/options/connection_options.rb 57% [28/49] lib/faraday/options/env.rb 59% [29/49] lib/faraday/options/proxy_options.rb 61% [30/49] lib/faraday/options/request_options.rb 63% [31/49] lib/faraday/options/ssl_options.rb 65% [32/49] lib/faraday/param_part.rb 67% [33/49] lib/faraday/parameters.rb 69% [34/49] lib/faraday/rack_builder.rb 71% [35/49] lib/faraday/request.rb 73% [36/49] lib/faraday/request/authorization.rb 75% [37/49] lib/faraday/request/basic_authentication.rb 77% [38/49] lib/faraday/request/instrumentation.rb 79% [39/49] lib/faraday/request/multipart.rb 81% [40/49] lib/faraday/request/retry.rb 83% [41/49] lib/faraday/request/token_authentication.rb 85% [42/49] lib/faraday/request/url_encoded.rb 87% [43/49] lib/faraday/response.rb 89% [44/49] lib/faraday/response/logger.rb 91% [45/49] lib/faraday/response/raise_error.rb 93% [46/49] lib/faraday/utils.rb 95% [47/49] lib/faraday/utils/headers.rb 97% [48/49] lib/faraday/utils/params_hash.rb 100% [49/49] spec/external_adapters/faraday_specs_setup.rb Installing ri documentation for faraday-1.0.1 Installing darkfish documentation for faraday-1.0.1 Done installing documentation for faraday after 19 seconds 1 gem installed + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.XZAF7f + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/rubygem-faraday-1.0.1-8.fc38.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/rubygem-faraday-1.0.1-8.fc38.noarch ++ dirname /builddir/build/BUILDROOT/rubygem-faraday-1.0.1-8.fc38.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/rubygem-faraday-1.0.1-8.fc38.noarch + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd faraday-1.0.1 + mkdir -p /builddir/build/BUILDROOT/rubygem-faraday-1.0.1-8.fc38.noarch/usr/share/gems + cp -a ./usr/share/gems/build_info ./usr/share/gems/cache ./usr/share/gems/doc ./usr/share/gems/extensions ./usr/share/gems/gems ./usr/share/gems/plugins ./usr/share/gems/specifications /builddir/build/BUILDROOT/rubygem-faraday-1.0.1-8.fc38.noarch/usr/share/gems/ + /usr/bin/find-debuginfo -j8 --strict-build-id -m -i --build-id-seed 1.0.1-8.fc38 --unique-debug-suffix -1.0.1-8.fc38.noarch --unique-debug-src-base rubygem-faraday-1.0.1-8.fc38.noarch --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/faraday-1.0.1 + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs + /usr/lib/rpm/brp-remove-la-files + env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j8 + /usr/lib/rpm/redhat/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.YGYPUN + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' ~/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1 ~/build/BUILD/faraday-1.0.1 + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd faraday-1.0.1 + pushd ./usr/share/gems/gems/faraday-1.0.1 + sed -i '/simplecov/ s/^/#/' spec/spec_helper.rb + sed -i '/coveralls/ s/^/#/' spec/spec_helper.rb + sed -i '/SimpleCov/,/^end$/ s/^/#/' spec/spec_helper.rb + sed -i '/pry/ s/^/#/' spec/spec_helper.rb + mv spec/faraday/adapter/em_synchrony_spec.rb spec/faraday/adapter/em_synchrony_spec.rb.disabled + mv spec/faraday/adapter/patron_spec.rb spec/faraday/adapter/patron_spec.rb.disabled + sed -i '/allows to set min_version in SSL settings/a\ skip' spec/faraday/adapter/net_http_persistent_spec.rb + rspec -I/builddir/build/BUILD/multipart_parser -rspec_helper -r/builddir/build/SOURCES/parser.rb spec -f d Top level ::CompositeIO is deprecated, require 'multipart/post' and use `Multipart::Post::CompositeReadIO` instead! Top level ::Parts is deprecated, require 'multipart/post' and use `Multipart::Post::Parts` instead! Randomized with seed 49075 Faraday::Request supports marshal serialization with global request options set is expected to eq 3 is expected to eq 5 is expected to eq 3 is expected to eq 5 and per-request options set is expected to eq {:bar=>"bar", :foo=>"foo"} is expected to eq 10 is expected to eq 5 is expected to eq "boo" is expected to eq 10 is expected to eq 5 is expected to eq {:consumer_key=>"anonymous", :consumer_secret=>"xyz"} when setting the body on setup is expected to eq "hi" is expected to eq "hi" when method is post is expected to eq :post when setting the url on setup with a path including params is expected to eq "foo.json" is expected to eq {"a"=>"1", "b"=>"2"} is expected to eq "http://sushi.com/api/foo.json?a=1&b=2" when setting the url on setup with a URI is expected to eq {"a"=>"1"} is expected to eq # is expected to eq "http://sushi.com/api/foo.json?a=1" when nothing particular is configured is expected to eq :get is expected to be falsey when setting a header on setup with []= syntax is expected to eq "1.0" is expected to eq "Faraday" is expected to eq "Faraday" when setting the url on setup with a string path and params is expected to eq {"a"=>1} is expected to eq "http://sushi.com/api/foo.json?a=1" is expected to eq "foo.json" Faraday::Adapter::EMHttp allows to provide adapter specific configs behaves like an adapter with SSL disabled #put behaves like a request method sends request body parses the reason phrase handles proxy failures supports timeout option sends url encoded nested parameters handles requests with proxy represents empty body response as blank string handles headers with multiple values retrieves the response body handles connection error sends user agent retrieves the response headers sends files sends url encoded parameters supports open_timeout option binds local socket with parallel setup handles parallel requests status handles parallel requests body #trace behaves like a request method parses the reason phrase retrieves the response headers retrieves the response body handles proxy failures handles requests with proxy sends url encoded parameters sends user agent binds local socket sends url encoded nested parameters represents empty body response as blank string handles headers with multiple values supports open_timeout option supports timeout option sends request body handles connection error with parallel setup handles parallel requests body handles parallel requests status #options behaves like a request method parses the reason phrase retrieves the response headers sends request body represents empty body response as blank string handles proxy failures binds local socket handles requests with proxy handles headers with multiple values handles connection error sends url encoded nested parameters supports timeout option retrieves the response body sends user agent supports open_timeout option sends url encoded parameters with parallel setup handles parallel requests status handles parallel requests body #post behaves like a request method retrieves the response headers handles requests with proxy handles connection error sends user agent sends request body retrieves the response body parses the reason phrase sends url encoded parameters sends url encoded nested parameters sends files represents empty body response as blank string binds local socket supports timeout option handles proxy failures handles headers with multiple values supports open_timeout option with parallel setup handles parallel requests status handles parallel requests body #delete behaves like a request method sends url encoded parameters parses the reason phrase supports open_timeout option supports timeout option represents empty body response as blank string handles connection error handles headers with multiple values handles proxy failures sends request body retrieves the response body sends url encoded nested parameters sends user agent retrieves the response headers handles requests with proxy binds local socket with parallel setup handles parallel requests status handles parallel requests body #head behaves like a request method retrieves the response headers handles proxy failures handles requests with proxy supports timeout option sends url encoded nested parameters sends request body sends url encoded parameters represents empty body response as blank string binds local socket handles connection error sends user agent parses the reason phrase handles headers with multiple values supports open_timeout option with parallel setup handles parallel requests status #get behaves like a request method binds local socket handles connection error handles requests with proxy supports open_timeout option retrieves the response headers supports timeout option retrieves the response body sends url encoded parameters sends request body handles proxy failures handles headers with multiple values sends url encoded nested parameters sends user agent represents empty body response as blank string parses the reason phrase with parallel setup handles parallel requests body handles parallel requests status #patch behaves like a request method sends url encoded nested parameters sends request body represents empty body response as blank string retrieves the response headers retrieves the response body supports timeout option handles connection error sends files parses the reason phrase sends user agent handles requests with proxy handles proxy failures handles headers with multiple values sends url encoded parameters binds local socket supports open_timeout option with parallel setup handles parallel requests body handles parallel requests status with SSL enabled #options behaves like a request method binds local socket handles requests with proxy retrieves the response headers parses the reason phrase retrieves the response body handles proxy failures represents empty body response as blank string handles connection error handles headers with multiple values sends url encoded nested parameters supports timeout option sends url encoded parameters sends user agent sends request body supports open_timeout option with parallel setup handles parallel requests body handles parallel requests status #put behaves like a request method sends url encoded nested parameters sends url encoded parameters retrieves the response headers sends files binds local socket handles requests with proxy parses the reason phrase handles headers with multiple values supports timeout option handles proxy failures retrieves the response body supports open_timeout option represents empty body response as blank string sends request body handles connection error sends user agent with parallel setup handles parallel requests status handles parallel requests body #trace behaves like a request method sends url encoded nested parameters retrieves the response body represents empty body response as blank string sends user agent sends request body handles requests with proxy handles proxy failures binds local socket retrieves the response headers handles headers with multiple values parses the reason phrase supports open_timeout option sends url encoded parameters supports timeout option handles connection error with parallel setup handles parallel requests status handles parallel requests body #head behaves like a request method handles connection error handles proxy failures sends user agent parses the reason phrase supports timeout option supports open_timeout option binds local socket sends request body handles headers with multiple values handles requests with proxy sends url encoded parameters retrieves the response headers sends url encoded nested parameters represents empty body response as blank string with parallel setup handles parallel requests status #patch behaves like a request method supports open_timeout option sends request body handles connection error handles requests with proxy retrieves the response body parses the reason phrase supports timeout option sends url encoded nested parameters retrieves the response headers handles proxy failures sends url encoded parameters sends files represents empty body response as blank string binds local socket handles headers with multiple values sends user agent with parallel setup handles parallel requests body handles parallel requests status #get behaves like a request method sends user agent handles requests with proxy binds local socket supports open_timeout option handles connection error supports timeout option parses the reason phrase handles proxy failures retrieves the response headers handles headers with multiple values sends url encoded parameters sends url encoded nested parameters retrieves the response body sends request body represents empty body response as blank string with parallel setup handles parallel requests body handles parallel requests status #post behaves like a request method sends files handles headers with multiple values handles connection error retrieves the response headers retrieves the response body sends request body sends user agent parses the reason phrase binds local socket supports timeout option handles requests with proxy supports open_timeout option handles proxy failures represents empty body response as blank string sends url encoded nested parameters sends url encoded parameters with parallel setup handles parallel requests body handles parallel requests status #delete behaves like a request method retrieves the response body handles connection error sends user agent retrieves the response headers handles requests with proxy handles proxy failures sends request body parses the reason phrase supports open_timeout option represents empty body response as blank string sends url encoded parameters sends url encoded nested parameters supports timeout option binds local socket handles headers with multiple values with parallel setup handles parallel requests status handles parallel requests body Options configures timeout and open_timeout configures all timeout settings configures timeout Faraday::Adapter::Excon allows to provide adapter specific configs config sets open_timeout sets timeout sets timeout and open_timeout behaves like an adapter with SSL disabled #head behaves like a request method handles connection error handles requests with proxy sends user agent retrieves the response headers supports timeout option represents empty body response as blank string sends url encoded parameters handles proxy failures handles headers with multiple values supports open_timeout option retrieves the response body parses the reason phrase sends request body sends url encoded nested parameters #delete behaves like a request method supports timeout option handles proxy failures supports open_timeout option retrieves the response headers handles headers with multiple values represents empty body response as blank string sends url encoded nested parameters retrieves the response body sends user agent parses the reason phrase handles connection error sends request body handles requests with proxy sends url encoded parameters #post behaves like a request method handles requests with proxy sends url encoded nested parameters supports open_timeout option sends request body represents empty body response as blank string handles connection error sends files sends user agent retrieves the response headers handles proxy failures supports timeout option retrieves the response body parses the reason phrase handles headers with multiple values sends url encoded parameters #patch behaves like a request method retrieves the response headers sends user agent represents empty body response as blank string handles proxy failures handles headers with multiple values handles requests with proxy supports timeout option supports open_timeout option sends request body handles connection error parses the reason phrase sends files sends url encoded nested parameters retrieves the response body sends url encoded parameters #options behaves like a request method handles proxy failures handles requests with proxy parses the reason phrase supports timeout option sends request body supports open_timeout option represents empty body response as blank string handles headers with multiple values retrieves the response headers sends url encoded nested parameters sends user agent sends url encoded parameters handles connection error retrieves the response body #get behaves like a request method sends user agent retrieves the response headers supports timeout option parses the reason phrase supports open_timeout option sends url encoded parameters handles headers with multiple values handles proxy failures represents empty body response as blank string retrieves the response body sends request body handles connection error sends url encoded nested parameters handles requests with proxy #trace behaves like a request method sends request body retrieves the response headers retrieves the response body handles headers with multiple values handles proxy failures sends url encoded nested parameters sends url encoded parameters sends user agent represents empty body response as blank string supports open_timeout option parses the reason phrase handles connection error handles requests with proxy supports timeout option #put behaves like a request method represents empty body response as blank string sends url encoded nested parameters sends url encoded parameters supports open_timeout option handles proxy failures handles connection error supports timeout option sends request body parses the reason phrase retrieves the response body sends files retrieves the response headers handles requests with proxy handles headers with multiple values sends user agent with SSL enabled #get behaves like a request method parses the reason phrase sends url encoded parameters supports timeout option sends url encoded nested parameters retrieves the response headers handles headers with multiple values retrieves the response body handles requests with proxy sends request body sends user agent handles proxy failures supports open_timeout option handles connection error represents empty body response as blank string #delete behaves like a request method handles connection error sends request body retrieves the response headers handles proxy failures sends url encoded nested parameters sends user agent sends url encoded parameters retrieves the response body handles headers with multiple values handles requests with proxy supports open_timeout option represents empty body response as blank string parses the reason phrase supports timeout option #post behaves like a request method retrieves the response body handles headers with multiple values sends files handles requests with proxy supports open_timeout option supports timeout option retrieves the response headers sends user agent sends request body parses the reason phrase sends url encoded nested parameters handles proxy failures handles connection error represents empty body response as blank string sends url encoded parameters #options behaves like a request method sends url encoded nested parameters sends request body sends user agent retrieves the response headers sends url encoded parameters handles proxy failures handles requests with proxy supports timeout option represents empty body response as blank string handles connection error parses the reason phrase supports open_timeout option handles headers with multiple values retrieves the response body #head behaves like a request method sends url encoded nested parameters sends url encoded parameters handles connection error supports timeout option handles proxy failures represents empty body response as blank string retrieves the response headers handles requests with proxy sends user agent sends request body retrieves the response body supports open_timeout option parses the reason phrase handles headers with multiple values #patch behaves like a request method sends request body sends user agent represents empty body response as blank string sends files parses the reason phrase supports open_timeout option handles requests with proxy sends url encoded parameters supports timeout option handles proxy failures retrieves the response headers sends url encoded nested parameters handles headers with multiple values handles connection error retrieves the response body #trace behaves like a request method retrieves the response headers supports open_timeout option supports timeout option sends url encoded nested parameters represents empty body response as blank string sends request body parses the reason phrase handles requests with proxy sends user agent handles connection error handles headers with multiple values sends url encoded parameters handles proxy failures retrieves the response body #put behaves like a request method retrieves the response headers sends url encoded nested parameters sends url encoded parameters handles proxy failures sends request body sends files supports open_timeout option handles headers with multiple values retrieves the response body parses the reason phrase handles connection error supports timeout option sends user agent handles requests with proxy represents empty body response as blank string Faraday::Options #merge merges options with hashes deeply merges options with hashes deeply merges options with nil deeply merges options with options having nil sub-options deeply merges two options #memoized requires block accepts block #each_value allows to iterate through values #each_key allows to iterate through keys #dup duplicate options but not sub-options #fetch when the fetched key has a value grabs value works with key when the fetched key has no value accepts block uses falsey default needs a default if key is missing #value? returns true if any key has that value #from is expected to raise NoMethodError works with options with sub object works with options works with nil works with deep hash respects inheritance works with hash with sub object works with hash #clear clears the options #update updates options from hashes #delete allows to remove value for key #deep_dup duplicate options and also suboptions #empty? returns true only if all options are nil #key? returns true if the key exists and is not nil Faraday::Adapter::Typhoeus behaves like an adapter with SSL disabled #delete behaves like a request method handles proxy failures supports open_timeout option sends url encoded parameters retrieves the response headers handles connection error represents empty body response as blank string sends url encoded nested parameters sends user agent retrieves the response body handles requests with proxy sends request body handles headers with multiple values supports timeout option with parallel setup handles parallel requests body handles parallel requests status #post behaves like a request method handles headers with multiple values handles requests with proxy sends request body handles proxy failures handles connection error sends url encoded nested parameters supports open_timeout option sends files sends user agent retrieves the response headers retrieves the response body supports timeout option represents empty body response as blank string sends url encoded parameters with parallel setup handles parallel requests status handles parallel requests body #patch behaves like a request method retrieves the response body sends user agent sends url encoded parameters supports open_timeout option sends files retrieves the response headers handles proxy failures sends request body represents empty body response as blank string handles requests with proxy supports timeout option sends url encoded nested parameters handles connection error handles headers with multiple values with parallel setup handles parallel requests body handles parallel requests status #get behaves like a request method sends url encoded nested parameters handles connection error handles requests with proxy sends user agent retrieves the response body sends request body handles proxy failures handles headers with multiple values represents empty body response as blank string supports timeout option supports open_timeout option retrieves the response headers sends url encoded parameters with parallel setup handles parallel requests body handles parallel requests status #options behaves like a request method sends request body handles connection error handles requests with proxy retrieves the response body represents empty body response as blank string handles headers with multiple values sends url encoded nested parameters supports open_timeout option retrieves the response headers handles proxy failures supports timeout option sends user agent sends url encoded parameters with parallel setup handles parallel requests body handles parallel requests status #put behaves like a request method retrieves the response body sends user agent supports open_timeout option sends url encoded parameters retrieves the response headers sends files sends request body handles proxy failures sends url encoded nested parameters handles requests with proxy handles connection error supports timeout option handles headers with multiple values represents empty body response as blank string with parallel setup handles parallel requests status handles parallel requests body #trace behaves like a request method represents empty body response as blank string supports open_timeout option supports timeout option retrieves the response body handles proxy failures handles requests with proxy sends url encoded parameters sends request body sends user agent handles headers with multiple values handles connection error sends url encoded nested parameters retrieves the response headers with parallel setup handles parallel requests status handles parallel requests body #head behaves like a request method handles connection error represents empty body response as blank string supports timeout option handles headers with multiple values handles requests with proxy sends request body sends user agent retrieves the response headers handles proxy failures retrieves the response body sends url encoded nested parameters sends url encoded parameters supports open_timeout option with parallel setup handles parallel requests status handles parallel requests body with SSL enabled #trace behaves like a request method sends user agent sends url encoded parameters retrieves the response body handles proxy failures sends url encoded nested parameters handles requests with proxy handles connection error retrieves the response headers handles headers with multiple values supports open_timeout option represents empty body response as blank string sends request body supports timeout option with parallel setup handles parallel requests body handles parallel requests status #delete behaves like a request method sends request body retrieves the response body retrieves the response headers handles headers with multiple values handles connection error supports timeout option handles requests with proxy sends user agent supports open_timeout option handles proxy failures sends url encoded nested parameters sends url encoded parameters represents empty body response as blank string with parallel setup handles parallel requests body handles parallel requests status #patch behaves like a request method supports open_timeout option sends url encoded nested parameters retrieves the response headers handles connection error sends files sends request body sends user agent handles proxy failures handles headers with multiple values handles requests with proxy retrieves the response body represents empty body response as blank string supports timeout option sends url encoded parameters with parallel setup handles parallel requests status handles parallel requests body #options behaves like a request method sends url encoded parameters supports open_timeout option retrieves the response headers sends url encoded nested parameters handles proxy failures handles headers with multiple values handles connection error retrieves the response body sends request body represents empty body response as blank string handles requests with proxy supports timeout option sends user agent with parallel setup handles parallel requests body handles parallel requests status #put behaves like a request method handles requests with proxy supports open_timeout option handles connection error represents empty body response as blank string handles headers with multiple values handles proxy failures sends request body sends url encoded parameters retrieves the response body retrieves the response headers supports timeout option sends url encoded nested parameters sends files sends user agent with parallel setup handles parallel requests status handles parallel requests body #post behaves like a request method retrieves the response headers represents empty body response as blank string handles connection error sends user agent sends files supports open_timeout option supports timeout option sends request body retrieves the response body handles headers with multiple values handles requests with proxy sends url encoded nested parameters handles proxy failures sends url encoded parameters with parallel setup handles parallel requests body handles parallel requests status #head behaves like a request method supports timeout option handles connection error sends user agent supports open_timeout option represents empty body response as blank string retrieves the response headers retrieves the response body handles headers with multiple values sends url encoded nested parameters sends request body handles requests with proxy sends url encoded parameters handles proxy failures with parallel setup handles parallel requests body handles parallel requests status #get behaves like a request method handles headers with multiple values supports open_timeout option handles requests with proxy sends user agent retrieves the response headers retrieves the response body sends url encoded nested parameters sends url encoded parameters sends request body supports timeout option represents empty body response as blank string handles connection error handles proxy failures with parallel setup handles parallel requests status handles parallel requests body Faraday::Response is expected to raise RuntimeError is expected to eq "text/plain" is expected to be truthy is expected to eq "text/plain" is expected to be falsey is expected to eq 404 is expected to eq "yikes" #on_complete parse body on finish can access response body in on_complete callback can access response body in on_complete callback #apply_request is expected to eq "yikes" is expected to eq :post #to_hash is expected to eq {"Content-Type"=>"text/plain"} is expected to eq 404 is expected to be a kind of Hash is expected to eq "yikes" marshal serialization support is expected to eq 404 is expected to be nil is expected to eq {"Content-Type"=>"text/plain"} is expected to eq "yikes" Faraday::Env ignores false when fetching allows to access symbol non members retains custom members allows to access members allows to access string non members #body when response is not finished yet returns the request body when response is finished allows to access response_body allows to access request_body returns the response body Faraday::NestedParamsEncoder decodes nested ignores invalid array decodes nested array mixed types encodes boolean values in array encodes empty string array value decodes nested ignores repeated array notation encodes boolean values decodes nested final value overrides any type encodes nil array value decodes nested arrays rack compat decodes nested subkeys dont have to be in brackets decodes hashes decodes arrays encodes empty array value encodes rack compat decodes nested ignores malformed keys behaves like a params encoder encodes nil raises type error for empty string escapes safe buffer when expecting hash but getting string behaves like a wrong decoding is expected to raise TypeError when expecting hash but getting array behaves like a wrong decoding is expected to raise TypeError when expecting array but getting string behaves like a wrong decoding is expected to raise TypeError when expecting array but getting hash behaves like a wrong decoding is expected to raise TypeError when expecting nested hash but getting non nested behaves like a wrong decoding is expected to raise TypeError Faraday::Request::Multipart UploadIO: when multipart objects in array param forms a multipart request behaves like a multipart request generates a unique boundary for each request FilePart: when multipart objects in array param forms a multipart request behaves like a multipart request generates a unique boundary for each request FilePart: when multipart objects in param forms a multipart request behaves like a multipart request generates a unique boundary for each request UploadIO: when providing json and IO content in the same payload forms a multipart request behaves like a multipart request generates a unique boundary for each request FilePart: when providing json and IO content in the same payload forms a multipart request behaves like a multipart request generates a unique boundary for each request UploadIO: when multipart objects in param forms a multipart request behaves like a multipart request generates a unique boundary for each request Faraday::Request::UrlEncoded ignores custom content type works with unicode works with nested params works with with headers works with no headers works with non nested params works with nested keys does nothing without payload customising default_space_encoding uses the custom character to encode spaces Faraday::AdapterRegistry #initialize is expected to raise NameError caches lookups with explicit name caches lookups with implicit name looks up class by symbol name is expected to raise NameError looks up class by string name Faraday::Response::RaiseError raises Faraday::NilStatusError for nil status in response raises Faraday::ConflictError for 409 responses raises Faraday::ResourceNotFound for 404 responses raises Faraday::UnprocessableEntityError for 422 responses raises Faraday::ClientError for other 4xx responses raises Faraday::ProxyAuthError for 407 responses raises Faraday::ForbiddenError for 403 responses raises Faraday::ServerError for 500 responses raises Faraday::BadRequestError for 400 responses raises no exception for 200 responses raises Faraday::UnauthorizedError for 401 responses Faraday::RequestOptions allows to set the request proxy Faraday::Request::Authorization basic_auth when passed very long values is expected to eq "Basic QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQU...UFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBOg==" and request already has an authentication header does not interfere with existing authorization when passed correct params is expected to eq "Basic YWxhZGRpbjpvcGVuc2VzYW1l" and request already has an authentication header does not interfere with existing authorization authorization when passed two strings is expected to eq "custom abc def" and request already has an authentication header does not interfere with existing authorization when passed a string and a hash is expected to eq "baz foo=\"42\"" and request already has an authentication header does not interfere with existing authorization token_auth when passed correct params is expected to eq "Token token=\"quux\"" and request already has an authentication header does not interfere with existing authorization when other values are provided is expected to match /token="baz"/ is expected to match /foo="42"/ is expected to match /^Token / and request already has an authentication header does not interfere with existing authorization Faraday::Request::Retry retry_after header support when retry_after bigger than interval is expected to be > 0.5 when retry_after smaller than interval is expected to be > 0.2 when retry_after is a timestamp is expected to be > 1 when retry_after is bigger than max_interval is expected to eq 1 when method is not idempotent is expected to eq 1 #calculate_retry_interval with exponential backoff and max_interval is expected to eq 0.3 is expected to eq 0.3 is expected to eq 0.2 is expected to eq 0.1 with exponential backoff and interval_randomness is expected to be between 0.1 and 0.15 (inclusive) with exponential backoff is expected to eq 0.1 is expected to eq 0.2 is expected to eq 0.4 when an unexpected error happens is expected to eq 1 and this is passed as a custom exception is expected to eq 3 when no exception raised and response code is in retry_statuses is expected to eq 2 and response code is not in retry_statuses is expected to eq 1 when an expected error happens is expected to eq 3 and legacy max_retry set to -9 is expected to eq 1 and new max_retry set to 3 is expected to eq 4 and new max_retry set to -9 is expected to eq 1 and legacy max_retry set to 1 is expected to eq 2 and both max_retry and interval are set is expected to be within 0.04 of 0.2 retry_if option retries if retry_if block always returns true does not retry if retry_if block returns false checking exception FilePart: should rewind files on retry UploadIO: should rewind files on retry does not retry if retry_if block returns false checking env with empty list of methods to retry calls retry_if for all methods when explicitly specifying methods to retry does not call retry_if for specified methods Faraday::Adapter::HTTPClient allows to provide adapter specific configs behaves like an adapter with SSL enabled #delete behaves like a request method represents empty body response as blank string handles deflate compression handles connection error supports open_timeout option retrieves the response body sends url encoded parameters supports timeout option handles gzip compression retrieves the response headers sends user agent sends url encoded nested parameters parses the reason phrase handles proxy failures sends request body handles headers with multiple values handles requests with proxy binds local socket #post behaves like a request method retrieves the response headers handles proxy failures sends url encoded parameters binds local socket handles headers with multiple values handles requests with proxy sends request body supports timeout option sends files handles gzip compression represents empty body response as blank string sends user agent handles connection error parses the reason phrase supports open_timeout option handles deflate compression retrieves the response body sends url encoded nested parameters #options behaves like a request method binds local socket supports open_timeout option handles headers with multiple values supports timeout option sends url encoded parameters handles connection error retrieves the response body retrieves the response headers sends user agent parses the reason phrase represents empty body response as blank string handles gzip compression sends request body handles proxy failures sends url encoded nested parameters handles requests with proxy handles deflate compression #put behaves like a request method handles proxy failures handles deflate compression handles requests with proxy sends user agent binds local socket supports open_timeout option retrieves the response body sends files sends url encoded parameters retrieves the response headers represents empty body response as blank string parses the reason phrase sends request body sends url encoded nested parameters handles gzip compression handles headers with multiple values supports timeout option handles connection error #head behaves like a request method parses the reason phrase handles proxy failures retrieves the response headers handles connection error sends url encoded nested parameters represents empty body response as blank string handles headers with multiple values sends request body retrieves the response body binds local socket supports open_timeout option sends user agent supports timeout option sends url encoded parameters handles requests with proxy #get behaves like a request method represents empty body response as blank string handles connection error handles requests with proxy retrieves the response headers binds local socket sends url encoded parameters sends user agent parses the reason phrase handles deflate compression retrieves the response body handles proxy failures supports open_timeout option sends request body supports timeout option handles gzip compression handles headers with multiple values sends url encoded nested parameters #patch behaves like a request method handles headers with multiple values handles connection error handles requests with proxy represents empty body response as blank string supports timeout option supports open_timeout option handles proxy failures sends url encoded nested parameters parses the reason phrase sends user agent handles deflate compression sends url encoded parameters handles gzip compression sends request body sends files retrieves the response body retrieves the response headers binds local socket #trace behaves like a request method represents empty body response as blank string sends url encoded parameters sends url encoded nested parameters binds local socket handles requests with proxy sends request body handles proxy failures handles headers with multiple values retrieves the response headers retrieves the response body supports open_timeout option parses the reason phrase handles gzip compression handles connection error handles deflate compression sends user agent supports timeout option with SSL disabled #options behaves like a request method sends url encoded parameters supports open_timeout option handles gzip compression sends user agent retrieves the response headers handles deflate compression handles requests with proxy retrieves the response body represents empty body response as blank string parses the reason phrase handles headers with multiple values handles connection error sends request body handles proxy failures sends url encoded nested parameters binds local socket supports timeout option #patch behaves like a request method supports open_timeout option represents empty body response as blank string handles proxy failures parses the reason phrase binds local socket supports timeout option handles requests with proxy handles connection error sends url encoded parameters retrieves the response headers sends user agent retrieves the response body sends url encoded nested parameters handles deflate compression handles headers with multiple values sends files sends request body handles gzip compression #trace behaves like a request method sends request body handles connection error parses the reason phrase represents empty body response as blank string retrieves the response body handles headers with multiple values handles deflate compression supports open_timeout option binds local socket handles requests with proxy handles gzip compression sends user agent retrieves the response headers supports timeout option sends url encoded nested parameters sends url encoded parameters handles proxy failures #head behaves like a request method represents empty body response as blank string sends url encoded parameters handles headers with multiple values supports timeout option retrieves the response body supports open_timeout option sends url encoded nested parameters parses the reason phrase handles connection error sends request body sends user agent binds local socket handles proxy failures retrieves the response headers handles requests with proxy #post behaves like a request method sends files retrieves the response body handles proxy failures sends url encoded nested parameters supports timeout option parses the reason phrase handles headers with multiple values handles requests with proxy binds local socket retrieves the response headers sends url encoded parameters sends request body represents empty body response as blank string handles gzip compression supports open_timeout option handles connection error handles deflate compression sends user agent #get behaves like a request method handles connection error sends url encoded parameters sends url encoded nested parameters sends request body handles requests with proxy supports timeout option handles proxy failures supports open_timeout option sends user agent binds local socket retrieves the response headers retrieves the response body handles headers with multiple values handles gzip compression handles deflate compression represents empty body response as blank string parses the reason phrase #delete behaves like a request method handles requests with proxy retrieves the response headers sends request body sends user agent handles gzip compression handles deflate compression sends url encoded parameters binds local socket handles headers with multiple values represents empty body response as blank string supports open_timeout option sends url encoded nested parameters handles connection error supports timeout option parses the reason phrase retrieves the response body handles proxy failures #put behaves like a request method supports timeout option sends url encoded parameters handles requests with proxy sends request body represents empty body response as blank string retrieves the response headers sends user agent parses the reason phrase supports open_timeout option sends url encoded nested parameters handles deflate compression handles proxy failures sends files handles headers with multiple values handles gzip compression binds local socket retrieves the response body handles connection error Options configures multiple timeouts configures open timeout configures timeout Faraday::ClientError .initialize with string is expected to be nil is expected to eq "custom message" is expected to eq "#>" is expected to be nil with response hash is expected to eq "#400}>" is expected to be nil is expected to eq "the server responded with status 400" is expected to eq {:status=>400} with exception only is expected to eq nil is expected to eq # is expected to eq "#>" is expected to eq "test" is expected to be nil with anything else #to_s is expected to eq "#>" is expected to be nil is expected to eq "[\"error1\", \"error2\"]" is expected to be nil Faraday::Adapter::NetHttpPersistent sets max_retries to 0 allows to provide adapter specific configs allows to set pool_size on initialize min_version behaves like an adapter with SSL enabled #post behaves like a request method sends url encoded nested parameters sends request body handles requests with proxy represents empty body response as blank string parses the reason phrase sends user agent handles proxy failures supports timeout option retrieves the response headers handles deflate compression sends files handles headers with multiple values handles gzip compression handles connection error supports open_timeout option sends url encoded parameters retrieves the response body #patch behaves like a request method handles gzip compression sends user agent supports timeout option sends url encoded nested parameters parses the reason phrase retrieves the response headers handles connection error supports open_timeout option sends files represents empty body response as blank string handles deflate compression handles proxy failures sends request body sends url encoded parameters handles requests with proxy retrieves the response body handles headers with multiple values #options behaves like a request method represents empty body response as blank string sends request body handles gzip compression sends url encoded parameters retrieves the response body sends user agent handles headers with multiple values sends url encoded nested parameters handles proxy failures supports open_timeout option supports timeout option handles requests with proxy handles deflate compression parses the reason phrase handles connection error retrieves the response headers #put behaves like a request method parses the reason phrase sends user agent handles requests with proxy handles connection error sends request body sends url encoded parameters supports timeout option supports open_timeout option handles headers with multiple values retrieves the response body handles deflate compression sends files retrieves the response headers represents empty body response as blank string handles gzip compression handles proxy failures sends url encoded nested parameters #head behaves like a request method supports timeout option sends url encoded parameters parses the reason phrase handles headers with multiple values handles proxy failures retrieves the response headers supports open_timeout option handles connection error sends user agent sends url encoded nested parameters handles requests with proxy retrieves the response body sends request body represents empty body response as blank string #delete behaves like a request method retrieves the response headers handles connection error sends url encoded nested parameters supports timeout option handles headers with multiple values handles deflate compression supports open_timeout option represents empty body response as blank string retrieves the response body parses the reason phrase handles proxy failures handles gzip compression sends url encoded parameters sends request body sends user agent handles requests with proxy #trace behaves like a request method sends url encoded nested parameters supports open_timeout option sends user agent retrieves the response headers handles requests with proxy handles proxy failures handles gzip compression represents empty body response as blank string supports timeout option handles connection error handles headers with multiple values retrieves the response body handles deflate compression parses the reason phrase sends request body sends url encoded parameters #get behaves like a request method handles connection error sends url encoded nested parameters retrieves the response body supports timeout option handles proxy failures handles gzip compression handles deflate compression represents empty body response as blank string supports open_timeout option sends user agent handles requests with proxy parses the reason phrase retrieves the response headers sends url encoded parameters handles headers with multiple values sends request body with SSL disabled #head behaves like a request method handles proxy failures retrieves the response headers represents empty body response as blank string handles connection error sends request body supports open_timeout option supports timeout option retrieves the response body handles requests with proxy sends user agent parses the reason phrase sends url encoded nested parameters sends url encoded parameters handles headers with multiple values #options behaves like a request method handles connection error retrieves the response body represents empty body response as blank string parses the reason phrase handles headers with multiple values sends request body sends url encoded parameters handles gzip compression supports timeout option handles requests with proxy handles deflate compression retrieves the response headers supports open_timeout option sends url encoded nested parameters sends user agent handles proxy failures #trace behaves like a request method supports open_timeout option sends url encoded nested parameters sends user agent handles gzip compression handles proxy failures handles connection error handles requests with proxy parses the reason phrase represents empty body response as blank string sends request body sends url encoded parameters handles deflate compression retrieves the response body retrieves the response headers supports timeout option handles headers with multiple values #patch behaves like a request method handles connection error handles proxy failures sends files parses the reason phrase handles requests with proxy handles deflate compression handles headers with multiple values sends url encoded nested parameters sends request body supports timeout option sends user agent handles gzip compression retrieves the response headers represents empty body response as blank string supports open_timeout option sends url encoded parameters retrieves the response body #post behaves like a request method supports timeout option sends url encoded nested parameters sends url encoded parameters handles gzip compression parses the reason phrase handles proxy failures sends files handles requests with proxy represents empty body response as blank string sends user agent retrieves the response body retrieves the response headers handles headers with multiple values supports open_timeout option handles connection error sends request body handles deflate compression #get behaves like a request method handles proxy failures supports open_timeout option supports timeout option handles gzip compression handles connection error sends user agent represents empty body response as blank string parses the reason phrase retrieves the response headers handles requests with proxy handles deflate compression sends request body sends url encoded nested parameters retrieves the response body handles headers with multiple values sends url encoded parameters #delete behaves like a request method handles proxy failures represents empty body response as blank string handles deflate compression supports open_timeout option sends request body sends url encoded parameters retrieves the response body retrieves the response headers handles requests with proxy supports timeout option handles headers with multiple values sends user agent handles gzip compression sends url encoded nested parameters handles connection error parses the reason phrase #put behaves like a request method handles requests with proxy sends user agent represents empty body response as blank string parses the reason phrase retrieves the response body handles gzip compression handles connection error sends files retrieves the response headers sends request body handles headers with multiple values supports timeout option handles proxy failures sends url encoded nested parameters supports open_timeout option sends url encoded parameters handles deflate compression Faraday::Connection #close can close underlying app default_connection_options assigning a default value behaves like default connection options default connection options persist with an instance overriding works with implicit url default connection uses default connection options works with option url works with instance connection options assigning a hash behaves like default connection options works with implicit url default connection uses default connection options default connection options persist with an instance overriding works with option url works with instance connection options #build_request is expected to be empty is expected to be truthy is expected to eq ["Authorization"] is expected to be falsey #to_env parses url params into query escapes per spec bracketizes repeated params in query bracketizes nested params in query without braketizing repeated params in query #build_url merges params uses params .new with implicit url param behaves like initializer with url with simple url is expected to eq {} is expected to eq "http" is expected to eq "/" is expected to eq 80 is expected to eq "sushi.com" with complex url is expected to eq {"a"=>"1"} is expected to eq "/fish" is expected to eq 815 with custom builder is expected to eq # with explicit url param behaves like initializer with url with complex url is expected to eq {"a"=>"1"} is expected to eq "/fish" is expected to eq 815 with simple url is expected to eq {} is expected to eq "/" is expected to eq "http" is expected to eq "sushi.com" is expected to eq 80 with empty block is expected to eq 0 with custom params and params in url is expected to eq {"a"=>3, "b"=>"2"} with custom headers is expected to eq "Faraday" with block is expected to eq 0 is expected to eq "/omnom" with ssl false is expected to be falsey with custom params is expected to eq {"a"=>1} #build_exclusive_url allows to provide params argument does not use connection params overrides connection port for absolute url does not add ending slash given empty url handles uri instances does not add ending slash given nil url with absolute path example at ./spec/faraday/connection_spec.rb:198 is expected to eq "/sake.html" is expected to eq "/sake.html" is expected to eq "/sake.html" with relative path uses connection host as default host is expected to eq "/fish/sake.html" is expected to eq "/fish/sake.html" is expected to eq "/fish/sake.html" is expected to eq "/sake.html" with complete url is expected to eq "a=1" is expected to eq "http" is expected to eq "/sake.html" is expected to eq 80 is expected to eq "sushi.com" with url_prefixed connection parses url and changes scheme joins url to base with ending slash overrides base used default base with ending slash #dup is expected to eq # is expected to eq "1" is expected to eq "text/plain" after manual changes is expected to be falsey is expected to eq 1 is expected to eq 5 is expected to be falsey is expected to be nil is expected to eq 1 #respond_to? is expected to be truthy is expected to be truthy basic_auth calling the #basic_auth method is expected to eq "Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==" adding basic auth info to url is expected to eq "Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==" request params with simple url test_overrides_request_params_block_url test_overrides_request_params test_overrides_request_params_block with url and extra params allows to set params_encoder for single request merges connection and request params allows to override all params with flat params encoder supports array params in params with array param in url is expected to request GET http://example.com/?color=blue 1 time with default params encoder supports array params in url supports array params in params proxy support allows when url not in no proxy list uses env http_proxy accepts string ignores env proxy if set that way accepts uri gives priority to manually set proxy accepts http env fetches no proxy from nil env fetches no proxy from blank env uses processes no_proxy before http_proxy test proxy requires uri does not accept uppercase env allows when url is not in no proxy list but ip address is accepts http env with auth allows in multi element no proxy list allows when subdomain url is in no proxy list uses env https_proxy uses processes no_proxy before https_proxy allows when prefixed url is not in no proxy list accepts hash accepts hash with string uri allows when url in no proxy list accepts env without scheme allows when ip address is not in no proxy list but url is performing a request dynamically checks proxy dynamically check no proxy #token_auth is expected to eq "Token nonce=\"abc\", token=\"abcdef\"" Faraday::ProxyOptions allows hash access #from works with string works with no auth works with nil Faraday::Middleware #close with app that doesn't support #close should issue warning with app that supports #close should issue warning Faraday::Request::Instrumentation instruments with default name defaults to ActiveSupport::Notifications is expected to eq "request.faraday" with custom name is expected to eq "custom" instruments with custom name with custom instrumenter is expected to eq :custom Faraday::Utils::Headers #fetch raises an error if key not found is expected to eq "application/json" is expected to eq "application/json" is expected to be nil is expected to eq false is expected to eq "application/json" is expected to eq "default" calls a block when provided is expected to eq "Invalid key" when Content-Type is set to application/json is expected to eq ["Content-Type"] is expected to eq "application/json" is expected to eq "application/json" is expected to include "content-type" is expected to eq "application/json" when Content-Type is set to application/xml is expected to eq ["Content-Type"] is expected to eq "application/xml" is expected to eq "application/xml" is expected to eq "application/xml" is expected to include "content-type" #parse when response headers include a blank line is expected to eq "text/html" when response headers leave http status line out is expected to eq "text/html" is expected to eq "text/html" is expected to eq ["Content-Type"] when response headers values include a colon is expected to eq "http://sushi.com/" #delete is expected to be nil is expected to eq 0 is expected to eq "application/json" is expected not to include "content-type" Faraday::CompositeReadIO with empty composite_io is expected to eq "" is expected to eq 0 is expected to be nil with 2 parts allows to read in chunks is expected to eq "abcd1234" is expected to eq 8 allows to rewind while reading in chunks with empty parts is expected to be nil is expected to eq 0 is expected to eq "" with mix of empty and non-empty parts allows to read in chunks with utf8 multibyte part allows to read in chunks is expected to eq "\x86\xE3\x83\x95\xE3\x82\xA1\xE3\x82\xA4\xE3\x83\xAB" Faraday::Adapter::NetHttp behaves like an adapter with SSL enabled #options behaves like a request method supports timeout option sends user agent parses the reason phrase sends url encoded nested parameters handles requests with proxy retrieves the response headers handles headers with multiple values represents empty body response as blank string handles gzip compression handles deflate compression handles proxy failures handles connection error sends request body supports open_timeout option retrieves the response body sends url encoded parameters streaming when response is empty is expected to eq [["", 0]] when response contains big data handles streaming #delete behaves like a request method sends url encoded parameters handles requests with proxy handles deflate compression handles proxy failures parses the reason phrase handles connection error supports timeout option handles headers with multiple values supports open_timeout option sends url encoded nested parameters retrieves the response headers represents empty body response as blank string retrieves the response body sends request body handles gzip compression sends user agent streaming when response is empty is expected to eq [["", 0]] when response contains big data handles streaming #patch behaves like a request method handles gzip compression sends files handles connection error retrieves the response body handles headers with multiple values handles proxy failures represents empty body response as blank string supports open_timeout option supports timeout option parses the reason phrase handles requests with proxy sends url encoded nested parameters sends url encoded parameters sends request body retrieves the response headers handles deflate compression sends user agent streaming when response contains big data handles streaming when response is empty is expected to eq [["", 0]] #trace behaves like a request method retrieves the response body sends url encoded parameters supports open_timeout option sends user agent handles connection error supports timeout option handles gzip compression handles headers with multiple values handles requests with proxy sends url encoded nested parameters retrieves the response headers handles deflate compression sends request body parses the reason phrase represents empty body response as blank string handles proxy failures streaming when response is empty is expected to eq [["", 0]] when response contains big data handles streaming #head behaves like a request method represents empty body response as blank string handles connection error sends url encoded parameters sends request body supports timeout option parses the reason phrase retrieves the response headers handles requests with proxy handles headers with multiple values retrieves the response body sends url encoded nested parameters supports open_timeout option sends user agent handles proxy failures streaming when response contains big data handles streaming when response is empty is expected to eq [["", 0]] #put behaves like a request method handles connection error sends user agent sends url encoded parameters handles deflate compression supports open_timeout option handles gzip compression sends files handles headers with multiple values handles proxy failures retrieves the response headers parses the reason phrase sends request body handles requests with proxy sends url encoded nested parameters supports timeout option represents empty body response as blank string retrieves the response body streaming when response is empty is expected to eq [["", 0]] when response contains big data handles streaming #post behaves like a request method sends url encoded parameters handles requests with proxy supports timeout option retrieves the response body handles proxy failures parses the reason phrase represents empty body response as blank string handles gzip compression sends user agent handles connection error sends files supports open_timeout option sends request body retrieves the response headers sends url encoded nested parameters handles headers with multiple values handles deflate compression streaming when response contains big data handles streaming when response is empty is expected to eq [["", 0]] #get behaves like a request method supports open_timeout option parses the reason phrase handles deflate compression handles proxy failures supports timeout option handles connection error sends url encoded nested parameters sends url encoded parameters sends request body sends user agent retrieves the response body retrieves the response headers represents empty body response as blank string handles gzip compression handles headers with multiple values handles requests with proxy streaming when response contains big data handles streaming when response is empty is expected to eq [["", 0]] with SSL disabled #options behaves like a request method supports timeout option handles headers with multiple values handles requests with proxy represents empty body response as blank string sends user agent sends request body retrieves the response headers handles gzip compression sends url encoded nested parameters retrieves the response body parses the reason phrase handles deflate compression handles connection error supports open_timeout option sends url encoded parameters handles proxy failures streaming when response contains big data handles streaming when response is empty is expected to eq [["", 0]] #put behaves like a request method sends url encoded nested parameters handles connection error supports open_timeout option represents empty body response as blank string sends request body sends url encoded parameters handles requests with proxy handles proxy failures sends files parses the reason phrase supports timeout option retrieves the response headers sends user agent handles headers with multiple values retrieves the response body handles deflate compression handles gzip compression streaming when response is empty is expected to eq [["", 0]] when response contains big data handles streaming #patch behaves like a request method represents empty body response as blank string handles proxy failures supports timeout option handles connection error parses the reason phrase retrieves the response headers handles deflate compression sends url encoded parameters handles headers with multiple values sends request body supports open_timeout option sends user agent handles requests with proxy handles gzip compression sends url encoded nested parameters sends files retrieves the response body streaming when response is empty is expected to eq [["", 0]] when response contains big data handles streaming #delete behaves like a request method sends url encoded parameters retrieves the response headers represents empty body response as blank string handles requests with proxy handles deflate compression supports open_timeout option sends request body sends user agent handles gzip compression handles headers with multiple values retrieves the response body supports timeout option handles proxy failures handles connection error sends url encoded nested parameters parses the reason phrase streaming when response contains big data handles streaming when response is empty is expected to eq [["", 0]] #post behaves like a request method sends url encoded nested parameters handles requests with proxy retrieves the response body supports timeout option sends request body sends url encoded parameters retrieves the response headers handles deflate compression supports open_timeout option handles connection error represents empty body response as blank string handles headers with multiple values sends user agent handles gzip compression handles proxy failures sends files parses the reason phrase streaming when response is empty is expected to eq [["", 0]] when response contains big data handles streaming #get behaves like a request method handles connection error retrieves the response headers sends request body represents empty body response as blank string handles gzip compression sends url encoded parameters supports open_timeout option sends user agent retrieves the response body handles deflate compression handles requests with proxy handles headers with multiple values supports timeout option handles proxy failures sends url encoded nested parameters parses the reason phrase streaming when response contains big data handles streaming when response is empty is expected to eq [["", 0]] #head behaves like a request method handles proxy failures sends request body retrieves the response headers represents empty body response as blank string sends url encoded parameters supports timeout option handles requests with proxy sends user agent retrieves the response body sends url encoded nested parameters supports open_timeout option handles connection error handles headers with multiple values parses the reason phrase streaming when response is empty is expected to eq [["", 0]] when response contains big data handles streaming #trace behaves like a request method handles deflate compression parses the reason phrase handles gzip compression retrieves the response headers supports open_timeout option supports timeout option retrieves the response body handles connection error sends user agent handles requests with proxy sends request body handles headers with multiple values handles proxy failures represents empty body response as blank string sends url encoded parameters sends url encoded nested parameters streaming when response contains big data handles streaming when response is empty is expected to eq [["", 0]] checking http sets max_retries to 0 supports write_timeout supports open_timeout is expected to eq 80 supports read_timeout with custom adapter config is expected to eq 123 with https url is expected to eq 443 with http url including port is expected to eq 1234 Faraday has a version number proxies to default_connection proxied methods can be accessed proxies methods that exist on the default_connection uses method_missing on Faraday if there is no proxyable method Faraday::FlatParamsEncoder decodes arrays decodes boolean values encodes empty array in hash encodes boolean values encodes boolean values in array behaves like a params encoder escapes safe buffer encodes nil raises type error for empty string Faraday::Response::Middleware with a custom ResponseMiddleware and private parse parses the response with a custom ResponseMiddleware but empty response raises exception for 200 responses doesn't call the middleware for 304 responses doesn't call the middleware for 204 responses with a custom ResponseMiddleware parses the response Faraday::Adapter #request_timeout gets :read timeout gets :write timeout gets :open timeout attempts unknown timeout type Faraday::RackBuilder when having two handlers allows to swap handlers allows insert_after allows to delete a handler allows insert_before when having a handler with broken dependency raises an error while making a request with custom registered middleware allows to register with Proc allows to register with string allows to register with symbol allows to register with constant with custom adapter only is expected to eq Faraday::Adapter::Test is expected to be nil when having a single handler allows use raises an error trying to use an unregistered symbol allows insert_before is expected to eq [Apple] allows rebuilding allows insert_after with custom handler and adapter dup stack is unlocked locks the stack after making a request allows to compare handlers with custom empty block is expected to be nil is expected to eq Faraday::Adapter::NetHttp with default stack is expected to eq Faraday::Adapter::NetHttp is expected to eq Faraday::Request::UrlEncoded Faraday::Utils URI parsing replaces headers hash parses with default parser escapes safe buffer parses with URI parses with block headers parsing parse headers for aggregated responses Faraday::Adapter::Rack behaves like an adapter with SSL enabled #delete behaves like a request method handles connection error sends request body supports timeout option handles headers with multiple values sends user agent supports open_timeout option handles proxy failures sends url encoded nested parameters represents empty body response as blank string retrieves the response body handles requests with proxy sends url encoded parameters retrieves the response headers #options behaves like a request method sends url encoded nested parameters sends url encoded parameters sends request body handles connection error represents empty body response as blank string handles headers with multiple values retrieves the response body supports timeout option sends user agent handles proxy failures retrieves the response headers supports open_timeout option handles requests with proxy #head behaves like a request method retrieves the response headers represents empty body response as blank string supports timeout option handles headers with multiple values supports open_timeout option handles connection error handles requests with proxy sends request body handles proxy failures sends url encoded parameters sends url encoded nested parameters sends user agent #get behaves like a request method sends url encoded parameters sends url encoded nested parameters handles requests with proxy handles proxy failures sends user agent retrieves the response headers handles headers with multiple values handles connection error retrieves the response body supports open_timeout option sends request body supports timeout option represents empty body response as blank string #post behaves like a request method supports open_timeout option retrieves the response headers handles requests with proxy represents empty body response as blank string sends files sends url encoded parameters sends url encoded nested parameters handles headers with multiple values supports timeout option handles connection error handles proxy failures retrieves the response body sends request body sends user agent #patch behaves like a request method retrieves the response body handles requests with proxy handles connection error sends user agent retrieves the response headers supports open_timeout option sends request body sends url encoded parameters handles headers with multiple values sends url encoded nested parameters represents empty body response as blank string supports timeout option handles proxy failures sends files #trace behaves like a request method supports open_timeout option handles proxy failures sends user agent sends url encoded nested parameters sends request body retrieves the response headers handles requests with proxy supports timeout option sends url encoded parameters handles headers with multiple values retrieves the response body handles connection error represents empty body response as blank string #put behaves like a request method supports open_timeout option handles connection error sends url encoded parameters sends files handles proxy failures sends url encoded nested parameters sends user agent supports timeout option handles headers with multiple values retrieves the response body retrieves the response headers sends request body represents empty body response as blank string handles requests with proxy with SSL disabled #patch behaves like a request method sends files handles connection error supports timeout option sends request body represents empty body response as blank string sends url encoded nested parameters handles headers with multiple values sends user agent sends url encoded parameters handles proxy failures handles requests with proxy retrieves the response body retrieves the response headers supports open_timeout option #head behaves like a request method supports timeout option represents empty body response as blank string retrieves the response headers handles proxy failures sends url encoded parameters supports open_timeout option sends url encoded nested parameters sends user agent handles headers with multiple values handles requests with proxy handles connection error sends request body #options behaves like a request method supports timeout option sends url encoded parameters sends request body sends user agent handles proxy failures handles connection error sends url encoded nested parameters supports open_timeout option handles requests with proxy retrieves the response headers handles headers with multiple values represents empty body response as blank string retrieves the response body #delete behaves like a request method supports open_timeout option handles connection error supports timeout option retrieves the response headers sends url encoded nested parameters sends url encoded parameters handles headers with multiple values represents empty body response as blank string sends request body handles proxy failures retrieves the response body sends user agent handles requests with proxy #put behaves like a request method sends files handles headers with multiple values handles requests with proxy represents empty body response as blank string handles proxy failures supports timeout option supports open_timeout option sends user agent handles connection error sends url encoded nested parameters retrieves the response body sends url encoded parameters sends request body retrieves the response headers #get behaves like a request method handles requests with proxy sends url encoded nested parameters sends url encoded parameters sends request body retrieves the response headers sends user agent retrieves the response body supports timeout option represents empty body response as blank string handles connection error handles headers with multiple values supports open_timeout option handles proxy failures #trace behaves like a request method handles requests with proxy retrieves the response headers supports timeout option represents empty body response as blank string supports open_timeout option handles connection error sends request body sends url encoded nested parameters handles headers with multiple values retrieves the response body handles proxy failures sends url encoded parameters sends user agent #post behaves like a request method handles headers with multiple values sends url encoded parameters represents empty body response as blank string sends files handles proxy failures sends user agent handles connection error retrieves the response headers sends request body sends url encoded nested parameters supports timeout option supports open_timeout option retrieves the response body handles requests with proxy Faraday::Response::Logger logs filter url logs response headers by default logs method and url logs request headers by default does not log response body by default does not log request body by default logs filter headers still returns output when not logging response headers does not log response headers if option is false when not logging request headers does not log request headers if option is false when logging response body log only response body when logging request body log only request body when logging request and response bodies logs filter body log request and response body log response body object when using log_level logs request/request body on the specified level (debug) does not log headers on the info level does not log request/response body on the info level logs headers on the debug level with default formatter delegates logging to the formatter without configuration defaults to stdout with custom formatter logs with custom formatter Finished in 6 minutes 3 seconds (files took 16.93 seconds to load) 2265 examples, 0 failures, 1 pending Randomized with seed 49075 + popd ~/build/BUILD/faraday-1.0.1 + RPM_EC=0 ++ jobs -p + exit 0 Processing files: rubygem-faraday-1.0.1-8.fc38.noarch Provides: rubygem(faraday) = 1.0.1 rubygem-faraday = 1.0.1-8.fc38 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: (rubygem(multipart-post) >= 1.2 with rubygem(multipart-post) < 3) ruby(rubygems) Processing files: rubygem-faraday-doc-1.0.1-8.fc38.noarch Provides: rubygem-faraday-doc = 1.0.1-8.fc38 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/rubygem-faraday-1.0.1-8.fc38.noarch Wrote: /builddir/build/RPMS/rubygem-faraday-1.0.1-8.fc38.noarch.rpm Wrote: /builddir/build/RPMS/rubygem-faraday-doc-1.0.1-8.fc38.noarch.rpm Child return code was: 0