Diff of the two buildlogs: -- --- b1/build.log 2022-01-10 03:38:22.822344587 +0000 +++ b2/build.log 2022-01-10 03:39:09.948891799 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Sun Jan 9 15:36:46 -12 2022 -I: pbuilder-time-stamp: 1641785806 +I: Current time: Mon Feb 13 00:01:26 +14 2023 +I: pbuilder-time-stamp: 1676196086 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/bullseye-reproducible-base.tgz] I: copying local configuration @@ -16,8 +16,8 @@ I: copying [./ruby-faraday_1.1.0-6.debian.tar.xz] I: Extracting source gpgv: unknown type of key resource 'trustedkeys.kbx' -gpgv: keyblock resource '/tmp/dpkg-verify-sig.9MuLnd21/trustedkeys.kbx': General error -gpgv: Signature made Thu Jan 28 08:29:33 2021 -12 +gpgv: keyblock resource '/tmp/dpkg-verify-sig.ACjRiyDA/trustedkeys.kbx': General error +gpgv: Signature made Fri Jan 29 10:29:33 2021 +14 gpgv: using RSA key 8ED6C3F8BAC9DB7FC130A870F823A2729883C97C gpgv: issuer "lucas.kanashiro@canonical.com" gpgv: Can't check signature: No public key @@ -33,135 +33,169 @@ 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/2665553/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/2564784/tmp/hooks/D01_modify_environment starting +debug: Running on ionos5-amd64. +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 +Removing 'diversion of /bin/sh to /bin/sh.distrib by dash' +Adding 'diversion of /bin/sh to /bin/sh.distrib by bash' +Removing 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash' +Adding 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by 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/2564784/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/2564784/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='amd64' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all,-fixfilepath parallel=15' - DISTRIBUTION='' - HOME='/root' - HOST_ARCH='amd64' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="1" [2]="4" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu") + BASH_VERSION='5.1.4(1)-release' + BUILDDIR=/build + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=amd64 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all,-fixfilepath parallel=16' + DIRSTACK=() + DISTRIBUTION= + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=x86_64 + HOST_ARCH=amd64 IFS=' ' - INVOCATION_ID='e6faff8c8eb741168d55235ef844e380' - 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='2665553' - PS1='# ' - PS2='> ' + INVOCATION_ID=e533e100cb7c422a898ba1953e0c189e + LANG=C + LANGUAGE=et_EE:et + LC_ALL=C + MACHTYPE=x86_64-pc-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=2564784 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/tmp.UjLAVnwG7t/pbuilderrc_2TJK --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bullseye-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.UjLAVnwG7t/b1 --logfile b1/build.log ruby-faraday_1.1.0-6.dsc' - SUDO_GID='111' - SUDO_UID='106' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://78.137.99.97: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/tmp.UjLAVnwG7t/pbuilderrc_TDvL --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bullseye-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.UjLAVnwG7t/b2 --logfile b2/build.log ruby-faraday_1.1.0-6.dsc' + SUDO_GID=110 + SUDO_UID=105 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://85.184.249.68:3128 I: uname -a - Linux ionos11-amd64 5.10.0-10-amd64 #1 SMP Debian 5.10.84-1 (2021-12-08) x86_64 GNU/Linux + Linux i-capture-the-hostname 5.14.0-0.bpo.2-amd64 #1 SMP Debian 5.14.9-2~bpo11+1 (2021-10-10) x86_64 GNU/Linux I: ls -l /bin total 5476 - -rwxr-xr-x 1 root root 1234376 Aug 4 08:25 bash - -rwxr-xr-x 3 root root 38984 Jul 20 2020 bunzip2 - -rwxr-xr-x 3 root root 38984 Jul 20 2020 bzcat - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzcmp -> bzdiff - -rwxr-xr-x 1 root root 2225 Jul 20 2020 bzdiff - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzegrep -> bzgrep - -rwxr-xr-x 1 root root 4877 Sep 4 2019 bzexe - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzfgrep -> bzgrep - -rwxr-xr-x 1 root root 3775 Jul 20 2020 bzgrep - -rwxr-xr-x 3 root root 38984 Jul 20 2020 bzip2 - -rwxr-xr-x 1 root root 18424 Jul 20 2020 bzip2recover - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzless -> bzmore - -rwxr-xr-x 1 root root 1297 Jul 20 2020 bzmore - -rwxr-xr-x 1 root root 43936 Sep 23 2020 cat - -rwxr-xr-x 1 root root 72672 Sep 23 2020 chgrp - -rwxr-xr-x 1 root root 64448 Sep 23 2020 chmod - -rwxr-xr-x 1 root root 72672 Sep 23 2020 chown - -rwxr-xr-x 1 root root 151168 Sep 23 2020 cp - -rwxr-xr-x 1 root root 125560 Dec 10 2020 dash - -rwxr-xr-x 1 root root 113664 Sep 23 2020 date - -rwxr-xr-x 1 root root 80968 Sep 23 2020 dd - -rwxr-xr-x 1 root root 93936 Sep 23 2020 df - -rwxr-xr-x 1 root root 147176 Sep 23 2020 dir - -rwxr-xr-x 1 root root 84440 Jul 28 07:09 dmesg - lrwxrwxrwx 1 root root 8 Nov 6 2019 dnsdomainname -> hostname - lrwxrwxrwx 1 root root 8 Nov 6 2019 domainname -> hostname - -rwxr-xr-x 1 root root 39712 Sep 23 2020 echo - -rwxr-xr-x 1 root root 28 Nov 9 2020 egrep - -rwxr-xr-x 1 root root 39680 Sep 23 2020 false - -rwxr-xr-x 1 root root 28 Nov 9 2020 fgrep - -rwxr-xr-x 1 root root 69032 Jul 28 07:09 findmnt - -rwsr-xr-x 1 root root 34896 Feb 26 2021 fusermount - -rwxr-xr-x 1 root root 203072 Nov 9 2020 grep - -rwxr-xr-x 2 root root 2346 Mar 2 2021 gunzip - -rwxr-xr-x 1 root root 6376 Mar 2 2021 gzexe - -rwxr-xr-x 1 root root 98048 Mar 2 2021 gzip - -rwxr-xr-x 1 root root 22600 Nov 6 2019 hostname - -rwxr-xr-x 1 root root 72840 Sep 23 2020 ln - -rwxr-xr-x 1 root root 56952 Feb 7 2020 login - -rwxr-xr-x 1 root root 147176 Sep 23 2020 ls - -rwxr-xr-x 1 root root 149736 Jul 28 07:09 lsblk - -rwxr-xr-x 1 root root 85184 Sep 23 2020 mkdir - -rwxr-xr-x 1 root root 76896 Sep 23 2020 mknod - -rwxr-xr-x 1 root root 48064 Sep 23 2020 mktemp - -rwxr-xr-x 1 root root 59632 Jul 28 07:09 more - -rwsr-xr-x 1 root root 55528 Jul 28 07:09 mount - -rwxr-xr-x 1 root root 18664 Jul 28 07:09 mountpoint - -rwxr-xr-x 1 root root 147080 Sep 23 2020 mv - lrwxrwxrwx 1 root root 8 Nov 6 2019 nisdomainname -> hostname - lrwxrwxrwx 1 root root 14 Apr 18 2021 pidof -> /sbin/killall5 - -rwxr-xr-x 1 root root 43872 Sep 23 2020 pwd - lrwxrwxrwx 1 root root 4 Aug 4 08:25 rbash -> bash - -rwxr-xr-x 1 root root 52032 Sep 23 2020 readlink - -rwxr-xr-x 1 root root 72704 Sep 23 2020 rm - -rwxr-xr-x 1 root root 52032 Sep 23 2020 rmdir - -rwxr-xr-x 1 root root 27472 Sep 27 2020 run-parts - -rwxr-xr-x 1 root root 122224 Dec 22 2018 sed - lrwxrwxrwx 1 root root 4 Jan 6 21:24 sh -> dash - -rwxr-xr-x 1 root root 43808 Sep 23 2020 sleep - -rwxr-xr-x 1 root root 84928 Sep 23 2020 stty - -rwsr-xr-x 1 root root 71912 Jul 28 07:09 su - -rwxr-xr-x 1 root root 39744 Sep 23 2020 sync - -rwxr-xr-x 1 root root 531928 Feb 16 2021 tar - -rwxr-xr-x 1 root root 14456 Sep 27 2020 tempfile - -rwxr-xr-x 1 root root 101408 Sep 23 2020 touch - -rwxr-xr-x 1 root root 39680 Sep 23 2020 true - -rwxr-xr-x 1 root root 14328 Feb 26 2021 ulockmgr_server - -rwsr-xr-x 1 root root 35040 Jul 28 07:09 umount - -rwxr-xr-x 1 root root 39744 Sep 23 2020 uname - -rwxr-xr-x 2 root root 2346 Mar 2 2021 uncompress - -rwxr-xr-x 1 root root 147176 Sep 23 2020 vdir - -rwxr-xr-x 1 root root 63744 Jul 28 07:09 wdctl - lrwxrwxrwx 1 root root 8 Nov 6 2019 ypdomainname -> hostname - -rwxr-xr-x 1 root root 1984 Mar 2 2021 zcat - -rwxr-xr-x 1 root root 1678 Mar 2 2021 zcmp - -rwxr-xr-x 1 root root 5880 Mar 2 2021 zdiff - -rwxr-xr-x 1 root root 29 Mar 2 2021 zegrep - -rwxr-xr-x 1 root root 29 Mar 2 2021 zfgrep - -rwxr-xr-x 1 root root 2081 Mar 2 2021 zforce - -rwxr-xr-x 1 root root 7585 Mar 2 2021 zgrep - -rwxr-xr-x 1 root root 2206 Mar 2 2021 zless - -rwxr-xr-x 1 root root 1842 Mar 2 2021 zmore - -rwxr-xr-x 1 root root 4553 Mar 2 2021 znew -I: user script /srv/workspace/pbuilder/2665553/tmp/hooks/D02_print_environment finished + -rwxr-xr-x 1 root root 1234376 Aug 5 2021 bash + -rwxr-xr-x 3 root root 38984 Jul 21 2020 bunzip2 + -rwxr-xr-x 3 root root 38984 Jul 21 2020 bzcat + lrwxrwxrwx 1 root root 6 Jul 21 2020 bzcmp -> bzdiff + -rwxr-xr-x 1 root root 2225 Jul 21 2020 bzdiff + lrwxrwxrwx 1 root root 6 Jul 21 2020 bzegrep -> bzgrep + -rwxr-xr-x 1 root root 4877 Sep 5 2019 bzexe + lrwxrwxrwx 1 root root 6 Jul 21 2020 bzfgrep -> bzgrep + -rwxr-xr-x 1 root root 3775 Jul 21 2020 bzgrep + -rwxr-xr-x 3 root root 38984 Jul 21 2020 bzip2 + -rwxr-xr-x 1 root root 18424 Jul 21 2020 bzip2recover + lrwxrwxrwx 1 root root 6 Jul 21 2020 bzless -> bzmore + -rwxr-xr-x 1 root root 1297 Jul 21 2020 bzmore + -rwxr-xr-x 1 root root 43936 Sep 24 2020 cat + -rwxr-xr-x 1 root root 72672 Sep 24 2020 chgrp + -rwxr-xr-x 1 root root 64448 Sep 24 2020 chmod + -rwxr-xr-x 1 root root 72672 Sep 24 2020 chown + -rwxr-xr-x 1 root root 151168 Sep 24 2020 cp + -rwxr-xr-x 1 root root 125560 Dec 11 2020 dash + -rwxr-xr-x 1 root root 113664 Sep 24 2020 date + -rwxr-xr-x 1 root root 80968 Sep 24 2020 dd + -rwxr-xr-x 1 root root 93936 Sep 24 2020 df + -rwxr-xr-x 1 root root 147176 Sep 24 2020 dir + -rwxr-xr-x 1 root root 84440 Jul 29 2021 dmesg + lrwxrwxrwx 1 root root 8 Nov 8 2019 dnsdomainname -> hostname + lrwxrwxrwx 1 root root 8 Nov 8 2019 domainname -> hostname + -rwxr-xr-x 1 root root 39712 Sep 24 2020 echo + -rwxr-xr-x 1 root root 28 Nov 10 2020 egrep + -rwxr-xr-x 1 root root 39680 Sep 24 2020 false + -rwxr-xr-x 1 root root 28 Nov 10 2020 fgrep + -rwxr-xr-x 1 root root 69032 Jul 29 2021 findmnt + -rwsr-xr-x 1 root root 34896 Feb 27 2021 fusermount + -rwxr-xr-x 1 root root 203072 Nov 10 2020 grep + -rwxr-xr-x 2 root root 2346 Mar 3 2021 gunzip + -rwxr-xr-x 1 root root 6376 Mar 3 2021 gzexe + -rwxr-xr-x 1 root root 98048 Mar 3 2021 gzip + -rwxr-xr-x 1 root root 22600 Nov 8 2019 hostname + -rwxr-xr-x 1 root root 72840 Sep 24 2020 ln + -rwxr-xr-x 1 root root 56952 Feb 8 2020 login + -rwxr-xr-x 1 root root 147176 Sep 24 2020 ls + -rwxr-xr-x 1 root root 149736 Jul 29 2021 lsblk + -rwxr-xr-x 1 root root 85184 Sep 24 2020 mkdir + -rwxr-xr-x 1 root root 76896 Sep 24 2020 mknod + -rwxr-xr-x 1 root root 48064 Sep 24 2020 mktemp + -rwxr-xr-x 1 root root 59632 Jul 29 2021 more + -rwsr-xr-x 1 root root 55528 Jul 29 2021 mount + -rwxr-xr-x 1 root root 18664 Jul 29 2021 mountpoint + -rwxr-xr-x 1 root root 147080 Sep 24 2020 mv + lrwxrwxrwx 1 root root 8 Nov 8 2019 nisdomainname -> hostname + lrwxrwxrwx 1 root root 14 Apr 19 2021 pidof -> /sbin/killall5 + -rwxr-xr-x 1 root root 43872 Sep 24 2020 pwd + lrwxrwxrwx 1 root root 4 Aug 5 2021 rbash -> bash + -rwxr-xr-x 1 root root 52032 Sep 24 2020 readlink + -rwxr-xr-x 1 root root 72704 Sep 24 2020 rm + -rwxr-xr-x 1 root root 52032 Sep 24 2020 rmdir + -rwxr-xr-x 1 root root 27472 Sep 28 2020 run-parts + -rwxr-xr-x 1 root root 122224 Dec 23 2018 sed + lrwxrwxrwx 1 root root 4 Feb 13 00:01 sh -> bash + lrwxrwxrwx 1 root root 4 Feb 10 05:46 sh.distrib -> dash + -rwxr-xr-x 1 root root 43808 Sep 24 2020 sleep + -rwxr-xr-x 1 root root 84928 Sep 24 2020 stty + -rwsr-xr-x 1 root root 71912 Jul 29 2021 su + -rwxr-xr-x 1 root root 39744 Sep 24 2020 sync + -rwxr-xr-x 1 root root 531928 Feb 17 2021 tar + -rwxr-xr-x 1 root root 14456 Sep 28 2020 tempfile + -rwxr-xr-x 1 root root 101408 Sep 24 2020 touch + -rwxr-xr-x 1 root root 39680 Sep 24 2020 true + -rwxr-xr-x 1 root root 14328 Feb 27 2021 ulockmgr_server + -rwsr-xr-x 1 root root 35040 Jul 29 2021 umount + -rwxr-xr-x 1 root root 39744 Sep 24 2020 uname + -rwxr-xr-x 2 root root 2346 Mar 3 2021 uncompress + -rwxr-xr-x 1 root root 147176 Sep 24 2020 vdir + -rwxr-xr-x 1 root root 63744 Jul 29 2021 wdctl + lrwxrwxrwx 1 root root 8 Nov 8 2019 ypdomainname -> hostname + -rwxr-xr-x 1 root root 1984 Mar 3 2021 zcat + -rwxr-xr-x 1 root root 1678 Mar 3 2021 zcmp + -rwxr-xr-x 1 root root 5880 Mar 3 2021 zdiff + -rwxr-xr-x 1 root root 29 Mar 3 2021 zegrep + -rwxr-xr-x 1 root root 29 Mar 3 2021 zfgrep + -rwxr-xr-x 1 root root 2081 Mar 3 2021 zforce + -rwxr-xr-x 1 root root 7585 Mar 3 2021 zgrep + -rwxr-xr-x 1 root root 2206 Mar 3 2021 zless + -rwxr-xr-x 1 root root 1842 Mar 3 2021 zmore + -rwxr-xr-x 1 root root 4553 Mar 3 2021 znew +I: user script /srv/workspace/pbuilder/2564784/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -450,7 +484,7 @@ Get: 213 http://deb.debian.org/debian bullseye/main amd64 ruby-sinatra all 2.0.8.1-2 [351 kB] Get: 214 http://deb.debian.org/debian bullseye/main amd64 ruby-typhoeus all 1.4.0-1 [36.2 kB] Get: 215 http://deb.debian.org/debian bullseye/main amd64 ruby-webmock all 3.8.3-1 [64.3 kB] -Fetched 51.4 MB in 4s (12.8 MB/s) +Fetched 51.4 MB in 1s (63.8 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package bsdextrautils. (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 ... 19655 files and directories currently installed.) @@ -1342,7 +1376,8 @@ fakeroot is already the newest version (1.25.3-1.1). 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-6_source.changes +hostname: Name or service not known +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-6_source.changes dpkg-buildpackage: info: source package ruby-faraday dpkg-buildpackage: info: source version 1.1.0-6 dpkg-buildpackage: info: source distribution unstable @@ -1446,2329 +1481,2863 @@ RUBYLIB=/build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby:. GEM_PATH=/build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/share/rubygems-integration/all:/var/lib/gems/2.7.0:/usr/local/lib/ruby/gems/2.7.0:/usr/lib/ruby/gems/2.7.0:/usr/lib/x86_64-linux-gnu/ruby/gems/2.7.0:/usr/share/rubygems-integration/2.7.0:/usr/share/rubygems-integration/all:/usr/lib/x86_64-linux-gnu/rubygems-integration/2.7.0 ruby2.7 -S rake -f debian/ruby-tests.rake /usr/bin/ruby2.7 -I/usr/share/rubygems-integration/all/gems/rspec-support-3.9.3/lib:/usr/share/rubygems-integration/all/gems/rspec-core-3.9.2/lib /usr/share/rubygems-integration/all/gems/rspec-core-3.9.2/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 4115 +Randomized with seed 2634 -Faraday::Request::Instrumentation - is expected to eq "request.faraday" - instruments with default name - defaults to ActiveSupport::Notifications - with custom instrumenter - is expected to eq :custom - with custom name - is expected to eq "custom" - instruments with custom name - -Faraday::Request::Multipart - UploadIO: 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 - 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 array param - forms a multipart request - behaves like a multipart request - generates a unique boundary for each request - FilePart: when multipart objects in param - forms a multipart request - behaves like a multipart request - generates a unique boundary for each request - UploadIO: when providing json and IO content in the same payload - forms a multipart request - behaves like a multipart request - generates a unique boundary for each request - FilePart: when multipart objects in array param - forms a multipart request - behaves like a multipart request - generates a unique boundary for each request - -Faraday::Adapter::Excon - allows to provide adapter specific configs - config - sets timeout and open_timeout - sets timeout - sets open_timeout +Faraday::Adapter::Typhoeus behaves like an adapter - with SSL enabled - #delete + with SSL disabled + #trace behaves like a request method handles requests with proxy - sends url encoded parameters + handles proxy failures + supports timeout option handles headers with multiple values + sends url encoded parameters sends url encoded nested parameters - handles proxy failures supports open_timeout option represents empty body response as blank string - sends user agent handles connection error - sends request body - parses the reason phrase - supports timeout option retrieves the response headers + sends user agent retrieves the response body - #patch + sends request body + with parallel setup + handles parallel requests status + handles parallel requests body + #get behaves like a request method - handles requests with proxy + retrieves the response headers sends url encoded nested parameters sends user agent - retrieves the response body - represents empty body response as blank string handles proxy failures sends request body - supports timeout option - retrieves the response headers - handles headers with multiple values - sends url encoded parameters - sends files - parses the reason phrase - supports open_timeout option handles connection error - #post - behaves like a request method - retrieves the response headers handles headers with multiple values - represents empty body response as blank string supports open_timeout option - sends url encoded nested parameters - sends request body + represents empty body response as blank string supports timeout option - handles requests with proxy - sends files - handles proxy failures - parses the reason phrase retrieves the response body - sends user agent + handles requests with proxy sends url encoded parameters - handles connection error - #head + with parallel setup + handles parallel requests status + handles parallel requests body + #options behaves like a request method - retrieves the response headers + handles proxy failures sends user agent - handles requests with proxy - supports open_timeout option supports timeout option - parses the reason phrase + retrieves the response headers + supports open_timeout option sends url encoded parameters - sends url encoded nested parameters - handles proxy failures - handles headers with multiple values - sends request body - handles connection error represents empty body response as blank string - retrieves the response body - #trace - behaves like a request method - represents empty body response as blank string - handles proxy failures - sends url encoded parameters handles connection error - sends user agent - supports timeout option - handles headers with multiple values - sends url encoded nested parameters retrieves the response body - supports open_timeout option - sends request body - retrieves the response headers handles requests with proxy - parses the reason phrase - #options - behaves like a request method - parses the reason phrase - sends user agent - handles requests with proxy - sends request body handles headers with multiple values + sends request body sends url encoded nested parameters - sends url encoded parameters - retrieves the response body - supports open_timeout option - handles connection error - supports timeout option - retrieves the response headers - represents empty body response as blank string - handles proxy failures + with parallel setup + handles parallel requests status + handles parallel requests body #put behaves like a request method - handles proxy failures + handles headers with multiple values + sends url encoded nested parameters + supports timeout option + handles requests with proxy + supports open_timeout option retrieves the response body + sends files + handles proxy failures sends request body represents empty body response as blank string - handles headers with multiple values - parses the reason phrase - retrieves the response headers - handles requests with proxy + sends user agent sends url encoded parameters + retrieves the response headers handles connection error + with parallel setup + handles parallel requests status + handles parallel requests body + #patch + behaves like a request method sends url encoded nested parameters - supports open_timeout option sends files - supports timeout option - sends user agent - #get - behaves like a request method - handles connection error - handles headers with multiple values + handles requests with proxy sends user agent - retrieves the response headers - sends url encoded nested parameters - supports open_timeout option - represents empty body response as blank string sends request body - handles requests with proxy - sends url encoded parameters - parses the reason phrase - handles proxy failures - retrieves the response body supports timeout option - with SSL disabled - #get - behaves like a request method retrieves the response body handles headers with multiple values - supports timeout option retrieves the response headers + handles proxy failures handles connection error - handles requests with proxy - sends user agent - sends request body represents empty body response as blank string - supports open_timeout option sends url encoded parameters - parses the reason phrase - sends url encoded nested parameters - handles proxy failures + supports open_timeout option + with parallel setup + handles parallel requests body + handles parallel requests status #delete behaves like a request method - represents empty body response as blank string + handles connection error supports open_timeout option sends user agent - retrieves the response headers - handles connection error - parses the reason phrase - handles proxy failures - supports timeout option - sends request body - handles requests with proxy - retrieves the response body - sends url encoded parameters - handles headers with multiple values - sends url encoded nested parameters - #trace - behaves like a request method - handles headers with multiple values - handles connection error sends url encoded parameters - sends request body - sends user agent - supports open_timeout option - handles requests with proxy - supports timeout option represents empty body response as blank string - retrieves the response headers - handles proxy failures - parses the reason phrase retrieves the response body - sends url encoded nested parameters - #put - behaves like a request method - supports open_timeout option - sends url encoded parameters - supports timeout option - parses the reason phrase + handles requests with proxy sends request body - handles headers with multiple values - retrieves the response headers - handles connection error - retrieves the response body - sends files handles proxy failures - handles requests with proxy + handles headers with multiple values sends url encoded nested parameters - sends user agent - represents empty body response as blank string + supports timeout option + retrieves the response headers + with parallel setup + handles parallel requests status + handles parallel requests body #post behaves like a request method - sends request body + retrieves the response headers sends user agent - sends url encoded nested parameters - parses the reason phrase handles requests with proxy supports timeout option - retrieves the response headers - supports open_timeout option handles proxy failures - retrieves the response body - handles headers with multiple values - handles connection error - sends files - represents empty body response as blank string - sends url encoded parameters - #options - behaves like a request method sends url encoded parameters sends request body - retrieves the response headers - parses the reason phrase - handles requests with proxy - sends user agent - retrieves the response body + supports open_timeout option + sends files + handles connection error sends url encoded nested parameters - handles proxy failures represents empty body response as blank string - supports open_timeout option handles headers with multiple values - handles connection error - supports timeout option + retrieves the response body + with parallel setup + handles parallel requests body + handles parallel requests status #head behaves like a request method + handles connection error + sends user agent + supports open_timeout option represents empty body response as blank string handles proxy failures sends request body - parses the reason phrase sends url encoded nested parameters + retrieves the response body retrieves the response headers handles headers with multiple values handles requests with proxy - retrieves the response body - handles connection error - supports open_timeout option sends url encoded parameters - sends user agent supports timeout option - #patch + with parallel setup + handles parallel requests body + handles parallel requests status + with SSL enabled + #head behaves like a request method - sends url encoded nested parameters - handles requests with proxy - retrieves the response body + handles proxy failures sends user agent - handles connection error + supports open_timeout option + sends url encoded parameters represents empty body response as blank string - sends request body + sends url encoded nested parameters + handles connection error + supports timeout option retrieves the response headers + retrieves the response body + handles requests with proxy handles headers with multiple values - supports timeout option - supports open_timeout option - sends url encoded parameters - sends files - parses the reason phrase - handles proxy failures - -Faraday::Request::Authorization - basic_auth - when passed very long values - is expected to eq "Basic QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQU...UFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBOg==" - and request already has an authentication header - does not interfere with existing authorization - when passed correct params - is expected to eq "Basic YWxhZGRpbjpvcGVuc2VzYW1l" - and request already has an authentication header - does not interfere with existing authorization - 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 a string and a hash - is expected to eq "baz foo=\"42\"" - and request already has an authentication header - does not interfere with existing authorization - when passed two strings - is expected to eq "custom abc def" - and request already has an authentication header - does not interfere with existing authorization - -Faraday::Request::Retry - 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 -9 - is expected to eq 1 - and legacy max_retry set to 1 - is expected to eq 2 - and new max_retry set to -9 - is expected to eq 1 - retry_if option - 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 - FilePart: should rewind files on retry - retries if retry_if block always returns true - 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 - retry_after header support - 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 is bigger than max_interval - is expected to eq 1 - when retry_after smaller than interval - is expected to be > 0.2 - #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.1 - is expected to eq 0.2 - is expected to eq 0.4 - with exponential backoff and max_interval - is expected to eq 0.3 - is expected to eq 0.3 - is expected to eq 0.2 - is expected to eq 0.1 - when an unexpected error happens - is expected to eq 1 - and this is passed as a custom exception - is expected to eq 3 - when method is not idempotent - is expected to eq 1 - -Faraday::Response::Middleware - with a custom ResponseMiddleware but empty response - raises exception for 200 responses - doesn't call the middleware for 204 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::ProxyOptions - allows hash access - #from - works with nil - works with string - works with no auth - -Faraday::Response::Logger - logs response headers by default - logs method and url - does not log response body by default - still returns output - logs request headers by default - logs filter headers - does not log request body by default - logs filter url - when logging request body - log only request body - 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 - without configuration - defaults to stdout - with custom formatter - logs with custom formatter - when using log_level - does not log headers on the info level - logs headers on the debug level - logs request/request body on the specified level (debug) - does not log request/response body on the info level - when logging request and response bodies - log response body object - log request and response body - logs filter body - with default formatter - delegates logging to the formatter - when logging response body - log only response body - -Faraday - has a version number - proxies to default_connection - proxies methods that exist on the default_connection - uses method_missing on Faraday if there is no proxyable method - proxied methods can be accessed - -Faraday::Adapter::EMHttp - allows to provide adapter specific configs - behaves like an adapter - with SSL enabled + sends request body + with parallel setup + handles parallel requests status + handles parallel requests body #options behaves like a request method + handles requests with proxy + sends url encoded nested parameters + supports timeout option + handles proxy failures + handles connection error retrieves the response body - handles headers with multiple values - supports open_timeout option sends url encoded parameters - parses the reason phrase + sends request body + retrieves the response headers sends user agent + handles headers with multiple values + represents empty body response as blank string + supports open_timeout option + with parallel setup + handles parallel requests status + handles parallel requests body + #get + behaves like a request method + retrieves the response body + handles proxy failures retrieves the response headers - handles connection error represents empty body response as blank string + sends url encoded parameters + sends url encoded nested parameters sends request body - binds local socket supports timeout option - handles proxy failures - sends url encoded nested parameters handles requests with proxy + supports open_timeout option + sends user agent + handles headers with multiple values + handles connection error with parallel setup - handles parallel requests status handles parallel requests body + handles parallel requests status #patch behaves like a request method - sends request body - binds local socket - retrieves the response headers retrieves the response body - supports timeout option + sends url encoded parameters + retrieves the response headers supports open_timeout option + supports timeout option + sends url encoded nested parameters handles headers with multiple values - parses the reason phrase represents empty body response as blank string - handles connection error - sends url encoded nested parameters - sends url encoded parameters handles requests with proxy sends user agent + handles connection error + sends request body handles proxy failures sends files with parallel setup - handles parallel requests body handles parallel requests status - #delete + handles parallel requests body + #trace behaves like a request method - retrieves the response body - parses the reason phrase - retrieves the response headers supports open_timeout option + retrieves the response body + handles proxy failures handles requests with proxy + handles headers with multiple values + handles connection error + represents empty body response as blank string sends user agent sends url encoded parameters + retrieves the response headers + sends url encoded nested parameters sends request body - handles headers with multiple values - represents empty body response as blank string supports timeout option + with parallel setup + handles parallel requests status + handles parallel requests body + #delete + behaves like a request method + sends url encoded parameters sends url encoded nested parameters - binds local socket + handles requests with proxy + handles headers with multiple values + sends user agent + supports timeout option handles connection error + retrieves the response body + supports open_timeout option handles proxy failures + retrieves the response headers + sends request body + represents empty body response as blank string with parallel setup handles parallel requests status handles parallel requests body - #get + #post behaves like a request method - handles connection error - represents empty body response as blank string - handles requests with proxy - supports open_timeout option - supports timeout option + handles headers with multiple values retrieves the response headers sends url encoded parameters - sends request body - sends url encoded nested parameters + handles requests with proxy + supports open_timeout option + retrieves the response body handles proxy failures + sends url encoded nested parameters + represents empty body response as blank string + sends request body + supports timeout option sends user agent - binds local socket - handles headers with multiple values - retrieves the response body - parses the reason phrase + sends files + handles connection error with parallel setup handles parallel requests body handles parallel requests status #put behaves like a request method + handles requests with proxy + sends url encoded parameters + retrieves the response body retrieves the response headers - handles connection error - supports timeout option - sends files - parses the reason phrase - binds local socket + supports open_timeout option handles proxy failures + represents empty body response as blank string + sends user agent sends url encoded nested parameters + handles connection error + supports timeout option handles headers with multiple values - sends user agent - sends url encoded parameters - supports open_timeout option - represents empty body response as blank string sends request body - handles requests with proxy - retrieves the response body + sends files with parallel setup - handles parallel requests status handles parallel requests body - #head + handles parallel requests status + +Faraday::Middleware + #close + with app that doesn't support #close + should issue warning + with app that supports #close + should issue warning + +Faraday::Adapter::HTTPClient + allows to provide adapter specific configs + Options + configures timeout + configures multiple timeouts + configures open timeout + behaves like an adapter + with SSL enabled + #options behaves like a request method + parses the reason phrase retrieves the response headers - sends url encoded nested parameters - handles proxy failures + retrieves the response body + sends url encoded parameters supports open_timeout option - supports timeout option - represents empty body response as blank string - binds local socket - parses the reason phrase - handles connection error - sends request body sends user agent - handles headers with multiple values - sends url encoded parameters + handles proxy failures + handles gzip compression handles requests with proxy - with parallel setup - handles parallel requests status - #trace - behaves like a request method represents empty body response as blank string - handles requests with proxy binds local socket + handles deflate compression sends url encoded nested parameters + handles connection error supports timeout option handles headers with multiple values - retrieves the response body - handles proxy failures - handles connection error - supports open_timeout option + sends request body + #get + behaves like a request method + sends url encoded nested parameters + handles gzip compression + handles requests with proxy + handles headers with multiple values parses the reason phrase + sends url encoded parameters + supports open_timeout option + supports timeout option + binds local socket sends user agent retrieves the response headers + represents empty body response as blank string + retrieves the response body + handles proxy failures sends request body - sends url encoded parameters - with parallel setup - handles parallel requests body - handles parallel requests status - #post + handles deflate compression + handles connection error + #put behaves like a request method handles headers with multiple values - retrieves the response headers - binds local socket + sends files supports open_timeout option - sends url encoded nested parameters + handles gzip compression + sends url encoded parameters supports timeout option + handles requests with proxy + handles connection error sends request body - represents empty body response as blank string handles proxy failures + handles deflate compression + sends url encoded nested parameters sends user agent - retrieves the response body - handles requests with proxy - handles connection error + binds local socket parses the reason phrase - sends files - sends url encoded parameters - with parallel setup - handles parallel requests body - handles parallel requests status - with SSL disabled - #delete + retrieves the response body + represents empty body response as blank string + retrieves the response headers + #trace behaves like a request method + handles deflate compression binds local socket parses the reason phrase - retrieves the response headers - sends url encoded nested parameters sends url encoded parameters - sends request body - handles connection error + handles gzip compression + handles requests with proxy + handles headers with multiple values represents empty body response as blank string + handles connection error + supports open_timeout option retrieves the response body supports timeout option - sends user agent - handles headers with multiple values - supports open_timeout option - handles requests with proxy handles proxy failures - with parallel setup - handles parallel requests status - handles parallel requests body - #put + sends url encoded nested parameters + retrieves the response headers + sends request body + sends user agent + #delete behaves like a request method + handles deflate compression parses the reason phrase + handles requests with proxy + sends request body handles connection error + handles proxy failures binds local socket - sends url encoded nested parameters - handles headers with multiple values - supports timeout option + retrieves the response headers sends url encoded parameters - handles requests with proxy - sends user agent + handles headers with multiple values represents empty body response as blank string - sends files supports open_timeout option - handles proxy failures - sends request body - retrieves the response headers + sends url encoded nested parameters + sends user agent + handles gzip compression + supports timeout option retrieves the response body - with parallel setup - handles parallel requests status - handles parallel requests body #post behaves like a request method - handles requests with proxy + supports open_timeout option + sends user agent + sends files binds local socket + handles requests with proxy + handles gzip compression + represents empty body response as blank string handles proxy failures + sends url encoded nested parameters + retrieves the response headers + retrieves the response body handles headers with multiple values + supports timeout option + parses the reason phrase + handles deflate compression + handles connection error + sends url encoded parameters + sends request body + #patch + behaves like a request method + handles requests with proxy parses the reason phrase sends files - retrieves the response body supports open_timeout option sends request body - sends url encoded nested parameters + handles proxy failures supports timeout option - sends url encoded parameters + sends url encoded nested parameters + handles headers with multiple values handles connection error + sends user agent retrieves the response headers + binds local socket + handles gzip compression + sends url encoded parameters + handles deflate compression represents empty body response as blank string - sends user agent - with parallel setup - handles parallel requests body - handles parallel requests status + retrieves the response body #head behaves like a request method + sends url encoded nested parameters + retrieves the response headers handles headers with multiple values + handles connection error + handles proxy failures + sends url encoded parameters + represents empty body response as blank string + retrieves the response body parses the reason phrase + supports open_timeout option + sends user agent sends request body + handles requests with proxy supports timeout option - represents empty body response as blank string binds local socket + with SSL disabled + #options + behaves like a request method + represents empty body response as blank string + parses the reason phrase + sends url encoded parameters handles connection error - handles proxy failures - sends url encoded nested parameters - supports open_timeout option - retrieves the response headers + handles gzip compression handles requests with proxy + sends url encoded nested parameters + handles headers with multiple values sends user agent - sends url encoded parameters - with parallel setup - handles parallel requests status - #get - behaves like a request method + binds local socket + retrieves the response headers + handles deflate compression + supports timeout option + retrieves the response body handles proxy failures - handles connection error - sends url encoded parameters + supports open_timeout option + sends request body + #post + behaves like a request method + parses the reason phrase + sends files + sends request body handles headers with multiple values + sends url encoded parameters + retrieves the response body + handles requests with proxy + handles connection error represents empty body response as blank string + supports open_timeout option + binds local socket + handles gzip compression + retrieves the response headers + sends user agent + handles proxy failures + handles deflate compression + sends url encoded nested parameters + supports timeout option + #delete + behaves like a request method supports timeout option + handles headers with multiple values + handles proxy failures + retrieves the response body + parses the reason phrase sends user agent binds local socket sends url encoded nested parameters - supports open_timeout option + handles requests with proxy sends request body + handles deflate compression + supports open_timeout option + handles connection error + sends url encoded parameters + represents empty body response as blank string + handles gzip compression retrieves the response headers + #head + behaves like a request method + sends user agent + retrieves the response headers + represents empty body response as blank string + handles connection error + supports timeout option + sends request body retrieves the response body - parses the reason phrase + handles proxy failures + sends url encoded nested parameters + sends url encoded parameters + binds local socket + supports open_timeout option handles requests with proxy - with parallel setup - handles parallel requests status - handles parallel requests body + handles headers with multiple values + parses the reason phrase #trace behaves like a request method + retrieves the response body handles headers with multiple values + handles requests with proxy + sends url encoded nested parameters + handles proxy failures + sends user agent + handles gzip compression + retrieves the response headers + supports timeout option + represents empty body response as blank string binds local socket + supports open_timeout option sends request body + parses the reason phrase + sends url encoded parameters + handles deflate compression handles connection error + #patch + behaves like a request method + binds local socket + sends url encoded parameters handles proxy failures retrieves the response headers + handles requests with proxy sends user agent + sends url encoded nested parameters parses the reason phrase - sends url encoded parameters + supports open_timeout option + handles deflate compression + retrieves the response body + represents empty body response as blank string + sends files + handles headers with multiple values + handles connection error + sends request body supports timeout option + handles gzip compression + #get + behaves like a request method sends url encoded nested parameters - handles requests with proxy - represents empty body response as blank string - retrieves the response body + handles proxy failures + sends request body + handles deflate compression + handles gzip compression + supports timeout option + binds local socket + handles connection error + parses the reason phrase supports open_timeout option - with parallel setup - handles parallel requests status - handles parallel requests body - #options - behaves like a request method + sends url encoded parameters handles headers with multiple values + handles requests with proxy sends user agent - supports timeout option retrieves the response headers - sends url encoded parameters - handles connection error + represents empty body response as blank string retrieves the response body - supports open_timeout option + #put + behaves like a request method + handles connection error + sends files + retrieves the response headers + supports timeout option + handles headers with multiple values + represents empty body response as blank string sends url encoded nested parameters + handles proxy failures + handles deflate compression parses the reason phrase - represents empty body response as blank string - binds local socket - handles requests with proxy sends request body - handles proxy failures - with parallel setup - handles parallel requests status - handles parallel requests body - #patch - behaves like a request method - handles headers with multiple values - sends files supports open_timeout option - handles proxy failures + sends url encoded parameters binds local socket - sends url encoded nested parameters - represents empty body response as blank string - retrieves the response headers + handles gzip compression handles requests with proxy - parses the reason phrase - sends user agent - sends request body retrieves the response body - supports timeout option - handles connection error - sends url encoded parameters - with parallel setup - handles parallel requests body - handles parallel requests status + sends user agent + +Faraday + has a version number + proxies to default_connection + proxies methods that exist on the default_connection + proxied methods can be accessed + uses method_missing on Faraday if there is no proxyable method + +Faraday::ClientError + .initialize + with anything else #to_s + is expected to eq "#>" + is expected to eq "[\"error1\", \"error2\"]" + is expected to be nil + is expected to be nil + with response hash + is expected to eq "the server responded with status 400" + is expected to eq {:status=>400} + is expected to be nil + is expected to eq "#400}>" + with exception only + is expected to eq "#>" + is expected to eq "test" + is expected to be nil + is expected to eq nil + is expected to eq # + with string + is expected to be nil + is expected to eq "custom message" + is expected to be nil + is expected to eq "#>" + +Faraday::NestedParamsEncoder + decodes nested ignores invalid array + encodes empty string array value + decodes arrays + encodes unsorted when asked + encodes boolean values in array + encodes empty array value + encodes nil array value + encodes boolean values + decodes hashes + decodes nested ignores repeated array notation + decodes nested ignores malformed keys + decodes nested subkeys dont have to be in brackets + decodes nested array mixed types + decodes nested arrays rack compat + decodes nested final value overrides any type + encodes rack compat + when expecting array but getting string + behaves like a wrong decoding + is expected to raise TypeError + when expecting hash but getting array + behaves like a wrong decoding + is expected to raise TypeError + when expecting 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 + 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 + escapes safe buffer + raises type error for empty string + +Faraday::Adapter::EMHttp + allows to provide adapter specific configs Options - configures timeout configures all timeout settings configures timeout and open_timeout - -Faraday::Adapter::EMSynchrony - allows to provide adapter specific configs + configures timeout behaves like an adapter - with SSL enabled + with SSL disabled #post behaves like a request method - sends url encoded nested parameters - sends url encoded parameters represents empty body response as blank string - handles headers with multiple values sends user agent + supports timeout option + sends url encoded nested parameters + handles headers with multiple values retrieves the response headers - handles requests with proxy - handles connection error + parses the reason phrase binds local socket - retrieves the response body + handles connection error supports open_timeout option - supports timeout option - handles proxy failures - parses the reason phrase sends files + handles requests with proxy + handles proxy failures sends request body + sends url encoded parameters + retrieves the response body with parallel setup - handles parallel requests status handles parallel requests body - #patch + handles parallel requests status + #put behaves like a request method - parses the reason phrase + retrieves the response body + handles connection error + retrieves the response headers + sends request body sends user agent + parses the reason phrase + supports open_timeout option + binds local socket + handles proxy failures + handles headers with multiple values + handles requests with proxy + represents empty body response as blank string + supports timeout option + sends url encoded parameters sends files + sends url encoded nested parameters + with parallel setup + handles parallel requests body + handles parallel requests status + #delete + behaves like a request method handles requests with proxy handles headers with multiple values - handles connection error + retrieves the response headers sends url encoded parameters - supports timeout option + handles connection error + parses the reason phrase supports open_timeout option - sends request body + supports timeout option + binds local socket represents empty body response as blank string sends url encoded nested parameters retrieves the response body handles proxy failures - binds local socket - retrieves the response headers + sends request body + sends user agent with parallel setup handles parallel requests body handles parallel requests status - #get + #patch behaves like a request method - handles headers with multiple values - handles requests with proxy - binds local socket - sends user agent + handles proxy failures retrieves the response headers - sends url encoded parameters - parses the reason phrase - sends request body + handles headers with multiple values handles connection error - supports timeout option + sends url encoded parameters represents empty body response as blank string - handles proxy failures - retrieves the response body supports open_timeout option + retrieves the response body sends url encoded nested parameters + supports timeout option + sends user agent + binds local socket + sends request body + handles requests with proxy + parses the reason phrase + sends files with parallel setup - handles parallel requests body handles parallel requests status - #options + handles parallel requests body + #get behaves like a request method + handles requests with proxy sends url encoded parameters parses the reason phrase - supports timeout option - sends user agent - handles requests with proxy sends request body + handles proxy failures + sends url encoded nested parameters retrieves the response headers + supports open_timeout option + retrieves the response body handles connection error - handles proxy failures + sends user agent handles headers with multiple values represents empty body response as blank string - retrieves the response body - sends url encoded nested parameters - supports open_timeout option + supports timeout option binds local socket with parallel setup handles parallel requests body handles parallel requests status - #delete + #trace behaves like a request method - parses the reason phrase handles proxy failures - handles connection error - supports timeout option - supports open_timeout option + represents empty body response as blank string + sends request body + binds local socket retrieves the response body - sends url encoded nested parameters handles headers with multiple values + retrieves the response headers handles requests with proxy + parses the reason phrase + sends url encoded parameters + handles connection error + supports open_timeout option sends user agent + sends url encoded nested parameters + supports timeout option + with parallel setup + handles parallel requests body + handles parallel requests status + #options + behaves like a request method represents empty body response as blank string + retrieves the response body + supports timeout option + supports open_timeout option + handles proxy failures + sends user agent + sends url encoded nested parameters + binds local socket sends url encoded parameters sends request body + handles connection error + handles requests with proxy + handles headers with multiple values retrieves the response headers - binds local socket + parses the reason phrase with parallel setup handles parallel requests status handles parallel requests body - #put + #head behaves like a request method - handles connection error - supports open_timeout option - handles headers with multiple values - retrieves the response headers - sends url encoded nested parameters sends user agent - sends files - retrieves the response body - handles requests with proxy - parses the reason phrase + supports open_timeout option supports timeout option + handles proxy failures + parses the reason phrase + retrieves the response headers sends url encoded parameters sends request body binds local socket - handles proxy failures + handles headers with multiple values represents empty body response as blank string + handles requests with proxy + sends url encoded nested parameters + handles connection error with parallel setup - handles parallel requests body handles parallel requests status + with SSL enabled #head behaves like a request method + handles proxy failures + sends request body + sends user agent + handles headers with multiple values + supports open_timeout option + sends url encoded nested parameters sends url encoded parameters - parses the reason phrase + retrieves the response headers supports timeout option - handles proxy failures - handles requests with proxy represents empty body response as blank string - sends url encoded nested parameters + parses the reason phrase handles connection error - supports open_timeout option - retrieves the response headers binds local socket - handles headers with multiple values - sends user agent - sends request body + handles requests with proxy with parallel setup handles parallel requests status - with SSL disabled - #get + #options behaves like a request method - sends url encoded nested parameters - handles proxy failures - binds local socket supports timeout option - retrieves the response headers - handles headers with multiple values - supports open_timeout option + handles proxy failures + sends request body represents empty body response as blank string + sends url encoded parameters + supports open_timeout option handles connection error + handles headers with multiple values + sends url encoded nested parameters parses the reason phrase - sends user agent - retrieves the response body - sends request body - sends url encoded parameters + retrieves the response headers + binds local socket handles requests with proxy + retrieves the response body + sends user agent with parallel setup handles parallel requests body handles parallel requests status - #head + #put behaves like a request method - retrieves the response headers - represents empty body response as blank string parses the reason phrase + retrieves the response body + sends url encoded parameters + supports timeout option sends url encoded nested parameters + sends request body + handles requests with proxy + binds local socket + represents empty body response as blank string sends user agent - sends url encoded parameters handles connection error - handles proxy failures + retrieves the response headers + sends files handles headers with multiple values supports open_timeout option - handles requests with proxy - supports timeout option - binds local socket - sends request body + handles proxy failures with parallel setup handles parallel requests status - #put + handles parallel requests body + #post behaves like a request method - sends url encoded nested parameters - parses the reason phrase - retrieves the response body sends user agent supports timeout option - handles connection error + sends url encoded nested parameters handles proxy failures - supports open_timeout option - binds local socket represents empty body response as blank string - retrieves the response headers handles requests with proxy - sends files - handles headers with multiple values sends url encoded parameters + binds local socket + retrieves the response headers + handles connection error + parses the reason phrase + supports open_timeout option sends request body + sends files + handles headers with multiple values + retrieves the response body with parallel setup handles parallel requests body handles parallel requests status - #post + #delete behaves like a request method handles connection error - handles proxy failures - supports open_timeout option - sends url encoded parameters - retrieves the response headers handles headers with multiple values - sends request body - sends url encoded nested parameters parses the reason phrase - sends files + handles proxy failures binds local socket represents empty body response as blank string - retrieves the response body - handles requests with proxy sends user agent supports timeout option + retrieves the response headers + retrieves the response body + sends request body + sends url encoded nested parameters + sends url encoded parameters + supports open_timeout option + handles requests with proxy with parallel setup - handles parallel requests status handles parallel requests body + handles parallel requests status #patch behaves like a request method - binds local socket - handles requests with proxy + supports open_timeout option handles connection error - handles headers with multiple values - sends files - parses the reason phrase - retrieves the response headers + sends request body sends user agent - sends url encoded parameters - handles proxy failures - supports open_timeout option supports timeout option + retrieves the response headers + parses the reason phrase + handles proxy failures retrieves the response body sends url encoded nested parameters - sends request body + binds local socket + handles requests with proxy + sends url encoded parameters + sends files represents empty body response as blank string + handles headers with multiple values with parallel setup - handles parallel requests status handles parallel requests body - #delete + handles parallel requests status + #get behaves like a request method - sends request body + sends url encoded parameters + represents empty body response as blank string + retrieves the response body + handles headers with multiple values + handles proxy failures + handles requests with proxy binds local socket - sends url encoded nested parameters retrieves the response headers + sends url encoded nested parameters supports timeout option - handles headers with multiple values - handles requests with proxy - sends url encoded parameters + handles connection error + sends request body + sends user agent supports open_timeout option parses the reason phrase - handles proxy failures - retrieves the response body - represents empty body response as blank string - sends user agent - handles connection error with parallel setup handles parallel requests body handles parallel requests status - #options + #trace behaves like a request method - handles headers with multiple values - supports timeout option sends request body + retrieves the response body parses the reason phrase + handles requests with proxy + binds local socket sends user agent + supports timeout option handles proxy failures + sends url encoded nested parameters + retrieves the response headers + handles connection error supports open_timeout option + handles headers with multiple values represents empty body response as blank string - handles connection error - sends url encoded nested parameters sends url encoded parameters - handles requests with proxy - retrieves the response body - retrieves the response headers - binds local socket with parallel setup - handles parallel requests body handles parallel requests status + handles parallel requests body -Faraday::Env - retains custom members - allows to access string non members - ignores false when fetching - allows to access members - allows to access symbol non members - #body - when response is not finished yet - returns the request body - when response is finished - allows to access request_body - returns the response body - allows to access response_body - -Faraday::RequestOptions - allows to set the request proxy - -Faraday::Adapter::Rack +Faraday::Adapter::NetHttpPersistent + allows to set pool_size on initialize + sets max_retries to 0 + allows to provide adapter specific configs behaves like an adapter with SSL enabled - #options + #trace behaves like a request method - handles connection error - sends user agent handles headers with multiple values - handles requests with proxy - retrieves the response headers - handles proxy failures retrieves the response body - sends url encoded parameters + supports open_timeout option sends request body + retrieves the response headers + sends url encoded parameters + sends user agent represents empty body response as blank string - sends url encoded nested parameters - supports open_timeout option - supports timeout option - #put - behaves like a request method - retrieves the response body supports timeout option + handles requests with proxy + handles deflate compression + sends url encoded nested parameters + parses the reason phrase + handles gzip compression handles connection error - sends request body handles proxy failures - sends files + #post + behaves like a request method sends url encoded nested parameters + represents empty body response as blank string + handles gzip compression sends url encoded parameters - sends user agent + supports timeout option + sends files + handles connection error + parses the reason phrase + retrieves the response headers + handles proxy failures + handles deflate compression handles requests with proxy - represents empty body response as blank string - supports open_timeout option handles headers with multiple values - retrieves the response headers - #patch - behaves like a request method supports open_timeout option - sends user agent sends request body - handles requests with proxy - retrieves the response headers - handles headers with multiple values - sends files - handles proxy failures - sends url encoded parameters - represents empty body response as blank string + sends user agent retrieves the response body - handles connection error - supports timeout option - sends url encoded nested parameters - #head + #delete behaves like a request method - sends request body + handles requests with proxy handles headers with multiple values supports timeout option retrieves the response headers - handles proxy failures + represents empty body response as blank string handles connection error + parses the reason phrase sends user agent + sends request body + retrieves the response body + supports open_timeout option + sends url encoded nested parameters + handles proxy failures + handles gzip compression + sends url encoded parameters + handles deflate compression + #put + behaves like a request method + handles headers with multiple values represents empty body response as blank string + handles gzip compression + parses the reason phrase + sends request body + sends files + sends user agent + sends url encoded parameters + supports open_timeout option sends url encoded nested parameters + retrieves the response headers handles requests with proxy - supports open_timeout option - sends url encoded parameters + retrieves the response body + handles deflate compression + handles connection error + handles proxy failures + supports timeout option #get behaves like a request method - handles proxy failures - handles headers with multiple values sends user agent supports timeout option + handles deflate compression + represents empty body response as blank string retrieves the response body - supports open_timeout option + handles proxy failures sends url encoded parameters + parses the reason phrase + handles requests with proxy retrieves the response headers + supports open_timeout option + handles headers with multiple values sends url encoded nested parameters - handles requests with proxy - handles connection error - represents empty body response as blank string sends request body - #post + handles connection error + handles gzip compression + #head behaves like a request method + supports open_timeout option + supports timeout option + handles requests with proxy + represents empty body response as blank string handles proxy failures + retrieves the response headers + sends url encoded parameters + sends user agent handles connection error + retrieves the response body sends url encoded nested parameters + parses the reason phrase handles headers with multiple values sends request body - handles requests with proxy - sends files - sends url encoded parameters - retrieves the response headers - represents empty body response as blank string - sends user agent - retrieves the response body - supports timeout option - supports open_timeout option - #trace + #options behaves like a request method - retrieves the response headers - represents empty body response as blank string - sends user agent - supports open_timeout option - handles requests with proxy - sends url encoded nested parameters + handles gzip compression sends request body sends url encoded parameters + handles connection error + handles deflate compression retrieves the response body + sends url encoded nested parameters supports timeout option + supports open_timeout option + sends user agent + represents empty body response as blank string handles proxy failures - handles connection error + parses the reason phrase handles headers with multiple values - #delete + retrieves the response headers + handles requests with proxy + #patch behaves like a request method - handles proxy failures retrieves the response body - sends user agent + handles proxy failures + parses the reason phrase + handles gzip compression retrieves the response headers - supports timeout option - supports open_timeout option - sends url encoded nested parameters sends request body - sends url encoded parameters + sends user agent handles requests with proxy - handles headers with multiple values + sends files represents empty body response as blank string + sends url encoded nested parameters + handles deflate compression + sends url encoded parameters + handles headers with multiple values + supports timeout option + supports open_timeout option handles connection error with SSL disabled - #put + #options behaves like a request method + parses the reason phrase + sends user agent + handles requests with proxy + sends request body + handles connection error + retrieves the response body + sends url encoded nested parameters + handles gzip compression + retrieves the response headers + handles deflate compression + represents empty body response as blank string handles headers with multiple values + handles proxy failures + supports open_timeout option + supports timeout option sends url encoded parameters + #post + behaves like a request method + supports timeout option + handles requests with proxy represents empty body response as blank string + parses the reason phrase handles connection error + sends url encoded nested parameters + handles deflate compression + supports open_timeout option + handles gzip compression retrieves the response headers - handles requests with proxy sends user agent - handles proxy failures retrieves the response body + sends url encoded parameters + handles proxy failures + sends files + handles headers with multiple values + sends request body + #patch + behaves like a request method + handles requests with proxy + retrieves the response headers supports open_timeout option - supports timeout option + sends user agent sends request body + handles deflate compression sends files sends url encoded nested parameters - #patch - behaves like a request method + represents empty body response as blank string + supports timeout option + sends url encoded parameters + handles gzip compression + handles headers with multiple values + retrieves the response body handles proxy failures handles connection error - retrieves the response body - retrieves the response headers + parses the reason phrase + #put + behaves like a request method + sends url encoded parameters sends files + handles proxy failures sends request body + handles headers with multiple values + retrieves the response body + supports timeout option sends user agent - handles requests with proxy - supports open_timeout option + handles connection error represents empty body response as blank string - sends url encoded parameters + retrieves the response headers + supports open_timeout option + parses the reason phrase + handles gzip compression sends url encoded nested parameters - handles headers with multiple values - supports timeout option + handles deflate compression + handles requests with proxy #head behaves like a request method - sends request body - handles requests with proxy - sends user agent handles headers with multiple values - retrieves the response headers - supports timeout option - sends url encoded nested parameters - supports open_timeout option sends url encoded parameters - handles proxy failures - handles connection error represents empty body response as blank string - #get - behaves like a request method + handles requests with proxy retrieves the response body - handles headers with multiple values handles connection error + retrieves the response headers + sends url encoded nested parameters + parses the reason phrase sends request body - handles requests with proxy - represents empty body response as blank string supports open_timeout option - retrieves the response headers sends user agent - sends url encoded parameters - sends url encoded nested parameters handles proxy failures supports timeout option #trace behaves like a request method - retrieves the response body - sends request body - supports timeout option - sends user agent retrieves the response headers - handles connection error - sends url encoded nested parameters handles headers with multiple values - supports open_timeout option - sends url encoded parameters - handles proxy failures - represents empty body response as blank string - handles requests with proxy - #post - behaves like a request method handles requests with proxy - retrieves the response headers - handles proxy failures - supports open_timeout option sends user agent - sends files + handles connection error retrieves the response body - sends url encoded nested parameters + handles gzip compression + parses the reason phrase sends url encoded parameters - sends request body + handles proxy failures + supports open_timeout option + handles deflate compression supports timeout option + sends request body represents empty body response as blank string - handles connection error - handles headers with multiple values - #options - behaves like a request method - handles proxy failures sends url encoded nested parameters - supports open_timeout option - handles requests with proxy + #get + behaves like a request method + sends request body represents empty body response as blank string - sends url encoded parameters + retrieves the response headers retrieves the response body + sends url encoded parameters + parses the reason phrase + handles proxy failures supports timeout option - sends request body - retrieves the response headers - sends user agent + handles deflate compression + handles gzip compression handles connection error + handles requests with proxy + sends url encoded nested parameters handles headers with multiple values + supports open_timeout option + sends user agent #delete behaves like a request method - sends url encoded nested parameters + retrieves the response headers sends user agent - handles proxy failures handles headers with multiple values + handles proxy failures + handles connection error + sends url encoded nested parameters + supports open_timeout option retrieves the response body + parses the reason phrase sends request body - handles connection error - retrieves the response headers + handles gzip compression sends url encoded parameters + handles deflate compression handles requests with proxy supports timeout option - supports open_timeout option represents empty body response as blank string + min_version + allows to set min_version in SSL settings -Faraday::Adapter - #request_timeout - gets :write timeout - gets :read timeout - attempts unknown timeout type - gets :open timeout +Faraday::Request::UrlEncoded + works with non nested params + works with no headers + works with nested keys + works with unicode + works with with headers + ignores custom content type + does nothing without payload + works with nested params + customising default_space_encoding + uses the custom character to encode spaces -Faraday::Adapter::Typhoeus +Faraday::CompositeReadIO + with empty composite_io + is expected to be nil + is expected to eq "" + is expected to eq 0 + with mix of empty and non-empty parts + allows to read in chunks + with empty parts + is expected to eq "" + is expected to be nil + is expected to eq 0 + with 2 parts + allows to rewind while reading in chunks + allows to read in chunks + is expected to eq "abcd1234" + is expected to eq 8 + with utf8 multibyte part + allows to read in chunks + is expected to eq "\x86\xE3\x83\x95\xE3\x82\xA1\xE3\x82\xA4\xE3\x83\xAB" + +Faraday::RequestOptions + allows to set the request proxy + +Faraday::Request::Multipart + UploadIO: when multipart objects in array param + forms a multipart request + behaves like a multipart request + generates a unique boundary for each request + FilePart: when multipart objects in array param + forms a multipart request + behaves like a multipart request + generates a unique boundary for each request + 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 + 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 + +Faraday::RackBuilder + when a plain adapter is added with named arguments + adds a handler to construct adapter with options passed to adapter + with custom handler and adapter + locks the stack after making a request + dup stack is unlocked + allows to compare handlers + when a response adapter is added with named arguments + adds a handler to construct response adapter with options passed to response + with custom empty block + is expected to eq Faraday::Adapter::NetHttp + is expected to be nil + with default stack + is expected to eq Faraday::Request::UrlEncoded + is expected to eq Faraday::Adapter::NetHttp + when having a handler with broken dependency + raises an error while making a request + when having two handlers + allows insert_before + allows to swap handlers + allows insert_after + allows to delete a handler + when a request adapter is added with named arguments + adds a handler to construct request adapter with options passed to request + when middleware is added with named arguments + adds a handler to construct middleware with options passed to use + with custom adapter only + is expected to eq Faraday::Adapter::Test + is expected to be nil + when handlers are directly added or updated + adds a handler with options passed to insert_after + adds a handler to construct adapter with options passed to insert + adds a handler with options passed to swap + with custom registered middleware + allows to register with constant + allows to register with Proc + allows to register with string + allows to register with symbol + when having a single handler + allows insert_after + allows insert_before + is expected to eq [Apple] + raises an error trying to use an unregistered symbol + allows rebuilding + allows use + +Faraday::AdapterRegistry + #initialize + is expected to raise NameError + looks up class by string name + caches lookups with explicit name + looks up class by symbol name + is expected to raise NameError + caches lookups with implicit name + +Faraday::Connection + #to_env + parses url params into query + bracketizes nested params in query + escapes per spec + without braketizing repeated params in query + bracketizes repeated params in query + #respond_to? + is expected to be truthy + is expected to be truthy + #build_exclusive_url + allows to provide params argument + does not add ending slash given empty url + overrides connection port for absolute url + handles uri instances + does not use connection params + does not add ending slash given nil url + with url_prefixed connection + used default base with ending slash + parses url and changes scheme + overrides base + joins url to base with ending slash + 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 "/sake.html" + is expected to eq "a=1" + is expected to eq "http" + is expected to eq "sushi.com" + is expected to eq 80 + with relative path + is expected to eq "/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 "/fish/sake.html" + #dup + is expected to eq "text/plain" + is expected to eq "1" + is expected to eq # + after manual changes + is expected to eq 1 + is expected to eq 5 + is expected to be falsey + is expected to eq 1 + is expected to be nil + is expected to be falsey + proxy support + uses processes no_proxy before https_proxy + fetches no proxy from blank env + accepts hash with string uri + accepts string + ignores env proxy if set that way + uses env http_proxy + allows when url is not in no proxy list but ip address is + allows when url not in no proxy list + fetches no proxy from nil env + allows when prefixed url is not in no proxy list + gives priority to manually set proxy + accepts env without scheme + accepts uri + allows when ip address is not in no proxy list but url is + accepts http env + test proxy requires uri + accepts hash + allows when url in no proxy list + uses processes no_proxy before http_proxy + allows when subdomain url is in no proxy list + does not accept uppercase env + allows in multi element no proxy list + uses env https_proxy + accepts http env with auth + performing a request + dynamically checks proxy + dynamically check no proxy + .new + with implicit url param + behaves like initializer with url + with complex url + is expected to eq 815 + is expected to eq {"a"=>"1"} + is expected to eq "/fish" + with simple url + is expected to eq "http" + is expected to eq 80 + is expected to eq {} + is expected to eq "sushi.com" + is expected to eq "/" + with custom params and params in url + is expected to eq {"a"=>3, "b"=>"2"} + with custom headers + is expected to eq "Faraday" + with explicit url param + behaves like initializer with url + with complex url + is expected to eq 815 + is expected to eq {"a"=>"1"} + is expected to eq "/fish" + with simple url + is expected to eq 80 + is expected to eq "/" + is expected to eq {} + is expected to eq "http" + is expected to eq "sushi.com" + with empty block + is expected to eq 0 + with custom params + is expected to eq {"a"=>1} + with block + is expected to eq "/omnom" + is expected to eq 0 + with custom builder + is expected to eq # + with ssl false + is expected to be falsey + #build_url + merges params + uses params + request params + with simple url + test_overrides_request_params_block + test_overrides_request_params + test_overrides_request_params_block_url + 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 default params encoder + supports array params in params + supports array params in url + basic_auth + calling the #basic_auth method + is expected to eq "Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==" + adding basic auth info to url + is expected to eq "Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==" + default_connection_options + assigning a hash + behaves like default connection options + works with option url + works with instance connection options + default connection uses default connection options + default connection options persist with an instance overriding + works with implicit url + assigning a default value + behaves like default connection options + works with option url + default connection options persist with an instance overriding + works with instance connection options + works with implicit url + default connection uses default connection options + #token_auth + is expected to eq "Token nonce=\"abc\", token=\"abcdef\"" + #build_request + is expected to be empty + is expected to be falsey + is expected to be truthy + is expected to eq ["Authorization"] + #close + can close underlying app + +Faraday::FlatParamsEncoder + encodes unsorted when asked + encodes boolean values in array + encodes empty array in hash + decodes boolean values + decodes arrays + encodes boolean values + behaves like a params encoder + escapes safe buffer + encodes nil + raises type error for empty string + +Faraday::Adapter::Test + can be called several times + is expected to eq "hello" + yielding env to stubs + is expected to eq "a" + different outcomes for the same request + the first request + is expected to eq "hello" + the second request + is expected to eq "world" + with host points to the right stub + is expected to eq "domain: hello" + can handle regular expression path + is expected to eq "show" + with http headers + with header + is expected to eq "a" + without header + is expected to eq "b" + 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 + with simple path sets body + is expected to eq "hello" + params parsing + with default encoder + is expected to eq "a" + with flat encoder + is expected to eq "a" + with nested encoder + is expected to eq "a" + can handle single parameter block + is expected to eq "get" + with get params + is expected to eq "a" + with simple path sets headers + is expected to eq "text/html" + with simple path sets status + is expected to eq 200 + can handle regular expression path with captured result + is expected to eq "show specified" + raising an error if no stub was found + for request + is expected to raise Faraday::Adapter::Test::Stubs::NotFound + for specified host + is expected to raise Faraday::Adapter::Test::Stubs::NotFound + for request without specified header + is expected to raise Faraday::Adapter::Test::Stubs::NotFound + +Faraday::Utils + headers parsing + parse headers for aggregated responses + URI parsing + escapes safe buffer + parses with default parser + parses with block + replaces headers hash + parses with URI + +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 + is expected to eq "custom" + instruments with custom name + +Faraday::Adapter::EMSynchrony + allows to provide adapter specific configs behaves like an adapter - with SSL enabled - #post + with SSL disabled + #head behaves like a request method - sends url encoded parameters - handles proxy failures - sends request body + binds local socket + handles connection error + represents empty body response as blank string + supports open_timeout option + handles headers with multiple values handles requests with proxy + sends request body sends url encoded nested parameters + parses the reason phrase + retrieves the response headers + handles proxy failures + sends url encoded parameters + supports timeout option + sends user agent + with parallel setup + handles parallel requests status + #patch + behaves like a request method supports open_timeout option + handles proxy failures + retrieves the response body + handles headers with multiple values + sends user agent + binds local socket + sends url encoded parameters supports timeout option + handles requests with proxy + parses the reason phrase + retrieves the response headers + sends request body handles connection error - sends user agent + sends files + sends url encoded nested parameters + represents empty body response as blank string + with parallel setup + handles parallel requests status + handles parallel requests body + #delete + behaves like a request method handles headers with multiple values + supports timeout option + handles requests with proxy + supports open_timeout option represents empty body response as blank string + sends request body retrieves the response headers retrieves the response body - sends files + handles connection error + binds local socket + parses the reason phrase + handles proxy failures + sends user agent + sends url encoded nested parameters + sends url encoded parameters with parallel setup handles parallel requests body handles parallel requests status - #delete + #get behaves like a request method + handles requests with proxy + supports timeout option retrieves the response body - sends url encoded parameters - represents empty body response as blank string - handles proxy failures sends user agent + handles proxy failures + handles headers with multiple values retrieves the response headers - supports timeout option - handles connection error - handles requests with proxy - sends request body sends url encoded nested parameters - handles headers with multiple values + handles connection error supports open_timeout option + binds local socket + parses the reason phrase + sends url encoded parameters + sends request body + represents empty body response as blank string with parallel setup handles parallel requests body handles parallel requests status #options behaves like a request method - sends url encoded parameters retrieves the response headers supports open_timeout option - handles connection error + binds local socket represents empty body response as blank string sends request body - sends url encoded nested parameters + handles connection error + sends url encoded parameters supports timeout option - sends user agent - handles proxy failures handles headers with multiple values + parses the reason phrase + handles proxy failures handles requests with proxy + sends user agent + sends url encoded nested parameters retrieves the response 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 - retrieves the response headers + sends user agent handles requests with proxy + sends request body + supports timeout option + sends files + binds local socket handles proxy failures + sends url encoded parameters + retrieves the response headers + handles headers with multiple values + retrieves the response body + sends url encoded nested parameters + supports open_timeout option + parses the reason phrase + handles connection error + with parallel setup + handles parallel requests status + handles parallel requests body + #post + behaves like a request method + supports timeout option + supports open_timeout option + represents empty body response as blank string + retrieves the response body + handles connection error sends url encoded nested parameters + handles requests with proxy + sends files + parses the reason phrase + handles proxy failures handles headers with multiple values + binds local socket + sends user agent + retrieves the response headers sends url encoded parameters - handles connection error sends request body - sends files + with parallel setup + handles parallel requests status + handles parallel requests body + with SSL enabled + #options + behaves like a request method + sends user agent + handles connection error + binds local socket + represents empty body response as blank string supports open_timeout option + parses the reason phrase + retrieves the response headers retrieves the response body + sends url encoded nested parameters + sends url encoded parameters supports timeout option - sends user agent + handles proxy failures + handles requests with proxy + sends request body + handles headers with multiple values with parallel setup - handles parallel requests body handles parallel requests status + handles parallel requests body #head behaves like a request method + represents empty body response as blank string + sends url encoded nested parameters handles proxy failures + handles connection error + sends user agent + supports open_timeout option + binds local socket retrieves the response headers + supports timeout option + parses the reason phrase + sends url encoded parameters + handles headers with multiple values + sends request body + handles requests with proxy + with parallel setup + handles parallel requests status + #post + behaves like a request method supports open_timeout option + retrieves the response headers + handles proxy failures + parses the reason phrase + sends files sends user agent - handles headers with multiple values handles connection error - supports timeout option represents empty body response as blank string - sends url encoded nested parameters + binds local socket + handles headers with multiple values handles requests with proxy + supports timeout option + sends url encoded nested parameters sends request body - retrieves the response body sends url encoded parameters + retrieves the response body with parallel setup handles parallel requests body handles parallel requests status #get behaves like a request method + sends request body + parses the reason phrase + represents empty body response as blank string handles connection error - handles proxy failures handles requests with proxy - supports timeout option - sends request body + handles proxy failures handles headers with multiple values - sends user agent - represents empty body response as blank string - retrieves the response body supports open_timeout option - sends url encoded nested parameters + retrieves the response body + sends user agent retrieves the response headers + supports timeout option + binds local socket sends url encoded parameters + sends url encoded nested parameters with parallel setup - handles parallel requests status handles parallel requests body + handles parallel requests status #patch behaves like a request method + binds local socket + parses the reason phrase + sends url encoded nested parameters sends user agent + represents empty body response as blank string supports open_timeout option - handles headers with multiple values supports timeout option - sends url encoded nested parameters - sends url encoded parameters - handles proxy failures + retrieves the response body retrieves the response headers + sends url encoded parameters + sends request body + handles headers with multiple values handles requests with proxy - retrieves the response body sends files handles connection error - represents empty body response as blank string - sends request body + handles proxy failures with parallel setup handles parallel requests status handles parallel requests body - #trace + #put behaves like a request method - handles connection error - sends url encoded parameters + supports open_timeout option + parses the reason phrase sends user agent - handles requests with proxy - retrieves the response body - handles headers with multiple values - sends request body + sends url encoded nested parameters supports timeout option - supports open_timeout option + handles requests with proxy + binds local socket handles proxy failures + handles headers with multiple values represents empty body response as blank string - sends url encoded nested parameters + sends request body + sends url encoded parameters + handles connection error + retrieves the response body + sends files retrieves the response headers with parallel setup handles parallel requests status handles parallel requests body - with SSL disabled - #trace + #delete behaves like a request method sends request body supports open_timeout option - sends url encoded parameters - retrieves the response headers + supports timeout option + handles requests with proxy + parses the reason phrase sends user agent retrieves the response body - represents empty body response as blank string - sends url encoded nested parameters + binds local socket handles connection error + retrieves the response headers + represents empty body response as blank string handles proxy failures + sends url encoded parameters + sends url encoded nested parameters handles headers with multiple values - supports timeout option - handles requests with proxy with parallel setup handles parallel requests status handles parallel requests body + +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 /^Token / + is expected to match /token="baz"/ + is expected to match /foo="42"/ + and request already has an authentication header + does not interfere with existing authorization + 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::Options + #merge + deeply merges options with hashes + deeply merges two options + deeply merges options with nil + merges options with hashes + deeply merges options with options having nil sub-options + #fetch + when the fetched key has a value + works with key + grabs value + when the fetched key has no value + needs a default if key is missing + accepts block + uses falsey default + #empty? + returns true only if all options are nil + #value? + returns true if any key has that value + #delete + allows to remove value for key + #dup + duplicate options but not sub-options + #update + updates options from hashes + #memoized + requires block + accepts block + #each_value + allows to iterate through values + #deep_dup + duplicate options and also suboptions + #key? + returns true if the key exists and is not nil + #each_key + allows to iterate through keys + #clear + clears the options + #from + respects inheritance + works with nil + works with hash with sub object + works with hash + works with deep hash + is expected to raise NoMethodError + works with options with sub object + works with options + +Faraday::Response::Middleware + with a custom ResponseMiddleware and private parse + parses the response + with a custom ResponseMiddleware but empty response + raises exception for 200 responses + doesn't call the middleware for 304 responses + doesn't call the middleware for 204 responses + with a custom ResponseMiddleware + parses the response + +Faraday::Adapter::Excon + allows to provide adapter specific configs + config + sets timeout and open_timeout + sets open_timeout + sets timeout + behaves like an adapter + with SSL enabled #head behaves like a request method handles headers with multiple values + sends user agent + retrieves the response headers + supports open_timeout option handles proxy failures - sends url encoded nested parameters + retrieves the response body + parses the reason phrase sends url encoded parameters - handles requests with proxy sends request body + sends url encoded nested parameters supports timeout option - represents empty body response as blank string handles connection error - retrieves the response headers - supports open_timeout option - retrieves the response body - sends user agent - with parallel setup - handles parallel requests status - handles parallel requests body - #options + represents empty body response as blank string + handles requests with proxy + #get behaves like a request method - sends url encoded parameters sends user agent + handles headers with multiple values + supports timeout option represents empty body response as blank string retrieves the response body - sends url encoded nested parameters - supports timeout option + handles requests with proxy + sends url encoded parameters handles proxy failures - supports open_timeout option handles connection error - sends request body + supports open_timeout option + parses the reason phrase retrieves the response headers - handles requests with proxy - handles headers with multiple values - with parallel setup - handles parallel requests body - handles parallel requests status + sends url encoded nested parameters + sends request body #put behaves like a request method + sends request body + supports open_timeout option + represents empty body response as blank string + handles requests with proxy + handles proxy failures + sends user agent retrieves the response body + parses the reason phrase + sends url encoded nested parameters + retrieves the response headers + handles headers with multiple values sends files + supports timeout option + sends url encoded parameters + handles connection error + #post + behaves like a request method sends request body sends url encoded nested parameters + sends user agent + represents empty body response as blank string + supports open_timeout option + handles connection error + handles headers with multiple values + supports timeout option + handles requests with proxy handles proxy failures sends url encoded parameters + sends files retrieves the response headers + parses the reason phrase + retrieves the response body + #delete + behaves like a request method + handles requests with proxy + sends user agent supports timeout option + retrieves the response body handles connection error - handles requests with proxy - supports open_timeout option + sends url encoded nested parameters handles headers with multiple values - sends user agent + sends url encoded parameters + parses the reason phrase + sends request body represents empty body response as blank string - with parallel setup - handles parallel requests status - handles parallel requests body - #get + handles proxy failures + supports open_timeout option + retrieves the response headers + #patch behaves like a request method + sends url encoded nested parameters + handles connection error + parses the reason phrase sends request body - handles headers with multiple values - retrieves the response body - retrieves the response headers supports open_timeout option - sends url encoded parameters sends user agent - handles connection error - sends url encoded nested parameters + supports timeout option + retrieves the response headers represents empty body response as blank string + sends url encoded parameters handles proxy failures + sends files + handles headers with multiple values + retrieves the response body handles requests with proxy - supports timeout option - with parallel setup - handles parallel requests status - handles parallel requests body - #patch + #trace behaves like a request method - sends url encoded nested parameters - represents empty body response as blank string supports timeout option - handles connection error + represents empty body response as blank string supports open_timeout option + sends request body + parses the reason phrase handles requests with proxy + retrieves the response headers + sends user agent + sends url encoded parameters + sends url encoded nested parameters + handles connection error handles proxy failures + handles headers with multiple values retrieves the response body + #options + behaves like a request method handles headers with multiple values - sends user agent sends url encoded parameters - retrieves the response headers - sends files + supports timeout option + represents empty body response as blank string sends request body - with parallel setup - handles parallel requests status - handles parallel requests body + retrieves the response headers + handles connection error + handles proxy failures + sends user agent + handles requests with proxy + retrieves the response body + sends url encoded nested parameters + parses the reason phrase + supports open_timeout option + with SSL disabled #post behaves like a request method - handles connection error sends url encoded nested parameters + retrieves the response headers + handles connection error + sends user agent + handles headers with multiple values + handles proxy failures + sends url encoded parameters + parses the reason phrase supports timeout option - sends request body + represents empty body response as blank string retrieves the response body + handles requests with proxy + sends request body sends files - sends url encoded parameters supports open_timeout option + #trace + behaves like a request method + sends url encoded nested parameters + parses the reason phrase + represents empty body response as blank string + handles connection error + sends url encoded parameters + sends user agent + retrieves the response body + retrieves the response headers + sends request body handles requests with proxy + handles proxy failures + handles headers with multiple values + supports timeout option + supports open_timeout option + #get + behaves like a request method + retrieves the response headers + parses the reason phrase + sends url encoded parameters + supports open_timeout option + sends request body + supports timeout option handles headers with multiple values + sends url encoded nested parameters + handles requests with proxy + handles connection error handles proxy failures - represents empty body response as blank string sends user agent + retrieves the response body + represents empty body response as blank string + #head + behaves like a request method + sends url encoded parameters + retrieves the response body + sends url encoded nested parameters + handles proxy failures retrieves the response headers - with parallel setup - handles parallel requests status - handles parallel requests body - #delete + handles headers with multiple values + supports open_timeout option + supports timeout option + parses the reason phrase + handles requests with proxy + sends request body + sends user agent + handles connection error + represents empty body response as blank string + #options behaves like a request method + handles headers with multiple values + sends url encoded nested parameters handles requests with proxy + retrieves the response body + sends url encoded parameters supports timeout option + sends user agent + sends request body + handles connection error retrieves the response headers + represents empty body response as blank string + parses the reason phrase + handles proxy failures supports open_timeout option + #put + behaves like a request method + supports open_timeout option + retrieves the response headers + sends url encoded nested parameters handles headers with multiple values + represents empty body response as blank string + supports timeout option + retrieves the response body + handles connection error + sends url encoded parameters + sends user agent + handles requests with proxy + handles proxy failures + sends files + sends request body + parses the reason phrase + #patch + behaves like a request method + supports open_timeout option + retrieves the response headers + sends files + supports timeout option sends url encoded parameters handles connection error + sends user agent + handles headers with multiple values + sends url encoded nested parameters + handles proxy failures + sends request body + represents empty body response as blank string + handles requests with proxy retrieves the response body + parses the reason phrase + #delete + behaves like a request method + retrieves the response body + parses the reason phrase + handles connection error + retrieves the response headers + handles headers with multiple values + supports open_timeout option sends request body - sends user agent handles proxy failures represents empty body response as blank string + sends user agent + handles requests with proxy sends url encoded nested parameters - with parallel setup - handles parallel requests status - handles parallel requests body + sends url encoded parameters + supports timeout option -Faraday::NestedParamsEncoder - decodes nested array mixed types - decodes arrays - encodes boolean values - decodes nested final value overrides any type - decodes nested arrays rack compat - encodes boolean values in array - decodes nested subkeys dont have to be in brackets - encodes nil array value - encodes empty array value - encodes empty string array value - encodes unsorted when asked - decodes nested ignores malformed keys - encodes rack compat - decodes hashes - decodes nested ignores invalid array - decodes nested ignores repeated array notation - 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 - when expecting hash but getting string - behaves like a wrong decoding - is expected to raise TypeError - behaves like a params encoder - raises type error for empty string - encodes nil - escapes safe buffer - when expecting hash but getting array - 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 +Faraday::ProxyOptions + allows hash access + #from + works with no auth + works with string + works with nil -Faraday::RackBuilder - 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 - with custom registered middleware - allows to register with Proc - allows to register with constant - allows to register with string - allows to register with symbol - when having a single handler - is expected to eq [Apple] - allows insert_after - raises an error trying to use an unregistered symbol - allows use - allows rebuilding - allows insert_before - when middleware is added with named arguments - adds a handler to construct middleware with options passed to use - with custom handler and adapter - allows to compare handlers - locks the stack after making a request - dup stack is unlocked - 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 - when a response adapter is added with named arguments - adds a handler to construct response adapter with options passed to response - when a request adapter is added with named arguments - adds a handler to construct request adapter with options passed to request - when having two handlers - allows to swap handlers - allows insert_before - allows to delete a handler - allows insert_after - with custom empty block +Faraday::Response + is expected to eq "text/plain" + is expected to eq "text/plain" + is expected to be falsey + is expected to be truthy + is expected to raise RuntimeError + is expected to eq "yikes" + is expected to eq 404 + #on_complete + can access response body in on_complete callback + parse body on finish + can access response body in on_complete callback + marshal serialization support + is expected to eq 404 + is expected to eq {"Content-Type"=>"text/plain"} + is expected to eq "yikes" is expected to be nil - is expected to eq Faraday::Adapter::NetHttp - when a plain adapter is added with named arguments - adds a handler to construct adapter with options passed to adapter - when having a handler with broken dependency - raises an error while making a request + #apply_request + is expected to eq "yikes" + is expected to eq :post + #to_hash + is expected to be a kind of Hash + is expected to eq 404 + is expected to eq "yikes" + is expected to eq {"Content-Type"=>"text/plain"} -Faraday::AdapterRegistry - #initialize - caches lookups with implicit name - caches lookups with explicit name - is expected to raise NameError - looks up class by string name - is expected to raise NameError - looks up class by symbol name +Faraday::Request::Retry + when an expected error happens + is expected to eq 3 + 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 legacy max_retry set to -9 + is expected to eq 1 + and new max_retry set to 3 + is expected to eq 4 + and new max_retry set to -9 + is expected to eq 1 + #calculate_retry_interval + with exponential backoff and interval_randomness + is expected to be between 0.1 and 0.15 (inclusive) + with exponential backoff and max_interval + is expected to eq 0.3 + is expected to eq 0.2 + is expected to eq 0.1 + is expected to eq 0.3 + with exponential backoff + is expected to eq 0.2 + is expected to eq 0.1 + is expected to eq 0.4 + when no exception raised + and response code is not in retry_statuses + is expected to eq 1 + and response code is in retry_statuses + is expected to eq 2 + retry_if option + FilePart: 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 + 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 + when an unexpected error happens + is expected to eq 1 + and this is passed as a custom exception + is expected to eq 3 + retry_after header support + 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 + when retry_after is a timestamp + is expected to be > 1 + when method is not idempotent + is expected to eq 1 -Faraday::FlatParamsEncoder - encodes boolean values in array - decodes boolean values - encodes unsorted when asked - decodes arrays - encodes empty array in hash - encodes boolean values - behaves like a params encoder - escapes safe buffer - encodes nil - raises type error for empty string +Faraday::Response::Logger + logs filter headers + logs filter url + does not log request body by default + logs request headers by default + does not log response body by default + logs method and url + still returns output + logs response headers by default + with default formatter + delegates logging to the formatter + when not logging response headers + does not log response headers if option is false + when logging request and response bodies + logs filter body + log response body object + log request and response body + when logging request body + log only request body + 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 request/request body on the specified level (debug) + logs headers on the debug level + when not logging request headers + does not log request headers if option is false + without configuration + defaults to stdout + with custom formatter + logs with custom formatter -Faraday::Utils - URI parsing - parses with default parser - parses with block - replaces headers hash - escapes safe buffer - parses with URI - headers parsing - parse headers for aggregated responses +Faraday::Adapter + #request_timeout + gets :read timeout + attempts unknown timeout type + gets :open timeout + gets :write timeout + +Faraday::Response::RaiseError + raises Faraday::UnprocessableEntityError for 422 responses + raises Faraday::UnauthorizedError for 401 responses + raises Faraday::ProxyAuthError for 407 responses + raises Faraday::BadRequestError for 400 responses + raises Faraday::ForbiddenError for 403 responses + raises no exception for 200 responses + raises Faraday::NilStatusError for nil status in response + raises Faraday::ConflictError for 409 responses + raises Faraday::ResourceNotFound for 404 responses + raises Faraday::ServerError for 500 responses + raises Faraday::ClientError for other 4xx responses + request info + returns the request info in the exception + +Faraday::Env + allows to access symbol non members + allows to access members + ignores false when fetching + allows to access string non members + retains custom 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::Utils::Headers - #delete + #fetch is expected to be nil - is expected to eq 0 - is expected not to include "content-type" - is expected to eq "application/json" - when Content-Type is set to application/json + is expected to eq "Invalid key" + calls a block when provided + is expected to eq false + raises an error if key not found is expected to eq "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" - when Content-Type is set to application/xml - is expected to eq ["Content-Type"] - is expected to eq "application/xml" + is expected to eq "default" + when Content-Type is set to application/json is expected to include "content-type" - is expected to eq "application/xml" - is expected to eq "application/xml" - #fetch is expected to eq "application/json" is expected to eq "application/json" - is expected to eq "Invalid key" - is expected to be nil - is expected to eq "default" - is expected to eq false is expected to eq "application/json" - calls a block when provided - raises an error if key not found + is expected to eq ["Content-Type"] #parse + when response headers values include a colon + is expected to eq "http://sushi.com/" 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" + 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/" - -Faraday::Adapter::Test - with simple path sets status - is expected to eq 200 - different outcomes for the same request - the first request - is expected to eq "hello" - the second request - is expected to eq "world" - 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 - with get params - is expected to eq "a" - can handle regular expression path with captured result - is expected to eq "show specified" - with host points to the right stub - is expected to eq "domain: hello" - with simple path sets body - is expected to eq "hello" - params parsing - with flat encoder - is expected to eq "a" - with nested encoder - is expected to eq "a" - with default encoder - is expected to eq "a" - ignoring unspecified get params - with single param - is expected to eq "a" - with multiple params - is expected to eq "a" - without params - is expected to raise Faraday::Adapter::Test::Stubs::NotFound - can handle single parameter block - is expected to eq "get" - can be called several times - is expected to eq "hello" - can handle regular expression path - is expected to eq "show" - yielding env to stubs - is expected to eq "a" - with simple path sets headers - is expected to eq "text/html" - with http headers - with header - is expected to eq "a" - without header - is expected to eq "b" + #delete + is expected not to include "content-type" + is expected to eq 0 + is expected to be nil + is expected to eq "application/json" + when Content-Type is set to 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" + is expected to eq "application/xml" -Faraday::Adapter::HTTPClient - allows to provide adapter specific configs - Options - configures timeout - configures multiple timeouts - configures open timeout +Faraday::Adapter::Rack behaves like an adapter - with SSL disabled - #post + with SSL enabled + #trace behaves like a request method - handles gzip compression - supports open_timeout option - handles deflate compression - handles connection error - sends url encoded parameters - handles requests with proxy - handles proxy failures - retrieves the response body - handles headers with multiple values - sends files - sends user agent - sends request body - parses the reason phrase - sends url encoded nested parameters - supports timeout option retrieves the response headers - binds local socket - represents empty body response as blank string - #put - behaves like a request method - sends user agent represents empty body response as blank string + retrieves the response body handles connection error - binds local socket - supports timeout option supports open_timeout option - retrieves the response headers + sends url encoded nested parameters sends request body + sends user agent handles headers with multiple values - retrieves the response body - handles requests with proxy sends url encoded parameters + supports timeout option handles proxy failures - sends url encoded nested parameters - parses the reason phrase - handles deflate compression - handles gzip compression - sends files - #trace + handles requests with proxy + #get behaves like a request method + sends request body sends url encoded parameters - retrieves the response body + retrieves the response headers + supports open_timeout option + handles requests with proxy + represents empty body response as blank string + supports timeout option sends url encoded nested parameters + handles proxy failures handles headers with multiple values - represents empty body response as blank string - binds local socket handles connection error - handles proxy failures - supports timeout option - handles deflate compression - sends request body - handles gzip compression - retrieves the response headers sends user agent - supports open_timeout option - parses the reason phrase - handles requests with proxy - #delete + retrieves the response body + #patch behaves like a request method + sends url encoded parameters handles proxy failures - retrieves the response headers + sends user agent represents empty body response as blank string - handles deflate compression + sends files sends request body - sends url encoded parameters - sends user agent - handles requests with proxy retrieves the response body supports timeout option - handles gzip compression - handles headers with multiple values sends url encoded nested parameters supports open_timeout option - parses the reason phrase - binds local socket + handles requests with proxy + retrieves the response headers + handles headers with multiple values handles connection error - #head + #put behaves like a request method - parses the reason phrase - sends request body - supports timeout option - supports open_timeout option sends url encoded nested parameters - retrieves the response headers + supports open_timeout option + supports timeout option sends user agent + sends request body handles connection error - sends url encoded parameters - retrieves the response body - handles headers with multiple values - binds local socket represents empty body response as blank string + retrieves the response body handles proxy failures + handles headers with multiple values + sends url encoded parameters + retrieves the response headers + sends files handles requests with proxy - #patch + #delete behaves like a request method + handles proxy failures handles headers with multiple values - retrieves the response headers - supports open_timeout option - parses the reason phrase - handles gzip compression handles requests with proxy supports timeout option - handles proxy failures - binds local socket - sends user agent handles connection error - sends request body - retrieves the response body - sends url encoded nested parameters - sends url encoded parameters - handles deflate compression represents empty body response as blank string - sends files - #options - behaves like a request method retrieves the response body - handles headers with multiple values - handles deflate compression - parses the reason phrase - supports timeout option - represents empty body response as blank string - handles requests with proxy - sends request body - handles proxy failures - retrieves the response headers - sends user agent - sends url encoded parameters supports open_timeout option - binds local socket - handles connection error - handles gzip compression sends url encoded nested parameters - #get - behaves like a request method - retrieves the response body - handles deflate compression sends request body sends user agent - represents empty body response as blank string - handles gzip compression + sends url encoded parameters + retrieves the response headers + #post + behaves like a request method handles requests with proxy - supports timeout option + sends url encoded nested parameters + sends url encoded parameters + retrieves the response body handles proxy failures + supports timeout option + sends files + represents empty body response as blank string handles headers with multiple values + supports open_timeout option handles connection error retrieves the response headers - binds local socket - sends url encoded nested parameters - parses the reason phrase - supports open_timeout option - sends url encoded parameters - with SSL enabled - #trace - behaves like a request method + sends user agent sends request body - handles deflate compression - retrieves the response headers - sends url encoded nested parameters - handles gzip compression - handles connection error + #head + behaves like a request method handles requests with proxy - binds local socket - retrieves the response body - supports open_timeout option + sends url encoded parameters + retrieves the response headers handles proxy failures - represents empty body response as blank string + sends url encoded nested parameters sends user agent - parses the reason phrase + handles connection error handles headers with multiple values + represents empty body response as blank string supports timeout option - sends url encoded parameters + supports open_timeout option + sends request body #options behaves like a request method - handles deflate compression - sends request body - supports timeout option - supports open_timeout option - parses the reason phrase handles connection error - retrieves the response headers - sends user agent - sends url encoded nested parameters - handles gzip compression handles requests with proxy handles proxy failures + supports timeout option retrieves the response body sends url encoded parameters - binds local socket + supports open_timeout option + sends url encoded nested parameters + sends request body + sends user agent + retrieves the response headers handles headers with multiple values represents empty body response as blank string - #put + with SSL disabled + #head behaves like a request method handles headers with multiple values + represents empty body response as blank string + handles requests with proxy + handles proxy failures + sends url encoded parameters supports timeout option + handles connection error + sends url encoded nested parameters retrieves the response headers + sends request body + supports open_timeout option + sends user agent + #put + behaves like a request method + handles connection error sends user agent + retrieves the response headers + sends files + handles proxy failures + sends url encoded parameters sends request body - binds local socket - parses the reason phrase - handles gzip compression + retrieves the response body + supports timeout option sends url encoded nested parameters supports open_timeout option + represents empty body response as blank string handles requests with proxy + handles headers with multiple values + #get + behaves like a request method + handles requests with proxy + handles proxy failures + supports timeout option sends url encoded parameters retrieves the response body - sends files + sends request body handles connection error - handles proxy failures - handles deflate compression + sends user agent + sends url encoded nested parameters represents empty body response as blank string - #get - behaves like a request method - handles headers with multiple values + retrieves the response headers supports open_timeout option + handles headers with multiple values + #post + behaves like a request method + sends files handles requests with proxy - represents empty body response as blank string - retrieves the response headers - handles proxy failures retrieves the response body + sends user agent + retrieves the response headers + represents empty body response as blank string sends url encoded nested parameters supports timeout option - parses the reason phrase + handles connection error + supports open_timeout option sends request body - sends user agent + handles headers with multiple values sends url encoded parameters - handles connection error - handles deflate compression - handles gzip compression - binds local socket - #delete + handles proxy failures + #trace behaves like a request method + handles proxy failures handles requests with proxy - binds local socket + sends request body supports timeout option handles connection error - handles headers with multiple values - handles proxy failures - handles gzip compression - retrieves the response body supports open_timeout option - sends request body - sends url encoded nested parameters - sends user agent - parses the reason phrase + handles headers with multiple values sends url encoded parameters + sends user agent represents empty body response as blank string retrieves the response headers - handles deflate compression + retrieves the response body + sends url encoded nested parameters #patch behaves like a request method + handles connection error + handles proxy failures sends url encoded parameters - handles deflate compression - sends files - parses the reason phrase - supports timeout option - handles headers with multiple values supports open_timeout option + sends request body + handles headers with multiple values handles requests with proxy - handles proxy failures - retrieves the response body sends url encoded nested parameters - sends request body - handles gzip compression - handles connection error sends user agent retrieves the response headers - binds local socket + retrieves the response body + supports timeout option represents empty body response as blank string - #post - behaves like a request method sends files - sends url encoded nested parameters - parses the reason phrase - retrieves the response headers + #delete + behaves like a request method + supports timeout option handles connection error - handles headers with multiple values - binds local socket - supports open_timeout option - retrieves the response body - sends url encoded parameters - handles proxy failures represents empty body response as blank string + sends url encoded nested parameters + handles proxy failures sends user agent - supports timeout option - handles gzip compression - handles requests with proxy - handles deflate compression sends request body - #head - behaves like a request method - retrieves the response body + supports open_timeout option sends url encoded parameters - parses the reason phrase + retrieves the response body handles headers with multiple values - supports timeout option retrieves the response headers - sends request body - binds local socket handles requests with proxy + #options + behaves like a request method sends url encoded nested parameters - sends user agent represents empty body response as blank string - handles connection error - supports open_timeout option + sends request body + sends url encoded parameters + supports timeout option handles proxy failures - -Faraday::Request::UrlEncoded - ignores custom content type - works with no headers - does nothing without payload - works with unicode - works with non nested params - works with with headers - works with nested params - works with nested keys - customising default_space_encoding - uses the custom character to encode spaces + sends user agent + handles requests with proxy + retrieves the response body + supports open_timeout option + handles connection error + handles headers with multiple values + retrieves the response headers Faraday::Request supports marshal serialization - when setting the url on setup with a path including params - is expected to eq {"a"=>"1", "b"=>"2"} - is expected to eq "foo.json" - is expected to eq "http://sushi.com/api/foo.json?a=1&b=2" - 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 body on setup - is expected to eq "hi" - is expected to eq "hi" + when setting the url on setup with a URI + is expected to eq {"a"=>"1"} + is expected to eq # + is expected to eq "http://sushi.com/api/foo.json?a=1" with global request options set - is expected to eq 5 - is expected to eq 5 is expected to eq 3 is expected to eq 3 + is expected to eq 5 + is expected to eq 5 and per-request options set - is expected to eq "boo" - is expected to eq 10 - is expected to eq {:consumer_key=>"anonymous", :consumer_secret=>"xyz"} is expected to eq 5 + is expected to eq "boo" is expected to eq {:bar=>"bar", :foo=>"foo"} is expected to eq 5 + is expected to eq {:consumer_key=>"anonymous", :consumer_secret=>"xyz"} + is expected to eq 10 is expected to eq 10 - deprecate method for HTTP method -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 - 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 - when setting the url on setup with a string path and params - is expected to eq {"a"=>1} - is expected to eq "foo.json" - is expected to eq "http://sushi.com/api/foo.json?a=1" - when setting the url on setup with a URI - is expected to eq "http://sushi.com/api/foo.json?a=1" - is expected to eq # - is expected to eq {"a"=>"1"} when nothing particular is configured is expected to eq :get is expected to be falsey + when setting the url on setup with a string path and params + is expected to eq "foo.json" + is expected to eq "http://sushi.com/api/foo.json?a=1" + is expected to eq {"a"=>1} + 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 "1.0" + is expected to eq "Faraday" + is expected to eq "Faraday" when HTTP method is post is expected to eq :post - -Faraday::Response - is expected to be falsey - is expected to be truthy - is expected to eq "yikes" - is expected to raise RuntimeError - is expected to eq 404 - is expected to eq "text/plain" - is expected to eq "text/plain" - #apply_request - is expected to eq "yikes" + deprecate method for HTTP method +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 - #to_hash - is expected to be a kind of Hash - is expected to eq 404 - is expected to eq "yikes" - is expected to eq {"Content-Type"=>"text/plain"} - #on_complete - can access response body in on_complete callback - can access response body in on_complete callback - parse body on finish - marshal serialization support - is expected to eq {"Content-Type"=>"text/plain"} - is expected to eq "yikes" - is expected to eq 404 - is expected to be nil + 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 + 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" Faraday::Adapter::NetHttp behaves like an adapter with SSL enabled #patch behaves like a request method - sends user agent - parses the reason phrase - handles proxy failures - retrieves the response body - sends url encoded nested parameters - handles requests with proxy - sends request body - represents empty body response as blank string - supports timeout option - handles deflate compression - sends files - retrieves the response headers - handles connection error sends url encoded parameters - handles headers with multiple values + retrieves the response headers supports open_timeout option - handles gzip compression - streaming - when response contains big data - handles streaming - when response is empty - is expected to eq [["", 0]] - #put - behaves like a request method sends url encoded nested parameters - sends url encoded parameters - sends user agent - handles deflate compression - sends files - supports open_timeout option - handles connection error - sends request body - retrieves the response headers - represents empty body response as blank string - handles requests with proxy - retrieves the response body - handles gzip compression parses the reason phrase supports timeout option + sends files + retrieves the response body + handles deflate compression handles headers with multiple values - handles proxy failures - streaming - when response contains big data - handles streaming - when response is empty - is expected to eq [["", 0]] - #options - behaves like a request method + represents empty body response as blank string handles gzip compression - retrieves the response body - handles connection error handles proxy failures + sends request body + handles connection error sends user agent - represents empty body response as blank string - supports open_timeout option handles requests with proxy - retrieves the response headers - sends url encoded parameters - sends url encoded nested parameters - sends request body - parses the reason phrase - handles headers with multiple values - supports timeout option - handles deflate compression streaming when response is empty is expected to eq [["", 0]] @@ -3776,22 +4345,22 @@ handles streaming #get behaves like a request method - sends url encoded parameters - handles deflate compression - handles gzip compression retrieves the response headers + handles gzip compression + sends url encoded parameters + handles headers with multiple values sends user agent - supports timeout option + handles connection error handles requests with proxy - handles proxy failures - retrieves the response body - parses the reason phrase - handles headers with multiple values + handles deflate compression + supports timeout option sends request body - handles connection error + supports open_timeout option sends url encoded nested parameters + parses the reason phrase represents empty body response as blank string - supports open_timeout option + handles proxy failures + retrieves the response body streaming when response is empty is expected to eq [["", 0]] @@ -3799,137 +4368,92 @@ handles streaming #trace behaves like a request method - supports open_timeout option sends user agent handles requests with proxy - sends url encoded nested parameters retrieves the response body - handles proxy failures - retrieves the response headers - handles deflate compression - supports timeout option handles headers with multiple values + handles deflate compression represents empty body response as blank string + sends url encoded parameters + retrieves the response headers + supports timeout option handles connection error - handles gzip compression + handles proxy failures + supports open_timeout option sends request body + handles gzip compression parses the reason phrase - sends url encoded parameters + sends url encoded nested parameters streaming when response contains big data handles streaming when response is empty is expected to eq [["", 0]] - #head + #options behaves like a request method - sends user agent - handles requests with proxy - represents empty body response as blank string + sends request body sends url encoded nested parameters - sends url encoded parameters - handles connection error - supports open_timeout option - handles proxy failures handles headers with multiple values + represents empty body response as blank string retrieves the response headers + handles connection error + sends user agent + handles proxy failures parses the reason phrase - supports timeout option - retrieves the response body - sends request body - streaming - when response contains big data - handles streaming - when response is empty - is expected to eq [["", 0]] - #delete - behaves like a request method - parses the reason phrase - retrieves the response body - handles headers with multiple values supports open_timeout option - handles deflate compression - handles gzip compression - handles connection error - handles requests with proxy - retrieves the response headers - sends url encoded nested parameters sends url encoded parameters - sends user agent - represents empty body response as blank string + retrieves the response body supports timeout option - handles proxy failures - sends request body + handles requests with proxy + handles deflate compression + handles gzip compression streaming - when response is empty - is expected to eq [["", 0]] when response contains big data handles streaming - #post + when response is empty + is expected to eq [["", 0]] + #put behaves like a request method - supports open_timeout option + sends files handles proxy failures - sends url encoded nested parameters handles deflate compression - handles requests with proxy + parses the reason phrase handles gzip compression - retrieves the response body sends request body - sends url encoded parameters handles headers with multiple values - retrieves the response headers - sends files sends user agent - supports timeout option - parses the reason phrase - handles connection error + sends url encoded parameters represents empty body response as blank string - 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 - supports timeout option retrieves the response body - handles connection error - represents empty body response as blank string + supports open_timeout option retrieves the response headers - sends request body - sends url encoded nested parameters - handles proxy failures + supports timeout option + handles connection error handles requests with proxy - handles deflate compression - parses the reason phrase - supports open_timeout option - handles headers with multiple values - sends url encoded parameters - handles gzip compression + sends url encoded nested parameters streaming when response is empty is expected to eq [["", 0]] when response contains big data handles streaming - #trace + #delete behaves like a request method + handles deflate compression + parses the reason phrase handles gzip compression - retrieves the response body + handles connection error sends request body - sends url encoded parameters + handles headers with multiple values + handles requests with proxy supports timeout option - handles connection error - sends user agent - handles proxy failures - parses the reason phrase supports open_timeout option - handles requests with proxy - handles headers with multiple values - represents empty body response as blank string + handles proxy failures + sends user agent + retrieves the response body retrieves the response headers - handles deflate compression sends url encoded nested parameters + represents empty body response as blank string + sends url encoded parameters streaming when response contains big data handles streaming @@ -3937,46 +4461,23 @@ is expected to eq [["", 0]] #post behaves like a request method - supports open_timeout option - sends url encoded parameters - sends url encoded nested parameters - sends user agent - handles requests with proxy - supports timeout option + handles proxy failures + sends request body handles headers with multiple values - retrieves the response headers retrieves the response body - handles proxy failures - handles connection error represents empty body response as blank string - handles deflate compression - parses the reason phrase - sends request body + retrieves the response headers + handles connection error + sends url encoded nested parameters + supports timeout option sends files handles gzip compression - streaming - when response contains big data - handles streaming - when response is empty - is expected to eq [["", 0]] - #delete - behaves like a request method - sends request body - handles gzip compression - supports timeout option - retrieves the response headers - retrieves the response body + sends url encoded parameters parses the reason phrase - sends user agent handles deflate compression - handles connection error - represents empty body response as blank string supports open_timeout option handles requests with proxy - sends url encoded nested parameters - sends url encoded parameters - handles headers with multiple values - handles proxy failures + sends user agent streaming when response contains big data handles streaming @@ -3984,67 +4485,45 @@ is expected to eq [["", 0]] #head behaves like a request method + supports timeout option + handles headers with multiple values + sends user agent + retrieves the response headers + sends request body + parses the reason phrase retrieves the response body + handles connection error handles proxy failures - sends user agent + handles requests with proxy sends url encoded nested parameters - sends url encoded parameters supports open_timeout option - sends request body + sends url encoded parameters represents empty body response as blank string - handles requests with proxy - handles headers with multiple values - handles connection error - parses the reason phrase - supports timeout option - retrieves the response headers streaming when response is empty is expected to eq [["", 0]] when response contains big data handles streaming + with SSL disabled #patch behaves like a request method - handles connection error - handles headers with multiple values - supports timeout option - retrieves the response body - sends user agent - handles requests with proxy + supports open_timeout option parses the reason phrase - handles proxy failures - sends request body - represents empty body response as blank string - retrieves the response headers - sends files handles deflate compression - supports open_timeout option - sends url encoded parameters - sends url encoded nested parameters - handles gzip compression - streaming - when response is empty - is expected to eq [["", 0]] - when response contains big data - handles streaming - #options - behaves like a request method - handles gzip compression + sends files sends url encoded nested parameters - retrieves the response headers sends user agent + sends url encoded parameters + handles requests with proxy + sends request body supports timeout option - parses the reason phrase - represents empty body response as blank string + handles gzip compression + retrieves the response headers retrieves the response body + handles headers with multiple values + represents empty body response as blank string handles connection error - handles deflate compression handles proxy failures - handles requests with proxy - handles headers with multiple values - sends url encoded parameters - sends request body - supports open_timeout option streaming when response contains big data handles streaming @@ -4052,626 +4531,182 @@ is expected to eq [["", 0]] #put behaves like a request method + sends user agent + sends request body + handles deflate compression + supports open_timeout option handles headers with multiple values - handles requests with proxy + retrieves the response headers + parses the reason phrase sends url encoded parameters - supports timeout option - sends files sends url encoded nested parameters - parses the reason phrase + handles proxy failures + supports timeout option retrieves the response body - sends user agent - handles gzip compression - supports open_timeout option represents empty body response as blank string handles connection error - retrieves the response headers - handles proxy failures - handles deflate compression - sends request body + handles requests with proxy + sends files + handles gzip compression streaming - when response contains big data - handles streaming when response is empty is expected to eq [["", 0]] - checking http - supports read_timeout - is expected to eq 80 - supports write_timeout - supports open_timeout - sets max_retries to 0 - with https url - is expected to eq 443 - with custom adapter config - is expected to eq 123 - with http url including port - is expected to eq 1234 - -Faraday::Options - #merge - deeply merges options with options having nil sub-options - deeply merges options with hashes - deeply merges options with nil - deeply merges two options - merges options with hashes - #value? - returns true if any key has that value - #deep_dup - duplicate options and also suboptions - #dup - duplicate options but not sub-options - #clear - clears the options - #from - works with nil - works with deep hash - works with options with sub object - is expected to raise NoMethodError - works with options - works with hash with sub object - respects inheritance - works with hash - #delete - allows to remove value for key - #update - updates options from hashes - #each_value - allows to iterate through values - #fetch - when the fetched key has no value - accepts block - needs a default if key is missing - uses falsey default - when the fetched key has a value - works with key - grabs value - #key? - returns true if the key exists and is not nil - #each_key - allows to iterate through keys - #memoized - requires block - accepts block - #empty? - returns true only if all options are nil - -Faraday::ClientError - .initialize - with response hash - is expected to eq "the server responded with status 400" - is expected to be nil - is expected to eq {:status=>400} - is expected to eq "#400}>" - with anything else #to_s - is expected to eq "#>" - is expected to be nil - is expected to eq "[\"error1\", \"error2\"]" - is expected to be nil - with exception only - is expected to eq # - is expected to eq nil - is expected to eq "#>" - is expected to eq "test" - is expected to be nil - with string - is expected to eq "#>" - is expected to eq "custom message" - is expected to be nil - is expected to be nil - -Faraday::Adapter::NetHttpPersistent - sets max_retries to 0 - allows to provide adapter specific configs - allows to set pool_size on initialize - behaves like an adapter - with SSL enabled + when response contains big data + handles streaming #get behaves like a request method - handles headers with multiple values - sends url encoded nested parameters - handles proxy failures - handles requests with proxy - supports timeout option + represents empty body response as blank string + handles gzip compression + sends request body retrieves the response headers + handles requests with proxy retrieves the response body - sends request body - handles deflate compression - handles gzip compression - sends url encoded parameters - represents empty body response as blank string - handles connection error sends user agent - parses the reason phrase - supports open_timeout option - #delete - behaves like a request method - sends request body sends url encoded nested parameters - sends user agent - handles requests with proxy - supports timeout option - handles connection error supports open_timeout option - represents empty body response as blank string - handles gzip compression - retrieves the response body + parses the reason phrase + supports timeout option handles headers with multiple values handles proxy failures sends url encoded parameters - retrieves the response headers - handles deflate compression - parses the reason phrase - #patch - behaves like a request method handles deflate compression - handles requests with proxy - sends files - supports timeout option - represents empty body response as blank string handles connection error - supports open_timeout option - sends request body - handles proxy failures - sends user agent - sends url encoded nested parameters - retrieves the response body - handles gzip compression - parses the reason phrase - sends url encoded parameters - handles headers with multiple values - retrieves the response headers - #options + streaming + when response contains big data + handles streaming + when response is empty + is expected to eq [["", 0]] + #post behaves like a request method + handles deflate compression sends request body + represents empty body response as blank string handles headers with multiple values sends user agent - sends url encoded parameters - sends url encoded nested parameters - retrieves the response headers - handles connection error handles requests with proxy - supports timeout option - retrieves the response body - handles deflate compression - represents empty body response as blank string - handles gzip compression - supports open_timeout option - handles proxy failures parses the reason phrase - #post - behaves like a request method supports timeout option - handles proxy failures - sends url encoded parameters - handles deflate compression - retrieves the response body - handles gzip compression - supports open_timeout option handles connection error - sends request body - sends user agent + sends url encoded parameters sends url encoded nested parameters - handles headers with multiple values - parses the reason phrase retrieves the response headers + handles proxy failures sends files - handles requests with proxy - represents empty body response as blank string - #trace + handles gzip compression + supports open_timeout option + retrieves the response body + streaming + when response contains big data + handles streaming + when response is empty + is expected to eq [["", 0]] + #delete behaves like a request method + parses the reason phrase + represents empty body response as blank string + retrieves the response headers handles headers with multiple values - handles connection error - supports timeout option - handles deflate compression - retrieves the response body handles proxy failures - supports open_timeout option handles gzip compression - retrieves the response headers - sends url encoded parameters - sends url encoded nested parameters + handles deflate compression + supports open_timeout option handles requests with proxy - sends request body - parses the reason phrase sends user agent - represents empty body response as blank string - #head - behaves like a request method - represents empty body response as blank string - parses the reason phrase - handles proxy failures - sends url encoded parameters sends request body + sends url encoded parameters handles connection error - sends url encoded nested parameters - handles headers with multiple values - handles requests with proxy - retrieves the response headers - sends user agent retrieves the response body - supports open_timeout option supports timeout option - #put - behaves like a request method - sends url encoded parameters - retrieves the response body sends url encoded nested parameters - handles proxy failures - sends files - represents empty body response as blank string - handles connection error - supports open_timeout option - supports timeout option - handles deflate compression + streaming + when response contains big data + handles streaming + when response is empty + is expected to eq [["", 0]] + #trace + behaves like a request method sends user agent - parses the reason phrase - sends request body - handles requests with proxy handles headers with multiple values retrieves the response headers - handles gzip compression - with SSL disabled - #put - behaves like a request method + supports timeout option + represents empty body response as blank string handles deflate compression - handles requests with proxy - supports open_timeout option sends url encoded parameters - handles gzip compression handles connection error - parses the reason phrase - sends request body - sends url encoded nested parameters - sends user agent - retrieves the response body - represents empty body response as blank string - supports timeout option - retrieves the response headers - handles headers with multiple values - sends files handles proxy failures - #head - behaves like a request method + parses the reason phrase + handles requests with proxy + handles gzip compression sends request body - supports timeout option - handles headers with multiple values supports open_timeout option retrieves the response body - sends user agent - parses the reason phrase sends url encoded nested parameters - retrieves the response headers - sends url encoded parameters - handles requests with proxy - handles proxy failures - handles connection error - represents empty body response as blank string - #trace + streaming + when response is empty + is expected to eq [["", 0]] + when response contains big data + handles streaming + #head behaves like a request method supports open_timeout option - handles gzip compression - sends url encoded nested parameters - sends request body - parses the reason phrase - sends user agent - handles requests with proxy - represents empty body response as blank string - retrieves the response headers - handles headers with multiple values - sends url encoded parameters retrieves the response body - handles connection error - handles deflate compression - handles proxy failures supports timeout option - #delete - behaves like a request method - sends request body - supports open_timeout option - handles proxy failures - sends url encoded parameters sends user agent - represents empty body response as blank string handles connection error - handles requests with proxy handles headers with multiple values - supports timeout option - parses the reason phrase - sends url encoded nested parameters retrieves the response headers - handles gzip compression - retrieves the response body - handles deflate compression - #patch - behaves like a request method - handles deflate compression - supports open_timeout option - supports timeout option - parses the reason phrase - handles headers with multiple values - sends request body + handles proxy failures sends url encoded nested parameters - retrieves the response headers - sends user agent - handles gzip compression - retrieves the response body - handles connection error + sends url encoded parameters represents empty body response as blank string - sends files + parses the reason phrase + sends request body handles requests with proxy - handles proxy failures - sends url encoded parameters + streaming + when response is empty + is expected to eq [["", 0]] + when response contains big data + handles streaming #options behaves like a request method - parses the reason phrase - supports open_timeout option - sends url encoded parameters - retrieves the response headers - handles connection error handles requests with proxy sends url encoded nested parameters sends request body - retrieves the response body - represents empty body response as blank string + parses the reason phrase supports timeout option sends user agent handles proxy failures - handles headers with multiple values - handles deflate compression - handles gzip compression - #get - behaves like a request method - parses the reason phrase - retrieves the response body - represents empty body response as blank string - handles connection error - supports open_timeout option + sends url encoded parameters retrieves the response headers - supports timeout option - sends url encoded nested parameters - sends request body - sends user agent - handles gzip compression handles headers with multiple values - handles requests with proxy - sends url encoded parameters + retrieves the response body handles deflate compression - handles proxy failures - #post - behaves like a request method - handles headers with multiple values handles connection error - handles proxy failures - handles deflate compression - sends url encoded nested parameters + handles gzip compression represents empty body response as blank string - sends request body - supports timeout option - sends url encoded parameters - parses the reason phrase - sends user agent supports open_timeout option - handles requests with proxy - handles gzip compression - sends files - retrieves the response headers - retrieves the response body - min_version - allows to set min_version in SSL settings - -Faraday::CompositeReadIO - with mix of empty and non-empty parts - allows to read in chunks - with empty composite_io - is expected to eq 0 - is expected to be nil - is expected to eq "" - with empty parts - is expected to eq 0 - is expected to be nil - is expected to eq "" - with utf8 multibyte part - allows to read in chunks - is expected to eq "\x86\xE3\x83\x95\xE3\x82\xA1\xE3\x82\xA4\xE3\x83\xAB" - with 2 parts - allows to rewind while reading in chunks - is expected to eq "abcd1234" - allows to read in chunks - is expected to eq 8 - -Faraday::Response::RaiseError - raises Faraday::ProxyAuthError for 407 responses - raises Faraday::ResourceNotFound for 404 responses - raises Faraday::ConflictError for 409 responses - raises Faraday::UnprocessableEntityError for 422 responses - raises Faraday::UnauthorizedError for 401 responses - raises no exception for 200 responses - raises Faraday::ForbiddenError for 403 responses - raises Faraday::ClientError for other 4xx responses - raises Faraday::ServerError for 500 responses - raises Faraday::BadRequestError for 400 responses - raises Faraday::NilStatusError for nil status in response - request info - returns the request info in the exception - -Faraday::Middleware - #close - with app that supports #close - should issue warning - with app that doesn't support #close - should issue warning - -Faraday::Connection - proxy support - accepts uri - accepts hash - fetches no proxy from nil env - ignores env proxy if set that way - accepts http env - allows when url in no proxy list - uses processes no_proxy before http_proxy - allows when ip address is not in no proxy list but url is - gives priority to manually set proxy - fetches no proxy from blank env - uses env https_proxy - uses env http_proxy - allows when url not in no proxy list - does not accept uppercase env - accepts env without scheme - allows when url is not in no proxy list but ip address is - test proxy requires uri - allows in multi element no proxy list - accepts http env with auth - uses processes no_proxy before https_proxy - allows when subdomain url is in no proxy list - allows when prefixed url is not in no proxy list - accepts string - accepts hash with string uri - performing a request - dynamically checks proxy - dynamically check no proxy - .new - 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 "sushi.com" - is expected to eq "/" - 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 ssl false - is expected to be falsey - with custom builder - is expected to eq # - with block - is expected to eq 0 - is expected to eq "/omnom" - with custom params - is expected to eq {"a"=>1} - with custom headers - is expected to eq "Faraday" - with explicit url param - behaves like initializer with url - with simple url - is expected to eq "/" - is expected to eq {} - is expected to eq 80 - is expected to eq "sushi.com" - 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 params and params in url - is expected to eq {"a"=>3, "b"=>"2"} - #to_env - bracketizes repeated params in query - without braketizing repeated params in query - escapes per spec - parses url params into query - bracketizes nested params in query - #build_url - merges params - uses params - basic_auth - calling the #basic_auth method - is expected to eq "Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==" - adding basic auth info to url - is expected to eq "Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==" - #build_exclusive_url - does not add ending slash given nil url - allows to provide params argument - does not use connection params - does not add ending slash given empty url - overrides connection port for absolute url - handles uri instances - with relative path - 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" - uses connection host as default host - with url_prefixed connection - joins url to base with ending slash - used default base with ending slash - overrides base - parses url and changes scheme - with complete url - is expected to eq "a=1" - is expected to eq 80 - is expected to eq "/sake.html" - is expected to eq "http" - is expected to eq "sushi.com" - with absolute path - example at ./spec/faraday/connection_spec.rb:195 - is expected to eq "/sake.html" - is expected to eq "/sake.html" - is expected to eq "/sake.html" - 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 simple url - test_overrides_request_params - test_overrides_request_params_block - test_overrides_request_params_block_url - with flat params encoder - supports array params in params - with array param in url - is expected to request GET http://example.com/?color=blue 1 time - with default params encoder - supports array params in url - supports array params in params - #token_auth - is expected to eq "Token nonce=\"abc\", token=\"abcdef\"" - #respond_to? - is expected to be truthy - is expected to be truthy - default_connection_options - assigning a hash - behaves like default connection options - works with option url - default connection options persist with an instance overriding - default connection uses default connection options - works with instance connection options - works with implicit url - assigning a default value - 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 option url - works with instance connection options - #build_request - is expected to be truthy - is expected to be falsey - is expected to be empty - is expected to eq ["Authorization"] - #close - can close underlying app - #dup - is expected to eq "1" - is expected to eq "text/plain" - is expected to eq # - after manual changes - is expected to eq 1 - is expected to eq 1 - is expected to be nil - is expected to eq 5 - is expected to be falsey - is expected to be falsey + streaming + when response is empty + is expected to eq [["", 0]] + when response contains big data + handles streaming + checking http + supports write_timeout + sets max_retries to 0 + is expected to eq 80 + supports read_timeout + supports open_timeout + with custom adapter config + is expected to eq 123 + with http url including port + is expected to eq 1234 + with https url + is expected to eq 443 -Finished in 11.17 seconds (files took 2.24 seconds to load) +Finished in 8.44 seconds (files took 1.72 seconds to load) 2543 examples, 0 failures -Randomized with seed 4115 +Randomized with seed 2634 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. @@ -4706,12 +4741,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/2564784/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/2564784/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/2665553 and its subdirectories -I: Current time: Sun Jan 9 15:38:22 -12 2022 -I: pbuilder-time-stamp: 1641785902 +I: removing directory /srv/workspace/pbuilder/2564784 and its subdirectories +I: Current time: Mon Feb 13 00:02:12 +14 2023 +I: pbuilder-time-stamp: 1676196132