Diff of the two buildlogs: -- --- b1/build.log 2023-06-05 00:19:33.002339360 +0000 +++ b2/build.log 2023-06-05 00:22:45.793897792 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Sat Jul 6 18:38:56 -12 2024 -I: pbuilder-time-stamp: 1720334336 +I: Current time: Mon Jun 5 14:19:36 +14 2023 +I: pbuilder-time-stamp: 1685924376 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/bookworm-reproducible-base.tgz] I: copying local configuration @@ -16,7 +16,7 @@ I: copying [./ruby-faraday_1.1.0.orig.tar.gz] I: copying [./ruby-faraday_1.1.0-7.debian.tar.xz] I: Extracting source -gpgv: Signature made Sun Jan 23 08:17:31 2022 -12 +gpgv: Signature made Mon Jan 24 10:17:31 2022 +14 gpgv: using RSA key D30863E26020E543F4719A838F53E0193B294B75 gpgv: Can't check signature: No public key dpkg-source: warning: cannot verify inline signature for ./ruby-faraday_1.1.0-7.dsc: no acceptable signature found @@ -31,52 +31,84 @@ dpkg-source: info: applying skip-test-failing-in-ubuntu.patch I: using fakeroot in build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/21823/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/13968/tmp/hooks/D01_modify_environment starting +debug: Running on codethink12-arm64. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Jun 5 14:19 /bin/sh -> /bin/bash +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/13968/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/13968/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='arm64' - DEBIAN_FRONTEND='noninteractive' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="15" [3]="1" [4]="release" [5]="aarch64-unknown-linux-gnu") + BASH_VERSION='5.2.15(1)-release' + BUILDDIR=/build + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=arm64 + DEBIAN_FRONTEND=noninteractive DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=8 ' - DISTRIBUTION='bookworm' - HOME='/var/lib/jenkins' - HOST_ARCH='arm64' + DIRSTACK=() + DISTRIBUTION=bookworm + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/var/lib/jenkins + HOSTNAME=i-capture-the-hostname + HOSTTYPE=aarch64 + HOST_ARCH=arm64 IFS=' ' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='21823' - PS1='# ' - PS2='> ' + LANG=C + LANGUAGE=nl_BE:nl + LC_ALL=C + MACHTYPE=aarch64-unknown-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=13968 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.yp50u87B/pbuilderrc_Xyn0 --distribution bookworm --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bookworm-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.yp50u87B/b1 --logfile b1/build.log ruby-faraday_1.1.0-7.dsc' - SUDO_GID='117' - SUDO_UID='110' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - USERNAME='root' - _='/usr/bin/systemd-run' - http_proxy='http://192.168.101.16:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.yp50u87B/pbuilderrc_q63D --distribution bookworm --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bookworm-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.yp50u87B/b2 --logfile b2/build.log --extrapackages usrmerge ruby-faraday_1.1.0-7.dsc' + SUDO_GID=117 + SUDO_UID=110 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + USERNAME=root + _='I: set' + http_proxy=http://192.168.101.16:3128 I: uname -a - Linux codethink11-arm64 4.15.0-212-generic #223-Ubuntu SMP Tue May 23 13:09:17 UTC 2023 aarch64 GNU/Linux + Linux i-capture-the-hostname 4.15.0-212-generic #223-Ubuntu SMP Tue May 23 13:09:17 UTC 2023 aarch64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Jul 6 13:14 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/21823/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Jun 4 00:25 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/13968/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -361,7 +393,7 @@ Get: 209 http://deb.debian.org/debian bookworm/main arm64 ruby-sinatra all 3.0.5-3 [119 kB] Get: 210 http://deb.debian.org/debian bookworm/main arm64 ruby-typhoeus all 1.4.0-3 [36.2 kB] Get: 211 http://deb.debian.org/debian bookworm/main arm64 ruby-webmock all 3.18.1-2 [66.2 kB] -Fetched 52.8 MB in 2s (25.6 MB/s) +Fetched 52.8 MB in 1s (42.9 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libpython3.11-minimal:arm64. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19611 files and directories currently installed.) @@ -1233,10 +1265,15 @@ Reading package lists... Building dependency tree... Reading state information... +usrmerge is already the newest version (35). fakeroot is already the newest version (1.31-1.2). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. I: Building the package -I: Running cd /build/ruby-faraday-1.1.0/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../ruby-faraday_1.1.0-7_source.changes +I: user script /srv/workspace/pbuilder/13968/tmp/hooks/A99_set_merged_usr starting +Re-configuring usrmerge... +I: user script /srv/workspace/pbuilder/13968/tmp/hooks/A99_set_merged_usr finished +hostname: Temporary failure in name resolution +I: Running cd /build/ruby-faraday-1.1.0/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../ruby-faraday_1.1.0-7_source.changes dpkg-buildpackage: info: source package ruby-faraday dpkg-buildpackage: info: source version 1.1.0-7 dpkg-buildpackage: info: source distribution unstable @@ -1268,7 +1305,7 @@ dh_prep -O--buildsystem=ruby dh_auto_install --destdir=debian/ruby-faraday/ -O--buildsystem=ruby dh_ruby --install /build/ruby-faraday-1.1.0/debian/ruby-faraday -/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20240706-27656-z4aeg8/gemspec +/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20230605-27748-sc59ng/gemspec Failed to load /dev/null because it doesn't contain valid YAML hash WARNING: open-ended dependency on ruby2_keywords (>= 0) is not recommended use a bounded requirement, such as '~> x.y' @@ -1277,7 +1314,7 @@ Name: faraday Version: 1.1.0 File: faraday-1.1.0.gem -/usr/bin/ruby3.1 -S gem install --config-file /dev/null --verbose --local --verbose --no-document --ignore-dependencies --install-dir debian/ruby-faraday/usr/share/rubygems-integration/all /tmp/d20240706-27656-z4aeg8/faraday-1.1.0.gem +/usr/bin/ruby3.1 -S gem install --config-file /dev/null --verbose --local --verbose --no-document --ignore-dependencies --install-dir debian/ruby-faraday/usr/share/rubygems-integration/all /tmp/d20230605-27748-sc59ng/faraday-1.1.0.gem Failed to load /dev/null because it doesn't contain valid YAML hash /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/share/rubygems-integration/all/gems/faraday-1.1.0/lib/faraday.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/share/rubygems-integration/all/gems/faraday-1.1.0/lib/faraday/adapter.rb @@ -1358,3232 +1395,3232 @@ RUBYLIB=. GEM_PATH=/build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/share/rubygems-integration/all:/build/ruby-faraday-1.1.0/debian/.debhelper/generated/_source/home/.local/share/gem/ruby/3.1.0:/var/lib/gems/3.1.0:/usr/local/lib/ruby/gems/3.1.0:/usr/lib/ruby/gems/3.1.0:/usr/lib/aarch64-linux-gnu/ruby/gems/3.1.0:/usr/share/rubygems-integration/3.1.0:/usr/share/rubygems-integration/all:/usr/lib/aarch64-linux-gnu/rubygems-integration/3.1.0 ruby3.1 -S rake -f debian/ruby-tests.rake /usr/bin/ruby3.1 -I/usr/share/rubygems-integration/all/gems/rspec-support-3.12.0/lib:/usr/share/rubygems-integration/all/gems/rspec-core-3.12.0/lib /usr/share/rubygems-integration/all/gems/rspec-core-3.12.0/exe/rspec ./spec/faraday/adapter/em_http_spec.rb ./spec/faraday/adapter/em_synchrony_spec.rb ./spec/faraday/adapter/excon_spec.rb ./spec/faraday/adapter/httpclient_spec.rb ./spec/faraday/adapter/net_http_persistent_spec.rb ./spec/faraday/adapter/net_http_spec.rb ./spec/faraday/adapter/rack_spec.rb ./spec/faraday/adapter/test_spec.rb ./spec/faraday/adapter/typhoeus_spec.rb ./spec/faraday/adapter_registry_spec.rb ./spec/faraday/adapter_spec.rb ./spec/faraday/composite_read_io_spec.rb ./spec/faraday/connection_spec.rb ./spec/faraday/error_spec.rb ./spec/faraday/middleware_spec.rb ./spec/faraday/options/env_spec.rb ./spec/faraday/options/options_spec.rb ./spec/faraday/options/proxy_options_spec.rb ./spec/faraday/options/request_options_spec.rb ./spec/faraday/params_encoders/flat_spec.rb ./spec/faraday/params_encoders/nested_spec.rb ./spec/faraday/rack_builder_spec.rb ./spec/faraday/request/authorization_spec.rb ./spec/faraday/request/instrumentation_spec.rb ./spec/faraday/request/multipart_spec.rb ./spec/faraday/request/retry_spec.rb ./spec/faraday/request/url_encoded_spec.rb ./spec/faraday/request_spec.rb ./spec/faraday/response/logger_spec.rb ./spec/faraday/response/middleware_spec.rb ./spec/faraday/response/raise_error_spec.rb ./spec/faraday/response_spec.rb ./spec/faraday/utils/headers_spec.rb ./spec/faraday/utils_spec.rb ./spec/faraday_spec.rb --format documentation -Randomized with seed 59111 - -Faraday::Response - is expected to eq "yikes" - is expected to be truthy - is expected to eq "text/plain" - is expected to raise RuntimeError - is expected to be falsey - is expected to eq 404 - is expected to eq "text/plain" - #apply_request - is expected to eq "yikes" - is expected to eq :post - #on_complete - can access response body in on_complete callback - parse body on finish - can access response body in on_complete callback - marshal serialization support - is expected to be nil - is expected to eq 404 - is expected to eq {"Content-Type"=>"text/plain"} - is expected to eq "yikes" - #to_hash - is expected to eq {"Content-Type"=>"text/plain"} - is expected to be a kind of Hash - is expected to eq 404 - is expected to eq "yikes" +Randomized with seed 59878 Faraday::AdapterRegistry #initialize - looks up class by symbol name - caches lookups with explicit name - caches lookups with implicit name looks up class by string name + caches lookups with explicit name is expected to raise NameError is expected to raise NameError + caches lookups with implicit name + looks up class by symbol name -Faraday::Adapter::NetHttp +Faraday::Adapter::EMHttp + allows to provide adapter specific configs + Options + configures timeout and open_timeout + configures timeout + configures all timeout settings behaves like an adapter with SSL enabled - #head + #post behaves like a request method + parses the reason phrase + handles connection error + supports open_timeout option supports timeout option + sends url encoded parameters + sends files + sends request body + binds local socket + handles proxy failures + sends url encoded nested parameters + sends user agent + retrieves the response body handles headers with multiple values + handles requests with proxy represents empty body response as blank string - sends url encoded nested parameters - handles proxy failures - supports open_timeout option - handles connection error retrieves the response headers - parses the reason phrase - handles requests with proxy - retrieves the response body - sends request body - sends url encoded parameters - sends user agent - streaming - when response contains big data - handles streaming - when response is empty - is expected to eq [["", 0]] - #patch + with parallel setup + handles parallel requests body + handles parallel requests status + #head behaves like a request method + handles connection error + handles requests with proxy + supports open_timeout option + retrieves the response headers sends user agent - sends url encoded parameters - sends url encoded nested parameters - sends files parses the reason phrase - retrieves the response body sends request body + binds local socket + sends url encoded nested parameters + sends url encoded parameters represents empty body response as blank string - handles requests with proxy - handles deflate compression handles proxy failures handles headers with multiple values supports timeout option - handles connection error - handles gzip compression - supports open_timeout option - retrieves the response headers - streaming - when response is empty - is expected to eq [["", 0]] - when response contains big data - handles streaming - #get + with parallel setup + handles parallel requests status + #delete behaves like a request method - parses the reason phrase - handles headers with multiple values supports open_timeout option + retrieves the response headers + supports timeout option retrieves the response body - handles connection error + sends user agent sends request body sends url encoded nested parameters sends url encoded parameters - handles gzip compression + binds local socket + handles connection error + handles headers with multiple values + parses the reason phrase handles requests with proxy - handles deflate compression - represents empty body response as blank string - retrieves the response headers handles proxy failures - sends user agent - supports timeout option - streaming - when response contains big data - handles streaming - when response is empty - is expected to eq [["", 0]] - #put + represents empty body response as blank string + with parallel setup + handles parallel requests status + handles parallel requests body + #options behaves like a request method handles proxy failures + supports timeout option + represents empty body response as blank string + parses the reason phrase + sends user agent sends url encoded parameters - retrieves the response body + handles connection error retrieves the response headers - handles deflate compression - sends files - parses the reason phrase - handles headers with multiple values handles requests with proxy sends request body - handles gzip compression - sends url encoded nested parameters - supports timeout option - sends user agent supports open_timeout option - represents empty body response as blank string - handles connection error - streaming - when response is empty - is expected to eq [["", 0]] - when response contains big data - handles streaming - #delete + sends url encoded nested parameters + retrieves the response body + handles headers with multiple values + binds local socket + with parallel setup + handles parallel requests status + handles parallel requests body + #patch behaves like a request method + retrieves the response headers + handles proxy failures + binds local socket + handles connection error + sends url encoded nested parameters + supports open_timeout option + retrieves the response body handles requests with proxy - handles deflate compression + sends user agent + sends request body represents empty body response as blank string - sends url encoded nested parameters + sends url encoded parameters + parses the reason phrase supports timeout option + handles headers with multiple values + sends files + with parallel setup + handles parallel requests status + handles parallel requests body + #put + behaves like a request method + parses the reason phrase + supports timeout option + binds local socket sends request body sends user agent - handles connection error - sends url encoded parameters - parses the reason phrase - handles proxy failures - handles gzip compression handles headers with multiple values - supports open_timeout option retrieves the response headers + supports open_timeout option + handles requests with proxy + handles connection error + handles proxy failures + sends url encoded nested parameters retrieves the response body - streaming - when response is empty - is expected to eq [["", 0]] - when response contains big data - handles streaming - #options + sends files + represents empty body response as blank string + sends url encoded parameters + with parallel setup + handles parallel requests body + handles parallel requests status + #get behaves like a request method represents empty body response as blank string supports timeout option - sends url encoded nested parameters sends request body - handles gzip compression + binds local socket + handles headers with multiple values handles connection error sends user agent - sends url encoded parameters - handles proxy failures - handles deflate compression - handles headers with multiple values + sends url encoded nested parameters + parses the reason phrase + retrieves the response body + retrieves the response headers supports open_timeout option + sends url encoded parameters handles requests with proxy + handles proxy failures + with parallel setup + handles parallel requests body + handles parallel requests status + #trace + behaves like a request method + sends url encoded parameters + sends user agent retrieves the response body retrieves the response headers parses the reason phrase - streaming - when response contains big data - handles streaming - when response is empty - is expected to eq [["", 0]] - #trace + handles headers with multiple values + supports open_timeout option + supports timeout option + sends url encoded nested parameters + represents empty body response as blank string + handles proxy failures + handles requests with proxy + sends request body + handles connection error + binds local socket + with parallel setup + handles parallel requests status + handles parallel requests body + with SSL disabled + #get behaves like a request method + supports timeout option + retrieves the response headers + sends url encoded nested parameters sends user agent - handles deflate compression + handles proxy failures sends request body - represents empty body response as blank string - handles requests with proxy - handles gzip compression handles headers with multiple values - handles proxy failures - supports open_timeout option - retrieves the response headers - retrieves the response body + handles requests with proxy sends url encoded parameters + binds local socket + supports open_timeout option parses the reason phrase - sends url encoded nested parameters - supports timeout option + represents empty body response as blank string handles connection error - streaming - when response is empty - is expected to eq [["", 0]] - when response contains big data - handles streaming - #post + retrieves the response body + with parallel setup + handles parallel requests status + handles parallel requests body + #options behaves like a request method + supports timeout option handles requests with proxy - sends user agent handles proxy failures + handles connection error + binds local socket retrieves the response body - handles deflate compression handles headers with multiple values - retrieves the response headers - sends url encoded nested parameters - supports open_timeout option parses the reason phrase - sends files - sends url encoded parameters - supports timeout option + supports open_timeout option sends request body + sends url encoded nested parameters + retrieves the response headers represents empty body response as blank string - handles gzip compression - handles connection error - streaming - when response is empty - is expected to eq [["", 0]] - when response contains big data - handles streaming - with SSL disabled - #get - behaves like a request method sends user agent - handles deflate compression - sends url encoded nested parameters - handles gzip compression - handles connection error sends url encoded parameters + with parallel setup + handles parallel requests body + handles parallel requests status + #trace + behaves like a request method + supports timeout option supports open_timeout option + handles proxy failures retrieves the response headers + handles connection error + parses the reason phrase sends request body - handles proxy failures + handles requests with proxy + sends user agent + sends url encoded parameters retrieves the response body - handles headers with multiple values represents empty body response as blank string - parses the reason phrase - handles requests with proxy - supports timeout option - streaming - when response is empty - is expected to eq [["", 0]] - when response contains big data - handles streaming - #delete + handles headers with multiple values + binds local socket + sends url encoded nested parameters + with parallel setup + handles parallel requests body + handles parallel requests status + #head behaves like a request method - sends user agent - sends request body - handles requests with proxy + supports open_timeout option handles connection error + handles headers with multiple values sends url encoded parameters handles proxy failures + sends user agent + supports timeout option represents empty body response as blank string - handles gzip compression - supports open_timeout option - sends url encoded nested parameters + binds local socket + handles requests with proxy parses the reason phrase - handles headers with multiple values retrieves the response headers - supports timeout option - retrieves the response body - handles deflate compression - streaming - when response contains big data - handles streaming - when response is empty - is expected to eq [["", 0]] + sends request body + sends url encoded nested parameters + with parallel setup + handles parallel requests status #patch behaves like a request method + sends request body + parses the reason phrase + sends url encoded nested parameters + binds local socket + handles connection error + handles proxy failures represents empty body response as blank string + sends files handles headers with multiple values - parses the reason phrase + retrieves the response body + handles requests with proxy supports open_timeout option supports timeout option - handles requests with proxy - handles deflate compression + sends user agent sends url encoded parameters - sends files - sends request body - retrieves the response body - sends url encoded nested parameters - handles proxy failures retrieves the response headers - sends user agent - handles gzip compression - handles connection error - streaming - when response is empty - is expected to eq [["", 0]] - when response contains big data - handles streaming - #head + with parallel setup + handles parallel requests body + handles parallel requests status + #post behaves like a request method - sends url encoded nested parameters - supports timeout option - parses the reason phrase - retrieves the response headers sends request body sends url encoded parameters - handles proxy failures + binds local socket supports open_timeout option - handles headers with multiple values represents empty body response as blank string + retrieves the response body + sends user agent handles requests with proxy handles connection error - sends user agent - retrieves the response body - streaming - when response contains big data - handles streaming - when response is empty - is expected to eq [["", 0]] - #trace - behaves like a request method - handles gzip compression + parses the reason phrase handles proxy failures retrieves the response headers - sends user agent - supports open_timeout option - handles connection error - represents empty body response as blank string - handles requests with proxy - sends request body - sends url encoded parameters + sends url encoded nested parameters handles headers with multiple values - handles deflate compression supports timeout option - sends url encoded nested parameters - parses the reason phrase - retrieves the response body - streaming - when response contains big data - handles streaming - when response is empty - is expected to eq [["", 0]] + sends files + with parallel setup + handles parallel requests body + handles parallel requests status #put behaves like a request method - handles gzip compression - supports timeout option - handles headers with multiple values - sends url encoded parameters - handles proxy failures - handles requests with proxy + retrieves the response headers + sends files sends user agent + binds local socket handles connection error - sends url encoded nested parameters - sends files + handles proxy failures retrieves the response body + sends request body + sends url encoded parameters represents empty body response as blank string - retrieves the response headers - handles deflate compression - supports open_timeout option parses the reason phrase - sends request body - streaming - when response is empty - is expected to eq [["", 0]] - when response contains big data - handles streaming - #post - behaves like a request method + handles requests with proxy + sends url encoded nested parameters handles headers with multiple values - handles proxy failures - parses the reason phrase - sends request body - represents empty body response as blank string supports open_timeout option - sends files supports timeout option - retrieves the response body - sends url encoded nested parameters - handles gzip compression - sends url encoded parameters - retrieves the response headers - handles requests with proxy - handles deflate compression - sends user agent - handles connection error - streaming - when response is empty - is expected to eq [["", 0]] - when response contains big data - handles streaming - #options + with parallel setup + handles parallel requests body + handles parallel requests status + #delete behaves like a request method - sends user agent + sends url encoded parameters + binds local socket supports timeout option - sends request body - supports open_timeout option + parses the reason phrase represents empty body response as blank string - handles deflate compression sends url encoded nested parameters - handles proxy failures - parses the reason phrase handles requests with proxy + handles proxy failures + handles connection error handles headers with multiple values - retrieves the response body + sends user agent retrieves the response headers - sends url encoded parameters - handles connection error - handles gzip compression - 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 http url including port - is expected to eq 1234 - with custom adapter config - is expected to eq 123 - with https url - is expected to eq 443 + retrieves the response body + supports open_timeout option + sends request body + with parallel setup + handles parallel requests body + handles parallel requests status + +Faraday::Adapter + #request_timeout + gets :open timeout + gets :write timeout + attempts unknown timeout type + gets :read timeout + +Faraday::FlatParamsEncoder + encodes unsorted when asked + encodes boolean values in array + decodes boolean values + decodes arrays + encodes boolean values + encodes empty array in hash + behaves like a params encoder + raises type error for empty string + escapes safe buffer + encodes nil Faraday::Request::Retry + retry_if option + retries if retry_if block always returns true + FilePart: should rewind files on retry + UploadIO: should rewind files on retry + does not retry if retry_if block returns false checking exception + does not retry if retry_if block returns false checking env + 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 no exception raised + and response code is in retry_statuses + is expected to eq 2 + and response code is not in retry_statuses + is expected to eq 1 + when method is not idempotent + is expected to eq 1 when an expected error happens is expected to eq 3 + and new max_retry set to 3 + is expected to eq 4 + and both max_retry and interval are set + is expected to be within 0.04 of 0.2 + and legacy max_retry set to 1 + is expected to eq 2 and new max_retry set to -9 is expected to eq 1 and legacy max_retry set to -9 is expected to eq 1 - and legacy max_retry set to 1 - is expected to eq 2 - and both max_retry and interval are set - is expected to be within 0.04 of 0.2 - and new max_retry set to 3 - is expected to eq 4 retry_after header support - 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 retry_after smaller than interval is expected to be > 0.2 + when retry_after bigger than interval + is expected to be > 0.5 + when retry_after is bigger than max_interval + is expected to eq 1 #calculate_retry_interval with exponential backoff and interval_randomness is expected to be between 0.1 and 0.15 (inclusive) - with exponential backoff - is expected to eq 0.4 - is expected to eq 0.1 - is expected to eq 0.2 with exponential backoff and max_interval is expected to eq 0.1 - is expected to eq 0.2 is expected to eq 0.3 + is expected to eq 0.2 is expected to eq 0.3 - when no exception raised - and response code is in retry_statuses - is expected to eq 2 - and response code is not in retry_statuses - is expected to eq 1 - when method is not idempotent - is expected to eq 1 - retry_if option - does not retry if retry_if block returns false checking env - FilePart: should rewind files on retry - does not retry if retry_if block returns false checking exception - UploadIO: should rewind files on retry - retries if retry_if block always returns true - with empty list of methods to retry - calls retry_if for all methods - when explicitly specifying methods to retry - does not call retry_if for specified methods + with exponential backoff + is expected to eq 0.2 + is expected to eq 0.4 + is expected to eq 0.1 when an unexpected error happens is expected to eq 1 and this is passed as a custom exception is expected to eq 3 -Faraday::Response::RaiseError - raises Faraday::ForbiddenError for 403 responses - raises Faraday::ConflictError for 409 responses - raises Faraday::ServerError for 500 responses - raises Faraday::UnprocessableEntityError for 422 responses - raises Faraday::BadRequestError for 400 responses - raises Faraday::ResourceNotFound for 404 responses - raises no exception for 200 responses - raises Faraday::ProxyAuthError for 407 responses - raises Faraday::ClientError for other 4xx responses - raises Faraday::NilStatusError for nil status in response - raises Faraday::UnauthorizedError for 401 responses - request info - returns the request info in the exception - -Faraday::Request::UrlEncoded - works with unicode - works with nested keys - works with with headers - does nothing without payload - ignores custom content type - works with non nested params - works with no headers - works with nested params - customising default_space_encoding - uses the custom character to encode spaces - -Faraday::Env - allows to access members - allows to access string non members - allows to access symbol non members - retains custom members - ignores false when fetching - #body - when response is finished - returns the response body - allows to access request_body - allows to access response_body - when response is not finished yet - returns the request body +Faraday::CompositeReadIO + with mix of empty and non-empty parts + allows to read in chunks + 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 empty parts + is expected to eq 0 + is expected to be nil + is expected to eq "" + with 2 parts + is expected to eq 8 + is expected to eq "abcd1234" + allows to read in chunks + allows to rewind while reading in chunks + with empty composite_io + is expected to eq "" + is expected to be nil + is expected to eq 0 -Faraday::Adapter::NetHttpPersistent - allows to set pool_size on initialize +Faraday::Adapter::Excon allows to provide adapter specific configs - sets max_retries to 0 - min_version - allows to set min_version in SSL settings behaves like an adapter - with SSL enabled - #put + with SSL disabled + #trace behaves like a request method - handles gzip compression sends url encoded parameters - supports open_timeout option - handles deflate compression - sends url encoded nested parameters + supports timeout option + handles proxy failures handles headers with multiple values - handles requests with proxy handles connection error - retrieves the response headers - sends files sends request body - retrieves the response body parses the reason phrase + sends url encoded nested parameters + retrieves the response body + supports open_timeout option represents empty body response as blank string - supports timeout option - handles proxy failures + handles requests with proxy + retrieves the response headers sends user agent #options behaves like a request method - parses the reason phrase - handles requests with proxy - handles proxy failures + sends user agent sends request body retrieves the response body - retrieves the response headers - handles headers with multiple values - handles deflate compression + represents empty body response as blank string + handles proxy failures sends url encoded nested parameters - handles connection error sends url encoded parameters - supports timeout option - handles gzip compression - represents empty body response as blank string + handles connection error + handles headers with multiple values + parses the reason phrase + retrieves the response headers + handles requests with proxy supports open_timeout option - sends user agent - #trace + supports timeout option + #patch behaves like a request method - sends user agent + sends files + supports open_timeout option + handles headers with multiple values + sends url encoded parameters parses the reason phrase - handles gzip compression + sends request body supports timeout option - handles headers with multiple values - retrieves the response body - handles deflate compression + sends user agent retrieves the response headers - sends url encoded nested parameters handles requests with proxy - handles proxy failures - supports open_timeout option represents empty body response as blank string - sends url encoded parameters - sends request body + retrieves the response body + sends url encoded nested parameters + handles proxy failures handles connection error - #post + #delete behaves like a request method - retrieves the response body - supports open_timeout option handles proxy failures - handles gzip compression + retrieves the response body + handles connection error + handles requests with proxy sends user agent - represents empty body response as blank string - supports timeout option + supports open_timeout option sends url encoded nested parameters - handles requests with proxy - handles deflate compression + represents empty body response as blank string retrieves the response headers - sends files - parses the reason phrase - sends url encoded parameters handles headers with multiple values + sends url encoded parameters sends request body - handles connection error - #head - behaves like a request method - handles requests with proxy parses the reason phrase + supports timeout option + #post + behaves like a request method represents empty body response as blank string - sends url encoded parameters + sends request body + handles proxy failures + sends user agent handles headers with multiple values + parses the reason phrase + sends url encoded parameters sends url encoded nested parameters handles connection error - retrieves the response headers - sends request body - retrieves the response body - sends user agent supports timeout option + retrieves the response body supports open_timeout option - handles proxy failures + handles requests with proxy + retrieves the response headers + sends files #get behaves like a request method - sends user agent - parses the reason phrase + retrieves the response headers sends request body - handles gzip compression + sends user agent + handles requests with proxy sends url encoded parameters + parses the reason phrase + handles proxy failures + supports timeout option + supports open_timeout option represents empty body response as blank string - retrieves the response body - handles requests with proxy handles connection error - retrieves the response headers - supports open_timeout option - handles deflate compression sends url encoded nested parameters - handles proxy failures + retrieves the response body handles headers with multiple values - supports timeout option - #delete + #head behaves like a request method - handles deflate compression - handles gzip compression - retrieves the response body - supports open_timeout option - handles connection error + handles proxy failures handles requests with proxy + supports open_timeout option + sends request body + sends url encoded parameters parses the reason phrase + retrieves the response body + sends url encoded nested parameters + handles connection error + handles headers with multiple values retrieves the response headers + supports timeout option + represents empty body response as blank string + sends user agent + #put + behaves like a request method + sends files sends user agent represents empty body response as blank string handles headers with multiple values - sends request body - sends url encoded nested parameters - supports timeout option sends url encoded parameters - handles proxy failures - #patch - behaves like a request method - sends url encoded nested parameters - supports timeout option - handles requests with proxy retrieves the response headers - handles proxy failures - sends user agent - sends url encoded parameters - handles headers with multiple values - handles gzip compression - represents empty body response as blank string + supports timeout option supports open_timeout option - sends files retrieves the response body - handles deflate compression - sends request body - handles connection error + handles requests with proxy parses the reason phrase - with SSL disabled + handles proxy failures + handles connection error + sends request body + sends url encoded nested parameters + with SSL enabled #head behaves like a request method - supports timeout option + sends request body + parses the reason phrase handles proxy failures - supports open_timeout option + handles headers with multiple values represents empty body response as blank string - sends request body + sends user agent sends url encoded nested parameters - parses the reason phrase handles requests with proxy - sends user agent - handles headers with multiple values - retrieves the response body sends url encoded parameters retrieves the response headers handles connection error - #patch + retrieves the response body + supports timeout option + supports open_timeout option + #delete behaves like a request method + sends url encoded parameters + supports open_timeout option retrieves the response body handles requests with proxy - supports open_timeout option - sends user agent - represents empty body response as blank string - sends files - handles proxy failures sends url encoded nested parameters - parses the reason phrase sends request body - retrieves the response headers - handles connection error - handles deflate compression - sends url encoded parameters - supports timeout option + parses the reason phrase handles headers with multiple values - handles gzip compression - #post - behaves like a request method - sends request body - retrieves the response body retrieves the response headers - sends url encoded parameters + handles proxy failures + supports timeout option handles connection error + represents empty body response as blank string sends user agent + #patch + behaves like a request method sends files - handles requests with proxy - sends url encoded nested parameters supports timeout option - handles proxy failures - handles deflate compression - handles headers with multiple values + sends url encoded nested parameters represents empty body response as blank string - supports open_timeout option - parses the reason phrase - handles gzip compression - #options - behaves like a request method - retrieves the response body + handles connection error retrieves the response headers + handles requests with proxy + sends user agent handles headers with multiple values - sends url encoded nested parameters - handles connection error - supports timeout option - represents empty body response as blank string + parses the reason phrase + sends request body + retrieves the response body handles proxy failures sends url encoded parameters - handles deflate compression - parses the reason phrase - handles gzip compression supports open_timeout option - handles requests with proxy - sends request body - sends user agent - #get + #post behaves like a request method - sends request body - sends url encoded nested parameters handles requests with proxy + sends user agent + handles proxy failures + handles connection error supports timeout option - represents empty body response as blank string - supports open_timeout option retrieves the response headers - handles gzip compression - handles connection error + supports open_timeout option handles headers with multiple values - sends user agent + represents empty body response as blank string parses the reason phrase - sends url encoded parameters + sends url encoded nested parameters + sends request body retrieves the response body - handles deflate compression - handles proxy failures + sends files + sends url encoded parameters #trace behaves like a request method - handles proxy failures - handles gzip compression - handles connection error + handles headers with multiple values + sends url encoded nested parameters retrieves the response body + sends user agent + supports timeout option + supports open_timeout option represents empty body response as blank string - parses the reason phrase + sends url encoded parameters retrieves the response headers - handles headers with multiple values - handles deflate compression + handles connection error + parses the reason phrase + sends request body handles requests with proxy + handles proxy failures + #put + behaves like a request method sends url encoded parameters - supports open_timeout option - sends request body + parses the reason phrase + retrieves the response headers + sends files sends user agent - supports timeout option + sends request body sends url encoded nested parameters - #put - behaves like a request method + retrieves the response body + handles headers with multiple values + handles connection error + handles proxy failures supports timeout option - sends request body - represents empty body response as blank string + handles requests with proxy supports open_timeout option - retrieves the response body - sends url encoded nested parameters - sends files - handles gzip compression + represents empty body response as blank string + #options + behaves like a request method handles proxy failures sends url encoded parameters - sends user agent + retrieves the response headers + retrieves the response body + supports open_timeout option + represents empty body response as blank string handles connection error - handles deflate compression parses the reason phrase - handles requests with proxy - retrieves the response headers + sends user agent + sends request body handles headers with multiple values - #delete + supports timeout option + handles requests with proxy + sends url encoded nested parameters + #get behaves like a request method + sends user agent + sends request body + sends url encoded parameters handles headers with multiple values + retrieves the response headers + handles requests with proxy + handles proxy failures retrieves the response body + supports open_timeout option + parses the reason phrase handles connection error supports timeout option - sends url encoded parameters - handles deflate compression - represents empty body response as blank string - handles proxy failures - retrieves the response headers - sends request body - sends user agent sends url encoded nested parameters - handles requests with proxy - parses the reason phrase - handles gzip compression - supports open_timeout option - -Faraday::Utils - headers parsing - parse headers for aggregated responses - URI parsing - parses with block - replaces headers hash - parses with default parser - escapes safe buffer - parses with URI - -Faraday::ProxyOptions - allows hash access - #from - works with no auth - works with nil - works with string - -Faraday::Request::Multipart - UploadIO: when multipart objects in array param - forms a multipart request - behaves like a multipart request - generates a unique boundary for each request - FilePart: when multipart objects in param - forms a multipart request - behaves like a multipart request - generates a unique boundary for each request - when passing flat_encode=true option - encode params using flat encoder - 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 providing json and IO content in the same payload - forms a multipart request - behaves like a multipart request - generates a unique boundary for each request - UploadIO: when multipart objects in param - forms a multipart request - behaves like a multipart request - generates a unique boundary for each request - -Faraday::NestedParamsEncoder - encodes boolean values - decodes nested array mixed types - decodes hashes - decodes nested ignores repeated array notation - decodes arrays - decodes nested ignores malformed keys - decodes nested arrays rack compat - encodes unsorted when asked - encodes boolean values in array - encodes nil array value - encodes empty array value - decodes nested final value overrides any type - encodes rack compat - encodes empty string array value - decodes nested subkeys dont have to be in brackets - decodes nested ignores invalid array - when expecting hash but getting array - behaves like a wrong decoding - is expected to raise TypeError - when expecting array but getting string - behaves like a wrong decoding - is expected to raise TypeError - when expecting nested hash but getting non nested - behaves like a wrong decoding - is expected to raise TypeError - behaves like a params encoder - encodes nil - raises type error for empty string - escapes safe buffer - when expecting hash but getting string - behaves like a wrong decoding - is expected to raise TypeError - when expecting array but getting hash - behaves like a wrong decoding - is expected to raise TypeError + represents empty body response as blank string + config + sets timeout and open_timeout + sets timeout + sets open_timeout -Faraday::Adapter::EMHttp - allows to provide adapter specific configs +Faraday::Adapter::Typhoeus behaves like an adapter with SSL enabled - #trace + #head behaves like a request method + sends user agent handles headers with multiple values + sends url encoded nested parameters handles requests with proxy - sends request body - sends url encoded parameters - handles proxy failures - supports open_timeout option supports timeout option - binds local socket + sends url encoded parameters + handles connection error retrieves the response headers - parses the reason phrase - sends url encoded nested parameters represents empty body response as blank string + supports open_timeout option + handles proxy failures retrieves the response body - handles connection error - sends user agent + sends request body with parallel setup - handles parallel requests status handles parallel requests body - #head + handles parallel requests status + #options behaves like a request method - supports open_timeout option - represents empty body response as blank string - binds local socket + sends url encoded parameters + handles requests with proxy sends user agent - handles headers with multiple values - supports timeout option - parses the reason phrase - handles connection error + retrieves the response body retrieves the response headers + handles proxy failures + handles connection error sends request body - sends url encoded parameters - handles requests with proxy + handles headers with multiple values sends url encoded nested parameters - handles proxy failures + supports open_timeout option + represents empty body response as blank string + supports timeout option with parallel setup handles parallel requests status - #options + handles parallel requests body + #post behaves like a request method sends url encoded parameters - sends url encoded nested parameters + retrieves the response body supports timeout option - supports open_timeout option retrieves the response headers - sends user agent - binds local socket - sends request body - handles connection error - represents empty body response as blank string + sends files + sends url encoded nested parameters handles proxy failures - parses the reason phrase + supports open_timeout option handles requests with proxy + handles connection error + sends user agent + represents empty body response as blank string handles headers with multiple values - retrieves the response body + sends request body with parallel setup - handles parallel requests body handles parallel requests status + handles parallel requests body #put behaves like a request method - represents empty body response as blank string - supports timeout option - sends files - retrieves the response body retrieves the response headers - binds local socket - handles connection error - sends user agent - supports open_timeout option handles proxy failures - sends url encoded parameters - parses the reason phrase - handles requests with proxy + supports timeout option + supports open_timeout option + retrieves the response body + sends url encoded nested parameters sends request body + handles requests with proxy handles headers with multiple values - sends url encoded nested parameters + sends url encoded parameters + sends files + sends user agent + represents empty body response as blank string + handles connection error with parallel setup handles parallel requests body handles parallel requests status #patch behaves like a request method - sends url encoded parameters - supports open_timeout option - retrieves the response headers - sends url encoded nested parameters - handles proxy failures handles headers with multiple values handles requests with proxy - represents empty body response as blank string - retrieves the response body - sends user agent - sends files - handles connection error + supports open_timeout option supports timeout option - binds local socket + handles proxy failures + sends url encoded nested parameters sends request body - parses the reason phrase + handles connection error + sends files + retrieves the response headers + sends user agent + retrieves the response body + represents empty body response as blank string + sends url encoded parameters with parallel setup handles parallel requests body handles parallel requests status #delete behaves like a request method + retrieves the response body + represents empty body response as blank string + sends url encoded parameters sends url encoded nested parameters - parses the reason phrase sends user agent - handles connection error - handles requests with proxy - handles headers with multiple values - binds local socket sends request body - represents empty body response as blank string - supports open_timeout option - handles proxy failures - sends url encoded parameters - retrieves the response body retrieves the response headers + handles proxy failures + handles requests with proxy + handles headers with multiple values supports timeout option + supports open_timeout option + handles connection error with parallel setup handles parallel requests body handles parallel requests status - #get + #trace behaves like a request method + handles requests with proxy supports timeout option + sends url encoded parameters + sends user agent supports open_timeout option - handles connection error - retrieves the response body represents empty body response as blank string - binds local socket - parses the reason phrase + retrieves the response headers + retrieves the response body sends request body - sends url encoded parameters + handles connection error sends url encoded nested parameters - handles proxy failures - sends user agent - handles requests with proxy handles headers with multiple values - retrieves the response headers + handles proxy failures with parallel setup - handles parallel requests body handles parallel requests status - #post + handles parallel requests body + #get behaves like a request method - handles connection error - handles proxy failures - sends files sends request body + sends url encoded parameters + retrieves the response headers supports open_timeout option + handles headers with multiple values + represents empty body response as blank string + handles connection error sends url encoded nested parameters supports timeout option + retrieves the response body + sends user agent handles requests with proxy + handles proxy failures + with parallel setup + handles parallel requests status + handles parallel requests body + with SSL disabled + #delete + behaves like a request method handles headers with multiple values retrieves the response headers sends url encoded parameters - parses the reason phrase - sends user agent - binds local socket + sends url encoded nested parameters represents empty body response as blank string + sends request body + supports timeout option + supports open_timeout option + handles proxy failures + handles connection error + handles requests with proxy retrieves the response body + sends user agent with parallel setup handles parallel requests body handles parallel requests status - with SSL disabled - #options + #head behaves like a request method - represents empty body response as blank string + sends user agent sends url encoded nested parameters - parses the reason phrase retrieves the response headers - supports open_timeout option - handles proxy failures - sends request body + handles requests with proxy + supports timeout option sends url encoded parameters - handles headers with multiple values + represents empty body response as blank string handles connection error + handles headers with multiple values retrieves the response body - sends user agent - binds local socket - supports timeout option - handles requests with proxy + sends request body + supports open_timeout option + handles proxy failures with parallel setup handles parallel requests body handles parallel requests status - #delete + #options behaves like a request method - handles requests with proxy supports open_timeout option + sends request body + sends user agent sends url encoded parameters + retrieves the response headers + represents empty body response as blank string + retrieves the response body + supports timeout option + handles requests with proxy handles headers with multiple values handles connection error - binds local socket - parses the reason phrase - sends user agent handles proxy failures - sends request body - retrieves the response body - represents empty body response as blank string - supports timeout option - retrieves the response headers sends url encoded nested parameters with parallel setup handles parallel requests status handles parallel requests body #get behaves like a request method - retrieves the response headers + represents empty body response as blank string handles headers with multiple values - sends url encoded parameters - sends user agent - handles proxy failures + sends url encoded nested parameters + handles requests with proxy handles connection error supports open_timeout option - sends url encoded nested parameters - sends request body + sends url encoded parameters + handles proxy failures supports timeout option - represents empty body response as blank string - binds local socket + sends request body retrieves the response body - handles requests with proxy - parses the reason phrase + retrieves the response headers + sends user agent with parallel setup handles parallel requests body handles parallel requests status - #patch + #trace behaves like a request method - retrieves the response body - sends url encoded parameters - sends user agent - supports open_timeout option - sends request body + handles requests with proxy sends url encoded nested parameters - retrieves the response headers - sends files + represents empty body response as blank string handles headers with multiple values - binds local socket - handles requests with proxy - parses the reason phrase + sends user agent + retrieves the response headers + sends url encoded parameters + retrieves the response body + sends request body + handles proxy failures handles connection error - represents empty body response as blank string + supports open_timeout option supports timeout option - handles proxy failures with parallel setup handles parallel requests status handles parallel requests body - #trace + #patch behaves like a request method - retrieves the response headers - sends user agent + sends url encoded parameters + sends files + supports open_timeout option handles proxy failures - handles connection error - supports timeout option + retrieves the response headers sends url encoded nested parameters - supports open_timeout option - represents empty body response as blank string - sends url encoded parameters - binds local socket sends request body + represents empty body response as blank string + supports timeout option handles headers with multiple values - handles requests with proxy - parses the reason phrase retrieves the response body + sends user agent + handles requests with proxy + handles connection error with parallel setup - handles parallel requests status handles parallel requests body - #head + handles parallel requests status + #put behaves like a request method - handles requests with proxy - handles connection error - sends request body - handles headers with multiple values - sends url encoded parameters + retrieves the response body sends url encoded nested parameters - handles proxy failures sends user agent - parses the reason phrase + sends url encoded parameters + handles requests with proxy + sends files represents empty body response as blank string - binds local socket - supports timeout option supports open_timeout option + handles headers with multiple values + supports timeout option + sends request body + handles proxy failures + handles connection error retrieves the response headers with parallel setup handles parallel requests status + handles parallel requests body #post behaves like a request method sends url encoded parameters - handles headers with multiple values sends user agent - binds local socket - retrieves the response body - handles requests with proxy sends files - handles connection error - parses the reason phrase - handles proxy failures + handles headers with multiple values sends url encoded nested parameters - represents empty body response as blank string - sends request body + retrieves the response body supports open_timeout option - supports timeout option - retrieves the response headers - with parallel setup - handles parallel requests body - handles parallel requests status - #put - behaves like a request method - parses the reason phrase + represents empty body response as blank string + handles requests with proxy retrieves the response headers - sends user agent - sends url encoded nested parameters + supports timeout option sends request body - handles requests with proxy - handles headers with multiple values handles connection error - retrieves the response body handles proxy failures - represents empty body response as blank string - supports timeout option - supports open_timeout option - binds local socket - sends files - sends url encoded parameters with parallel setup handles parallel requests body handles parallel requests status - Options - configures all timeout settings - configures timeout - configures timeout and open_timeout -Faraday::Adapter::HTTPClient +Faraday::Adapter::NetHttpPersistent allows to provide adapter specific configs - Options - configures timeout - configures open timeout - configures multiple timeouts + allows to set pool_size on initialize + sets max_retries to 0 behaves like an adapter with SSL enabled - #patch + #post behaves like a request method + sends request body handles proxy failures - sends files - handles connection error + supports timeout option + handles requests with proxy retrieves the response body - sends url encoded parameters - binds local socket - handles deflate compression - handles gzip compression represents empty body response as blank string - handles headers with multiple values - sends request body - handles requests with proxy - parses the reason phrase + sends files + supports open_timeout option sends user agent + sends url encoded parameters sends url encoded nested parameters + parses the reason phrase + handles connection error + handles headers with multiple values retrieves the response headers - supports open_timeout option - supports timeout option - #put + handles gzip compression + handles deflate compression + #patch behaves like a request method + handles proxy failures + sends files retrieves the response headers - handles headers with multiple values - sends request body - handles gzip compression - represents empty body response as blank string - parses the reason phrase + supports timeout option + retrieves the response body sends user agent - handles requests with proxy + handles gzip compression sends url encoded nested parameters + supports open_timeout option + handles connection error + parses the reason phrase + sends request body sends url encoded parameters + handles headers with multiple values handles deflate compression + handles requests with proxy + represents empty body response as blank string + #delete + behaves like a request method handles proxy failures - retrieves the response body - sends files handles connection error - supports timeout option supports open_timeout option - binds local socket - #head - behaves like a request method - binds local socket - handles requests with proxy retrieves the response body - retrieves the response headers - sends url encoded parameters + sends user agent + handles gzip compression sends request body - sends url encoded nested parameters - handles proxy failures + handles deflate compression supports timeout option + sends url encoded nested parameters represents empty body response as blank string - sends user agent - handles connection error - handles headers with multiple values - supports open_timeout option + retrieves the response headers + sends url encoded parameters parses the reason phrase + handles requests with proxy + handles headers with multiple values #get behaves like a request method - handles deflate compression handles gzip compression - represents empty body response as blank string + supports timeout option + sends url encoded nested parameters + retrieves the response headers sends request body handles connection error - handles headers with multiple values - handles requests with proxy - handles proxy failures + represents empty body response as blank string retrieves the response body - retrieves the response headers - sends user agent - supports timeout option - parses the reason phrase - sends url encoded parameters - sends url encoded nested parameters + handles proxy failures supports open_timeout option - binds local socket - #options - behaves like a request method - binds local socket + sends url encoded parameters handles requests with proxy - parses the reason phrase + handles deflate compression handles headers with multiple values - handles gzip compression - sends url encoded parameters + parses the reason phrase + sends user agent + #put + behaves like a request method supports timeout option sends request body - supports open_timeout option + retrieves the response body + retrieves the response headers + handles gzip compression sends url encoded nested parameters - represents empty body response as blank string + sends url encoded parameters handles proxy failures + handles headers with multiple values + supports open_timeout option + handles requests with proxy handles connection error - retrieves the response headers + represents empty body response as blank string sends user agent + parses the reason phrase handles deflate compression - retrieves the response body - #post + sends files + #head behaves like a request method sends url encoded nested parameters - parses the reason phrase - supports timeout option sends request body - handles requests with proxy + handles proxy failures supports open_timeout option - represents empty body response as blank string - binds local socket + parses the reason phrase retrieves the response body - handles gzip compression - handles connection error + represents empty body response as blank string + supports timeout option + handles requests with proxy sends user agent - sends url encoded parameters handles headers with multiple values - handles proxy failures - sends files - handles deflate compression + sends url encoded parameters + handles connection error retrieves the response headers - #trace + #options behaves like a request method - sends user agent - binds local socket - handles requests with proxy - supports timeout option - handles deflate compression - represents empty body response as blank string - handles gzip compression + retrieves the response headers retrieves the response body - sends url encoded nested parameters - sends url encoded parameters + parses the reason phrase handles headers with multiple values - retrieves the response headers handles connection error - parses the reason phrase + sends url encoded nested parameters + sends user agent sends request body + represents empty body response as blank string + supports timeout option + handles requests with proxy supports open_timeout option + handles deflate compression handles proxy failures - #delete + handles gzip compression + sends url encoded parameters + #trace behaves like a request method - supports open_timeout option - handles headers with multiple values + supports timeout option sends url encoded parameters - sends request body - handles deflate compression sends url encoded nested parameters - retrieves the response body + represents empty body response as blank string + handles requests with proxy + handles deflate compression + handles connection error sends user agent retrieves the response headers - handles proxy failures - binds local socket - represents empty body response as blank string handles gzip compression - handles requests with proxy - supports timeout option + handles headers with multiple values + handles proxy failures + supports open_timeout option parses the reason phrase - handles connection error + retrieves the response body + sends request body with SSL disabled - #put + #trace behaves like a request method - sends files - represents empty body response as blank string handles connection error - sends url encoded parameters sends request body - handles proxy failures - handles requests with proxy - parses the reason phrase retrieves the response headers - handles headers with multiple values + supports open_timeout option handles gzip compression + supports timeout option + handles headers with multiple values + sends url encoded parameters + sends user agent + represents empty body response as blank string retrieves the response body sends url encoded nested parameters + handles deflate compression + parses the reason phrase + handles requests with proxy + handles proxy failures + #delete + behaves like a request method + handles connection error + retrieves the response headers + sends request body + sends url encoded nested parameters + handles headers with multiple values + handles gzip compression + handles deflate compression supports open_timeout option supports timeout option - handles deflate compression - binds local socket + parses the reason phrase + sends url encoded parameters + handles requests with proxy + handles proxy failures + represents empty body response as blank string + retrieves the response body sends user agent - #post + #head behaves like a request method - handles proxy failures - supports open_timeout option - sends files + handles requests with proxy + handles connection error + parses the reason phrase + handles headers with multiple values sends request body - represents empty body response as blank string sends url encoded parameters sends user agent - handles deflate compression - handles connection error + represents empty body response as blank string retrieves the response body - retrieves the response headers - handles requests with proxy - binds local socket sends url encoded nested parameters - handles gzip compression - handles headers with multiple values - parses the reason phrase supports timeout option - #delete + retrieves the response headers + supports open_timeout option + handles proxy failures + #get behaves like a request method - parses the reason phrase - handles gzip compression sends url encoded nested parameters - supports timeout option - sends url encoded parameters handles requests with proxy - represents empty body response as blank string - supports open_timeout option retrieves the response headers - handles proxy failures retrieves the response body - sends user agent handles deflate compression - binds local socket + sends url encoded parameters + parses the reason phrase + handles gzip compression handles headers with multiple values - handles connection error + supports timeout option + sends user agent + handles proxy failures sends request body - #patch + handles connection error + represents empty body response as blank string + supports open_timeout option + #put behaves like a request method + retrieves the response headers + sends user agent + handles connection error + sends url encoded parameters sends files + represents empty body response as blank string sends url encoded nested parameters + handles gzip compression + handles deflate compression supports timeout option - binds local socket - retrieves the response headers - represents empty body response as blank string supports open_timeout option sends request body - sends url encoded parameters - handles deflate compression handles proxy failures - retrieves the response body - handles connection error + handles headers with multiple values handles requests with proxy - handles gzip compression parses the reason phrase - sends user agent - handles headers with multiple values - #head + retrieves the response body + #patch behaves like a request method - sends url encoded nested parameters - retrieves the response headers - handles headers with multiple values - sends url encoded parameters parses the reason phrase - sends request body - binds local socket + handles gzip compression handles requests with proxy - supports timeout option represents empty body response as blank string supports open_timeout option - handles proxy failures + handles deflate compression handles connection error retrieves the response body + sends url encoded parameters + sends request body + sends files + sends url encoded nested parameters + handles proxy failures + supports timeout option sends user agent - #get + handles headers with multiple values + retrieves the response headers + #post behaves like a request method - binds local socket + sends files handles proxy failures - supports timeout option - handles connection error sends url encoded nested parameters + parses the reason phrase sends url encoded parameters - sends request body - supports open_timeout option + retrieves the response headers handles deflate compression sends user agent represents empty body response as blank string handles requests with proxy - parses the reason phrase - retrieves the response body - handles headers with multiple values - retrieves the response headers - handles gzip compression - #trace - behaves like a request method - sends request body - sends user agent - retrieves the response headers - sends url encoded parameters supports open_timeout option - parses the reason phrase - handles deflate compression - handles requests with proxy handles headers with multiple values - represents empty body response as blank string handles connection error - supports timeout option - binds local socket handles gzip compression - handles proxy failures + sends request body + supports timeout option retrieves the response body - sends url encoded nested parameters #options behaves like a request method - retrieves the response body - sends url encoded nested parameters - handles deflate compression - sends url encoded parameters handles headers with multiple values + retrieves the response headers supports open_timeout option - handles proxy failures - sends request body handles connection error - retrieves the response headers - sends user agent - handles requests with proxy + sends url encoded parameters represents empty body response as blank string + sends url encoded nested parameters + handles requests with proxy parses the reason phrase - handles gzip compression - binds local socket + handles proxy failures supports timeout option + sends request body + sends user agent + handles gzip compression + handles deflate compression + retrieves the response body + min_version + allows to set min_version in SSL settings + +Faraday + has a version number + proxies to default_connection + proxied methods can be accessed + proxies methods that exist on the default_connection + uses method_missing on Faraday if there is no proxyable method + +Faraday::RequestOptions + allows to set the request proxy + +Faraday::Request::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 + token_auth + when other values are provided + is expected to match /foo="42"/ + is expected to match /^Token / + is expected to match /token="baz"/ + 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 + authorization + when passed two strings + is expected to eq "custom abc def" + and request already has an authentication header + does not interfere with existing authorization + when passed a string and a hash + is expected to eq "baz foo=\"42\"" + and request already has an authentication header + does not interfere with existing authorization + +Faraday::Request::UrlEncoded + works with nested params + does nothing without payload + works with non nested params + works with unicode + works with with headers + works with no headers + ignores custom content type + works with nested keys + customising default_space_encoding + uses the custom character to encode spaces + +Faraday::Request + supports marshal serialization + when HTTP method is post + is expected to eq :post + when nothing particular is configured + is expected to be falsey + is expected to eq :get + when setting the url on setup with a string path and params + is expected to eq "foo.json" + is expected to eq {"a"=>1} + is expected to eq "http://sushi.com/api/foo.json?a=1" + 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 {:consumer_key=>"anonymous", :consumer_secret=>"xyz"} + is expected to eq 5 + is expected to eq "boo" + is expected to eq 10 + is expected to eq 10 + is expected to eq 5 + is expected to eq {:bar=>"bar", :foo=>"foo"} + when setting the body on setup + is expected to eq "hi" + is expected to eq "hi" + when setting a header on setup with []= syntax + is expected to eq "Faraday" + is expected to eq "1.0" + is expected to eq "Faraday" + when setting the url on setup with a path including params + is expected to eq "http://sushi.com/api/foo.json?a=1&b=2" + is expected to eq {"a"=>"1", "b"=>"2"} + is expected to eq "foo.json" + deprecate method for HTTP method + is expected to output /WARNING: `Faraday::Request#method` is deprecated; use `#http_method` instead. It will be removed in ...r after version 2.0.\n`Faraday::Request#method` called from .+\/spec\/faraday\/request_spec.rb:\d+./ to stderr +WARNING: `Faraday::Request#method` is deprecated; use `#http_method` instead. It will be removed in or after version 2.0. +`Faraday::Request#method` called from /build/ruby-faraday-1.1.0/spec/faraday/request_spec.rb:31:in `block (3 levels) in ' + is expected to eq :post + when setting the url on setup with a URI + is expected to eq {"a"=>"1"} + is expected to eq "http://sushi.com/api/foo.json?a=1" + is expected to eq # + +Faraday::RackBuilder + when a request adapter is added with named arguments + adds a handler to construct request adapter with options passed to request + when a response adapter is added with named arguments + adds a handler to construct response adapter with options passed to response + with custom handler and adapter + allows to compare handlers + locks the stack after making a request + dup stack is unlocked + when having a handler with broken dependency + raises an error while making a request + when handlers are directly added or updated + adds a handler with options passed to insert_after + adds a handler with options passed to swap + adds a handler to construct adapter with options passed to insert + with default stack + is expected to eq Faraday::Adapter::NetHttp + is expected to eq Faraday::Request::UrlEncoded + with custom adapter only + is expected to eq Faraday::Adapter::Test + is expected to be nil + when a plain adapter is added with named arguments + adds a handler to construct adapter with options passed to adapter + when middleware is added with named arguments + adds a handler to construct middleware with options passed to use + with custom empty block + is expected to eq Faraday::Adapter::NetHttp + is expected to be nil + when having a single handler + allows use + allows insert_after + raises an error trying to use an unregistered symbol + is expected to eq [Apple] + allows insert_before + allows rebuilding + with custom registered middleware + allows to register with string + allows to register with Proc + allows to register with constant + allows to register with symbol + when having two handlers + allows insert_before + allows to swap handlers + allows insert_after + allows to delete a handler + +Faraday::Response::RaiseError + raises Faraday::ProxyAuthError for 407 responses + raises Faraday::UnprocessableEntityError for 422 responses + raises Faraday::ConflictError for 409 responses + raises Faraday::NilStatusError for nil status in response + raises Faraday::ClientError for other 4xx responses + raises Faraday::ServerError for 500 responses + raises Faraday::UnauthorizedError for 401 responses + raises Faraday::BadRequestError for 400 responses + raises Faraday::ResourceNotFound for 404 responses + raises no exception for 200 responses + raises Faraday::ForbiddenError for 403 responses + request info + returns the request info in the exception + +Faraday::Response + is expected to eq "yikes" + is expected to raise RuntimeError + is expected to be falsey + is expected to eq 404 + is expected to be truthy + is expected to eq "text/plain" + is expected to eq "text/plain" + #on_complete + parse body on finish + can access response body in on_complete callback + can access response body in on_complete callback + marshal serialization support + is expected to eq 404 + is expected to be nil + is expected to eq "yikes" + is expected to eq {"Content-Type"=>"text/plain"} + #apply_request + is expected to eq :post + is expected to eq "yikes" + #to_hash + is expected to eq "yikes" + is expected to eq {"Content-Type"=>"text/plain"} + is expected to eq 404 + is expected to be a kind of Hash + +Faraday::Adapter::Test + with get params + is expected to eq "a" + with simple path sets headers + is expected to eq "text/html" + params parsing + with flat encoder + is expected to eq "a" + with default encoder + is expected to eq "a" + with nested encoder + is expected to eq "a" + with host points to the right stub + is expected to eq "domain: hello" + can handle regular expression path + is expected to eq "show" + can handle single parameter block + is expected to eq "get" + yielding env to stubs + is expected to eq "a" + ignoring unspecified get params + with single param + is expected to eq "a" + without params + is expected to raise Faraday::Adapter::Test::Stubs::NotFound + with multiple params + is expected to eq "a" + raising an error if no stub was found + for request + is expected to raise Faraday::Adapter::Test::Stubs::NotFound + for request without specified header + is expected to raise Faraday::Adapter::Test::Stubs::NotFound + for specified host + is expected to raise Faraday::Adapter::Test::Stubs::NotFound + can be called several times + is expected to eq "hello" + can handle regular expression path with captured result + is expected to eq "show specified" + with simple path sets status + is expected to eq 200 + with http headers + with header + is expected to eq "a" + without header + is expected to eq "b" + different outcomes for the same request + the first request + is expected to eq "hello" + the second request + is expected to eq "world" + with simple path sets body + is expected to eq "hello" + +Faraday::ProxyOptions + allows hash access + #from + works with no auth + works with string + works with nil + +Faraday::NestedParamsEncoder + decodes nested ignores invalid array + encodes rack compat + decodes nested ignores malformed keys + encodes boolean values + encodes empty array value + decodes arrays + encodes empty string array value + encodes nil array value + decodes nested ignores repeated array notation + decodes nested final value overrides any type + decodes hashes + decodes nested arrays rack compat + decodes nested subkeys dont have to be in brackets + decodes nested array mixed types + encodes boolean values in array + encodes unsorted when asked + behaves like a params encoder + raises type error for empty string + encodes nil + escapes safe buffer + when expecting array but getting string + behaves like a wrong decoding + is expected to raise TypeError + when expecting array but getting hash + behaves like a wrong decoding + is expected to raise TypeError + when expecting hash but getting array + behaves like a wrong decoding + is expected to raise TypeError + when expecting nested hash but getting non nested + behaves like a wrong decoding + is expected to raise TypeError + when expecting hash but getting string + behaves like a wrong decoding + is expected to raise TypeError + +Faraday::Middleware + #close + with app that supports #close + should issue warning + with app that doesn't support #close + should issue warning + +Faraday::Utils + URI parsing + replaces headers hash + parses with default parser + parses with URI + escapes safe buffer + parses with block + headers parsing + parse headers for aggregated responses Faraday::Response::Middleware - with a custom ResponseMiddleware - parses the response 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 + doesn't call the middleware for 304 responses + with a custom ResponseMiddleware + parses the response with a custom ResponseMiddleware and private parse parses the response -Faraday::RequestOptions - allows to set the request proxy +Faraday::Options + #merge + merges options with hashes + deeply merges options with nil + deeply merges two options + deeply merges options with options having nil sub-options + deeply merges options with hashes + #value? + returns true if any key has that value + #fetch + when the fetched key has no value + uses falsey default + accepts block + needs a default if key is missing + when the fetched key has a value + grabs value + works with key + #deep_dup + duplicate options and also suboptions + #each_key + allows to iterate through keys + #from + is expected to raise NoMethodError + works with options + works with deep hash + works with options with sub object + respects inheritance + works with hash + works with nil + works with hash with sub object + #empty? + returns true only if all options are nil + #each_value + allows to iterate through values + #delete + allows to remove value for key + #clear + clears the options + #dup + duplicate options but not sub-options + #key? + returns true if the key exists and is not nil + #update + updates options from hashes + #memoized + accepts block + requires block -Faraday::Adapter::Rack +Faraday::Connection + #respond_to? + is expected to be truthy + is expected to be truthy + #token_auth + is expected to eq "Token nonce=\"abc\", token=\"abcdef\"" + request params + with url and extra params + merges connection and request params + allows to override all params + allows to set params_encoder for single request + 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 simple url + test_overrides_request_params_block_url + test_overrides_request_params_block + test_overrides_request_params + with default params encoder + supports array params in url + supports array params in params + default_connection_options + assigning a default value + behaves like default connection options + works with implicit url + default connection options persist with an instance overriding + works with instance connection options + default connection uses default connection options + works with option url + assigning a hash + behaves like default connection options + default connection uses default connection options + default connection options persist with an instance overriding + works with implicit url + works with instance connection options + works with option url + #close + can close underlying app + basic_auth + adding basic auth info to url + is expected to eq "Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==" + calling the #basic_auth method + is expected to eq "Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==" + #build_exclusive_url + allows to provide params argument + overrides connection port for absolute url + handles uri instances + does not add ending slash given nil url + does not use connection params + does not add ending slash given empty url + with relative path + uses connection host as default host + is expected to eq "/fish/sake.html" + is expected to eq "/sake.html" + is expected to eq "/fish/sake.html" + is expected to eq "/fish/sake.html" + with absolute path + example at ./spec/faraday/connection_spec.rb:196 + is expected to eq "/sake.html" + is expected to eq "/sake.html" + is expected to eq "/sake.html" + with complete url + is expected to eq "http" + is expected to eq "a=1" + is expected to eq "/sake.html" + is expected to eq 80 + is expected to eq "sushi.com" + with url_prefixed connection + joins url to base with ending slash + overrides base + used default base with ending slash + parses url and changes scheme + #to_env + escapes per spec + bracketizes repeated params in query + bracketizes nested params in query + parses url params into query + without braketizing repeated params in query + .new + with custom builder + is expected to eq # + with explicit url param + behaves like initializer with url + with simple url + is expected to eq "/" + is expected to eq {} + is expected to eq "sushi.com" + is expected to eq 80 + is expected to eq "http" + with complex url + is expected to eq 815 + is expected to eq "/fish" + is expected to eq {"a"=>"1"} + with custom headers + is expected to eq "Faraday" + with block + is expected to eq "/omnom" + is expected to eq 0 + with empty block + is expected to eq 0 + with implicit url param + behaves like initializer with url + 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 complex url + is expected to eq 815 + is expected to eq "/fish" + is expected to eq {"a"=>"1"} + with ssl false + is expected to be falsey + with custom params and params in url + is expected to eq {"a"=>3, "b"=>"2"} + with custom params + is expected to eq {"a"=>1} + #build_url + merges params + uses params + #dup + is expected to eq "1" + is expected to eq "text/plain" + is expected to eq # + after manual changes + is expected to be falsey + is expected to eq 1 + is expected to eq 5 + is expected to eq 1 + is expected to be nil + is expected to be falsey + #build_request + is expected to be falsey + is expected to be empty + is expected to eq ["Authorization"] + is expected to be truthy + proxy support + fetches no proxy from nil env + fetches no proxy from blank env + test proxy requires uri + ignores env proxy if set that way + accepts env without scheme + allows in multi element no proxy list + allows when ip address is not in no proxy list but url is + gives priority to manually set proxy + accepts http env with auth + allows when subdomain url is in no proxy list + uses processes no_proxy before http_proxy + accepts hash + accepts http env + allows when url not in no proxy list + accepts hash with string uri + uses env https_proxy + uses env http_proxy + allows when url in no proxy list + uses processes no_proxy before https_proxy + accepts string + does not accept uppercase env + accepts uri + allows when url is not in no proxy list but ip address is + allows when prefixed url is not in no proxy list + performing a request + dynamically check no proxy + dynamically checks proxy + +Faraday::Adapter::HTTPClient + allows to provide adapter specific configs + Options + configures multiple timeouts + configures timeout + configures open timeout behaves like an adapter - with SSL disabled - #post + with SSL enabled + #patch behaves like a request method - handles proxy failures - sends url encoded nested parameters - handles headers with multiple values + supports open_timeout option sends request body + retrieves the response body retrieves the response headers - supports timeout option - handles requests with proxy - sends files handles connection error + sends url encoded nested parameters sends user agent - supports open_timeout option + handles proxy failures + handles deflate compression + handles gzip compression + handles headers with multiple values + sends files + parses the reason phrase sends url encoded parameters - retrieves the response body represents empty body response as blank string - #trace + binds local socket + supports timeout option + handles requests with proxy + #options behaves like a request method - sends request body - sends url encoded parameters - supports open_timeout option - handles proxy failures retrieves the response headers - retrieves the response body + sends user agent represents empty body response as blank string - handles headers with multiple values + supports timeout option + retrieves the response body + binds local socket handles connection error sends url encoded nested parameters - sends user agent + sends url encoded parameters + handles headers with multiple values + handles deflate compression + handles gzip compression + parses the reason phrase + sends request body + supports open_timeout option + handles proxy failures handles requests with proxy - supports timeout option - #head + #post behaves like a request method + handles connection error + sends files sends url encoded parameters + handles deflate compression + binds local socket + handles proxy failures + retrieves the response headers + sends user agent + sends url encoded nested parameters + handles gzip compression + handles headers with multiple values + retrieves the response body + supports timeout option + represents empty body response as blank string + supports open_timeout option sends request body + parses the reason phrase + handles requests with proxy + #get + behaves like a request method handles connection error + binds local socket handles proxy failures handles headers with multiple values + retrieves the response body + parses the reason phrase + supports open_timeout option supports timeout option + handles gzip compression sends url encoded nested parameters - sends user agent - supports open_timeout option handles requests with proxy + handles deflate compression + sends url encoded parameters + sends user agent + sends request body retrieves the response headers represents empty body response as blank string #put behaves like a request method handles proxy failures - handles connection error retrieves the response body sends files - retrieves the response headers + supports timeout option + sends url encoded nested parameters handles headers with multiple values - sends request body - represents empty body response as blank string - handles requests with proxy + retrieves the response headers + handles deflate compression + binds local socket supports open_timeout option - sends user agent - sends url encoded nested parameters + represents empty body response as blank string + handles connection error + parses the reason phrase sends url encoded parameters - supports timeout option - #patch + sends user agent + handles requests with proxy + sends request body + handles gzip compression + #delete behaves like a request method + handles connection error handles proxy failures + handles gzip compression + supports open_timeout option + retrieves the response body + parses the reason phrase + sends url encoded nested parameters retrieves the response headers handles headers with multiple values - sends url encoded nested parameters - handles requests with proxy - handles connection error - sends url encoded parameters - supports open_timeout option supports timeout option sends request body - retrieves the response body - sends files represents empty body response as blank string + binds local socket + handles requests with proxy + sends url encoded parameters sends user agent - #delete + handles deflate compression + #head behaves like a request method - represents empty body response as blank string + retrieves the response body + supports timeout option sends url encoded nested parameters - sends user agent - sends url encoded parameters + sends request body handles proxy failures - handles connection error + represents empty body response as blank string + handles headers with multiple values retrieves the response headers handles requests with proxy - supports timeout option - handles headers with multiple values - sends request body - retrieves the response body + parses the reason phrase + handles connection error supports open_timeout option - #options - behaves like a request method sends url encoded parameters - supports open_timeout option - sends request body - retrieves the response headers - handles headers with multiple values - handles proxy failures - retrieves the response body - supports timeout option - handles connection error - handles requests with proxy - represents empty body response as blank string - sends url encoded nested parameters + binds local socket sends user agent - #get + #trace behaves like a request method - retrieves the response headers - represents empty body response as blank string sends url encoded parameters + sends url encoded nested parameters + handles requests with proxy handles headers with multiple values - supports open_timeout option - supports timeout option sends user agent - handles proxy failures - handles requests with proxy sends request body - retrieves the response body - handles connection error - sends url encoded nested parameters - with SSL enabled - #trace - behaves like a request method - retrieves the response headers - sends url encoded nested parameters supports timeout option - retrieves the response body - handles headers with multiple values + parses the reason phrase handles proxy failures - handles connection error + represents empty body response as blank string supports open_timeout option + handles deflate compression + binds local socket + retrieves the response headers + handles gzip compression + handles connection error + retrieves the response body + with SSL disabled + #post + behaves like a request method + retrieves the response body sends url encoded parameters + handles headers with multiple values represents empty body response as blank string + sends user agent + retrieves the response headers + handles deflate compression + supports open_timeout option + binds local socket + handles gzip compression sends request body handles requests with proxy - sends user agent - #put - behaves like a request method - handles connection error supports timeout option - sends url encoded nested parameters - supports open_timeout option sends files - sends request body - sends user agent + handles connection error + sends url encoded nested parameters handles proxy failures + parses the reason phrase + #head + behaves like a request method handles headers with multiple values - retrieves the response headers - represents empty body response as blank string sends url encoded parameters - retrieves the response body - handles requests with proxy - #get - behaves like a request method - supports open_timeout option - handles proxy failures retrieves the response headers sends url encoded nested parameters - handles requests with proxy represents empty body response as blank string supports timeout option sends request body + supports open_timeout option + parses the reason phrase + handles requests with proxy handles connection error - sends url encoded parameters - handles headers with multiple values + handles proxy failures retrieves the response body + binds local socket sends user agent - #options + #trace behaves like a request method - sends url encoded nested parameters - retrieves the response headers + handles headers with multiple values represents empty body response as blank string - supports open_timeout option + handles deflate compression sends user agent - handles headers with multiple values - sends url encoded parameters - supports timeout option - handles connection error - handles requests with proxy - retrieves the response body - handles proxy failures sends request body - #head - behaves like a request method + handles gzip compression + parses the reason phrase + binds local socket sends url encoded nested parameters - sends user agent - represents empty body response as blank string + retrieves the response body retrieves the response headers - handles requests with proxy - sends url encoded parameters supports timeout option - sends request body - handles headers with multiple values + sends url encoded parameters + handles requests with proxy handles proxy failures handles connection error supports open_timeout option - #delete + #get behaves like a request method + binds local socket + sends user agent + retrieves the response body + retrieves the response headers + sends url encoded parameters sends url encoded nested parameters represents empty body response as blank string - supports open_timeout option + handles proxy failures + handles deflate compression handles headers with multiple values - sends url encoded parameters + supports open_timeout option + handles gzip compression handles connection error supports timeout option + handles requests with proxy + sends request body + parses the reason phrase + #patch + behaves like a request method + sends request body + handles deflate compression + supports open_timeout option + binds local socket handles proxy failures + supports timeout option + handles headers with multiple values + retrieves the response headers retrieves the response body handles requests with proxy - retrieves the response headers - sends request body sends user agent - #post - behaves like a request method - handles connection error + handles gzip compression + parses the reason phrase sends url encoded parameters - sends files - retrieves the response body represents empty body response as blank string + handles connection error + sends url encoded nested parameters + sends files + #options + behaves like a request method sends request body + sends url encoded nested parameters + handles gzip compression handles proxy failures - handles requests with proxy + retrieves the response headers + handles headers with multiple values + represents empty body response as blank string supports open_timeout option + binds local socket + handles deflate compression + sends url encoded parameters + handles connection error + retrieves the response body sends user agent + supports timeout option + handles requests with proxy + parses the reason phrase + #put + behaves like a request method handles headers with multiple values - sends url encoded nested parameters + handles proxy failures + sends user agent supports timeout option + retrieves the response body + handles deflate compression retrieves the response headers - #patch - behaves like a request method + sends url encoded parameters + parses the reason phrase + handles gzip compression handles connection error + sends files + handles requests with proxy + supports open_timeout option sends url encoded nested parameters + binds local socket represents empty body response as blank string + sends request body + #delete + behaves like a request method retrieves the response body - retrieves the response headers + supports timeout option + handles gzip compression + represents empty body response as blank string + handles connection error + binds local socket + handles proxy failures + handles deflate compression sends user agent - handles headers with multiple values - sends files - supports open_timeout option sends url encoded parameters handles requests with proxy - handles proxy failures + sends url encoded nested parameters + retrieves the response headers + supports open_timeout option + handles headers with multiple values + parses the reason phrase sends request body - supports timeout option -Faraday::Utils::Headers - #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" - when Content-Type is set to application/xml - is expected to eq "application/xml" - is expected to eq "application/xml" - is expected to include "content-type" - is expected to eq ["Content-Type"] - is expected to eq "application/xml" - #fetch - is expected to eq "application/json" - is expected to eq "application/json" - is expected to be nil - is expected to eq "default" - is expected to eq false - raises an error if key not found - is expected to eq "application/json" - calls a block when provided - is expected to eq "Invalid key" - #delete - is expected to be nil - is expected to eq "application/json" - is expected not to include "content-type" - is expected to eq 0 - when Content-Type is set to application/json - is expected to eq ["Content-Type"] - is expected to include "content-type" - is expected to eq "application/json" - is expected to eq "application/json" - is expected to eq "application/json" - -Faraday::FlatParamsEncoder - encodes unsorted when asked - decodes boolean values - encodes boolean values in array - decodes arrays - encodes boolean values - encodes empty array in hash - behaves like a params encoder - raises type error for empty string - encodes nil - escapes safe buffer - -Faraday::Adapter::EMSynchrony - allows to provide adapter specific configs +Faraday::Adapter::NetHttp + checking http + supports read_timeout + sets max_retries to 0 + supports open_timeout + is expected to eq 80 + supports write_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 behaves like an adapter with SSL disabled - #post + #trace behaves like a request method - supports open_timeout option - supports timeout option retrieves the response headers - handles headers with multiple values - sends user agent retrieves the response body sends url encoded parameters - sends files + handles gzip compression + handles deflate compression + handles requests with proxy + sends user agent + sends url encoded nested parameters + represents empty body response as blank string + handles connection error + handles proxy failures + supports open_timeout option parses the reason phrase + handles headers with multiple values + sends request body + supports timeout option + 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 connection error - represents empty body response as blank string - sends url encoded nested parameters handles requests with proxy - binds local socket + supports open_timeout option + sends url encoded parameters sends request body - with parallel setup - handles parallel requests body - handles parallel requests status - #get - behaves like a request method + represents empty body response as blank string handles connection error + parses the reason phrase retrieves the response body - represents empty body response as blank string + supports timeout option sends url encoded nested parameters + retrieves the response headers + sends user agent + 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 headers with multiple values supports timeout option + handles deflate compression + retrieves the response headers + handles requests with proxy + handles proxy failures sends url encoded parameters - sends request body sends user agent + retrieves the response body supports open_timeout option - binds local socket - handles requests with proxy - handles proxy failures - retrieves the response headers + sends files + handles connection error + handles gzip compression + sends request body parses the reason phrase - with parallel setup - handles parallel requests body - handles parallel requests status - #patch - behaves like a request method - sends user agent + sends url encoded nested parameters represents empty body response as blank string - sends request body - binds local socket + streaming + when response is empty + is expected to eq [["", 0]] + when response contains big data + handles streaming + #put + behaves like a request method + handles deflate compression + handles gzip compression sends url encoded nested parameters + sends request body + supports timeout option + handles headers with multiple values + represents empty body response as blank string retrieves the response body - sends url encoded parameters - handles proxy failures - retrieves the response headers parses the reason phrase + handles proxy failures sends files + retrieves the response headers handles connection error handles requests with proxy - handles headers with multiple values - supports timeout option + sends url encoded parameters + sends user agent supports open_timeout option - with parallel setup - handles parallel requests body - handles parallel requests status - #put + streaming + when response is empty + is expected to eq [["", 0]] + when response contains big data + handles streaming + #get behaves like a request method represents empty body response as blank string + retrieves the response body + handles requests with proxy + handles gzip compression + parses the reason phrase sends request body - handles proxy failures - supports open_timeout option - handles connection error sends url encoded parameters - sends files + sends user agent + supports open_timeout option handles headers with multiple values - retrieves the response body + supports timeout option + handles connection error retrieves the response headers - binds local socket - parses the reason phrase - handles requests with proxy - sends user agent + handles deflate compression + handles proxy failures sends url encoded nested parameters - supports timeout option - with parallel setup - handles parallel requests body - handles parallel requests status + streaming + when response contains big data + handles streaming + when response is empty + is expected to eq [["", 0]] #options behaves like a request method handles connection error - sends url encoded parameters supports timeout option - sends url encoded nested parameters - binds local socket - retrieves the response body supports open_timeout option - parses the reason phrase - sends request body - handles headers with multiple values - handles requests with proxy handles proxy failures + sends url encoded nested parameters sends user agent + sends request body + handles gzip compression + parses the reason phrase + handles deflate compression retrieves the response headers - represents empty body response as blank string - with parallel setup - handles parallel requests status - handles parallel requests body - #head - behaves like a request method - supports timeout option + sends url encoded parameters + retrieves the response body + handles headers with multiple values handles requests with proxy represents empty body response as blank string - sends request body - handles headers with multiple values - retrieves the response headers + streaming + when response contains big data + handles streaming + when response is empty + is expected to eq [["", 0]] + #post + behaves like a request method + sends url encoded nested parameters parses the reason phrase supports open_timeout option - sends url encoded parameters - sends url encoded nested parameters - sends user agent + handles requests with proxy + handles gzip compression + sends files + handles headers with multiple values handles proxy failures + sends url encoded parameters + represents empty body response as blank string + retrieves the response body + handles deflate compression handles connection error - binds local socket - with parallel setup - handles parallel requests status + retrieves the response headers + sends user agent + supports timeout option + 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 gzip compression + parses the reason phrase retrieves the response body - handles connection error - handles proxy failures - handles requests with proxy + retrieves the response headers + sends url encoded parameters handles headers with multiple values sends user agent + handles requests with proxy + sends request body + supports timeout option + handles deflate compression + handles proxy failures sends url encoded nested parameters supports open_timeout option represents empty body response as blank string - retrieves the response headers - sends url encoded parameters - parses the reason phrase - sends request body - binds local socket - supports timeout option - with parallel setup - handles parallel requests status - handles parallel requests body + handles connection error + streaming + when response is empty + is expected to eq [["", 0]] + when response contains big data + handles streaming with SSL enabled - #put + #post behaves like a request method - represents empty body response as blank string - handles headers with multiple values + supports open_timeout option supports timeout option - sends url encoded nested parameters + represents empty body response as blank string handles proxy failures - handles requests with proxy - sends request body - retrieves the response body - handles connection error sends url encoded parameters + handles connection error + retrieves the response body sends files - parses the reason phrase - binds local socket - sends user agent - supports open_timeout option - retrieves the response headers - with parallel setup - handles parallel requests status - handles parallel requests body - #delete - behaves like a request method sends request body handles requests with proxy - retrieves the response headers - supports open_timeout option sends url encoded nested parameters + retrieves the response headers + handles gzip compression handles headers with multiple values + parses the reason phrase + handles deflate compression + sends user agent + streaming + when response contains big data + handles streaming + when response is empty + is expected to eq [["", 0]] + #options + behaves like a request method supports timeout option handles connection error - binds local socket + handles requests with proxy + parses the reason phrase + handles headers with multiple values sends url encoded parameters - represents empty body response as blank string + sends url encoded nested parameters + retrieves the response headers + handles gzip compression + sends user agent + sends request body retrieves the response body handles proxy failures - sends user agent - parses the reason phrase - with parallel setup - handles parallel requests status - handles parallel requests body + represents empty body response as blank string + supports open_timeout option + handles deflate compression + streaming + when response contains big data + handles streaming + when response is empty + is expected to eq [["", 0]] #head behaves like a request method + parses the reason phrase + handles connection error + retrieves the response body + handles headers with multiple values + sends user agent + supports open_timeout option represents empty body response as blank string sends url encoded nested parameters - supports timeout option - handles connection error - retrieves the response headers handles proxy failures + retrieves the response headers + handles requests with proxy + sends url encoded parameters + supports timeout option + sends request body + streaming + when response is empty + is expected to eq [["", 0]] + when response contains big data + handles streaming + #delete + behaves like a request method sends url encoded parameters + handles connection error + retrieves the response body + supports timeout option + handles headers with multiple values sends request body + supports open_timeout option + parses the reason phrase + sends url encoded nested parameters + handles deflate compression handles requests with proxy + sends user agent + represents empty body response as blank string + retrieves the response headers + handles gzip compression + handles proxy failures + streaming + when response is empty + is expected to eq [["", 0]] + when response contains big data + handles streaming + #trace + behaves like a request method handles headers with multiple values sends user agent - binds local socket + represents empty body response as blank string + handles deflate compression + supports timeout option + retrieves the response headers supports open_timeout option + handles gzip compression + retrieves the response body parses the reason phrase - with parallel setup - handles parallel requests status + handles requests with proxy + sends url encoded parameters + handles proxy failures + sends url encoded nested parameters + sends request body + handles connection error + streaming + when response contains big data + handles streaming + when response is empty + is expected to eq [["", 0]] #patch behaves like a request method sends url encoded parameters - sends user agent - supports open_timeout option - retrieves the response headers + sends files sends url encoded nested parameters + retrieves the response headers + supports open_timeout option parses the reason phrase retrieves the response body - binds local socket - handles headers with multiple values - sends files - handles connection error handles requests with proxy - supports timeout option + handles headers with multiple values + sends user agent handles proxy failures - represents empty body response as blank string + supports timeout option sends request body - with parallel setup - handles parallel requests status - handles parallel requests body - #post + handles gzip compression + handles deflate compression + handles connection error + represents empty body response as blank string + streaming + when response contains big data + handles streaming + when response is empty + is expected to eq [["", 0]] + #put behaves like a request method - binds local socket + handles gzip compression + handles headers with multiple values retrieves the response headers + sends files + retrieves the response body + sends request body + sends url encoded nested parameters + represents empty body response as blank string supports open_timeout option + parses the reason phrase handles requests with proxy - retrieves the response body handles connection error - sends url encoded nested parameters + handles deflate compression + sends user agent handles proxy failures - parses the reason phrase - sends request body + supports timeout option + sends url encoded parameters + streaming + when response is empty + is expected to eq [["", 0]] + when response contains big data + handles streaming + #get + behaves like a request method handles headers with multiple values - sends files + handles requests with proxy + handles gzip compression + retrieves the response headers represents empty body response as blank string - sends url encoded parameters supports timeout option + supports open_timeout option + handles deflate compression + handles proxy failures + sends url encoded nested parameters + parses the reason phrase + sends url encoded parameters sends user agent - with parallel setup - handles parallel requests status - handles parallel requests body - #options + sends request body + handles connection error + retrieves the response body + streaming + when response contains big data + handles streaming + when response is empty + is expected to eq [["", 0]] + +Faraday::Adapter::EMSynchrony + allows to provide adapter specific configs + behaves like an adapter + with SSL disabled + #get behaves like a request method - parses the reason phrase - handles requests with proxy - handles headers with multiple values retrieves the response body + supports timeout option binds local socket - sends request body - retrieves the response headers sends url encoded nested parameters + supports open_timeout option represents empty body response as blank string + retrieves the response headers + sends request body + handles requests with proxy + handles headers with multiple values sends user agent - supports timeout option handles connection error - sends url encoded parameters - supports open_timeout option handles proxy failures + sends url encoded parameters + parses the reason phrase with parallel setup handles parallel requests status handles parallel requests body - #get + #options behaves like a request method + sends request body retrieves the response body + retrieves the response headers + parses the reason phrase + represents empty body response as blank string + handles connection error sends url encoded parameters + supports open_timeout option supports timeout option - handles headers with multiple values - handles connection error - sends url encoded nested parameters - sends user agent + handles proxy failures binds local socket handles requests with proxy - handles proxy failures - represents empty body response as blank string - retrieves the response headers - supports open_timeout option - parses the reason phrase - sends request body + sends user agent + handles headers with multiple values + sends url encoded nested parameters with parallel setup handles parallel requests body handles parallel requests status - -Faraday::Request::Authorization - authorization - when passed two strings - is expected to eq "custom abc def" - and request already has an authentication header - does not interfere with existing authorization - when passed a string and a hash - is expected to eq "baz foo=\"42\"" - and request already has an authentication header - does not interfere with existing authorization - token_auth - when passed correct params - is expected to eq "Token token=\"quux\"" - and request already has an authentication header - does not interfere with existing authorization - when other values are provided - is expected to match /foo="42"/ - is expected to match /^Token / - is expected to match /token="baz"/ - 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 - -Faraday::Request::Instrumentation - defaults to ActiveSupport::Notifications - is expected to eq "request.faraday" - instruments with default name - with custom instrumenter - is expected to eq :custom - with custom name - instruments with custom name - is expected to eq "custom" - -Faraday::Adapter::Test - with simple path sets headers - is expected to eq "text/html" - with get params - is expected to eq "a" - params parsing - with nested encoder - is expected to eq "a" - with flat encoder - is expected to eq "a" - with default encoder - is expected to eq "a" - can be called several times - is expected to eq "hello" - with simple path sets body - is expected to eq "hello" - can handle single parameter block - is expected to eq "get" - can handle regular expression path with captured result - is expected to eq "show specified" - with simple path sets status - is expected to eq 200 - with host points to the right stub - is expected to eq "domain: hello" - can handle regular expression path - is expected to eq "show" - ignoring unspecified get params - with multiple params - is expected to eq "a" - with single param - is expected to eq "a" - without params - is expected to raise Faraday::Adapter::Test::Stubs::NotFound - different outcomes for the same request - the first request - is expected to eq "hello" - the second request - is expected to eq "world" - yielding env to stubs - is expected to eq "a" - with http headers - with header - is expected to eq "a" - without header - is expected to eq "b" - raising an error if no stub was found - for specified host - is expected to raise Faraday::Adapter::Test::Stubs::NotFound - for request - is expected to raise Faraday::Adapter::Test::Stubs::NotFound - for request without specified header - is expected to raise Faraday::Adapter::Test::Stubs::NotFound - -Faraday::CompositeReadIO - with mix of empty and non-empty parts - allows to read in chunks - with empty parts - is expected to be nil - is expected to eq 0 - is expected to eq "" - with 2 parts - allows to rewind while reading in chunks - allows to read in chunks - is expected to eq 8 - is expected to eq "abcd1234" - with empty composite_io - is expected to eq 0 - is expected to be nil - is expected to eq "" - 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 - -Faraday::RackBuilder - when a plain adapter is added with named arguments - adds a handler to construct adapter with options passed to adapter - when handlers are directly added or updated - adds a handler with options passed to swap - adds a handler with options passed to insert_after - adds a handler to construct adapter with options passed to insert - with custom empty block - is expected to eq Faraday::Adapter::NetHttp - is expected to be nil - when having a handler with broken dependency - raises an error while making a request - when having two handlers - allows insert_after - allows insert_before - allows to swap handlers - allows to delete a handler - with default stack - is expected to eq Faraday::Request::UrlEncoded - is expected to eq Faraday::Adapter::NetHttp - when a response adapter is added with named arguments - adds a handler to construct response adapter with options passed to response - when middleware is added with named arguments - adds a handler to construct middleware with options passed to use - with custom registered middleware - allows to register with Proc - allows to register with string - allows to register with symbol - allows to register with constant - with custom handler and adapter - locks the stack after making a request - allows to compare handlers - dup stack is unlocked - with custom adapter only - is expected to be nil - is expected to eq Faraday::Adapter::Test - when having a single handler - is expected to eq [Apple] - allows insert_before - raises an error trying to use an unregistered symbol - allows use - allows insert_after - allows rebuilding - when a request adapter is added with named arguments - adds a handler to construct request adapter with options passed to request - -Faraday::Adapter - #request_timeout - attempts unknown timeout type - gets :write timeout - gets :read timeout - gets :open timeout - -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::Connection - basic_auth - adding basic auth info to url - is expected to eq "Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==" - calling the #basic_auth method - is expected to eq "Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==" - #build_url - uses params - merges params - #build_request - is expected to be falsey - is expected to be truthy - is expected to be empty - is expected to eq ["Authorization"] - #build_exclusive_url - overrides connection port for absolute url - does not add ending slash given empty url - does not add ending slash given nil url - does not use connection params - allows to provide params argument - handles uri instances - with relative path - is expected to eq "/fish/sake.html" - is expected to eq "/fish/sake.html" - is expected to eq "/fish/sake.html" - uses connection host as default host - is expected to eq "/sake.html" - with url_prefixed connection - used default base with ending slash - overrides base - joins url to base with ending slash - parses url and changes scheme - with complete url - is expected to eq "/sake.html" - is expected to eq "http" - is expected to eq "sushi.com" - is expected to eq "a=1" - is expected to eq 80 - with absolute path - example at ./spec/faraday/connection_spec.rb:196 - is expected to eq "/sake.html" - is expected to eq "/sake.html" - is expected to eq "/sake.html" - proxy support - uses env https_proxy - test proxy requires uri - allows when prefixed url is not in no proxy list - gives priority to manually set proxy - uses processes no_proxy before http_proxy - uses processes no_proxy before https_proxy - ignores env proxy if set that way - allows in multi element no proxy list - uses env http_proxy - allows when subdomain url is in no proxy list - accepts string - accepts hash with string uri - accepts http env with auth - accepts uri - accepts http env - allows when url is not in no proxy list but ip address is - fetches no proxy from nil env - allows when ip address is not in no proxy list but url is - allows when url in no proxy list - accepts hash - accepts env without scheme - allows when url not in no proxy list - does not accept uppercase env - fetches no proxy from blank env - performing a request - dynamically checks proxy - dynamically check no proxy - .new - with explicit url param - behaves like initializer with url - with simple url - is expected to eq "http" - is expected to eq "/" - is expected to eq 80 - is expected to eq "sushi.com" - is expected to eq {} - with complex url - is expected to eq 815 - is expected to eq {"a"=>"1"} - is expected to eq "/fish" - with implicit url param - behaves like initializer with url - with simple url - is expected to eq "http" - is expected to eq "/" - is expected to eq 80 - is expected to eq {} - is expected to eq "sushi.com" - with complex url - is expected to eq 815 - is expected to eq "/fish" - is expected to eq {"a"=>"1"} - with custom params - is expected to eq {"a"=>1} - with custom headers - is expected to eq "Faraday" - with custom params and params in url - is expected to eq {"a"=>3, "b"=>"2"} - with ssl false - is expected to be falsey - with empty block - is expected to eq 0 - with custom builder - is expected to eq # - with block - is expected to eq "/omnom" - is expected to eq 0 - #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 - #close - can close underlying app - #dup - is expected to eq "text/plain" - is expected to eq # - is expected to eq "1" - after manual changes - is expected to eq 5 - is expected to be nil - is expected to eq 1 - is expected to eq 1 - is expected to be falsey - is expected to be falsey - #respond_to? - is expected to be truthy - is expected to be truthy - #token_auth - is expected to eq "Token nonce=\"abc\", token=\"abcdef\"" - default_connection_options - assigning a hash - behaves like default connection options - works with instance connection options - works with implicit url - default connection options persist with an instance overriding - works with option url - default connection uses default connection options - assigning a default value - behaves like default connection options - works with implicit url - works with instance connection options - default connection options persist with an instance overriding - works with option url - default connection uses default connection options - request params - with url and extra params - merges connection and request params - allows to set params_encoder for single request - allows to override all params - with default params encoder - supports array params in url - supports array params in params - with simple url - test_overrides_request_params_block - test_overrides_request_params_block_url - test_overrides_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 - -Faraday::Adapter::Typhoeus - behaves like an adapter - with SSL enabled - #post + #patch behaves like a request method + supports open_timeout option + sends url encoded parameters + sends url encoded nested parameters + sends request body + handles proxy failures retrieves the response headers + retrieves the response body + sends user agent + handles connection error + binds local socket + supports timeout option sends files handles requests with proxy - supports timeout option - handles proxy failures - handles connection error + parses the reason phrase represents empty body response as blank string - sends user agent - sends url encoded nested parameters - sends request body - retrieves the response body - sends url encoded parameters handles headers with multiple values - supports open_timeout option with parallel setup handles parallel requests status handles parallel requests body - #options + #put behaves like a request method - handles requests with proxy + sends user agent + parses the reason phrase + handles connection error retrieves the response headers - supports timeout option - represents empty body response as blank string - supports open_timeout option retrieves the response body - handles proxy failures - sends user agent + sends url encoded parameters sends request body sends url encoded nested parameters - sends url encoded parameters + sends files + supports timeout option + handles proxy failures + represents empty body response as blank string handles headers with multiple values - handles connection error + supports open_timeout option + binds local socket + handles requests with proxy with parallel setup handles parallel requests status handles parallel requests body - #head + #delete behaves like a request method - handles requests with proxy - supports timeout option - sends request body + handles connection error + supports open_timeout option + parses the reason phrase retrieves the response body retrieves the response headers handles headers with multiple values + sends request body handles proxy failures - handles connection error - supports open_timeout option - sends user agent - sends url encoded nested parameters sends url encoded parameters represents empty body response as blank string + binds local socket + sends user agent + handles requests with proxy + supports timeout option + sends url encoded nested parameters with parallel setup handles parallel requests status handles parallel requests body - #patch + #head behaves like a request method supports timeout option - sends files - handles connection error + binds local socket retrieves the response headers - represents empty body response as blank string - retrieves the response body + sends request body + handles requests with proxy handles headers with multiple values - supports open_timeout option + represents empty body response as blank string + parses the reason phrase sends url encoded nested parameters + handles connection error + handles proxy failures sends user agent sends url encoded parameters - handles requests with proxy - sends request body - handles proxy failures + supports open_timeout option with parallel setup - handles parallel requests body handles parallel requests status - #trace + #post behaves like a request method retrieves the response body - retrieves the response headers - supports timeout option sends request body - sends url encoded parameters - handles requests with proxy + parses the reason phrase + supports timeout option handles headers with multiple values - handles connection error - supports open_timeout option sends url encoded nested parameters - represents empty body response as blank string - handles proxy failures - sends user agent - with parallel setup - handles parallel requests body - handles parallel requests status - #get - behaves like a request method - sends user agent + binds local socket handles requests with proxy - sends url encoded nested parameters + sends user agent + sends files represents empty body response as blank string - handles headers with multiple values - handles connection error - retrieves the response headers sends url encoded parameters + handles connection error handles proxy failures - retrieves the response body - sends request body - supports timeout option + retrieves the response headers supports open_timeout option with parallel setup handles parallel requests body handles parallel requests status - #delete + with SSL enabled + #options behaves like a request method - retrieves the response headers - handles proxy failures - sends user agent - retrieves the response body - handles connection error represents empty body response as blank string - sends url encoded nested parameters - handles requests with proxy - supports open_timeout option sends url encoded parameters - supports timeout option + handles proxy failures handles headers with multiple values - sends request body - with parallel setup - handles parallel requests body - handles parallel requests status - #put - behaves like a request method - retrieves the response headers + handles connection error + parses the reason phrase sends url encoded nested parameters - handles proxy failures retrieves the response body - represents empty body response as blank string sends user agent - supports open_timeout option - sends files - handles connection error sends request body + supports open_timeout option supports timeout option - sends url encoded parameters - handles headers with multiple values handles requests with proxy + retrieves the response headers + binds local socket with parallel setup handles parallel requests status handles parallel requests body - with SSL disabled - #head + #patch behaves like a request method + parses the reason phrase handles requests with proxy - supports timeout option + retrieves the response body + sends url encoded parameters + handles headers with multiple values sends user agent + sends files sends url encoded nested parameters - retrieves the response body handles connection error - sends request body - handles headers with multiple values - retrieves the response headers - represents empty body response as blank string supports open_timeout option + represents empty body response as blank string + supports timeout option + binds local socket + retrieves the response headers handles proxy failures - sends url encoded parameters + sends request body with parallel setup - handles parallel requests status handles parallel requests body - #delete + handles parallel requests status + #head behaves like a request method - handles proxy failures - supports timeout option represents empty body response as blank string - sends url encoded nested parameters - handles requests with proxy - sends request body + supports open_timeout option handles headers with multiple values - sends user agent - retrieves the response body retrieves the response headers - supports open_timeout option - handles connection error - sends url encoded parameters - with parallel setup - handles parallel requests status - handles parallel requests body - #patch - behaves like a request method - handles connection error handles requests with proxy - handles proxy failures - retrieves the response body supports timeout option - represents empty body response as blank string - handles headers with multiple values - sends url encoded parameters - supports open_timeout option - sends files - sends url encoded nested parameters - retrieves the response headers + parses the reason phrase sends user agent sends request body + handles proxy failures + sends url encoded nested parameters + sends url encoded parameters + binds local socket + handles connection error with parallel setup - handles parallel requests body handles parallel requests status #get behaves like a request method - supports timeout option + parses the reason phrase sends url encoded nested parameters + supports timeout option + sends url encoded parameters + supports open_timeout option + retrieves the response body handles requests with proxy - sends request body + binds local socket handles headers with multiple values - handles proxy failures - sends user agent - supports open_timeout option - handles connection error represents empty body response as blank string + sends user agent + sends request body retrieves the response headers - retrieves the response body - sends url encoded parameters + handles proxy failures + handles connection error with parallel setup handles parallel requests body handles parallel requests status #post behaves like a request method handles proxy failures - handles connection error - sends url encoded parameters - sends request body + supports timeout option sends files + handles requests with proxy retrieves the response body - supports open_timeout option + parses the reason phrase + binds local socket + handles connection error sends url encoded nested parameters handles headers with multiple values - supports timeout option - handles requests with proxy - sends user agent retrieves the response headers + sends request body + sends user agent represents empty body response as blank string + supports open_timeout option + sends url encoded parameters with parallel setup handles parallel requests status handles parallel requests body - #options + #delete behaves like a request method + binds local socket + retrieves the response headers + handles proxy failures + parses the reason phrase + sends url encoded parameters + handles connection error supports timeout option supports open_timeout option - handles headers with multiple values - handles connection error - sends url encoded nested parameters - handles proxy failures - retrieves the response body handles requests with proxy + sends url encoded nested parameters + handles headers with multiple values sends request body - sends url encoded parameters represents empty body response as blank string sends user agent - retrieves the response headers + retrieves the response body with parallel setup handles parallel requests status handles parallel requests body #put behaves like a request method - handles headers with multiple values - handles connection error - represents empty body response as blank string - handles requests with proxy retrieves the response body - sends files - handles proxy failures - supports open_timeout option - sends url encoded nested parameters - sends user agent retrieves the response headers supports timeout option - sends request body - sends url encoded parameters - with parallel setup - handles parallel requests body - handles parallel requests status - #trace - behaves like a request method - sends request body - supports open_timeout option - retrieves the response headers + sends url encoded nested parameters + binds local socket + sends files + handles connection error + handles proxy failures handles requests with proxy - sends url encoded parameters + parses the reason phrase handles headers with multiple values - supports timeout option - handles connection error + supports open_timeout option + sends url encoded parameters sends user agent - retrieves the response body - handles proxy failures + sends request body represents empty body response as blank string - sends url encoded nested parameters with parallel setup handles parallel requests body handles parallel requests status -Faraday::Options - #merge - deeply merges options with hashes - merges options with hashes - deeply merges options with options having nil sub-options - deeply merges options with nil - deeply merges two options - #dup - duplicate options but not sub-options - #clear - clears the options - #memoized - accepts block - requires block - #each_value - allows to iterate through values - #delete - allows to remove value for key - #update - updates options from hashes - #empty? - returns true only if all options are nil - #each_key - allows to iterate through keys - #key? - returns true if the key exists and is not nil - #value? - returns true if any key has that value - #deep_dup - duplicate options and also suboptions - #fetch - when the fetched key has no value - uses falsey default - accepts block - needs a default if key is missing - when the fetched key has a value - grabs value - works with key - #from - works with options with sub object - works with options - is expected to raise NoMethodError - respects inheritance - works with nil - works with deep hash - works with hash - works with hash with sub object +Faraday::Response::Logger + logs response headers by default + logs request headers by default + still returns output + logs filter url + does not log response body by default + logs method and url + does not log request body by default + logs filter headers + without configuration + defaults to stdout + when not logging response headers + does not log response headers if option is false + when not logging request headers + does not log request headers if option is false + with custom formatter + logs with custom formatter + when logging request body + log only request body + with default formatter + delegates logging to the formatter + when logging response body + log only response body + when using log_level + does not log headers on the info level + does not log request/response body on the info level + logs headers on the debug level + logs request/request body on the specified level (debug) + when logging request and response bodies + logs filter body + log response body object + log request and response body -Faraday::Request - supports marshal serialization - with global request options set - is expected to eq 5 - is expected to eq 3 - is expected to eq 5 - is expected to eq 3 - and per-request options set - is expected to eq {:consumer_key=>"anonymous", :consumer_secret=>"xyz"} - is expected to eq 10 - is expected to eq 5 - is expected to eq 5 - is expected to eq 10 - is expected to eq "boo" - is expected to eq {:bar=>"bar", :foo=>"foo"} - when setting the body on setup - is expected to eq "hi" - is expected to eq "hi" - deprecate method for HTTP method - is expected to output /WARNING: `Faraday::Request#method` is deprecated; use `#http_method` instead. It will be removed in ...r after version 2.0.\n`Faraday::Request#method` called from .+\/spec\/faraday\/request_spec.rb:\d+./ to stderr -WARNING: `Faraday::Request#method` is deprecated; use `#http_method` instead. It will be removed in or after version 2.0. -`Faraday::Request#method` called from /build/ruby-faraday-1.1.0/spec/faraday/request_spec.rb:31:in `block (3 levels) in ' - is expected to eq :post - when HTTP method is post - is expected to eq :post - 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 nothing particular is configured - is expected to be falsey - is expected to eq :get - when setting a header on setup with []= syntax - is expected to eq "Faraday" - is expected to eq "1.0" - is expected to eq "Faraday" - when setting the url on setup with a string path and params - is expected to eq "http://sushi.com/api/foo.json?a=1" - is expected to eq {"a"=>1} - is expected to eq "foo.json" - when setting the url on setup with a URI - is expected to eq "http://sushi.com/api/foo.json?a=1" - is expected to eq {"a"=>"1"} - is expected to eq # +Faraday::ClientError + .initialize + with exception only + is expected to eq # + is expected to eq "#>" + is expected to be nil + is expected to eq nil + is expected to eq "test" + with response hash + is expected to eq "the server responded with status 400" + is expected to eq {:status=>400} + is expected to eq "#400}>" + is expected to be nil + with anything else #to_s + is expected to eq "[\"error1\", \"error2\"]" + is expected to eq "#>" + is expected to be nil + is expected to be nil + with string + is expected to eq "#>" + is expected to be nil + is expected to eq "custom message" + is expected to be nil -Faraday::Adapter::Excon - allows to provide adapter specific configs +Faraday::Env + allows to access symbol non members + allows to access string non members + retains custom members + ignores false when fetching + allows to access members + #body + when response is finished + allows to access response_body + allows to access request_body + returns the response body + when response is not finished yet + returns the request body + +Faraday::Request::Instrumentation + is expected to eq "request.faraday" + defaults to ActiveSupport::Notifications + instruments with default name + with custom name + is expected to eq "custom" + instruments with custom name + with custom instrumenter + is expected to eq :custom + +Faraday::Request::Multipart + when passing flat_encode=true option + encode params using flat encoder + 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 + UploadIO: 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 + FilePart: when multipart objects in param + forms a multipart request + behaves like a multipart request + generates a unique boundary for each request + UploadIO: when providing json and IO content in the same payload + forms a multipart request + behaves like a multipart request + generates a unique boundary for each request + UploadIO: when multipart objects in array param + forms a multipart request + behaves like a multipart request + generates a unique boundary for each request + +Faraday::Adapter::Rack behaves like an adapter - with SSL disabled + with SSL enabled #get behaves like a request method - sends url encoded parameters - represents empty body response as blank string - sends request body - handles proxy failures retrieves the response body - retrieves the response headers - parses the reason phrase supports timeout option - sends user agent - sends url encoded nested parameters + sends url encoded parameters handles connection error - supports open_timeout option + represents empty body response as blank string + sends url encoded nested parameters + handles proxy failures handles headers with multiple values - handles requests with proxy - #head - behaves like a request method - supports timeout option - retrieves the response headers sends user agent supports open_timeout option handles requests with proxy - handles connection error - handles headers with multiple values - parses the reason phrase - retrieves the response body - handles proxy failures - sends url encoded parameters - sends url encoded nested parameters + retrieves the response headers sends request body - represents empty body response as blank string #put behaves like a request method - retrieves the response headers - represents empty body response as blank string - supports timeout option + sends request body supports open_timeout option - handles connection error - parses the reason phrase sends files - sends url encoded parameters - sends url encoded nested parameters + supports timeout option sends user agent + represents empty body response as blank string + retrieves the response headers + handles requests with proxy + handles connection error retrieves the response body + sends url encoded parameters handles headers with multiple values + sends url encoded nested parameters handles proxy failures - sends request body - handles requests with proxy - #trace + #head behaves like a request method - sends url encoded parameters - handles requests with proxy - handles headers with multiple values supports open_timeout option sends request body - parses the reason phrase - sends url encoded nested parameters + handles proxy failures + handles headers with multiple values handles connection error supports timeout option - retrieves the response body + handles requests with proxy + sends url encoded parameters sends user agent - handles proxy failures - retrieves the response headers + sends url encoded nested parameters represents empty body response as blank string - #options - behaves like a request method retrieves the response headers + #patch + behaves like a request method handles proxy failures - sends url encoded parameters - sends request body supports open_timeout option + sends url encoded parameters handles connection error - represents empty body response as blank string - sends url encoded nested parameters - supports timeout option + sends files handles headers with multiple values + supports timeout option + sends request body + sends url encoded nested parameters + represents empty body response as blank string + retrieves the response headers handles requests with proxy - sends user agent - parses the reason phrase retrieves the response body - #patch + sends user agent + #delete behaves like a request method sends url encoded nested parameters - parses the reason phrase - represents empty body response as blank string - handles proxy failures - handles headers with multiple values - sends request body supports timeout option + sends request body sends url encoded parameters + represents empty body response as blank string + handles connection error + sends user agent retrieves the response headers + handles requests with proxy + handles headers with multiple values retrieves the response body - handles connection error - sends files + handles proxy failures supports open_timeout option + #trace + behaves like a request method + represents empty body response as blank string + retrieves the response headers sends user agent handles requests with proxy - #post - behaves like a request method - sends files supports timeout option - sends user agent - retrieves the response headers - parses the reason phrase - sends url encoded nested parameters retrieves the response body - supports open_timeout option - handles requests with proxy - handles proxy failures - handles connection error - handles headers with multiple values sends url encoded parameters - represents empty body response as blank string + handles proxy failures + sends url encoded nested parameters + supports open_timeout option sends request body - #delete + handles headers with multiple values + handles connection error + #options behaves like a request method - parses the reason phrase + handles requests with proxy + sends url encoded parameters retrieves the response headers handles connection error sends request body + sends url encoded nested parameters + retrieves the response body handles headers with multiple values - sends url encoded parameters + supports timeout option represents empty body response as blank string - sends url encoded nested parameters + handles proxy failures sends user agent supports open_timeout option + #post + behaves like a request method + handles headers with multiple values + sends url encoded parameters + sends user agent + sends url encoded nested parameters + represents empty body response as blank string retrieves the response body supports timeout option + sends files + supports open_timeout option handles proxy failures + sends request body handles requests with proxy - with SSL enabled - #put - behaves like a request method - parses the reason phrase + retrieves the response headers handles connection error - sends url encoded nested parameters - supports timeout option - sends request body + with SSL disabled + #options + behaves like a request method retrieves the response headers - handles headers with multiple values - sends url encoded parameters - handles proxy failures - supports open_timeout option handles requests with proxy sends user agent - sends files - represents empty body response as blank string - retrieves the response body - #head - behaves like a request method - sends url encoded nested parameters - sends request body - retrieves the response body supports open_timeout option + sends request body supports timeout option sends url encoded parameters handles headers with multiple values + represents empty body response as blank string + handles connection error + sends url encoded nested parameters handles proxy failures + retrieves the response body + #head + behaves like a request method handles requests with proxy - parses the reason phrase - handles connection error + supports timeout option + handles headers with multiple values + sends request body + sends url encoded parameters sends user agent - retrieves the response headers + handles connection error + supports open_timeout option + handles proxy failures + sends url encoded nested parameters represents empty body response as blank string + retrieves the response headers #trace behaves like a request method - supports timeout option retrieves the response body - handles requests with proxy - retrieves the response headers - handles headers with multiple values sends request body - supports open_timeout option - sends url encoded parameters - handles proxy failures represents empty body response as blank string - sends url encoded nested parameters sends user agent + retrieves the response headers + handles headers with multiple values handles connection error - parses the reason phrase - #options + supports timeout option + sends url encoded nested parameters + handles requests with proxy + supports open_timeout option + handles proxy failures + sends url encoded parameters + #delete behaves like a request method - parses the reason phrase sends user agent represents empty body response as blank string - handles requests with proxy + sends request body + handles headers with multiple values + sends url encoded nested parameters + handles connection error retrieves the response headers + handles proxy failures sends url encoded parameters - handles connection error supports timeout option + handles requests with proxy retrieves the response body - handles headers with multiple values - sends url encoded nested parameters - sends request body - handles proxy failures supports open_timeout option - #post + #put behaves like a request method + sends files + sends request body retrieves the response headers - supports timeout option sends url encoded parameters + supports open_timeout option + handles proxy failures + handles headers with multiple values + supports timeout option handles requests with proxy - handles connection error - parses the reason phrase sends user agent retrieves the response body represents empty body response as blank string - handles headers with multiple values - handles proxy failures sends url encoded nested parameters - supports open_timeout option - sends request body - sends files - #get - behaves like a request method handles connection error + #patch + behaves like a request method sends request body - handles proxy failures sends url encoded nested parameters - supports open_timeout option - handles headers with multiple values - sends url encoded parameters - retrieves the response headers - handles requests with proxy - retrieves the response body supports timeout option - represents empty body response as blank string - sends user agent - parses the reason phrase - #delete - behaves like a request method - parses the reason phrase - sends request body supports open_timeout option - supports timeout option - sends url encoded parameters - retrieves the response body - retrieves the response headers handles requests with proxy - sends url encoded nested parameters - sends user agent - represents empty body response as blank string handles proxy failures + sends url encoded parameters + represents empty body response as blank string + retrieves the response headers + sends files handles headers with multiple values + sends user agent + retrieves the response body handles connection error - #patch + #post behaves like a request method + handles proxy failures sends request body + handles connection error + retrieves the response body sends files - retrieves the response headers - handles requests with proxy + sends user agent sends url encoded nested parameters - handles proxy failures - parses the reason phrase + handles headers with multiple values supports timeout option + handles requests with proxy + represents empty body response as blank string sends url encoded parameters - handles connection error + retrieves the response headers supports open_timeout option - represents empty body response as blank string + #get + behaves like a request method + handles requests with proxy + sends user agent + handles connection error retrieves the response body + supports open_timeout option handles headers with multiple values - sends user agent - config - sets timeout - sets open_timeout - sets timeout and open_timeout - -Faraday::Middleware - #close - with app that supports #close - should issue warning - with app that doesn't support #close - should issue warning - -Faraday::Response::Logger - logs method and url - logs filter headers - logs filter url - logs response headers by default - does not log request body by default - logs request headers by default - does not log response body by default - still returns output - with default formatter - delegates logging to the formatter - when logging response body - log only response body - when logging request and response bodies - log response body object - logs filter body - log request and response body - with custom formatter - logs with custom formatter - when not logging request headers - does not log request headers if option is false - when using log_level - does not log headers on the info level - logs headers on the debug level - does not log request/response body on the info level - logs request/request body on the specified level (debug) - without configuration - defaults to stdout - when logging request body - log only request body - when not logging response headers - does not log response headers if option is false + handles proxy failures + sends request body + represents empty body response as blank string + supports timeout option + sends url encoded parameters + retrieves the response headers + sends url encoded nested parameters -Faraday::ClientError - .initialize - with string - is expected to eq "#>" - is expected to be nil - is expected to eq "custom message" - is expected to be nil - with response hash - is expected to be nil - is expected to eq {:status=>400} - is expected to eq "#400}>" - is expected to eq "the server responded with status 400" - with exception only - is expected to be nil - is expected to eq "#>" - is expected to eq nil - is expected to eq # - is expected to eq "test" - with anything else #to_s - is expected to be nil - is expected to eq "#>" - is expected to be nil - is expected to eq "[\"error1\", \"error2\"]" +Faraday::Utils::Headers + when Content-Type is set to application/xml + is expected to eq "application/xml" + is expected to eq "application/xml" + is expected to include "content-type" + is expected to eq ["Content-Type"] + is expected to eq "application/xml" + when Content-Type is set to application/json + is expected to eq "application/json" + is expected to eq "application/json" + is expected to include "content-type" + is expected to eq "application/json" + is expected to eq ["Content-Type"] + #fetch + is expected to eq false + is expected to eq "application/json" + is expected to be nil + calls a block when provided + is expected to eq "default" + raises an error if key not found + is expected to eq "Invalid key" + is expected to eq "application/json" + is expected to eq "application/json" + #delete + is expected to eq "application/json" + is expected to be nil + is expected not to include "content-type" + is expected to eq 0 + #parse + when response headers leave http status line out + is expected to eq ["Content-Type"] + is expected to eq "text/html" + is expected to eq "text/html" + when response headers include a blank line + is expected to eq "text/html" + when response headers values include a colon + is expected to eq "http://sushi.com/" -Finished in 1 minute 52.97 seconds (files took 5.7 seconds to load) +Finished in 1 minute 39.27 seconds (files took 4.84 seconds to load) 2543 examples, 0 failures -Randomized with seed 59111 +Randomized with seed 59878 Coverage report generated for RSpec to /build/ruby-faraday-1.1.0/coverage. 907 / 1052 LOC (86.22%) covered. [Coveralls] Outside the CI environment, not sending data. @@ -4619,12 +4656,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: not including original source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/13968/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/13968/tmp/hooks/B01_cleanup finished I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env -I: removing directory /srv/workspace/pbuilder/21823 and its subdirectories -I: Current time: Sat Jul 6 18:42:28 -12 2024 -I: pbuilder-time-stamp: 1720334548 +I: removing directory /srv/workspace/pbuilder/13968 and its subdirectories +I: Current time: Mon Jun 5 14:22:44 +14 2023 +I: pbuilder-time-stamp: 1685924564