Mock Version: 5.5 Mock Version: 5.5 Mock Version: 5.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/f40-build-51698535-6188353/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=201600uid=1000gid=425user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.s27zqrwo:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=False) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.s27zqrwo:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '0a32a0c119914beaae7bebaafba34a16', '-D', '/var/lib/mock/f40-build-51698535-6188353/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.s27zqrwo:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', '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', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1706227200 Wrote: /builddir/build/SRPMS/rubygem-faraday-1.0.1-12.fc40.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/f40-build-51698535-6188353/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=201600uid=1000gid=425user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.s27zqrwo:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=False) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.s27zqrwo:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '85903bd19f8d4cfeb14f1c55ec469e3d', '-D', '/var/lib/mock/f40-build-51698535-6188353/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.s27zqrwo:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', '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', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1706227200 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.VE6Ueb + 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 + rm -rf /builddir/build/BUILD/faraday-1.0.1-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/faraday-1.0.1-SPECPARTS + /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 + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/faraday-pr1523-testsuite-undefined-method-change.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.0E31Ex + 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 -m64 -march=z13 -mtune=z14 -fasynchronous-unwind-tables -fstack-clash-protection ' + 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 -m64 -march=z13 -mtune=z14 -fasynchronous-unwind-tables -fstack-clash-protection ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -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 -m64 -march=z13 -mtune=z14 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -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 -m64 -march=z13 -mtune=z14 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -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 -Wno-complain-wrong-lang -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 -m64 -march=z13 -mtune=z14 -fasynchronous-unwind-tables -fstack-clash-protection'\'' --with-cxxflags='\''-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -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 -m64 -march=z13 -mtune=z14 -fasynchronous-unwind-tables -fstack-clash-protection'\'' --with-ldflags='\''-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -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 0 seconds 1 gem installed + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.SxZe50 + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/rubygem-faraday-1.0.1-12.fc40.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/rubygem-faraday-1.0.1-12.fc40.noarch ++ dirname /builddir/build/BUILDROOT/rubygem-faraday-1.0.1-12.fc40.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/rubygem-faraday-1.0.1-12.fc40.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 -m64 -march=z13 -mtune=z14 -fasynchronous-unwind-tables -fstack-clash-protection ' + 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 -m64 -march=z13 -mtune=z14 -fasynchronous-unwind-tables -fstack-clash-protection ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -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 -m64 -march=z13 -mtune=z14 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -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 -m64 -march=z13 -mtune=z14 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -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-12.fc40.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-12.fc40.noarch/usr/share/gems/ + /usr/bin/find-debuginfo -j3 --strict-build-id -m -i --build-id-seed 1.0.1-12.fc40 --unique-debug-suffix -1.0.1-12.fc40.noarch --unique-debug-src-base rubygem-faraday-1.0.1-12.fc40.noarch --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/faraday-1.0.1 find-debuginfo: starting Extracting debug info from 0 files Creating .debug symlinks for symlinks to ELF files find-debuginfo: done + /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 -j3 + /usr/lib/rpm/redhat/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.wcWqzk + 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 -m64 -march=z13 -mtune=z14 -fasynchronous-unwind-tables -fstack-clash-protection ' + 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 -m64 -march=z13 -mtune=z14 -fasynchronous-unwind-tables -fstack-clash-protection ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -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 -m64 -march=z13 -mtune=z14 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -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 -m64 -march=z13 -mtune=z14 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes --cap-lints=warn' + export RUSTFLAGS ~/build/BUILD/faraday-1.0.1/usr/share/gems/gems/faraday-1.0.1 ~/build/BUILD/faraday-1.0.1 + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -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 16793 Faraday::Adapter::Rack behaves like an adapter with SSL disabled #post behaves like a request method retrieves the response headers handles headers with multiple values handles proxy failures retrieves the response body handles connection error supports timeout option sends url encoded nested parameters sends user agent sends request body supports open_timeout option sends url encoded parameters handles requests with proxy represents empty body response as blank string sends files #options behaves like a request method retrieves the response body retrieves the response headers represents empty body response as blank string handles requests with proxy sends url encoded nested parameters sends request body supports open_timeout option sends user agent handles proxy failures sends url encoded parameters supports timeout option handles headers with multiple values handles connection error #head behaves like a request method sends user agent handles headers with multiple values retrieves the response headers supports timeout option sends url encoded nested parameters sends request body represents empty body response as blank string handles requests with proxy sends url encoded parameters handles connection error supports open_timeout option handles proxy failures #patch behaves like a request method handles headers with multiple values represents empty body response as blank string sends files retrieves the response headers supports open_timeout option supports timeout option sends user agent handles connection error sends request body retrieves the response body handles proxy failures sends url encoded nested parameters sends url encoded parameters handles requests with proxy #put behaves like a request method retrieves the response headers sends files supports timeout option handles connection error handles proxy failures retrieves the response body sends url encoded parameters handles requests with proxy sends url encoded nested parameters sends user agent represents empty body response as blank string sends request body supports open_timeout option handles headers with multiple values #trace behaves like a request method represents empty body response as blank string handles headers with multiple values supports open_timeout option handles proxy failures sends url encoded parameters handles requests with proxy retrieves the response body supports timeout option sends user agent retrieves the response headers handles connection error sends request body sends url encoded nested parameters #delete behaves like a request method handles requests with proxy supports open_timeout option supports timeout option represents empty body response as blank string retrieves the response body sends url encoded nested parameters retrieves the response headers handles headers with multiple values handles proxy failures sends request body sends user agent sends url encoded parameters handles connection error #get behaves like a request method supports timeout option sends request body handles headers with multiple values supports open_timeout option handles requests with proxy retrieves the response body sends url encoded parameters sends url encoded nested parameters handles proxy failures represents empty body response as blank string sends user agent handles connection error retrieves the response headers with SSL enabled #patch behaves like a request method retrieves the response body handles connection error retrieves the response headers sends url encoded parameters handles headers with multiple values supports timeout option represents empty body response as blank string handles requests with proxy sends url encoded nested parameters sends request body handles proxy failures sends user agent sends files supports open_timeout option #trace behaves like a request method sends request body handles connection error handles headers with multiple values sends url encoded nested parameters sends url encoded parameters handles requests with proxy handles proxy failures sends user agent supports open_timeout option supports timeout option retrieves the response headers represents empty body response as blank string retrieves the response body #post behaves like a request method sends user agent handles connection error sends request body represents empty body response as blank string sends url encoded nested parameters sends url encoded parameters supports open_timeout option sends files handles requests with proxy handles proxy failures retrieves the response headers supports timeout option retrieves the response body handles headers with multiple values #delete behaves like a request method handles headers with multiple values supports open_timeout option sends url encoded nested parameters handles requests with proxy retrieves the response headers handles connection error retrieves the response body represents empty body response as blank string sends user agent handles proxy failures sends url encoded parameters supports timeout option sends request body #get behaves like a request method sends user agent sends url encoded parameters handles proxy failures handles headers with multiple values handles requests with proxy handles connection error retrieves the response body represents empty body response as blank string sends request body retrieves the response headers supports timeout option sends url encoded nested parameters supports open_timeout option #head behaves like a request method handles proxy failures supports open_timeout option supports timeout option sends user agent handles headers with multiple values sends request body handles requests with proxy sends url encoded parameters handles connection error retrieves the response headers represents empty body response as blank string sends url encoded nested parameters #put behaves like a request method handles proxy failures supports timeout option sends request body handles connection error retrieves the response body handles headers with multiple values sends url encoded nested parameters sends user agent retrieves the response headers sends files sends url encoded parameters represents empty body response as blank string supports open_timeout option handles requests with proxy #options behaves like a request method sends request body retrieves the response body handles connection error handles requests with proxy represents empty body response as blank string sends user agent retrieves the response headers sends url encoded parameters handles headers with multiple values handles proxy failures supports open_timeout option supports timeout option sends url encoded nested parameters Faraday::Request::UrlEncoded works with with headers ignores custom content type works with nested params works with non nested params works with nested keys works with no headers works with unicode does nothing without payload customising default_space_encoding uses the custom character to encode spaces Faraday::Request::Retry when no exception raised and response code is not in retry_statuses is expected to eq 1 and response code is in retry_statuses is expected to eq 2 #calculate_retry_interval with exponential backoff and interval_randomness is expected to be between 0.1 and 0.15 (inclusive) with exponential backoff and max_interval is expected to eq 0.3 is expected to eq 0.2 is expected to eq 0.1 is expected to eq 0.3 with exponential backoff is expected to eq 0.4 is expected to eq 0.1 is expected to eq 0.2 retry_after header support when retry_after smaller than interval is expected to be > 0.2 when retry_after is bigger than max_interval is expected to eq 1 when retry_after is a timestamp is expected to be > 1 when retry_after bigger than interval is expected to be > 0.5 when an unexpected error happens is expected to eq 1 and this is passed as a custom exception is expected to eq 3 when an expected error happens is expected to eq 3 and new max_retry set to 3 is expected to eq 4 and legacy max_retry set to 1 is expected to eq 2 and legacy max_retry set to -9 is expected to eq 1 and new max_retry set to -9 is expected to eq 1 and both max_retry and interval are set is expected to be within 0.04 of 0.2 retry_if option does not retry if retry_if block returns false checking env UploadIO: should rewind files on retry retries if retry_if block always returns true FilePart: should rewind files on retry does not retry if retry_if block returns false checking exception when explicitly specifying methods to retry does not call retry_if for specified methods with empty list of methods to retry calls retry_if for all methods when method is not idempotent is expected to eq 1 Faraday::Utils::Headers #delete is expected not to include "content-type" is expected to be nil is expected to eq "application/json" is expected to eq 0 when Content-Type is set to application/xml is expected to eq "application/xml" is expected to eq ["Content-Type"] is expected to eq "application/xml" is expected to include "content-type" is expected to eq "application/xml" #parse when response headers leave http status line out is expected to eq "text/html" is expected to eq ["Content-Type"] is expected to eq "text/html" when response headers values include a colon is expected to eq "http://sushi.com/" when response headers include a blank line is expected to eq "text/html" #fetch is expected to eq "Invalid key" is expected to eq "default" is expected to eq false is expected to eq "application/json" is expected to eq "application/json" is expected to eq "application/json" raises an error if key not found calls a block when provided is expected to be nil when Content-Type is set to application/json is expected to eq "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" Faraday::Options #merge merges options with hashes deeply merges options with nil deeply merges options with hashes deeply merges options with options having nil sub-options deeply merges two options #each_key allows to iterate through keys #key? returns true if the key exists and is not nil #update updates options from hashes #memoized requires block accepts block #empty? returns true only if all options are nil #fetch when the fetched key has no value uses falsey default needs a default if key is missing accepts block when the fetched key has a value works with key grabs value #value? returns true if any key has that value #delete allows to remove value for key #dup duplicate options but not sub-options #deep_dup duplicate options and also suboptions #from works with deep hash works with hash with sub object is expected to raise NoMethodError respects inheritance works with options works with options with sub object works with nil works with hash #each_value allows to iterate through values #clear clears the options Faraday::Adapter::Excon allows to provide adapter specific configs config sets timeout sets open_timeout sets timeout and open_timeout behaves like an adapter with SSL disabled #delete behaves like a request method sends request body represents empty body response as blank string sends user agent handles connection error handles requests with proxy parses the reason phrase sends url encoded parameters supports timeout option handles headers with multiple values retrieves the response headers sends url encoded nested parameters retrieves the response body handles proxy failures supports open_timeout option #put behaves like a request method sends url encoded parameters represents empty body response as blank string sends request body retrieves the response headers supports timeout option sends url encoded nested parameters parses the reason phrase retrieves the response body sends files handles proxy failures sends user agent supports open_timeout option handles requests with proxy handles headers with multiple values handles connection error #trace behaves like a request method handles connection error sends url encoded parameters sends url encoded nested parameters sends user agent represents empty body response as blank string sends request body handles requests with proxy retrieves the response headers parses the reason phrase supports timeout option retrieves the response body handles proxy failures handles headers with multiple values supports open_timeout option #options behaves like a request method supports open_timeout option represents empty body response as blank string handles requests with proxy sends request body handles proxy failures sends user agent retrieves the response headers handles connection error sends url encoded parameters supports timeout option parses the reason phrase handles headers with multiple values sends url encoded nested parameters retrieves the response body #get behaves like a request method handles headers with multiple values handles proxy failures retrieves the response headers retrieves the response body handles connection error sends user agent sends request body sends url encoded nested parameters supports timeout option handles requests with proxy supports open_timeout option represents empty body response as blank string parses the reason phrase sends url encoded parameters #patch behaves like a request method sends user agent handles proxy failures sends url encoded nested parameters retrieves the response body supports timeout option sends files handles headers with multiple values sends url encoded parameters parses the reason phrase represents empty body response as blank string sends request body supports open_timeout option retrieves the response headers handles connection error handles requests with proxy #head behaves like a request method sends request body sends user agent handles connection error supports timeout option parses the reason phrase handles headers with multiple values supports open_timeout option handles proxy failures sends url encoded parameters represents empty body response as blank string retrieves the response headers retrieves the response body sends url encoded nested parameters handles requests with proxy #post behaves like a request method sends url encoded nested parameters retrieves the response body handles connection error retrieves the response headers sends files handles headers with multiple values parses the reason phrase represents empty body response as blank string sends user agent sends url encoded parameters handles requests with proxy handles proxy failures supports timeout option supports open_timeout option sends request body with SSL enabled #trace behaves like a request method represents empty body response as blank string sends url encoded nested parameters retrieves the response headers handles proxy failures retrieves the response body parses the reason phrase sends user agent sends request body sends url encoded parameters supports timeout option handles connection error handles headers with multiple values handles requests with proxy supports open_timeout option #delete behaves like a request method handles headers with multiple values supports open_timeout option sends request body sends url encoded nested parameters supports timeout option sends user agent represents empty body response as blank string parses the reason phrase retrieves the response headers handles requests with proxy handles proxy failures handles connection error retrieves the response body sends url encoded parameters #put behaves like a request method sends user agent sends request body supports open_timeout option retrieves the response headers handles proxy failures represents empty body response as blank string handles requests with proxy sends url encoded nested parameters parses the reason phrase sends url encoded parameters supports timeout option sends files retrieves the response body handles headers with multiple values handles connection error #patch behaves like a request method sends user agent sends files retrieves the response headers handles proxy failures handles requests with proxy retrieves the response body supports timeout option sends request body supports open_timeout option parses the reason phrase sends url encoded nested parameters handles headers with multiple values handles connection error represents empty body response as blank string sends url encoded parameters #post behaves like a request method sends url encoded nested parameters parses the reason phrase sends request body retrieves the response headers handles proxy failures sends user agent sends url encoded parameters handles headers with multiple values handles requests with proxy handles connection error supports timeout option represents empty body response as blank string sends files retrieves the response body supports open_timeout option #head behaves like a request method sends url encoded nested parameters handles requests with proxy retrieves the response body supports open_timeout option supports timeout option handles proxy failures parses the reason phrase sends url encoded parameters represents empty body response as blank string handles connection error sends request body handles headers with multiple values retrieves the response headers sends user agent #get behaves like a request method parses the reason phrase handles requests with proxy handles headers with multiple values represents empty body response as blank string supports timeout option supports open_timeout option sends user agent retrieves the response headers sends url encoded nested parameters handles proxy failures retrieves the response body sends url encoded parameters sends request body handles connection error #options behaves like a request method supports open_timeout option sends url encoded parameters sends user agent handles connection error represents empty body response as blank string supports timeout option handles headers with multiple values retrieves the response headers handles requests with proxy handles proxy failures sends request body parses the reason phrase sends url encoded nested parameters retrieves the response body Faraday::Response is expected to eq 404 is expected to eq "yikes" is expected to raise RuntimeError is expected to be falsey is expected to eq "text/plain" is expected to eq "text/plain" is expected to be truthy marshal serialization support is expected to eq {"Content-Type"=>"text/plain"} is expected to eq "yikes" is expected to be nil is expected to eq 404 #on_complete can access response body in on_complete callback parse body on finish can access response body in on_complete callback #to_hash is expected to be a kind of Hash is expected to eq {"Content-Type"=>"text/plain"} is expected to eq 404 is expected to eq "yikes" #apply_request is expected to eq "yikes" is expected to eq :post Faraday has a version number proxies to default_connection uses method_missing on Faraday if there is no proxyable method proxies methods that exist on the default_connection proxied methods can be accessed Faraday::RackBuilder when having a handler with broken dependency raises an error while making a request with default stack is expected to eq Faraday::Request::UrlEncoded is expected to eq Faraday::Adapter::NetHttp when having a single handler allows insert_after allows use allows insert_before raises an error trying to use an unregistered symbol allows rebuilding is expected to eq [Apple] with custom handler and adapter locks the stack after making a request dup stack is unlocked allows to compare handlers with custom registered middleware allows to register with Proc allows to register with symbol allows to register with constant allows to register with string when having two handlers allows insert_before allows to swap handlers allows insert_after allows to delete a handler with custom adapter only is expected to eq Faraday::Adapter::Test is expected to be nil with custom empty block is expected to eq Faraday::Adapter::NetHttp is expected to be nil Faraday::Request::Instrumentation is expected to eq "request.faraday" instruments with default name defaults to ActiveSupport::Notifications with custom name is expected to eq "custom" instruments with custom name with custom instrumenter is expected to eq :custom Faraday::Adapter::Typhoeus behaves like an adapter with SSL disabled #trace behaves like a request method sends request body handles requests with proxy supports open_timeout option retrieves the response body handles headers with multiple values handles proxy failures retrieves the response headers sends url encoded nested parameters handles connection error sends user agent 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 #post behaves like a request method retrieves the response body sends request body handles proxy failures represents empty body response as blank string sends url encoded parameters supports timeout option sends user agent retrieves the response headers handles headers with multiple values handles requests with proxy sends url encoded nested parameters sends files handles connection error supports open_timeout option with parallel setup handles parallel requests status handles parallel requests body #patch behaves like a request method handles headers with multiple values represents empty body response as blank string retrieves the response body sends request body supports timeout option handles proxy failures supports open_timeout option retrieves the response headers handles requests with proxy sends url encoded parameters handles connection error sends user agent sends files sends url encoded nested parameters with parallel setup handles parallel requests status handles parallel requests body #head behaves like a request method sends request body supports open_timeout option retrieves the response body handles headers with multiple values retrieves the response headers sends user agent sends url encoded parameters represents empty body response as blank string handles connection error sends url encoded nested parameters handles requests with proxy handles proxy failures supports timeout option with parallel setup handles parallel requests body handles parallel requests status #delete behaves like a request method handles requests with proxy handles proxy failures sends user agent retrieves the response body sends request body supports timeout option sends url encoded parameters represents empty body response as blank string supports open_timeout option retrieves the response headers sends url encoded nested parameters handles headers with multiple values handles connection error with parallel setup handles parallel requests status handles parallel requests body #get behaves like a request method sends url encoded parameters handles connection error supports timeout option handles proxy failures sends user agent represents empty body response as blank string supports open_timeout option handles requests with proxy retrieves the response headers handles headers with multiple values retrieves the response body sends url encoded nested parameters sends request body with parallel setup handles parallel requests status handles parallel requests body #put behaves like a request method sends request body handles connection error supports timeout option handles proxy failures sends url encoded parameters represents empty body response as blank string sends url encoded nested parameters retrieves the response headers sends user agent handles requests with proxy retrieves the response body handles headers with multiple values supports open_timeout option sends files with parallel setup handles parallel requests status handles parallel requests body #options behaves like a request method sends request body supports open_timeout option retrieves the response headers handles connection error sends url encoded parameters represents empty body response as blank string sends user agent retrieves the response body sends url encoded nested parameters handles proxy failures handles headers with multiple values handles requests with proxy supports timeout option with parallel setup handles parallel requests status handles parallel requests body with SSL enabled #head behaves like a request method supports timeout option sends user agent sends url encoded nested parameters sends request body handles requests with proxy retrieves the response headers handles headers with multiple values retrieves the response body handles connection error handles proxy failures supports open_timeout option represents empty body response as blank string sends url encoded parameters with parallel setup handles parallel requests status handles parallel requests body #trace behaves like a request method sends user agent handles proxy failures handles requests with proxy sends url encoded parameters supports open_timeout option retrieves the response body represents empty body response as blank string handles headers with multiple values handles connection error retrieves the response headers supports timeout option sends url encoded nested parameters sends request body with parallel setup handles parallel requests status handles parallel requests body #post behaves like a request method sends request body sends user agent handles connection error supports timeout option supports open_timeout option sends files handles headers with multiple values represents empty body response as blank string sends url encoded parameters sends url encoded nested parameters retrieves the response body handles proxy failures handles requests with proxy retrieves the response headers with parallel setup handles parallel requests status handles parallel requests body #patch behaves like a request method retrieves the response headers sends user agent handles requests with proxy supports open_timeout option represents empty body response as blank string handles connection error sends url encoded nested parameters handles proxy failures retrieves the response body sends files handles headers with multiple values sends url encoded parameters sends request body supports timeout option with parallel setup handles parallel requests status handles parallel requests body #options behaves like a request method sends user agent handles proxy failures sends url encoded nested parameters retrieves the response headers supports open_timeout option handles headers with multiple values sends request body handles connection error sends url encoded parameters retrieves the response body handles requests with proxy supports timeout option represents empty body response as blank string with parallel setup handles parallel requests body handles parallel requests status #delete behaves like a request method supports open_timeout option handles proxy failures handles requests with proxy sends url encoded parameters sends request body supports timeout option handles connection error retrieves the response headers retrieves the response body handles headers with multiple values sends url encoded nested parameters represents empty body response as blank string sends user agent with parallel setup handles parallel requests body handles parallel requests status #get behaves like a request method retrieves the response body handles proxy failures supports timeout option supports open_timeout option sends url encoded parameters handles headers with multiple values sends request body sends url encoded nested parameters handles requests with proxy retrieves the response headers sends user agent handles connection error represents empty body response as blank string with parallel setup handles parallel requests body handles parallel requests status #put behaves like a request method supports timeout option retrieves the response body handles proxy failures retrieves the response headers sends files sends request body sends url encoded parameters supports open_timeout option handles requests with proxy handles headers with multiple values represents empty body response as blank string sends url encoded nested parameters sends user agent handles connection error with parallel setup handles parallel requests body handles parallel requests status Faraday::Adapter::HTTPClient allows to provide adapter specific configs Options configures open timeout configures timeout configures multiple timeouts behaves like an adapter with SSL enabled #post behaves like a request method handles connection error sends user agent parses the reason phrase supports open_timeout option sends files sends request body handles deflate compression binds local socket represents empty body response as blank string handles proxy failures sends url encoded parameters sends url encoded nested parameters handles headers with multiple values handles requests with proxy retrieves the response body retrieves the response headers supports timeout option handles gzip compression #head behaves like a request method retrieves the response body sends url encoded nested parameters parses the reason phrase supports open_timeout option supports timeout option retrieves the response headers handles headers with multiple values handles proxy failures represents empty body response as blank string handles requests with proxy sends url encoded parameters binds local socket handles connection error sends user agent sends request body #patch behaves like a request method sends files parses the reason phrase retrieves the response headers handles proxy failures supports open_timeout option handles connection error represents empty body response as blank string sends url encoded nested parameters handles deflate compression handles headers with multiple values sends request body retrieves the response body sends url encoded parameters handles requests with proxy binds local socket supports timeout option handles gzip compression sends user agent #options behaves like a request method handles requests with proxy sends url encoded nested parameters binds local socket handles headers with multiple values sends request body represents empty body response as blank string supports open_timeout option supports timeout option retrieves the response headers handles deflate compression handles proxy failures handles connection error parses the reason phrase sends url encoded parameters handles gzip compression retrieves the response body sends user agent #trace behaves like a request method sends url encoded parameters handles connection error handles proxy failures handles headers with multiple values sends user agent retrieves the response headers parses the reason phrase handles gzip compression represents empty body response as blank string supports open_timeout option binds local socket sends request body sends url encoded nested parameters retrieves the response body supports timeout option handles deflate compression handles requests with proxy #delete behaves like a request method handles deflate compression binds local socket parses the reason phrase supports timeout option sends user agent represents empty body response as blank string retrieves the response body sends url encoded parameters sends url encoded nested parameters handles connection error handles gzip compression handles requests with proxy supports open_timeout option sends request body handles headers with multiple values retrieves the response headers handles proxy failures #get behaves like a request method handles headers with multiple values handles requests with proxy handles proxy failures represents empty body response as blank string sends url encoded nested parameters sends request body binds local socket parses the reason phrase sends user agent retrieves the response body handles deflate compression handles gzip compression handles connection error sends url encoded parameters supports open_timeout option supports timeout option retrieves the response headers #put behaves like a request method parses the reason phrase handles proxy failures handles deflate compression sends user agent binds local socket supports timeout option handles connection error sends request body retrieves the response body sends files sends url encoded parameters retrieves the response headers handles gzip compression supports open_timeout option handles requests with proxy represents empty body response as blank string sends url encoded nested parameters handles headers with multiple values with SSL disabled #put behaves like a request method sends url encoded nested parameters handles headers with multiple values sends request body sends user agent handles deflate compression handles proxy failures supports open_timeout option sends files supports timeout option retrieves the response headers sends url encoded parameters handles gzip compression binds local socket retrieves the response body parses the reason phrase represents empty body response as blank string handles requests with proxy handles connection error #delete behaves like a request method supports timeout option handles proxy failures handles deflate compression represents empty body response as blank string retrieves the response body handles headers with multiple values supports open_timeout option sends url encoded parameters sends user agent sends request body binds local socket handles gzip compression sends url encoded nested parameters parses the reason phrase handles requests with proxy retrieves the response headers handles connection error #trace behaves like a request method sends url encoded parameters handles proxy failures supports open_timeout option supports timeout option sends request body handles deflate compression retrieves the response headers retrieves the response body represents empty body response as blank string sends url encoded nested parameters sends user agent parses the reason phrase binds local socket handles connection error handles requests with proxy handles headers with multiple values handles gzip compression #head behaves like a request method sends request body sends url encoded parameters retrieves the response headers supports timeout option represents empty body response as blank string supports open_timeout option parses the reason phrase binds local socket handles connection error sends url encoded nested parameters handles proxy failures handles requests with proxy handles headers with multiple values sends user agent retrieves the response body #patch behaves like a request method handles proxy failures sends files sends request body supports timeout option parses the reason phrase sends user agent supports open_timeout option sends url encoded nested parameters sends url encoded parameters handles requests with proxy handles deflate compression handles connection error represents empty body response as blank string retrieves the response headers handles headers with multiple values binds local socket retrieves the response body handles gzip compression #options behaves like a request method sends url encoded parameters handles proxy failures supports timeout option retrieves the response body binds local socket handles headers with multiple values sends url encoded nested parameters handles deflate compression handles requests with proxy retrieves the response headers supports open_timeout option sends user agent parses the reason phrase handles connection error represents empty body response as blank string handles gzip compression sends request body #post behaves like a request method handles gzip compression retrieves the response headers sends url encoded parameters sends request body binds local socket sends files handles headers with multiple values sends user agent parses the reason phrase retrieves the response body sends url encoded nested parameters handles connection error represents empty body response as blank string handles requests with proxy handles deflate compression handles proxy failures supports open_timeout option supports timeout option #get behaves like a request method supports timeout option handles proxy failures sends url encoded nested parameters retrieves the response headers handles connection error sends user agent handles gzip compression sends request body binds local socket supports open_timeout option represents empty body response as blank string handles deflate compression parses the reason phrase handles headers with multiple values sends url encoded parameters handles requests with proxy retrieves the response body Faraday::RequestOptions allows to set the request proxy Faraday::ClientError .initialize with string is expected to eq "#>" is expected to be nil is expected to be nil is expected to eq "custom message" with anything else #to_s is expected to be nil is expected to be nil is expected to eq "[\"error1\", \"error2\"]" is expected to eq "#>" with response hash is expected to eq "#400}>" is expected to eq "the server responded with status 400" is expected to be nil is expected to eq {:status=>400} with exception only is expected to eq "test" is expected to be nil is expected to eq "#>" is expected to eq nil is expected to eq # Faraday::Connection #close can close underlying app #token_auth is expected to eq "Token nonce=\"abc\", token=\"abcdef\"" #build_request is expected to be empty is expected to be falsey is expected to eq ["Authorization"] is expected to be truthy #build_exclusive_url does not add ending slash given nil url handles uri instances overrides connection port for absolute url allows to provide params argument does not use connection params does not add ending slash given empty url with absolute path example at ./spec/faraday/connection_spec.rb:197 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 "http" is expected to eq "/sake.html" is expected to eq "sushi.com" is expected to eq 80 is expected to eq "a=1" with url_prefixed connection used default base with ending slash parses url and changes scheme overrides base joins url to base with ending slash 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==" #build_url merges params uses params #to_env without braketizing repeated params in query bracketizes nested params in query parses url params into query escapes per spec bracketizes repeated params in query default_connection_options assigning a hash behaves like default connection options default connection options persist with an instance overriding default connection uses default connection options works with option url works with implicit url works with instance connection options assigning a default value behaves like default connection options works with implicit url works with option url works with instance connection options default connection uses default connection options default connection options persist with an instance overriding #respond_to? is expected to be truthy is expected to be truthy request 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 params supports array params in url with simple url test_overrides_request_params test_overrides_request_params_block_url test_overrides_request_params_block with url and extra params allows to override all params allows to set params_encoder for single request merges connection and request params .new with block is expected to eq "/omnom" is expected to eq 0 with explicit url param behaves like initializer with url with complex url is expected to eq "/fish" is expected to eq {"a"=>"1"} is expected to eq 815 with simple url is expected to eq "/" is expected to eq 80 is expected to eq "http" is expected to eq "sushi.com" is expected to eq {} with implicit url param behaves like initializer with url with simple url is expected to eq "sushi.com" is expected to eq 80 is expected to eq "/" is expected to eq "http" is expected to eq {} with complex url is expected to eq "/fish" is expected to eq 815 is expected to eq {"a"=>"1"} 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 ssl false is expected to be falsey with custom params is expected to eq {"a"=>1} with custom builder is expected to eq # #dup is expected to eq "text/plain" is expected to eq "1" is expected to eq # after manual changes is expected to eq 1 is expected to eq 1 is expected to be falsey is expected to be nil is expected to be falsey is expected to eq 5 proxy support accepts string fetches no proxy from blank env uses env http_proxy uses processes no_proxy before https_proxy accepts hash with string uri accepts env without scheme accepts uri accepts http env with auth accepts http env allows when url is not in no proxy list but ip address is ignores env proxy if set that way allows when prefixed url is not in no proxy list uses processes no_proxy before http_proxy allows when url not in no proxy list allows when ip address is not in no proxy list but url is allows in multi element no proxy list test proxy requires uri does not accept uppercase env uses env https_proxy accepts hash allows when subdomain url is in no proxy list fetches no proxy from nil env allows when url in no proxy list gives priority to manually set proxy performing a request dynamically check no proxy dynamically checks proxy Faraday::Adapter::EMHttp allows to provide adapter specific configs behaves like an adapter with SSL enabled #head behaves like a request method parses the reason phrase represents empty body response as blank string handles headers with multiple values retrieves the response headers sends user agent sends request body supports timeout option supports open_timeout option handles connection error sends url encoded nested parameters sends url encoded parameters handles proxy failures handles requests with proxy binds local socket with parallel setup handles parallel requests status #trace behaves like a request method sends url encoded parameters retrieves the response headers handles requests with proxy parses the reason phrase sends request body sends url encoded nested parameters represents empty body response as blank string retrieves the response body handles proxy failures supports timeout option binds local socket sends user agent supports open_timeout option handles headers with multiple values handles connection error with parallel setup handles parallel requests body handles parallel requests status #post behaves like a request method parses the reason phrase handles connection error sends url encoded nested parameters handles proxy failures binds local socket sends request body sends url encoded parameters retrieves the response body handles requests with proxy sends files supports timeout option retrieves the response headers handles headers with multiple values supports open_timeout option represents empty body response as blank string sends user agent with parallel setup handles parallel requests body handles parallel requests status #patch behaves like a request method supports timeout option sends files sends request body retrieves the response body parses the reason phrase binds local socket supports open_timeout option retrieves the response headers handles requests with proxy handles connection error sends url encoded parameters represents empty body response as blank string handles proxy failures sends url encoded nested parameters sends user agent handles headers with multiple values with parallel setup handles parallel requests status handles parallel requests body #options behaves like a request method sends request body handles headers with multiple values sends url encoded nested parameters parses the reason phrase handles connection error retrieves the response headers supports timeout option retrieves the response body binds local socket handles requests with proxy sends url encoded parameters represents empty body response as blank string handles proxy failures sends user agent supports open_timeout option with parallel setup handles parallel requests status handles parallel requests body #delete behaves like a request method handles connection error sends request body retrieves the response headers sends url encoded parameters parses the reason phrase binds local socket handles requests with proxy sends user agent sends url encoded nested parameters supports timeout option handles headers with multiple values handles proxy failures supports open_timeout option represents empty body response as blank string retrieves the response body with parallel setup handles parallel requests status handles parallel requests body #put behaves like a request method sends url encoded nested parameters binds local socket sends request body sends user agent represents empty body response as blank string handles proxy failures handles connection error parses the reason phrase retrieves the response body handles headers with multiple values sends files retrieves the response headers sends url encoded parameters supports open_timeout option supports timeout option handles requests with proxy with parallel setup handles parallel requests status handles parallel requests body #get behaves like a request method handles connection error handles proxy failures sends user agent parses the reason phrase sends url encoded nested parameters retrieves the response headers binds local socket supports timeout option supports open_timeout option sends url encoded parameters represents empty body response as blank string handles headers with multiple values sends request body handles requests with proxy retrieves the response body with parallel setup handles parallel requests body handles parallel requests status with SSL disabled #options behaves like a request method supports open_timeout option handles requests with proxy handles proxy failures handles connection error sends request body binds local socket retrieves the response headers sends url encoded nested parameters represents empty body response as blank string supports timeout option parses the reason phrase retrieves the response body sends user agent sends url encoded parameters handles headers with multiple values with parallel setup handles parallel requests body handles parallel requests status #put behaves like a request method parses the reason phrase retrieves the response body sends files supports open_timeout option handles requests with proxy handles proxy failures retrieves the response headers handles connection error handles headers with multiple values binds local socket sends user agent sends url encoded parameters supports timeout option sends request body sends url encoded nested parameters represents empty body response as blank string with parallel setup handles parallel requests body handles parallel requests status #get behaves like a request method parses the reason phrase supports open_timeout option retrieves the response headers handles connection error binds local socket represents empty body response as blank string handles requests with proxy sends url encoded parameters sends user agent handles headers with multiple values handles proxy failures sends url encoded nested parameters supports timeout option retrieves the response body sends request body with parallel setup handles parallel requests status handles parallel requests body #patch behaves like a request method sends url encoded parameters handles requests with proxy handles proxy failures binds local socket retrieves the response headers supports timeout option parses the reason phrase sends request body represents empty body response as blank string retrieves the response body sends files sends url encoded nested parameters handles headers with multiple values handles connection error supports open_timeout option sends user agent with parallel setup handles parallel requests body handles parallel requests status #trace behaves like a request method retrieves the response body handles headers with multiple values handles proxy failures parses the reason phrase sends url encoded nested parameters represents empty body response as blank string sends request body supports open_timeout option binds local socket sends url encoded parameters handles connection error supports timeout option handles requests with proxy sends user agent retrieves the response headers with parallel setup handles parallel requests status handles parallel requests body #head behaves like a request method sends user agent handles connection error handles requests with proxy retrieves the response headers handles proxy failures handles headers with multiple values sends url encoded nested parameters parses the reason phrase binds local socket represents empty body response as blank string sends request body sends url encoded parameters supports open_timeout option supports timeout option with parallel setup handles parallel requests status #delete behaves like a request method supports timeout option handles headers with multiple values handles connection error handles proxy failures sends user agent parses the reason phrase handles requests with proxy sends request body binds local socket retrieves the response headers sends url encoded parameters supports open_timeout option sends url encoded nested parameters represents empty body response as blank string retrieves the response body with parallel setup handles parallel requests status handles parallel requests body #post behaves like a request method retrieves the response body supports timeout option represents empty body response as blank string sends url encoded nested parameters sends user agent supports open_timeout option sends files sends request body handles headers with multiple values sends url encoded parameters binds local socket handles proxy failures handles connection error parses the reason phrase retrieves the response headers handles requests with proxy with parallel setup handles parallel requests body handles parallel requests status Options configures all timeout settings configures timeout configures timeout and open_timeout 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 10 is expected to eq 5 is expected to eq {:consumer_key=>"anonymous", :consumer_secret=>"xyz"} is expected to eq 5 is expected to eq {:bar=>"bar", :foo=>"foo"} is expected to eq 10 is expected to eq "boo" when setting the url on setup with a string path and params is expected to eq {"a"=>1} is expected to eq "foo.json" is expected to eq "http://sushi.com/api/foo.json?a=1" when nothing particular is configured is expected to be falsey is expected to eq :get when method is post is expected to eq :post when setting the body on setup is expected to eq "hi" is expected to eq "hi" 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 setting the url on setup with a path including params is expected to eq {"a"=>"1", "b"=>"2"} is expected to eq "http://sushi.com/api/foo.json?a=1&b=2" is expected to eq "foo.json" when setting a header on setup with []= syntax is expected to eq "Faraday" is expected to eq "1.0" is expected to eq "Faraday" Faraday::Adapter #request_timeout gets :read timeout gets :open timeout attempts unknown timeout type gets :write timeout Faraday::Request::Authorization token_auth when other values are provided is expected to match /^Token / is expected to match /token="baz"/ is expected to match /foo="42"/ and request already has an authentication header does not interfere with existing authorization when passed correct params is expected to eq "Token token=\"quux\"" and request already has an authentication header does not interfere with existing authorization basic_auth when passed correct params is expected to eq "Basic YWxhZGRpbjpvcGVuc2VzYW1l" and request already has an authentication header does not interfere with existing authorization 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 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 when passed two strings is expected to eq "custom abc def" and request already has an authentication header does not interfere with existing authorization Faraday::Env retains custom members ignores false when fetching allows to access members allows to access symbol non 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::ProxyOptions allows hash access #from works with no auth works with nil works with string Faraday::FlatParamsEncoder encodes boolean values in array encodes boolean values encodes empty array in hash decodes arrays decodes boolean values behaves like a params encoder encodes nil escapes safe buffer raises type error for empty string Faraday::Response::Middleware with a custom ResponseMiddleware but empty response doesn't call the middleware for 204 responses doesn't call the middleware for 304 responses raises exception for 200 responses with a custom ResponseMiddleware and private parse parses the response with a custom ResponseMiddleware parses the response Faraday::Adapter::NetHttpPersistent sets max_retries to 0 allows to set pool_size on initialize allows to provide adapter specific configs min_version behaves like an adapter with SSL disabled #options behaves like a request method handles deflate compression retrieves the response headers sends request body handles requests with proxy sends url encoded nested parameters handles proxy failures retrieves the response body handles gzip compression sends user agent parses the reason phrase supports timeout option handles connection error supports open_timeout option represents empty body response as blank string handles headers with multiple values sends url encoded parameters #head behaves like a request method handles headers with multiple values parses the reason phrase supports open_timeout option retrieves the response headers retrieves the response body handles proxy failures supports timeout option sends url encoded parameters handles connection error handles requests with proxy sends url encoded nested parameters represents empty body response as blank string sends user agent sends request body #get behaves like a request method sends user agent supports timeout option sends url encoded parameters retrieves the response body supports open_timeout option parses the reason phrase retrieves the response headers handles connection error sends request body handles requests with proxy represents empty body response as blank string handles proxy failures sends url encoded nested parameters handles gzip compression handles deflate compression handles headers with multiple values #delete behaves like a request method sends user agent handles requests with proxy handles proxy failures supports open_timeout option retrieves the response body parses the reason phrase represents empty body response as blank string handles connection error sends url encoded parameters handles headers with multiple values handles deflate compression handles gzip compression sends request body sends url encoded nested parameters supports timeout option retrieves the response headers #put behaves like a request method handles proxy failures supports timeout option sends user agent handles deflate compression handles connection error handles requests with proxy sends url encoded parameters parses the reason phrase sends request body supports open_timeout option retrieves the response headers sends files represents empty body response as blank string handles headers with multiple values handles gzip compression retrieves the response body sends url encoded nested parameters #trace behaves like a request method supports open_timeout option sends url encoded nested parameters sends request body retrieves the response headers parses the reason phrase sends url encoded parameters represents empty body response as blank string handles gzip compression handles connection error sends user agent retrieves the response body handles headers with multiple values supports timeout option handles deflate compression handles proxy failures handles requests with proxy #post behaves like a request method retrieves the response body handles proxy failures sends files handles deflate compression retrieves the response headers handles connection error handles requests with proxy parses the reason phrase supports timeout option sends url encoded nested parameters represents empty body response as blank string handles gzip compression sends url encoded parameters sends request body sends user agent supports open_timeout option handles headers with multiple values #patch behaves like a request method supports open_timeout option retrieves the response headers handles deflate compression handles headers with multiple values parses the reason phrase handles gzip compression sends files sends request body handles proxy failures sends user agent handles connection error supports timeout option represents empty body response as blank string retrieves the response body handles requests with proxy sends url encoded parameters sends url encoded nested parameters with SSL enabled #head behaves like a request method sends url encoded parameters sends url encoded nested parameters handles connection error supports timeout option supports open_timeout option parses the reason phrase handles requests with proxy retrieves the response headers represents empty body response as blank string retrieves the response body sends request body sends user agent handles proxy failures handles headers with multiple values #get behaves like a request method sends user agent handles headers with multiple values supports open_timeout option parses the reason phrase handles requests with proxy handles proxy failures handles deflate compression handles gzip compression supports timeout option sends url encoded parameters retrieves the response headers sends request body sends url encoded nested parameters handles connection error represents empty body response as blank string retrieves the response body #patch behaves like a request method parses the reason phrase handles proxy failures sends user agent handles headers with multiple values supports timeout option represents empty body response as blank string sends files retrieves the response headers sends url encoded parameters handles requests with proxy sends request body handles connection error handles deflate compression supports open_timeout option retrieves the response body handles gzip compression sends url encoded nested parameters #delete behaves like a request method retrieves the response headers sends url encoded parameters represents empty body response as blank string sends request body handles connection error handles proxy failures handles requests with proxy retrieves the response body handles deflate compression supports timeout option handles gzip compression sends user agent sends url encoded nested parameters supports open_timeout option parses the reason phrase handles headers with multiple values #trace behaves like a request method sends user agent handles headers with multiple values handles connection error represents empty body response as blank string retrieves the response headers supports open_timeout option handles gzip compression handles proxy failures sends url encoded parameters sends url encoded nested parameters parses the reason phrase handles requests with proxy sends request body handles deflate compression retrieves the response body supports timeout option #post behaves like a request method sends files supports open_timeout option represents empty body response as blank string handles headers with multiple values handles gzip compression handles proxy failures retrieves the response headers sends url encoded nested parameters sends url encoded parameters sends request body handles requests with proxy retrieves the response body supports timeout option handles deflate compression sends user agent handles connection error parses the reason phrase #put behaves like a request method sends url encoded parameters handles requests with proxy sends request body handles headers with multiple values handles connection error sends user agent represents empty body response as blank string sends url encoded nested parameters retrieves the response headers sends files parses the reason phrase supports timeout option handles gzip compression handles proxy failures retrieves the response body supports open_timeout option handles deflate compression #options behaves like a request method sends url encoded nested parameters handles gzip compression sends url encoded parameters handles connection error sends user agent represents empty body response as blank string handles deflate compression handles requests with proxy parses the reason phrase retrieves the response body supports timeout option sends request body retrieves the response headers handles headers with multiple values handles proxy failures supports open_timeout option Faraday::NestedParamsEncoder decodes nested ignores malformed keys decodes nested array mixed types decodes nested subkeys dont have to be in brackets decodes nested arrays rack compat encodes rack compat decodes nested ignores invalid array decodes arrays decodes nested ignores repeated array notation decodes nested final value overrides any type encodes empty string array value encodes boolean values in array decodes hashes encodes empty array value encodes boolean values encodes nil array value when expecting array but getting hash 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 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 behaves like a params encoder escapes safe buffer encodes nil raises type error for empty string when expecting nested hash but getting non nested behaves like a wrong decoding is expected to raise TypeError Faraday::Middleware #close with app that doesn't support #close should issue warning with app that supports #close should issue warning Faraday::AdapterRegistry #initialize caches lookups with implicit name is expected to raise NameError caches lookups with explicit name is expected to raise NameError looks up class by symbol name looks up class by string name Faraday::Response::Logger logs request headers by default logs method and url logs filter headers logs response headers by default does not log request body by default does not log response body by default still returns output logs filter url when logging request body log only request body when not logging request headers does not log request headers if option is false when not logging response headers does not log response headers if option is false 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 custom formatter logs with custom formatter with default formatter delegates logging to the formatter when logging response body log only response body when logging request and response bodies logs filter body log request and response body log response body object without configuration defaults to stdout Faraday::Adapter::NetHttp behaves like an adapter with SSL enabled #trace behaves like a request method sends url encoded nested parameters represents empty body response as blank string sends url encoded parameters supports timeout option sends user agent supports open_timeout option handles proxy failures sends request body handles gzip compression parses the reason phrase handles connection error retrieves the response headers handles requests with proxy handles headers with multiple values handles deflate compression retrieves the response body 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 handles requests with proxy represents empty body response as blank string sends user agent handles connection error sends url encoded nested parameters sends url encoded parameters supports open_timeout option retrieves the response headers sends request body parses the reason phrase supports timeout option retrieves the response body handles headers with multiple values streaming when response contains big data handles streaming when response is empty is expected to eq [["", 0]] #patch behaves like a request method handles gzip compression sends request body sends user agent sends url encoded nested parameters handles deflate compression supports timeout option handles requests with proxy sends files supports open_timeout option represents empty body response as blank string sends url encoded parameters handles proxy failures handles headers with multiple values retrieves the response body retrieves the response headers parses the reason phrase handles connection error streaming when response contains big data handles streaming when response is empty is expected to eq [["", 0]] #post behaves like a request method sends user agent sends url encoded nested parameters parses the reason phrase handles gzip compression handles connection error handles proxy failures supports timeout option retrieves the response headers handles headers with multiple values sends url encoded parameters handles deflate compression represents empty body response as blank string sends files handles requests with proxy supports open_timeout option retrieves the response body sends request body streaming when response contains big data handles streaming when response is empty is expected to eq [["", 0]] #delete behaves like a request method handles connection error sends request body handles requests with proxy represents empty body response as blank string sends url encoded parameters retrieves the response headers handles headers with multiple values supports open_timeout option parses the reason phrase handles deflate compression retrieves the response body sends url encoded nested parameters handles gzip compression sends user agent supports timeout option 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 headers with multiple values sends request body handles requests with proxy handles gzip compression supports timeout option parses the reason phrase sends files retrieves the response body handles connection error sends url encoded nested parameters handles proxy failures sends user agent supports open_timeout option sends url encoded parameters handles deflate compression represents empty body response as blank string retrieves the response headers streaming when response contains big data handles streaming when response is empty is expected to eq [["", 0]] #get behaves like a request method sends user agent sends request body sends url encoded parameters handles gzip compression sends url encoded nested parameters parses the reason phrase represents empty body response as blank string retrieves the response body handles deflate compression retrieves the response headers handles connection error handles proxy failures handles headers with multiple values handles requests with proxy supports timeout option supports open_timeout option streaming when response contains big data handles streaming when response is empty is expected to eq [["", 0]] #options behaves like a request method handles gzip compression handles connection error handles deflate compression sends user agent handles proxy failures handles requests with proxy sends url encoded parameters retrieves the response headers supports timeout option parses the reason phrase sends url encoded nested parameters supports open_timeout option retrieves the response body handles headers with multiple values sends request body represents empty body response as blank string streaming when response contains big data handles streaming when response is empty is expected to eq [["", 0]] with SSL disabled #trace behaves like a request method sends user agent supports open_timeout option handles gzip compression supports timeout option handles requests with proxy handles deflate compression sends url encoded parameters handles connection error retrieves the response body sends request body sends url encoded nested parameters handles proxy failures represents empty body response as blank string handles headers with multiple values retrieves the response headers parses the reason phrase streaming when response is empty is expected to eq [["", 0]] when response contains big data handles streaming #head behaves like a request method sends request body sends url encoded nested parameters handles proxy failures handles connection error parses the reason phrase supports open_timeout option handles headers with multiple values retrieves the response body handles requests with proxy sends user agent represents empty body response as blank string sends url encoded parameters retrieves the response headers supports timeout option streaming when response contains big data handles streaming when response is empty is expected to eq [["", 0]] #put behaves like a request method sends request body sends files handles connection error parses the reason phrase represents empty body response as blank string handles deflate compression supports open_timeout option supports timeout option handles headers with multiple values sends user agent sends url encoded nested parameters retrieves the response body handles proxy failures sends url encoded parameters handles requests with proxy handles gzip compression retrieves the response headers streaming when response contains big data handles streaming when response is empty is expected to eq [["", 0]] #delete behaves like a request method handles headers with multiple values handles connection error sends url encoded nested parameters handles gzip compression sends user agent supports timeout option handles proxy failures represents empty body response as blank string handles requests with proxy retrieves the response headers sends url encoded parameters supports open_timeout option sends request body retrieves the response body parses the reason phrase handles deflate compression streaming when response is empty is expected to eq [["", 0]] when response contains big data handles streaming #get behaves like a request method parses the reason phrase retrieves the response body supports timeout option sends url encoded parameters sends url encoded nested parameters sends user agent handles connection error sends request body represents empty body response as blank string retrieves the response headers supports open_timeout option handles gzip compression handles deflate compression handles headers with multiple values handles proxy failures handles requests with proxy streaming when response is empty is expected to eq [["", 0]] when response contains big data handles streaming #patch behaves like a request method supports timeout option handles proxy failures handles deflate compression handles gzip compression parses the reason phrase sends files handles connection error sends user agent represents empty body response as blank string sends request body handles headers with multiple values retrieves the response body sends url encoded parameters handles requests with proxy supports open_timeout option retrieves the response headers sends url encoded nested parameters streaming when response is empty is expected to eq [["", 0]] when response contains big data handles streaming #options behaves like a request method sends user agent handles connection error sends url encoded parameters handles requests with proxy handles headers with multiple values represents empty body response as blank string handles deflate compression retrieves the response headers retrieves the response body supports open_timeout option sends request body sends url encoded nested parameters handles gzip compression supports timeout option parses the reason phrase handles proxy failures streaming when response is empty is expected to eq [["", 0]] when response contains big data handles streaming #post behaves like a request method handles deflate compression sends url encoded parameters sends files parses the reason phrase sends user agent handles requests with proxy retrieves the response headers sends request body handles headers with multiple values supports open_timeout option supports timeout option retrieves the response body represents empty body response as blank string handles proxy failures handles gzip compression sends url encoded nested parameters handles connection error streaming when response is empty is expected to eq [["", 0]] when response contains big data handles streaming checking http is expected to eq 80 supports read_timeout supports write_timeout sets max_retries to 0 supports open_timeout with https url is expected to eq 443 with custom adapter config is expected to eq 123 with http url including port is expected to eq 1234 Faraday::Response::RaiseError raises no exception for 200 responses raises Faraday::NilStatusError for nil status in response raises Faraday::ServerError for 500 responses raises Faraday::ProxyAuthError for 407 responses raises Faraday::ClientError for other 4xx responses raises Faraday::ConflictError for 409 responses raises Faraday::ForbiddenError for 403 responses raises Faraday::UnprocessableEntityError for 422 responses raises Faraday::BadRequestError for 400 responses raises Faraday::UnauthorizedError for 401 responses raises Faraday::ResourceNotFound for 404 responses Faraday::Utils URI parsing parses with URI parses with block replaces headers hash escapes safe buffer parses with default parser headers parsing parse headers for aggregated responses Faraday::CompositeReadIO with empty parts is expected to be nil is expected to eq 0 is expected to eq "" with empty composite_io is expected to eq 0 is expected to eq "" is expected to be nil with utf8 multibyte part is expected to eq "\x86\xE3\x83\x95\xE3\x82\xA1\xE3\x82\xA4\xE3\x83\xAB" allows to read in chunks with mix of empty and non-empty parts allows to read in chunks with 2 parts is expected to eq "abcd1234" allows to read in chunks is expected to eq 8 allows to rewind while reading in chunks 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 UploadIO: 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 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 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 Finished in 10.26 seconds (files took 0.5479 seconds to load) 2265 examples, 0 failures, 1 pending Randomized with seed 16793 + popd + RPM_EC=0 ~/build/BUILD/faraday-1.0.1 ++ jobs -p + exit 0 Processing files: rubygem-faraday-1.0.1-12.fc40.noarch Provides: rubygem(faraday) = 1.0.1 rubygem-faraday = 1.0.1-12.fc40 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-12.fc40.noarch Provides: rubygem-faraday-doc = 1.0.1-12.fc40 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-12.fc40.noarch Wrote: /builddir/build/RPMS/rubygem-faraday-1.0.1-12.fc40.noarch.rpm Wrote: /builddir/build/RPMS/rubygem-faraday-doc-1.0.1-12.fc40.noarch.rpm Child return code was: 0