Diff of the two buildlogs: -- --- b1/build.log 2023-05-12 21:03:48.985587725 +0000 +++ b2/build.log 2023-05-12 21:05:50.636262589 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Thu Jun 13 15:21:47 -12 2024 -I: pbuilder-time-stamp: 1718335307 +I: Current time: Sat May 13 11:03:50 +14 2023 +I: pbuilder-time-stamp: 1683925431 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/bookworm-reproducible-base.tgz] I: copying local configuration @@ -16,7 +16,7 @@ I: copying [./ruby-faraday_1.1.0.orig.tar.gz] I: copying [./ruby-faraday_1.1.0-7.debian.tar.xz] I: Extracting source -gpgv: Signature made Sun Jan 23 08:17:31 2022 -12 +gpgv: Signature made Mon Jan 24 10:17:31 2022 +14 gpgv: using RSA key D30863E26020E543F4719A838F53E0193B294B75 gpgv: Can't check signature: No public key dpkg-source: warning: cannot verify inline signature for ./ruby-faraday_1.1.0-7.dsc: no acceptable signature found @@ -31,135 +31,167 @@ 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/3618121/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/2103318/tmp/hooks/D01_modify_environment starting +debug: Running on ionos1-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 +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 May 13 11:04 /bin/sh -> /bin/bash +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/2103318/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/2103318/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 parallel=16' - DISTRIBUTION='bookworm' - HOME='/root' - HOST_ARCH='amd64' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="15" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu") + BASH_VERSION='5.2.15(1)-release' + BUILDDIR=/build + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=amd64 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=15' + DIRSTACK=() + DISTRIBUTION=bookworm + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=x86_64 + HOST_ARCH=amd64 IFS=' ' - INVOCATION_ID='e53f45bfe19e46b2818936737b345ffb' - 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='3618121' - PS1='# ' - PS2='> ' + INVOCATION_ID=d899fad78d6045c1b42a211cce38d477 + 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=2103318 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.czXk33bB/pbuilderrc_uLEM --distribution bookworm --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bookworm-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.czXk33bB/b1 --logfile b1/build.log ruby-faraday_1.1.0-7.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://85.184.249.68:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.czXk33bB/pbuilderrc_MbCj --distribution bookworm --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bookworm-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.czXk33bB/b2 --logfile b2/build.log --extrapackages usrmerge ruby-faraday_1.1.0-7.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://78.137.99.97:3128 I: uname -a - Linux ionos15-amd64 6.1.0-0.deb11.6-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.15-1~bpo11+1 (2023-03-16) x86_64 GNU/Linux + Linux i-capture-the-hostname 5.10.0-22-amd64 #1 SMP Debian 5.10.178-3 (2023-04-22) x86_64 GNU/Linux I: ls -l /bin total 5632 - -rwxr-xr-x 1 root root 1265648 Apr 23 2023 bash - -rwxr-xr-x 3 root root 39224 Sep 18 2022 bunzip2 - -rwxr-xr-x 3 root root 39224 Sep 18 2022 bzcat - lrwxrwxrwx 1 root root 6 Sep 18 2022 bzcmp -> bzdiff - -rwxr-xr-x 1 root root 2225 Sep 18 2022 bzdiff - lrwxrwxrwx 1 root root 6 Sep 18 2022 bzegrep -> bzgrep - -rwxr-xr-x 1 root root 4893 Nov 27 2021 bzexe - lrwxrwxrwx 1 root root 6 Sep 18 2022 bzfgrep -> bzgrep - -rwxr-xr-x 1 root root 3775 Sep 18 2022 bzgrep - -rwxr-xr-x 3 root root 39224 Sep 18 2022 bzip2 - -rwxr-xr-x 1 root root 14568 Sep 18 2022 bzip2recover - lrwxrwxrwx 1 root root 6 Sep 18 2022 bzless -> bzmore - -rwxr-xr-x 1 root root 1297 Sep 18 2022 bzmore - -rwxr-xr-x 1 root root 44016 Sep 20 2022 cat - -rwxr-xr-x 1 root root 68656 Sep 20 2022 chgrp - -rwxr-xr-x 1 root root 64496 Sep 20 2022 chmod - -rwxr-xr-x 1 root root 72752 Sep 20 2022 chown - -rwxr-xr-x 1 root root 151152 Sep 20 2022 cp - -rwxr-xr-x 1 root root 125640 Jan 5 2023 dash - -rwxr-xr-x 1 root root 121904 Sep 20 2022 date - -rwxr-xr-x 1 root root 89240 Sep 20 2022 dd - -rwxr-xr-x 1 root root 102200 Sep 20 2022 df - -rwxr-xr-x 1 root root 151344 Sep 20 2022 dir - -rwxr-xr-x 1 root root 88656 Mar 22 2023 dmesg - lrwxrwxrwx 1 root root 8 Dec 19 2022 dnsdomainname -> hostname - lrwxrwxrwx 1 root root 8 Dec 19 2022 domainname -> hostname - -rwxr-xr-x 1 root root 43856 Sep 20 2022 echo - -rwxr-xr-x 1 root root 41 Jan 24 2023 egrep - -rwxr-xr-x 1 root root 35664 Sep 20 2022 false - -rwxr-xr-x 1 root root 41 Jan 24 2023 fgrep - -rwxr-xr-x 1 root root 85600 Mar 22 2023 findmnt - -rwsr-xr-x 1 root root 35128 Mar 22 2023 fusermount - -rwxr-xr-x 1 root root 203152 Jan 24 2023 grep - -rwxr-xr-x 2 root root 2346 Apr 9 2022 gunzip - -rwxr-xr-x 1 root root 6447 Apr 9 2022 gzexe - -rwxr-xr-x 1 root root 98136 Apr 9 2022 gzip - -rwxr-xr-x 1 root root 22680 Dec 19 2022 hostname - -rwxr-xr-x 1 root root 72824 Sep 20 2022 ln - -rwxr-xr-x 1 root root 53024 Mar 23 2023 login - -rwxr-xr-x 1 root root 151344 Sep 20 2022 ls - -rwxr-xr-x 1 root root 207168 Mar 22 2023 lsblk - -rwxr-xr-x 1 root root 97552 Sep 20 2022 mkdir - -rwxr-xr-x 1 root root 72912 Sep 20 2022 mknod - -rwxr-xr-x 1 root root 43952 Sep 20 2022 mktemp - -rwxr-xr-x 1 root root 59712 Mar 22 2023 more - -rwsr-xr-x 1 root root 59704 Mar 22 2023 mount - -rwxr-xr-x 1 root root 18744 Mar 22 2023 mountpoint - -rwxr-xr-x 1 root root 142968 Sep 20 2022 mv - lrwxrwxrwx 1 root root 8 Dec 19 2022 nisdomainname -> hostname - lrwxrwxrwx 1 root root 14 Apr 2 2023 pidof -> /sbin/killall5 - -rwxr-xr-x 1 root root 43952 Sep 20 2022 pwd - lrwxrwxrwx 1 root root 4 Apr 23 2023 rbash -> bash - -rwxr-xr-x 1 root root 52112 Sep 20 2022 readlink - -rwxr-xr-x 1 root root 72752 Sep 20 2022 rm - -rwxr-xr-x 1 root root 56240 Sep 20 2022 rmdir - -rwxr-xr-x 1 root root 27560 Nov 2 2022 run-parts - -rwxr-xr-x 1 root root 126424 Jan 5 2023 sed - lrwxrwxrwx 1 root root 4 Jan 5 2023 sh -> dash - -rwxr-xr-x 1 root root 43888 Sep 20 2022 sleep - -rwxr-xr-x 1 root root 85008 Sep 20 2022 stty - -rwsr-xr-x 1 root root 72000 Mar 22 2023 su - -rwxr-xr-x 1 root root 39824 Sep 20 2022 sync - -rwxr-xr-x 1 root root 531984 Apr 6 2023 tar - -rwxr-xr-x 1 root root 14520 Nov 2 2022 tempfile - -rwxr-xr-x 1 root root 109616 Sep 20 2022 touch - -rwxr-xr-x 1 root root 35664 Sep 20 2022 true - -rwxr-xr-x 1 root root 14568 Mar 22 2023 ulockmgr_server - -rwsr-xr-x 1 root root 35128 Mar 22 2023 umount - -rwxr-xr-x 1 root root 43888 Sep 20 2022 uname - -rwxr-xr-x 2 root root 2346 Apr 9 2022 uncompress - -rwxr-xr-x 1 root root 151344 Sep 20 2022 vdir - -rwxr-xr-x 1 root root 72024 Mar 22 2023 wdctl - lrwxrwxrwx 1 root root 8 Dec 19 2022 ypdomainname -> hostname - -rwxr-xr-x 1 root root 1984 Apr 9 2022 zcat - -rwxr-xr-x 1 root root 1678 Apr 9 2022 zcmp - -rwxr-xr-x 1 root root 6460 Apr 9 2022 zdiff - -rwxr-xr-x 1 root root 29 Apr 9 2022 zegrep - -rwxr-xr-x 1 root root 29 Apr 9 2022 zfgrep - -rwxr-xr-x 1 root root 2081 Apr 9 2022 zforce - -rwxr-xr-x 1 root root 8103 Apr 9 2022 zgrep - -rwxr-xr-x 1 root root 2206 Apr 9 2022 zless - -rwxr-xr-x 1 root root 1842 Apr 9 2022 zmore - -rwxr-xr-x 1 root root 4577 Apr 9 2022 znew -I: user script /srv/workspace/pbuilder/3618121/tmp/hooks/D02_print_environment finished + -rwxr-xr-x 1 root root 1265648 Apr 24 11:23 bash + -rwxr-xr-x 3 root root 39224 Sep 19 2022 bunzip2 + -rwxr-xr-x 3 root root 39224 Sep 19 2022 bzcat + lrwxrwxrwx 1 root root 6 Sep 19 2022 bzcmp -> bzdiff + -rwxr-xr-x 1 root root 2225 Sep 19 2022 bzdiff + lrwxrwxrwx 1 root root 6 Sep 19 2022 bzegrep -> bzgrep + -rwxr-xr-x 1 root root 4893 Nov 28 2021 bzexe + lrwxrwxrwx 1 root root 6 Sep 19 2022 bzfgrep -> bzgrep + -rwxr-xr-x 1 root root 3775 Sep 19 2022 bzgrep + -rwxr-xr-x 3 root root 39224 Sep 19 2022 bzip2 + -rwxr-xr-x 1 root root 14568 Sep 19 2022 bzip2recover + lrwxrwxrwx 1 root root 6 Sep 19 2022 bzless -> bzmore + -rwxr-xr-x 1 root root 1297 Sep 19 2022 bzmore + -rwxr-xr-x 1 root root 44016 Sep 21 2022 cat + -rwxr-xr-x 1 root root 68656 Sep 21 2022 chgrp + -rwxr-xr-x 1 root root 64496 Sep 21 2022 chmod + -rwxr-xr-x 1 root root 72752 Sep 21 2022 chown + -rwxr-xr-x 1 root root 151152 Sep 21 2022 cp + -rwxr-xr-x 1 root root 125640 Jan 6 03:20 dash + -rwxr-xr-x 1 root root 121904 Sep 21 2022 date + -rwxr-xr-x 1 root root 89240 Sep 21 2022 dd + -rwxr-xr-x 1 root root 102200 Sep 21 2022 df + -rwxr-xr-x 1 root root 151344 Sep 21 2022 dir + -rwxr-xr-x 1 root root 88656 Mar 24 00:02 dmesg + lrwxrwxrwx 1 root root 8 Dec 20 03:33 dnsdomainname -> hostname + lrwxrwxrwx 1 root root 8 Dec 20 03:33 domainname -> hostname + -rwxr-xr-x 1 root root 43856 Sep 21 2022 echo + -rwxr-xr-x 1 root root 41 Jan 25 04:43 egrep + -rwxr-xr-x 1 root root 35664 Sep 21 2022 false + -rwxr-xr-x 1 root root 41 Jan 25 04:43 fgrep + -rwxr-xr-x 1 root root 85600 Mar 24 00:02 findmnt + -rwsr-xr-x 1 root root 35128 Mar 23 22:35 fusermount + -rwxr-xr-x 1 root root 203152 Jan 25 04:43 grep + -rwxr-xr-x 2 root root 2346 Apr 10 2022 gunzip + -rwxr-xr-x 1 root root 6447 Apr 10 2022 gzexe + -rwxr-xr-x 1 root root 98136 Apr 10 2022 gzip + -rwxr-xr-x 1 root root 22680 Dec 20 03:33 hostname + -rwxr-xr-x 1 root root 72824 Sep 21 2022 ln + -rwxr-xr-x 1 root root 53024 Mar 24 02:40 login + -rwxr-xr-x 1 root root 151344 Sep 21 2022 ls + -rwxr-xr-x 1 root root 207168 Mar 24 00:02 lsblk + -rwxr-xr-x 1 root root 97552 Sep 21 2022 mkdir + -rwxr-xr-x 1 root root 72912 Sep 21 2022 mknod + -rwxr-xr-x 1 root root 43952 Sep 21 2022 mktemp + -rwxr-xr-x 1 root root 59712 Mar 24 00:02 more + -rwsr-xr-x 1 root root 59704 Mar 24 00:02 mount + -rwxr-xr-x 1 root root 18744 Mar 24 00:02 mountpoint + -rwxr-xr-x 1 root root 142968 Sep 21 2022 mv + lrwxrwxrwx 1 root root 8 Dec 20 03:33 nisdomainname -> hostname + lrwxrwxrwx 1 root root 14 Apr 3 20:25 pidof -> /sbin/killall5 + -rwxr-xr-x 1 root root 43952 Sep 21 2022 pwd + lrwxrwxrwx 1 root root 4 Apr 24 11:23 rbash -> bash + -rwxr-xr-x 1 root root 52112 Sep 21 2022 readlink + -rwxr-xr-x 1 root root 72752 Sep 21 2022 rm + -rwxr-xr-x 1 root root 56240 Sep 21 2022 rmdir + -rwxr-xr-x 1 root root 27560 Nov 3 2022 run-parts + -rwxr-xr-x 1 root root 126424 Jan 6 09:55 sed + lrwxrwxrwx 1 root root 9 May 13 11:04 sh -> /bin/bash + -rwxr-xr-x 1 root root 43888 Sep 21 2022 sleep + -rwxr-xr-x 1 root root 85008 Sep 21 2022 stty + -rwsr-xr-x 1 root root 72000 Mar 24 00:02 su + -rwxr-xr-x 1 root root 39824 Sep 21 2022 sync + -rwxr-xr-x 1 root root 531984 Apr 7 04:25 tar + -rwxr-xr-x 1 root root 14520 Nov 3 2022 tempfile + -rwxr-xr-x 1 root root 109616 Sep 21 2022 touch + -rwxr-xr-x 1 root root 35664 Sep 21 2022 true + -rwxr-xr-x 1 root root 14568 Mar 23 22:35 ulockmgr_server + -rwsr-xr-x 1 root root 35128 Mar 24 00:02 umount + -rwxr-xr-x 1 root root 43888 Sep 21 2022 uname + -rwxr-xr-x 2 root root 2346 Apr 10 2022 uncompress + -rwxr-xr-x 1 root root 151344 Sep 21 2022 vdir + -rwxr-xr-x 1 root root 72024 Mar 24 00:02 wdctl + lrwxrwxrwx 1 root root 8 Dec 20 03:33 ypdomainname -> hostname + -rwxr-xr-x 1 root root 1984 Apr 10 2022 zcat + -rwxr-xr-x 1 root root 1678 Apr 10 2022 zcmp + -rwxr-xr-x 1 root root 6460 Apr 10 2022 zdiff + -rwxr-xr-x 1 root root 29 Apr 10 2022 zegrep + -rwxr-xr-x 1 root root 29 Apr 10 2022 zfgrep + -rwxr-xr-x 1 root root 2081 Apr 10 2022 zforce + -rwxr-xr-x 1 root root 8103 Apr 10 2022 zgrep + -rwxr-xr-x 1 root root 2206 Apr 10 2022 zless + -rwxr-xr-x 1 root root 1842 Apr 10 2022 zmore + -rwxr-xr-x 1 root root 4577 Apr 10 2022 znew +I: user script /srv/workspace/pbuilder/2103318/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -444,7 +476,7 @@ Get: 209 http://deb.debian.org/debian bookworm/main amd64 ruby-sinatra all 3.0.5-3 [119 kB] Get: 210 http://deb.debian.org/debian bookworm/main amd64 ruby-typhoeus all 1.4.0-3 [36.2 kB] Get: 211 http://deb.debian.org/debian bookworm/main amd64 ruby-webmock all 3.18.1-2 [66.2 kB] -Fetched 53.9 MB in 2s (28.0 MB/s) +Fetched 53.9 MB in 1s (38.4 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libpython3.11-minimal:amd64. (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 ... 19596 files and directories currently installed.) @@ -1316,10 +1348,17 @@ Reading package lists... Building dependency tree... Reading state information... +usrmerge is already the newest version (35). fakeroot is already the newest version (1.31-1.2). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. I: Building the package -I: Running cd /build/ruby-faraday-1.1.0/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../ruby-faraday_1.1.0-7_source.changes +I: user script /srv/workspace/pbuilder/2103318/tmp/hooks/A99_set_merged_usr starting +Re-configuring usrmerge... +removed '/etc/unsupported-skip-usrmerge-conversion' +The system has been successfully converted. +I: user script /srv/workspace/pbuilder/2103318/tmp/hooks/A99_set_merged_usr finished +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-7_source.changes dpkg-buildpackage: info: source package ruby-faraday dpkg-buildpackage: info: source version 1.1.0-7 dpkg-buildpackage: info: source distribution unstable @@ -1351,7 +1390,7 @@ dh_prep -O--buildsystem=ruby dh_auto_install --destdir=debian/ruby-faraday/ -O--buildsystem=ruby dh_ruby --install /build/ruby-faraday-1.1.0/debian/ruby-faraday -/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20240613-3675194-sh3y0z/gemspec +/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20230513-2128218-2fuav4/gemspec Failed to load /dev/null because it doesn't contain valid YAML hash WARNING: open-ended dependency on ruby2_keywords (>= 0) is not recommended use a bounded requirement, such as '~> x.y' @@ -1360,7 +1399,7 @@ Name: faraday Version: 1.1.0 File: faraday-1.1.0.gem -/usr/bin/ruby3.1 -S gem install --config-file /dev/null --verbose --local --verbose --no-document --ignore-dependencies --install-dir debian/ruby-faraday/usr/share/rubygems-integration/all /tmp/d20240613-3675194-sh3y0z/faraday-1.1.0.gem +/usr/bin/ruby3.1 -S gem install --config-file /dev/null --verbose --local --verbose --no-document --ignore-dependencies --install-dir debian/ruby-faraday/usr/share/rubygems-integration/all /tmp/d20230513-2128218-2fuav4/faraday-1.1.0.gem Failed to load /dev/null because it doesn't contain valid YAML hash /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/share/rubygems-integration/all/gems/faraday-1.1.0/lib/faraday.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/share/rubygems-integration/all/gems/faraday-1.1.0/lib/faraday/adapter.rb @@ -1441,3232 +1480,3232 @@ RUBYLIB=. GEM_PATH=/build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/share/rubygems-integration/all:/build/ruby-faraday-1.1.0/debian/.debhelper/generated/_source/home/.local/share/gem/ruby/3.1.0:/var/lib/gems/3.1.0:/usr/local/lib/ruby/gems/3.1.0:/usr/lib/ruby/gems/3.1.0:/usr/lib/x86_64-linux-gnu/ruby/gems/3.1.0:/usr/share/rubygems-integration/3.1.0:/usr/share/rubygems-integration/all:/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0 ruby3.1 -S rake -f debian/ruby-tests.rake /usr/bin/ruby3.1 -I/usr/share/rubygems-integration/all/gems/rspec-support-3.12.0/lib:/usr/share/rubygems-integration/all/gems/rspec-core-3.12.0/lib /usr/share/rubygems-integration/all/gems/rspec-core-3.12.0/exe/rspec ./spec/faraday/adapter/em_http_spec.rb ./spec/faraday/adapter/em_synchrony_spec.rb ./spec/faraday/adapter/excon_spec.rb ./spec/faraday/adapter/httpclient_spec.rb ./spec/faraday/adapter/net_http_persistent_spec.rb ./spec/faraday/adapter/net_http_spec.rb ./spec/faraday/adapter/rack_spec.rb ./spec/faraday/adapter/test_spec.rb ./spec/faraday/adapter/typhoeus_spec.rb ./spec/faraday/adapter_registry_spec.rb ./spec/faraday/adapter_spec.rb ./spec/faraday/composite_read_io_spec.rb ./spec/faraday/connection_spec.rb ./spec/faraday/error_spec.rb ./spec/faraday/middleware_spec.rb ./spec/faraday/options/env_spec.rb ./spec/faraday/options/options_spec.rb ./spec/faraday/options/proxy_options_spec.rb ./spec/faraday/options/request_options_spec.rb ./spec/faraday/params_encoders/flat_spec.rb ./spec/faraday/params_encoders/nested_spec.rb ./spec/faraday/rack_builder_spec.rb ./spec/faraday/request/authorization_spec.rb ./spec/faraday/request/instrumentation_spec.rb ./spec/faraday/request/multipart_spec.rb ./spec/faraday/request/retry_spec.rb ./spec/faraday/request/url_encoded_spec.rb ./spec/faraday/request_spec.rb ./spec/faraday/response/logger_spec.rb ./spec/faraday/response/middleware_spec.rb ./spec/faraday/response/raise_error_spec.rb ./spec/faraday/response_spec.rb ./spec/faraday/utils/headers_spec.rb ./spec/faraday/utils_spec.rb ./spec/faraday_spec.rb --format documentation -Randomized with seed 33160 +Randomized with seed 61370 -Faraday::Adapter::Rack +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 + 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 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 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 + +Faraday::Adapter::EMSynchrony + allows to provide adapter specific configs behaves like an adapter with SSL enabled - #head + #post behaves like a request method - sends request body represents empty body response as blank string - handles headers with multiple values - supports open_timeout option - handles requests with proxy - handles proxy failures handles connection error - retrieves the response headers - sends url encoded parameters sends user agent + handles requests with proxy sends url encoded nested parameters + sends request body supports timeout option - #delete - behaves like a request method - sends user agent handles headers with multiple values supports open_timeout option - handles connection error - retrieves the response headers retrieves the response body - sends url encoded nested parameters - supports timeout option - handles requests with proxy + parses the reason phrase + binds local socket + sends files handles proxy failures - represents empty body response as blank string + retrieves the response headers sends url encoded parameters - sends request body - #trace + with parallel setup + handles parallel requests body + handles parallel requests status + #get behaves like a request method - retrieves the response body - supports timeout option - handles connection error - represents empty body response as blank string - handles proxy failures + handles requests with proxy sends url encoded nested parameters - sends url encoded parameters retrieves the response headers + handles proxy failures + sends url encoded parameters + represents empty body response as blank string + parses the reason phrase + handles connection error sends user agent + supports timeout option + binds local socket handles headers with multiple values - sends request body + retrieves the response body supports open_timeout option - handles requests with proxy - #put + sends request body + with parallel setup + handles parallel requests status + handles parallel requests body + #patch behaves like a request method + sends request body retrieves the response body - sends url encoded parameters + represents empty body response as blank string + sends user agent + parses the reason phrase + handles proxy failures + handles headers with multiple values handles connection error supports open_timeout option - sends request body - handles requests with proxy + sends url encoded parameters + supports timeout option + binds local socket sends url encoded nested parameters - handles proxy failures - handles headers with multiple values + handles requests with proxy retrieves the response headers sends files - represents empty body response as blank string - sends user agent - supports timeout option - #patch + with parallel setup + handles parallel requests status + handles parallel requests body + #delete behaves like a request method - represents empty body response as blank string retrieves the response body - sends request body - sends files - supports open_timeout option + sends user agent sends url encoded parameters - handles requests with proxy + handles headers with multiple values + sends request body + binds local socket sends url encoded nested parameters supports timeout option + represents empty body response as blank string handles connection error - sends user agent - handles proxy failures - handles headers with multiple values retrieves the response headers + handles proxy failures + supports open_timeout option + handles requests with proxy + parses the reason phrase + with parallel setup + handles parallel requests body + handles parallel requests status #options behaves like a request method + parses the reason phrase + supports open_timeout option + handles headers with multiple values + sends user agent + sends url encoded nested parameters + handles requests with proxy + handles connection error + sends request body supports timeout option - handles proxy failures + retrieves the response body retrieves the response headers - sends url encoded parameters represents empty body response as blank string - handles requests with proxy + handles proxy failures + sends url encoded parameters + binds local socket + with parallel setup + handles parallel requests status + handles parallel requests body + #head + behaves like a request method supports open_timeout option + binds local socket + handles proxy failures sends user agent + sends url encoded parameters handles headers with multiple values + sends request body + retrieves the response headers + parses the reason phrase sends url encoded nested parameters - retrieves the response body + represents empty body response as blank string + handles requests with proxy + supports timeout option handles connection error - sends request body - #post + with parallel setup + handles parallel requests status + #put behaves like a request method - handles headers with multiple values - retrieves the response body - sends url encoded parameters handles connection error - sends files - supports open_timeout option sends user agent + sends request body + supports timeout option + binds local socket + sends files + handles headers with multiple values + handles proxy failures represents empty body response as blank string + supports open_timeout option + sends url encoded nested parameters + sends url encoded parameters retrieves the response headers - handles proxy failures - supports timeout option handles requests with proxy - sends request body - sends url encoded nested parameters - #get + parses the reason phrase + retrieves the response body + with parallel setup + handles parallel requests status + handles parallel requests body + with SSL disabled + #patch behaves like a request method - supports timeout option handles headers with multiple values sends url encoded nested parameters + parses the reason phrase + binds local socket handles proxy failures - handles connection error - supports open_timeout option sends user agent + represents empty body response as blank string sends url encoded parameters + sends files retrieves the response headers handles requests with proxy - represents empty body response as blank string - retrieves the response body + supports open_timeout option + handles connection error sends request body - with SSL disabled + retrieves the response body + supports timeout option + with parallel setup + handles parallel requests body + handles parallel requests status #options behaves like a request method - sends request body - supports timeout option - handles proxy failures handles headers with multiple values - sends user agent - supports open_timeout option handles connection error - sends url encoded parameters + retrieves the response headers retrieves the response body handles requests with proxy - represents empty body response as blank string - retrieves the response headers + supports open_timeout option sends url encoded nested parameters + represents empty body response as blank string + sends url encoded parameters + sends user agent + binds local socket + sends request body + parses the reason phrase + handles proxy failures + supports timeout option + with parallel setup + handles parallel requests body + handles parallel requests status #post behaves like a request method - retrieves the response body - handles connection error - sends request body - sends url encoded nested parameters + supports open_timeout option sends files - sends url encoded parameters + supports timeout option + retrieves the response body + handles requests with proxy handles headers with multiple values + sends url encoded nested parameters + binds local socket represents empty body response as blank string - handles requests with proxy + parses the reason phrase sends user agent + retrieves the response headers + sends url encoded parameters + sends request body handles proxy failures + handles connection error + with parallel setup + handles parallel requests body + handles parallel requests status + #head + behaves like a request method + handles proxy failures + handles connection error supports open_timeout option + sends url encoded parameters + parses the reason phrase + sends request body supports timeout option + binds local socket retrieves the response headers - #get - behaves like a request method - supports open_timeout option + sends user agent handles headers with multiple values - retrieves the response headers - handles connection error - retrieves the response body - supports timeout option + sends url encoded nested parameters + handles requests with proxy represents empty body response as blank string + with parallel setup + handles parallel requests status + #get + behaves like a request method sends url encoded nested parameters - sends request body + supports timeout option sends user agent - handles requests with proxy + represents empty body response as blank string handles proxy failures sends url encoded parameters + handles headers with multiple values + sends request body + handles connection error + binds local socket + retrieves the response headers + retrieves the response body + handles requests with proxy + supports open_timeout option + parses the reason phrase + with parallel setup + handles parallel requests status + handles parallel requests body #put behaves like a request method - handles headers with multiple values + handles connection error supports timeout option + sends url encoded parameters + sends files + sends user agent + binds local socket + handles headers with multiple values handles requests with proxy + retrieves the response body represents empty body response as blank string + supports open_timeout option + handles proxy failures retrieves the response headers - handles connection error + parses the reason phrase sends request body - supports open_timeout option sends url encoded nested parameters - handles proxy failures - sends url encoded parameters - sends user agent - sends files - retrieves the response body + with parallel setup + handles parallel requests body + handles parallel requests status #delete behaves like a request method + handles proxy failures + supports timeout option + retrieves the response body + handles requests with proxy + retrieves the response headers handles connection error - handles headers with multiple values sends url encoded nested parameters - sends user agent - retrieves the response headers - represents empty body response as blank string supports open_timeout option - handles requests with proxy + parses the reason phrase + sends user agent + handles headers with multiple values sends request body - supports timeout option - handles proxy failures - retrieves the response body + binds local socket + represents empty body response as blank string sends url encoded parameters + with parallel setup + handles parallel requests body + handles parallel requests status + +Faraday::Response::RaiseError + raises Faraday::ResourceNotFound for 404 responses + raises Faraday::ProxyAuthError for 407 responses + raises Faraday::NilStatusError for nil status in response + raises Faraday::ClientError for other 4xx responses + raises Faraday::UnprocessableEntityError for 422 responses + raises Faraday::ConflictError for 409 responses + raises Faraday::ForbiddenError for 403 responses + raises Faraday::UnauthorizedError for 401 responses + raises Faraday::ServerError for 500 responses + raises no exception for 200 responses + raises Faraday::BadRequestError for 400 responses + request info + returns the request info in the exception + +Faraday::AdapterRegistry + #initialize + caches lookups with implicit name + is expected to raise NameError + looks up class by symbol name + is expected to raise NameError + caches lookups with explicit name + looks up class by string name + +Faraday::RequestOptions + allows to set the request proxy + +Faraday::RackBuilder + with default stack + is expected to eq Faraday::Adapter::NetHttp + is expected to eq Faraday::Request::UrlEncoded + with custom empty block + is expected to eq Faraday::Adapter::NetHttp + is expected to be nil + when a plain adapter is added with named arguments + adds a handler to construct adapter with options passed to adapter + when a response adapter is added with named arguments + adds a handler to construct response adapter with options passed to response + when having a handler with broken dependency + raises an error while making a request + with custom registered middleware + allows to register with constant + allows to register with symbol + allows to register with Proc + allows to register with string + when having two handlers + allows insert_before + allows insert_after + allows to delete a handler + allows to swap handlers + 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 swap + adds a handler to construct adapter with options passed to insert + adds a handler with options passed to insert_after + with custom handler and adapter + locks the stack after making a request + allows to compare handlers + dup stack is unlocked + 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 + when having a single handler + is expected to eq [Apple] + allows insert_after + raises an error trying to use an unregistered symbol + allows rebuilding + allows insert_before + allows use + +Faraday::Utils + URI parsing + parses with default parser + parses with URI + parses with block + replaces headers hash + escapes safe buffer + headers parsing + parse headers for aggregated responses + +Faraday::Utils::Headers + 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" + when Content-Type is set to application/json + is expected to eq ["Content-Type"] + is expected to eq "application/json" + is expected to eq "application/json" + is expected to include "content-type" + is expected to eq "application/json" + #parse + when response headers values include a colon + is expected to eq "http://sushi.com/" + when response headers include a blank line + is expected to eq "text/html" + when response headers leave http status line out + is expected to eq ["Content-Type"] + is expected to eq "text/html" + is expected to eq "text/html" + #delete + is expected to eq 0 + is expected to eq "application/json" + is expected to be nil + is expected not to include "content-type" + #fetch + is expected to be nil + is expected to eq "application/json" + raises an error if key not found + is expected to eq "Invalid key" + calls a block when provided + is expected to eq "application/json" + is expected to eq "application/json" + is expected to eq "default" + is expected to eq false + +Faraday + has a version number + proxies to default_connection + uses method_missing on Faraday if there is no proxyable method + proxied methods can be accessed + proxies methods that exist on the default_connection + +Faraday::FlatParamsEncoder + encodes empty array in hash + encodes boolean values + encodes unsorted when asked + decodes arrays + decodes boolean values + encodes boolean values in array + behaves like a params encoder + raises type error for empty string + escapes safe buffer + encodes nil + +Faraday::Middleware + #close + with app that supports #close + should issue warning + with app that doesn't support #close + should issue warning + +Faraday::Adapter::Rack + behaves like an adapter + with SSL enabled #head behaves like a request method - sends request body - handles connection error - handles headers with multiple values - handles proxy failures sends user agent + sends url encoded parameters handles requests with proxy sends url encoded nested parameters supports timeout option - retrieves the response headers - represents empty body response as blank string - supports open_timeout option - sends url encoded parameters - #patch - behaves like a request method - retrieves the response body - sends url encoded nested parameters - handles requests with proxy - handles headers with multiple values - sends files handles proxy failures + handles headers with multiple values + sends request body handles connection error - supports open_timeout option - sends url encoded parameters represents empty body response as blank string - sends request body - supports timeout option - sends user agent + supports open_timeout option retrieves the response headers - #trace + #options behaves like a request method - handles requests with proxy handles proxy failures - supports open_timeout option - handles connection error - sends url encoded parameters sends user agent - supports timeout option - sends request body sends url encoded nested parameters - handles headers with multiple values + sends request body + sends url encoded parameters represents empty body response as blank string retrieves the response headers + supports open_timeout option retrieves the response body - -Faraday::Adapter::Excon - allows to provide adapter specific configs - config - sets timeout - sets open_timeout - sets timeout and open_timeout - behaves like an adapter - with SSL enabled - #patch - behaves like a request method - sends files + handles headers with multiple values supports timeout option handles requests with proxy - sends user agent handles connection error - parses the reason phrase + #get + behaves like a request method + represents empty body response as blank string + handles requests with proxy + supports timeout option handles proxy failures - sends url encoded nested parameters - sends url encoded parameters - supports open_timeout option + handles connection error sends request body retrieves the response headers + sends user agent retrieves the response body + sends url encoded nested parameters + sends url encoded parameters + supports open_timeout option handles headers with multiple values - represents empty body response as blank string - #options + #post behaves like a request method - handles headers with multiple values - handles requests with proxy + handles proxy failures sends request body sends url encoded parameters - sends url encoded nested parameters + handles headers with multiple values + supports timeout option retrieves the response headers + sends url encoded nested parameters + retrieves the response body + sends files + represents empty body response as blank string supports open_timeout option - handles proxy failures + handles requests with proxy handles connection error - represents empty body response as blank string - retrieves the response body sends user agent - parses the reason phrase - supports timeout option - #post + #patch behaves like a request method - handles proxy failures - handles headers with multiple values - retrieves the response body - sends url encoded parameters - handles requests with proxy - represents empty body response as blank string + supports timeout option sends url encoded nested parameters - handles connection error - sends files - parses the reason phrase retrieves the response headers sends user agent - supports open_timeout option - sends request body - supports timeout option - #delete - behaves like a request method - handles proxy failures + represents empty body response as blank string + sends files sends request body - sends url encoded parameters retrieves the response body - represents empty body response as blank string handles headers with multiple values - retrieves the response headers - sends user agent - sends url encoded nested parameters - supports timeout option + handles requests with proxy + handles proxy failures supports open_timeout option + sends url encoded parameters handles connection error - parses the reason phrase - handles requests with proxy - #get + #trace behaves like a request method - represents empty body response as blank string - supports open_timeout option sends url encoded nested parameters + supports open_timeout option + represents empty body response as blank string handles requests with proxy - retrieves the response body - handles headers with multiple values + supports timeout option + sends user agent sends url encoded parameters + handles connection error + handles headers with multiple values handles proxy failures - sends request body retrieves the response headers - sends user agent - supports timeout option - parses the reason phrase - handles connection error - #head + sends request body + retrieves the response body + #delete behaves like a request method + retrieves the response headers + handles proxy failures + represents empty body response as blank string handles requests with proxy supports open_timeout option - parses the reason phrase - sends user agent - handles proxy failures - retrieves the response body - sends request body - sends url encoded parameters supports timeout option + handles connection error handles headers with multiple values - represents empty body response as blank string sends url encoded nested parameters - retrieves the response headers - handles connection error + sends request body + sends url encoded parameters + retrieves the response body + sends user agent #put behaves like a request method + sends files handles headers with multiple values - handles connection error + handles requests with proxy + represents empty body response as blank string supports open_timeout option - retrieves the response body - sends url encoded nested parameters sends url encoded parameters + sends url encoded nested parameters + handles connection error sends request body retrieves the response headers - parses the reason phrase - sends user agent - represents empty body response as blank string supports timeout option - handles requests with proxy - sends files handles proxy failures - #trace - behaves like a request method - supports timeout option - sends url encoded parameters - supports open_timeout option - handles connection error - represents empty body response as blank string sends user agent - sends request body - retrieves the response headers - sends url encoded nested parameters - handles requests with proxy - handles proxy failures - handles headers with multiple values retrieves the response body - parses the reason phrase with SSL disabled #head behaves like a request method sends url encoded parameters - handles headers with multiple values represents empty body response as blank string - handles proxy failures - sends url encoded nested parameters - retrieves the response body + sends user agent supports open_timeout option - handles connection error - parses the reason phrase + sends url encoded nested parameters + handles headers with multiple values + handles proxy failures sends request body + handles connection error supports timeout option - sends user agent - retrieves the response headers handles requests with proxy - #post + retrieves the response headers + #trace behaves like a request method handles proxy failures sends request body - retrieves the response body + sends url encoded nested parameters sends user agent - handles headers with multiple values + retrieves the response headers + represents empty body response as blank string + supports timeout option handles requests with proxy handles connection error - sends url encoded nested parameters + handles headers with multiple values + retrieves the response body supports open_timeout option - represents empty body response as blank string sends url encoded parameters + #patch + behaves like a request method + supports open_timeout option + handles headers with multiple values + represents empty body response as blank string supports timeout option + handles proxy failures + handles connection error + sends request body retrieves the response headers + handles requests with proxy + retrieves the response body + sends url encoded parameters + sends user agent + sends url encoded nested parameters sends files - parses the reason phrase - #trace + #options behaves like a request method - handles requests with proxy - retrieves the response headers - represents empty body response as blank string handles proxy failures + retrieves the response body handles headers with multiple values supports timeout option sends url encoded nested parameters + supports open_timeout option + sends user agent + handles requests with proxy sends url encoded parameters + retrieves the response headers + represents empty body response as blank string sends request body - retrieves the response body - sends user agent - supports open_timeout option handles connection error - parses the reason phrase - #put + #get behaves like a request method sends url encoded nested parameters - supports timeout option - handles connection error - supports open_timeout option - parses the reason phrase - sends request body retrieves the response body + supports timeout option handles proxy failures - sends files - handles headers with multiple values - sends user agent + handles connection error + handles requests with proxy sends url encoded parameters + sends user agent + handles headers with multiple values represents empty body response as blank string - handles requests with proxy retrieves the response headers + supports open_timeout option + sends request body #delete behaves like a request method + represents empty body response as blank string + sends request body handles connection error - sends user agent - retrieves the response headers sends url encoded nested parameters - handles headers with multiple values + supports timeout option + handles requests with proxy + sends user agent sends url encoded parameters retrieves the response body - parses the reason phrase - handles requests with proxy + handles headers with multiple values supports open_timeout option - represents empty body response as blank string - sends request body - supports timeout option + retrieves the response headers handles proxy failures - #get + #put behaves like a request method + retrieves the response headers supports open_timeout option - parses the reason phrase handles proxy failures - handles headers with multiple values - sends url encoded nested parameters - sends url encoded parameters - retrieves the response headers - sends user agent - supports timeout option - retrieves the response body represents empty body response as blank string - handles connection error + sends user agent handles requests with proxy - sends request body - #patch - behaves like a request method - supports timeout option sends url encoded nested parameters sends request body - handles requests with proxy - sends user agent - retrieves the response headers - sends url encoded parameters - handles proxy failures - sends files - parses the reason phrase - retrieves the response body handles headers with multiple values handles connection error - supports open_timeout option - represents empty body response as blank string - #options + retrieves the response body + supports timeout option + sends files + sends url encoded parameters + #post behaves like a request method - supports open_timeout option + handles proxy failures sends request body - sends url encoded nested parameters - retrieves the response headers - parses the reason phrase - handles connection error - sends user agent supports timeout option - represents empty body response as blank string + supports open_timeout option sends url encoded parameters - handles headers with multiple values - handles proxy failures + handles connection error + sends url encoded nested parameters handles requests with proxy retrieves the response body + retrieves the response headers + sends user agent + sends files + handles headers with multiple values + represents empty body response as blank string -Faraday::Adapter - #request_timeout - attempts unknown timeout type - gets :read timeout - gets :open timeout - gets :write timeout +Faraday::ProxyOptions + allows hash access + #from + works with nil + works with string + works with no auth -Faraday::Adapter::EMSynchrony - allows to provide adapter specific configs +Faraday::Adapter::Typhoeus behaves like an adapter with SSL enabled - #options + #put behaves like a request method - sends url encoded nested parameters - represents empty body response as blank string - sends request body retrieves the response headers - binds local socket + sends files + handles connection error + retrieves the response body supports timeout option supports open_timeout option + represents empty body response as blank string + handles proxy failures handles headers with multiple values sends url encoded parameters - handles connection error - parses the reason phrase + sends request body handles requests with proxy - handles proxy failures sends user agent - retrieves the response body + sends url encoded nested parameters with parallel setup handles parallel requests status handles parallel requests body #delete behaves like a request method - supports open_timeout option - parses the reason phrase sends request body - sends user agent - binds local socket - retrieves the response headers represents empty body response as blank string - handles connection error + handles requests with proxy + handles proxy failures sends url encoded parameters handles headers with multiple values - retrieves the response body + sends url encoded nested parameters + sends user agent + handles connection error + retrieves the response headers supports timeout option + retrieves the response body + supports open_timeout option + with parallel setup + handles parallel requests body + handles parallel requests status + #trace + behaves like a request method handles requests with proxy + sends request body + supports timeout option + handles connection error handles proxy failures + sends url encoded parameters + retrieves the response headers + represents empty body response as blank string sends url encoded nested parameters + handles headers with multiple values + sends user agent + retrieves the response body + supports open_timeout option with parallel setup handles parallel requests body handles parallel requests status #post behaves like a request method - parses the reason phrase - retrieves the response headers - retrieves the response body - sends user agent - supports open_timeout option represents empty body response as blank string - handles proxy failures - sends url encoded parameters handles headers with multiple values + handles proxy failures + sends request body handles requests with proxy + sends user agent + sends url encoded nested parameters + retrieves the response body supports timeout option + retrieves the response headers sends files + sends url encoded parameters handles connection error - binds local socket + supports open_timeout option + with parallel setup + handles parallel requests body + handles parallel requests status + #patch + behaves like a request method + handles requests with proxy + sends url encoded parameters + supports open_timeout option + retrieves the response body + handles headers with multiple values + sends files + handles proxy failures + handles connection error + represents empty body response as blank string + retrieves the response headers sends request body + sends user agent + supports timeout option sends url encoded nested parameters with parallel setup handles parallel requests status handles parallel requests body #get behaves like a request method - sends request body - retrieves the response headers handles connection error - sends url encoded parameters represents empty body response as blank string - binds local socket + sends url encoded nested parameters handles headers with multiple values - supports open_timeout option - handles requests with proxy + sends request body supports timeout option - sends url encoded nested parameters + retrieves the response body + retrieves the response headers sends user agent + sends url encoded parameters + handles requests with proxy handles proxy failures - parses the reason phrase - retrieves the response body + supports open_timeout option with parallel setup handles parallel requests body handles parallel requests status - #patch + #head behaves like a request method supports open_timeout option - handles connection error - sends files handles proxy failures - binds local socket - handles requests with proxy + sends url encoded nested parameters + handles headers with multiple values + sends request body + represents empty body response as blank string + supports timeout option sends url encoded parameters + handles requests with proxy + retrieves the response headers retrieves the response body - parses the reason phrase - sends request body + handles connection error sends user agent + with parallel setup + handles parallel requests status + handles parallel requests body + #options + behaves like a request method + retrieves the response body + sends url encoded parameters + sends request body supports timeout option + handles requests with proxy + represents empty body response as blank string + sends user agent handles headers with multiple values + handles proxy failures retrieves the response headers + handles connection error + supports open_timeout option sends url encoded nested parameters - represents empty body response as blank string with parallel setup handles parallel requests body handles parallel requests status - #put + with SSL disabled + #get behaves like a request method - handles headers with multiple values - parses the reason phrase - sends files - supports open_timeout option - represents empty body response as blank string - retrieves the response body - supports timeout option - sends url encoded nested parameters - binds local socket + handles proxy failures handles requests with proxy - sends url encoded parameters + supports timeout option handles connection error + sends url encoded nested parameters sends request body - sends user agent + sends url encoded parameters + represents empty body response as blank string retrieves the response headers - handles proxy failures + sends user agent + handles headers with multiple values + retrieves the response body + supports open_timeout option with parallel setup handles parallel requests status handles parallel requests body - #head + #trace behaves like a request method - binds local socket - represents empty body response as blank string - sends user agent - supports timeout option - handles proxy failures - sends url encoded parameters + supports open_timeout option handles connection error + represents empty body response as blank string sends url encoded nested parameters - supports open_timeout option handles headers with multiple values - parses the reason phrase - sends request body + retrieves the response body + handles proxy failures retrieves the response headers handles requests with proxy + sends request body + supports timeout option + sends url encoded parameters + sends user agent with parallel setup + handles parallel requests body handles parallel requests status - with SSL disabled #head behaves like a request method - handles headers with multiple values + sends url encoded parameters + supports timeout option + sends request body handles connection error - handles requests with proxy retrieves the response headers sends url encoded nested parameters - binds local socket handles proxy failures - sends url encoded parameters - supports open_timeout option - parses the reason phrase sends user agent - sends request body represents empty body response as blank string - supports timeout option + retrieves the response body + supports open_timeout option + handles requests with proxy + handles headers with multiple values with parallel setup + handles parallel requests body handles parallel requests status - #put + #options behaves like a request method - sends url encoded nested parameters - parses the reason phrase - binds local socket + supports open_timeout option handles proxy failures + sends url encoded nested parameters + handles headers with multiple values + sends user agent + sends request body supports timeout option - handles requests with proxy + retrieves the response body retrieves the response headers + handles requests with proxy + sends url encoded parameters represents empty body response as blank string - supports open_timeout option - sends user agent handles connection error - sends url encoded parameters - sends request body - handles headers with multiple values - sends files - retrieves the response body with parallel setup handles parallel requests status handles parallel requests body - #get + #delete behaves like a request method - handles headers with multiple values - handles connection error - retrieves the response headers - parses the reason phrase - handles requests with proxy + sends user agent + sends url encoded nested parameters + supports open_timeout option handles proxy failures represents empty body response as blank string - supports open_timeout option - sends url encoded nested parameters - sends url encoded parameters + handles headers with multiple values + retrieves the response headers supports timeout option - sends user agent retrieves the response body + handles connection error sends request body - binds local socket + handles requests with proxy + sends url encoded parameters with parallel setup handles parallel requests body handles parallel requests status - #post + #put behaves like a request method - handles connection error - sends user agent - retrieves the response headers - handles proxy failures + supports timeout option sends files - sends url encoded parameters - binds local socket sends url encoded nested parameters - sends request body - handles headers with multiple values + sends url encoded parameters handles requests with proxy + sends user agent + sends request body retrieves the response body represents empty body response as blank string - parses the reason phrase - supports timeout option + retrieves the response headers + handles connection error + handles proxy failures supports open_timeout option + handles headers with multiple values with parallel setup handles parallel requests body handles parallel requests status - #patch + #post behaves like a request method - handles connection error - sends request body - binds local socket - sends files - handles headers with multiple values - sends url encoded parameters - sends url encoded nested parameters supports open_timeout option - supports timeout option - represents empty body response as blank string - retrieves the response body - retrieves the response headers - parses the reason phrase - sends user agent - handles proxy failures - handles requests with proxy - with parallel setup - handles parallel requests status - handles parallel requests body - #options - behaves like a request method handles headers with multiple values - sends url encoded parameters supports timeout option retrieves the response body handles requests with proxy represents empty body response as blank string - parses the reason phrase + sends url encoded parameters handles proxy failures retrieves the response headers - binds local socket - supports open_timeout option - sends url encoded nested parameters - sends request body handles connection error + sends request body + sends url encoded nested parameters sends user agent + sends files with parallel setup - handles parallel requests status handles parallel requests body - #delete + handles parallel requests status + #patch behaves like a request method - supports timeout option - parses the reason phrase - handles requests with proxy - sends url encoded parameters - retrieves the response body - sends request body sends user agent - represents empty body response as blank string - supports open_timeout option - retrieves the response headers sends url encoded nested parameters - binds local socket + handles connection error handles headers with multiple values + retrieves the response body + supports open_timeout option + supports timeout option + sends files + represents empty body response as blank string handles proxy failures - handles connection error + handles requests with proxy + retrieves the response headers + sends url encoded parameters + sends request body with parallel setup - handles parallel requests body handles parallel requests status + handles parallel requests body -Faraday::Request::Retry - retry_if option - UploadIO: should rewind files on retry - FilePart: should rewind files on retry - does not retry if retry_if block returns false checking env - does not retry if retry_if block returns false checking exception - 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 - retry_after header support - 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 - when retry_after bigger than interval - is expected to be > 0.5 - when retry_after is a timestamp - is expected to be > 1 - when no exception raised - and response code is in retry_statuses - is expected to eq 2 - and response code is not in retry_statuses - is expected to eq 1 - when method is not idempotent - is expected to eq 1 - #calculate_retry_interval - with exponential backoff and max_interval - is expected to eq 0.2 - is expected to eq 0.3 - is expected to eq 0.3 - is expected to eq 0.1 - with exponential backoff and interval_randomness - is expected to be between 0.1 and 0.15 (inclusive) - with exponential backoff - is expected to eq 0.2 - is expected to eq 0.4 - is expected to eq 0.1 - when an expected error happens - is expected to eq 3 - and legacy max_retry set to -9 - is expected to eq 1 - and both max_retry and interval are set - is expected to be within 0.04 of 0.2 - and new max_retry set to 3 - is expected to eq 4 - and legacy max_retry set to 1 - is expected to eq 2 - and new max_retry set to -9 - is expected to eq 1 - when an unexpected error happens - is expected to eq 1 - and this is passed as a custom exception - is expected to eq 3 - -Faraday::AdapterRegistry - #initialize - is expected to raise NameError - is expected to raise NameError - caches lookups with implicit name - caches lookups with explicit name - looks up class by string name - looks up class by symbol name +Faraday::Adapter + #request_timeout + gets :write timeout + attempts unknown timeout type + gets :open timeout + gets :read timeout Faraday::Adapter::Test + with http headers + with header + is expected to eq "a" + without header + is expected to eq "b" can handle single parameter block is expected to eq "get" - ignoring unspecified get params - with single param - is expected to eq "a" - without params - is expected to raise Faraday::Adapter::Test::Stubs::NotFound - with multiple params - is expected to eq "a" - with simple path sets headers - is expected to eq "text/html" + yielding env to stubs + is expected to eq "a" can be called several times is expected to eq "hello" - can handle regular expression path - is expected to eq "show" with get params is expected to eq "a" + different outcomes for the same request + the second request + is expected to eq "world" + the first request + is expected to eq "hello" + 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" raising an error if no stub was found + for request without specified header + is expected to raise Faraday::Adapter::Test::Stubs::NotFound 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 - with http headers - with header + ignoring unspecified get params + with single param is expected to eq "a" - without header - is expected to eq "b" + with multiple params + is expected to eq "a" + without params + is expected to raise Faraday::Adapter::Test::Stubs::NotFound + can handle regular expression path + is expected to eq "show" + with simple path sets headers + is expected to eq "text/html" + with simple path sets status + is expected to eq 200 + 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" - with simple path sets body - is expected to eq "hello" - can handle regular expression path with captured result - is expected to eq "show specified" - different outcomes for the same request - the first request - is expected to eq "hello" - the second request - is expected to eq "world" - with simple path sets status - is expected to eq 200 - with host points to the right stub - is expected to eq "domain: hello" - yielding env to stubs - is expected to eq "a" - -Faraday::RackBuilder - with custom registered middleware - allows to register with Proc - allows to register with constant - allows to register with symbol - allows to register with string - when a plain adapter is added with named arguments - adds a handler to construct adapter with options passed to adapter - with custom adapter only - is expected to eq Faraday::Adapter::Test - is expected to be nil - when a response adapter is added with named arguments - adds a handler to construct response adapter with options passed to response - when having a single handler - allows rebuilding - raises an error trying to use an unregistered symbol - is expected to eq [Apple] - allows insert_before - allows use - allows insert_after - with custom handler and adapter - locks the stack after making a request - dup stack is unlocked - allows to compare handlers - when a request adapter is added with named arguments - adds a handler to construct request adapter with options passed to request - with custom empty block - is expected to eq Faraday::Adapter::NetHttp - is expected to be nil - with default stack - is expected to eq Faraday::Adapter::NetHttp - is expected to eq Faraday::Request::UrlEncoded - when having a handler with broken dependency - raises an error while making a request - when having two handlers - allows insert_after - allows to swap handlers - allows insert_before - allows to delete a handler - when handlers are directly added or updated - adds a handler with options passed to swap - adds a handler to construct adapter with options passed to insert - adds a handler with options passed to insert_after - when middleware is added with named arguments - adds a handler to construct middleware with options passed to use - -Faraday::NestedParamsEncoder - decodes hashes - encodes boolean values - encodes rack compat - encodes empty string array value - encodes empty array value - decodes nested subkeys dont have to be in brackets - encodes boolean values in array - decodes arrays - encodes unsorted when asked - decodes nested arrays rack compat - decodes nested array mixed types - decodes nested final value overrides any type - decodes nested ignores repeated array notation - decodes nested ignores invalid array - decodes nested ignores malformed keys - encodes nil array value - when expecting hash but getting string - behaves like a wrong decoding - is expected to raise TypeError - when expecting array but getting string - behaves like a wrong decoding - is expected to raise TypeError - when expecting nested hash but getting non nested - behaves like a wrong decoding - is expected to raise TypeError - when expecting array but getting hash - behaves like a wrong decoding - is expected to raise TypeError - when expecting hash but getting array - behaves like a wrong decoding - is expected to raise TypeError - behaves like a params encoder - raises type error for empty string - encodes nil - escapes safe buffer - -Faraday::ClientError - .initialize - with string - is expected to eq "custom message" - is expected to eq "#>" - 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 be nil - is expected to eq {:status=>400} - is expected to eq "#400}>" - with anything else #to_s - is expected to be nil - is expected to eq "[\"error1\", \"error2\"]" - is expected to be nil - is expected to eq "#>" - with exception only - is expected to eq nil - is expected to be nil - is expected to eq "test" - is expected to eq "#>" - is expected to eq # + with flat encoder + is expected to eq "a" -Faraday::Adapter::NetHttpPersistent +Faraday::Adapter::Excon allows to provide adapter specific configs - allows to set pool_size on initialize - sets max_retries to 0 - min_version - allows to set min_version in SSL settings behaves like an adapter - with SSL enabled - #options + with SSL disabled + #post behaves like a request method - handles deflate compression - supports timeout option sends request body - parses the reason phrase - handles headers with multiple values - retrieves the response headers - represents empty body response as blank string - handles proxy failures - handles connection error - supports open_timeout option - sends url encoded parameters handles requests with proxy - sends url encoded nested parameters - sends user agent - retrieves the response body - handles gzip compression - #put - behaves like a request method - supports open_timeout option - retrieves the response body - handles requests with proxy - handles connection error - handles deflate compression represents empty body response as blank string - sends url encoded parameters - handles proxy failures - parses the reason phrase sends url encoded nested parameters - sends request body - handles gzip compression - sends user agent + supports open_timeout option sends files retrieves the response headers + retrieves the response body supports timeout option handles headers with multiple values - #trace - behaves like a request method - supports timeout option - handles gzip compression - retrieves the response body - sends request body - handles deflate compression - handles requests with proxy - sends user agent sends url encoded parameters - handles connection error - retrieves the response headers - sends url encoded nested parameters handles proxy failures - handles headers with multiple values - supports open_timeout option + handles connection error + sends user agent parses the reason phrase - represents empty body response as blank string - #post + #delete behaves like a request method - retrieves the response body - handles proxy failures - supports timeout option - sends url encoded nested parameters - sends files - handles headers with multiple values - handles requests with proxy - handles gzip compression - represents empty body response as blank string - handles deflate compression - parses the reason phrase sends url encoded parameters sends user agent - supports open_timeout option - sends request body - retrieves the response headers - handles connection error - #patch - behaves like a request method - handles gzip compression - retrieves the response headers - sends files handles headers with multiple values - parses the reason phrase - represents empty body response as blank string - handles proxy failures - supports open_timeout option handles requests with proxy supports timeout option sends url encoded nested parameters - sends url encoded parameters - handles deflate compression + handles connection error + represents empty body response as blank string sends request body + supports open_timeout option + retrieves the response headers retrieves the response body + handles proxy failures + parses the reason phrase + #patch + behaves like a request method + represents empty body response as blank string handles connection error sends user agent - #delete - behaves like a request method + handles proxy failures sends url encoded nested parameters - parses the reason phrase supports timeout option + parses the reason phrase supports open_timeout option - sends url encoded parameters + sends files handles headers with multiple values + sends request body + handles requests with proxy retrieves the response headers + sends url encoded parameters retrieves the response body + #get + behaves like a request method handles connection error + retrieves the response body + supports timeout option + parses the reason phrase + supports open_timeout option represents empty body response as blank string + sends url encoded parameters + sends url encoded nested parameters + handles requests with proxy + handles headers with multiple values sends user agent - handles deflate compression - handles gzip compression + retrieves the response headers sends request body handles proxy failures - handles requests with proxy - #get + #options behaves like a request method - sends request body - handles requests with proxy - parses the reason phrase + sends url encoded nested parameters retrieves the response body - handles gzip compression + retrieves the response headers sends url encoded parameters - supports timeout option handles proxy failures + handles connection error + supports timeout option supports open_timeout option - handles deflate compression - sends url encoded nested parameters + handles requests with proxy + represents empty body response as blank string + parses the reason phrase handles headers with multiple values - handles connection error + sends request body sends user agent - represents empty body response as blank string - retrieves the response headers #head behaves like a request method - parses the reason phrase - retrieves the response body sends url encoded parameters - handles connection error sends url encoded nested parameters + handles proxy failures + handles requests with proxy sends request body + handles connection error retrieves the response headers - handles requests with proxy - represents empty body response as blank string - supports timeout option - supports open_timeout option handles headers with multiple values - handles proxy failures + supports timeout option + parses the reason phrase sends user agent - with SSL disabled - #head + retrieves the response body + represents empty body response as blank string + supports open_timeout option + #trace behaves like a request method - handles headers with multiple values represents empty body response as blank string - sends request body + sends url encoded parameters + retrieves the response headers + retrieves the response body + handles headers with multiple values + supports open_timeout option + handles requests with proxy supports timeout option sends url encoded nested parameters - retrieves the response headers + handles connection error + parses the reason phrase sends user agent + handles proxy failures + sends request body + #put + behaves like a request method + retrieves the response headers supports open_timeout option + retrieves the response body handles connection error + sends request body + sends url encoded nested parameters + supports timeout option + parses the reason phrase + represents empty body response as blank string + sends files + handles headers with multiple values sends url encoded parameters handles requests with proxy - retrieves the response body - parses the reason phrase handles proxy failures + sends user agent + with SSL enabled #put behaves like a request method - handles proxy failures - handles headers with multiple values + handles connection error retrieves the response headers - sends request body - parses the reason phrase + sends url encoded nested parameters sends files represents empty body response as blank string - supports timeout option + handles proxy failures + supports open_timeout option sends user agent - handles requests with proxy - handles gzip compression sends url encoded parameters - handles deflate compression - handles connection error + handles headers with multiple values + handles requests with proxy + sends request body + supports timeout option retrieves the response body - supports open_timeout option - sends url encoded nested parameters - #options + parses the reason phrase + #get behaves like a request method + handles proxy failures + parses the reason phrase + sends url encoded parameters sends request body + handles connection error retrieves the response body sends url encoded nested parameters sends user agent supports timeout option - handles headers with multiple values - handles deflate compression - handles gzip compression - sends url encoded parameters - retrieves the response headers - handles connection error - handles requests with proxy - supports open_timeout option - parses the reason phrase represents empty body response as blank string - handles proxy failures - #delete - behaves like a request method - handles proxy failures retrieves the response headers - handles deflate compression + handles headers with multiple values + supports open_timeout option handles requests with proxy + #head + behaves like a request method + handles connection error + sends request body supports open_timeout option - retrieves the response body supports timeout option - represents empty body response as blank string - handles gzip compression + sends user agent + retrieves the response headers + handles proxy failures + handles requests with proxy + parses the reason phrase handles headers with multiple values - sends url encoded nested parameters - sends request body + represents empty body response as blank string + retrieves the response body sends url encoded parameters - parses the reason phrase - handles connection error - sends user agent - #get + sends url encoded nested parameters + #patch behaves like a request method sends user agent + sends url encoded nested parameters + handles connection error + parses the reason phrase + handles requests with proxy + sends files + handles headers with multiple values represents empty body response as blank string - retrieves the response body + sends url encoded parameters retrieves the response headers - parses the reason phrase + retrieves the response body supports timeout option - handles deflate compression - handles requests with proxy - handles connection error supports open_timeout option - sends url encoded parameters - handles headers with multiple values handles proxy failures - sends url encoded nested parameters sends request body - handles gzip compression - #patch + #options behaves like a request method - handles requests with proxy - handles gzip compression - sends request body - retrieves the response headers - sends files - handles proxy failures - handles deflate compression - supports open_timeout option supports timeout option - handles headers with multiple values + supports open_timeout option + handles connection error + retrieves the response headers + sends user agent sends url encoded nested parameters + sends url encoded parameters + handles proxy failures retrieves the response body + handles headers with multiple values + handles requests with proxy parses the reason phrase - sends url encoded parameters - handles connection error - sends user agent represents empty body response as blank string + sends request body #trace behaves like a request method + handles requests with proxy + parses the reason phrase sends url encoded nested parameters - sends user agent supports open_timeout option - sends request body - handles headers with multiple values handles proxy failures + sends request body represents empty body response as blank string - parses the reason phrase - handles requests with proxy - retrieves the response headers - handles gzip compression - handles deflate compression supports timeout option - retrieves the response body handles connection error sends url encoded parameters + sends user agent + handles headers with multiple values + retrieves the response headers + retrieves the response body #post behaves like a request method + represents empty body response as blank string + sends url encoded parameters + supports timeout option + sends files + supports open_timeout option + retrieves the response body + parses the reason phrase sends url encoded nested parameters + retrieves the response headers + sends request body + handles requests with proxy handles proxy failures - supports open_timeout option - handles gzip compression - represents empty body response as blank string + handles connection error + sends user agent handles headers with multiple values - retrieves the response headers - retrieves the response body - sends files + #delete + behaves like a request method parses the reason phrase - handles deflate compression - supports timeout option sends url encoded parameters - handles requests with proxy - sends request body + represents empty body response as blank string + handles headers with multiple values sends user agent handles connection error + retrieves the response body + supports open_timeout option + handles requests with proxy + sends request body + handles proxy failures + supports timeout option + sends url encoded nested parameters + retrieves the response headers + config + sets timeout and open_timeout + sets open_timeout + sets timeout Faraday::Adapter::HTTPClient allows to provide adapter specific configs + Options + configures timeout + configures multiple timeouts + configures open timeout behaves like an adapter - with SSL disabled - #put + with SSL enabled + #patch behaves like a request method + handles headers with multiple values + sends files sends user agent - sends request body binds local socket + represents empty body response as blank string + handles connection error sends url encoded nested parameters - handles requests with proxy + retrieves the response headers + parses the reason phrase handles deflate compression - handles proxy failures + sends request body + supports timeout option sends url encoded parameters - handles connection error + handles proxy failures + supports open_timeout option handles gzip compression - retrieves the response headers - supports timeout option - handles headers with multiple values retrieves the response body - parses the reason phrase - supports open_timeout option - sends files - represents empty body response as blank string - #get + handles requests with proxy + #delete behaves like a request method - parses the reason phrase + binds local socket + sends request body + sends url encoded parameters + handles headers with multiple values retrieves the response headers - handles gzip compression - sends user agent - supports open_timeout option handles proxy failures - binds local socket handles requests with proxy - sends url encoded parameters - sends request body - represents empty body response as blank string - handles deflate compression - retrieves the response body + supports open_timeout option + handles gzip compression + parses the reason phrase sends url encoded nested parameters supports timeout option handles connection error - handles headers with multiple values - #post + retrieves the response body + sends user agent + represents empty body response as blank string + handles deflate compression + #head behaves like a request method - sends files - retrieves the response headers - handles connection error - parses the reason phrase - handles requests with proxy - handles headers with multiple values - handles gzip compression sends request body - handles proxy failures - handles deflate compression supports timeout option + handles proxy failures retrieves the response body - binds local socket + handles connection error + handles headers with multiple values + supports open_timeout option sends user agent + handles requests with proxy sends url encoded nested parameters sends url encoded parameters represents empty body response as blank string - supports open_timeout option - #delete + parses the reason phrase + retrieves the response headers + binds local socket + #trace behaves like a request method handles requests with proxy + retrieves the response headers + sends request body + sends url encoded parameters + parses the reason phrase + retrieves the response body + handles headers with multiple values + supports timeout option + binds local socket + sends user agent + sends url encoded nested parameters + handles proxy failures handles deflate compression handles connection error + handles gzip compression supports open_timeout option - sends url encoded nested parameters - sends user agent - handles headers with multiple values - binds local socket represents empty body response as blank string - retrieves the response body + #post + behaves like a request method + sends url encoded nested parameters sends request body - supports timeout option - sends url encoded parameters - handles gzip compression parses the reason phrase + handles connection error + handles requests with proxy + supports open_timeout option handles proxy failures + represents empty body response as blank string + handles headers with multiple values + sends files + supports timeout option retrieves the response headers - #options - behaves like a request method - handles proxy failures binds local socket - sends request body - retrieves the response headers - sends user agent + handles deflate compression retrieves the response body - handles connection error - represents empty body response as blank string - supports timeout option - handles headers with multiple values sends url encoded parameters - supports open_timeout option - handles deflate compression - parses the reason phrase + sends user agent handles gzip compression - handles requests with proxy - sends url encoded nested parameters - #head + #options behaves like a request method - handles connection error handles requests with proxy - handles headers with multiple values + handles gzip compression + supports timeout option + retrieves the response body sends request body - handles proxy failures represents empty body response as blank string + sends url encoded parameters sends url encoded nested parameters - sends user agent parses the reason phrase - binds local socket supports open_timeout option - retrieves the response body - sends url encoded parameters + handles connection error + binds local socket + handles headers with multiple values retrieves the response headers - supports timeout option - #patch + sends user agent + handles proxy failures + handles deflate compression + #get behaves like a request method + handles headers with multiple values + retrieves the response headers + handles deflate compression + sends url encoded nested parameters + binds local socket + represents empty body response as blank string + parses the reason phrase + handles requests with proxy retrieves the response body sends request body + handles connection error sends user agent - retrieves the response headers - sends url encoded nested parameters + handles gzip compression + sends url encoded parameters supports open_timeout option handles proxy failures - represents empty body response as blank string - sends url encoded parameters - handles headers with multiple values + supports timeout option + #put + behaves like a request method handles connection error - handles gzip compression + sends request body + binds local socket + parses the reason phrase + handles proxy failures + sends url encoded nested parameters handles deflate compression + handles gzip compression + retrieves the response body supports timeout option + supports open_timeout option + retrieves the response headers + handles headers with multiple values handles requests with proxy - parses the reason phrase - sends files - binds local socket - #trace - behaves like a request method sends user agent - handles proxy failures - handles connection error + sends files sends url encoded parameters - handles gzip compression represents empty body response as blank string - supports timeout option - handles requests with proxy - sends request body + with SSL disabled + #delete + behaves like a request method sends url encoded nested parameters + binds local socket parses the reason phrase - handles headers with multiple values + supports timeout option + supports open_timeout option + sends request body + handles connection error retrieves the response body - binds local socket + handles requests with proxy handles deflate compression + handles proxy failures + handles headers with multiple values retrieves the response headers - supports open_timeout option - with SSL enabled - #delete + handles gzip compression + sends user agent + sends url encoded parameters + represents empty body response as blank string + #trace behaves like a request method - handles deflate compression - supports timeout option handles gzip compression + handles headers with multiple values parses the reason phrase + handles deflate compression retrieves the response body - binds local socket - handles headers with multiple values represents empty body response as blank string - sends url encoded parameters - handles connection error - handles requests with proxy - supports open_timeout option + retrieves the response headers sends request body sends user agent sends url encoded nested parameters handles proxy failures - retrieves the response headers - #options + supports timeout option + supports open_timeout option + sends url encoded parameters + handles connection error + binds local socket + handles requests with proxy + #get behaves like a request method + handles headers with multiple values + sends request body + handles deflate compression + sends user agent + supports timeout option + sends url encoded parameters + supports open_timeout option binds local socket + handles requests with proxy + handles connection error + retrieves the response headers handles gzip compression parses the reason phrase - sends url encoded parameters - handles deflate compression - sends request body - handles headers with multiple values sends url encoded nested parameters - handles connection error - handles requests with proxy - supports open_timeout option - retrieves the response body handles proxy failures + retrieves the response body represents empty body response as blank string + #put + behaves like a request method sends user agent + sends files supports timeout option - retrieves the response headers - #patch - behaves like a request method - sends request body - handles headers with multiple values - binds local socket represents empty body response as blank string - sends files - retrieves the response body + sends url encoded nested parameters handles connection error + handles headers with multiple values + handles requests with proxy + sends request body + handles deflate compression handles proxy failures - supports open_timeout option - sends url encoded nested parameters - sends user agent - supports timeout option parses the reason phrase - handles deflate compression - retrieves the response headers - handles requests with proxy handles gzip compression sends url encoded parameters - #get - behaves like a request method + binds local socket supports open_timeout option - sends url encoded parameters - handles requests with proxy - sends user agent - parses the reason phrase retrieves the response headers - handles headers with multiple values - handles gzip compression + retrieves the response body + #options + behaves like a request method handles connection error + handles proxy failures + supports open_timeout option binds local socket + represents empty body response as blank string + parses the reason phrase + handles headers with multiple values + retrieves the response body sends url encoded nested parameters + handles requests with proxy + sends url encoded parameters + handles deflate compression + handles gzip compression + sends user agent sends request body supports timeout option - handles deflate compression - represents empty body response as blank string - retrieves the response body - handles proxy failures - #head - behaves like a request method - handles headers with multiple values retrieves the response headers - supports open_timeout option - parses the reason phrase + #patch + behaves like a request method + sends user agent sends url encoded parameters - represents empty body response as blank string - supports timeout option handles proxy failures - sends user agent - binds local socket sends request body handles connection error - retrieves the response body + handles gzip compression + sends files handles requests with proxy - sends url encoded nested parameters - #trace - behaves like a request method - handles connection error - retrieves the response body - handles headers with multiple values handles deflate compression + retrieves the response body represents empty body response as blank string - sends user agent - sends url encoded parameters + supports timeout option + handles headers with multiple values + parses the reason phrase + sends url encoded nested parameters retrieves the response headers supports open_timeout option - sends url encoded nested parameters - handles gzip compression - sends request body binds local socket - handles proxy failures - supports timeout option - handles requests with proxy - parses the reason phrase - #put + #post behaves like a request method - parses the reason phrase - retrieves the response body - sends url encoded nested parameters + handles requests with proxy + handles deflate compression sends url encoded parameters handles headers with multiple values - represents empty body response as blank string - handles deflate compression - handles connection error + sends request body + sends files sends user agent - supports open_timeout option + retrieves the response body + parses the reason phrase + retrieves the response headers handles gzip compression - handles requests with proxy + represents empty body response as blank string + sends url encoded nested parameters binds local socket - sends files + supports open_timeout option + handles connection error handles proxy failures - retrieves the response headers - sends request body supports timeout option - #post + #head behaves like a request method + handles proxy failures supports open_timeout option - handles requests with proxy - handles headers with multiple values supports timeout option - handles gzip compression - sends request body - sends url encoded nested parameters + sends url encoded parameters represents empty body response as blank string - handles deflate compression - retrieves the response body - handles connection error + sends url encoded nested parameters binds local socket - handles proxy failures sends user agent - sends files - sends url encoded parameters + handles headers with multiple values + retrieves the response body + handles connection error + sends request body + handles requests with proxy parses the reason phrase retrieves the response headers - Options - configures open timeout - configures multiple timeouts - configures timeout - -Faraday::FlatParamsEncoder - decodes boolean values - encodes boolean values in array - encodes unsorted when asked - encodes empty array in hash - decodes arrays - encodes boolean values - behaves like a params encoder - escapes safe buffer - raises type error for empty string - encodes nil - -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 - 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 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 - 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 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 - -Faraday::Request::UrlEncoded - works with unicode - works with with headers - ignores custom content type - works with nested keys - works with nested params - works with non nested params - works with no headers - does nothing without payload - customising default_space_encoding - uses the custom character to encode spaces Faraday::Options #merge - deeply merges two options deeply merges options with nil deeply merges options with options having nil sub-options merges options with hashes + deeply merges two options deeply merges options with hashes - #deep_dup - duplicate options and also suboptions + #value? + returns true if any key has that value #delete allows to remove value for key + #empty? + returns true only if all options are nil + #each_key + allows to iterate through keys #clear clears the options + #deep_dup + duplicate options and also suboptions #key? returns true if the key exists and is not nil + #update + updates options from hashes #fetch when the fetched key has no value uses falsey default - accepts block needs a default if key is missing + accepts block when the fetched key has a value - grabs value works with key - #each_key - allows to iterate through keys - #dup - duplicate options but not sub-options - #memoized - accepts block - requires block - #value? - returns true if any key has that value + grabs value #each_value allows to iterate through values - #empty? - returns true only if all options are nil #from - works with options - is expected to raise NoMethodError + works with deep hash works with nil - works with hash with sub object works with hash works with options with sub object - works with deep hash + is expected to raise NoMethodError + works with hash with sub object respects inheritance - #update - updates options from hashes + works with options + #memoized + accepts block + requires block + #dup + duplicate options but not sub-options -Faraday::Adapter::EMHttp +Faraday::Request + supports marshal serialization + 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 nothing particular is configured + is expected to be falsey + is expected to eq :get + 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" + deprecate method for HTTP method + is expected to output /WARNING: `Faraday::Request#method` is deprecated; use `#http_method` instead. It will be removed in ...r after version 2.0.\n`Faraday::Request#method` called from .+\/spec\/faraday\/request_spec.rb:\d+./ to stderr +WARNING: `Faraday::Request#method` is deprecated; use `#http_method` instead. It will be removed in or after version 2.0. +`Faraday::Request#method` called from /build/ruby-faraday-1.1.0/spec/faraday/request_spec.rb:31:in `block (3 levels) in ' + is expected to eq :post + when setting the url on setup with a string path and params + is expected to eq "http://sushi.com/api/foo.json?a=1" + is expected to eq "foo.json" + is expected to eq {"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 + and per-request options set + is expected to eq 10 + is expected to eq 5 + is expected to eq 5 + is expected to eq 10 + is expected to eq {:bar=>"bar", :foo=>"foo"} + is expected to eq "boo" + is expected to eq {:consumer_key=>"anonymous", :consumer_secret=>"xyz"} + when setting the url on setup with a path including params + is expected to eq "http://sushi.com/api/foo.json?a=1&b=2" + is expected to eq "foo.json" + is expected to eq {"a"=>"1", "b"=>"2"} + when HTTP method is post + is expected to eq :post + when setting the body on setup + is expected to eq "hi" + is expected to eq "hi" + +Faraday::Response::Logger + does not log response body by default + still returns output + logs filter headers + does not log request body by default + logs method and url + logs response headers by default + logs request headers by default + logs filter url + without configuration + defaults to stdout + when logging request and response bodies + log request and response body + logs filter body + log response body object + when using log_level + logs request/request body on the specified level (debug) + logs headers on the debug level + does not log request/response body on the info level + does not log headers on the info level + when logging response body + log only response body + when not logging request headers + does not log request headers if option is false + with default formatter + delegates logging to the formatter + with custom formatter + logs with custom formatter + when not logging response headers + does not log response headers if option is false + when logging request body + log only request body + +Faraday::Adapter::NetHttpPersistent + sets max_retries to 0 allows to provide adapter specific configs - Options - configures timeout - configures all timeout settings - configures timeout and open_timeout + allows to set pool_size on initialize behaves like an adapter with SSL enabled - #head + #options behaves like a request method - binds local socket - sends request body - sends url encoded nested parameters parses the reason phrase - represents empty body response as blank string - retrieves the response headers + handles gzip compression handles connection error + sends url encoded nested parameters + retrieves the response headers + handles deflate compression + sends request body handles requests with proxy handles proxy failures - supports timeout option + represents empty body response as blank string handles headers with multiple values + supports timeout option + sends user agent + retrieves the response body sends url encoded parameters supports open_timeout option - sends user agent - with parallel setup - handles parallel requests status - #patch + #head behaves like a request method - retrieves the response headers + supports timeout option + sends url encoded parameters + sends request body parses the reason phrase - sends user agent + retrieves the response headers + sends url encoded nested parameters handles proxy failures - sends url encoded parameters - supports open_timeout option handles requests with proxy - supports timeout option - handles headers with multiple values - represents empty body response as blank string - binds local socket - sends url encoded nested parameters retrieves the response body - sends request body - sends files + sends user agent + supports open_timeout option handles connection error - with parallel setup - handles parallel requests status - handles parallel requests body - #delete - behaves like a request method + handles headers with multiple values represents empty body response as blank string - retrieves the response headers + #trace + behaves like a request method + handles headers with multiple values + sends request body + sends url encoded nested parameters supports open_timeout option - handles requests with proxy parses the reason phrase supports timeout option - sends url encoded nested parameters sends user agent + handles requests with proxy handles connection error - sends url encoded parameters + handles gzip compression + represents empty body response as blank string retrieves the response body - binds local socket - sends request body - handles headers with multiple values + sends url encoded parameters + retrieves the response headers + handles deflate compression handles proxy failures - with parallel setup - 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 request body + sends user agent + handles deflate compression handles connection error - sends files - handles requests with proxy - binds local socket - handles proxy failures - supports timeout option + handles gzip compression retrieves the response body - sends user agent - parses the reason phrase - represents empty body response as blank string + handles requests with proxy handles headers with multiple values + supports timeout option sends url encoded parameters - retrieves the response headers + parses the reason phrase + handles proxy failures + sends files supports open_timeout option sends url encoded nested parameters - with parallel setup - handles parallel requests body - handles parallel requests status - #post + #get behaves like a request method - sends files - handles proxy failures - handles headers with multiple values + sends url encoded nested parameters retrieves the response headers + handles headers with multiple values + sends request body + handles gzip compression + sends user agent handles connection error - binds local socket + supports open_timeout option + represents empty body response as blank string + supports timeout option + parses the reason phrase + sends url encoded parameters + handles proxy failures + handles deflate compression + handles requests with proxy + retrieves the response body + #patch + behaves like a request method handles requests with proxy + sends url encoded parameters + supports timeout option + handles gzip compression sends url encoded nested parameters + handles proxy failures + sends files + handles deflate compression + handles connection error + retrieves the response body + sends request body + represents empty body response as blank string + retrieves the response headers + handles headers with multiple values + supports open_timeout option parses the reason phrase - supports timeout option + sends user agent + #post + behaves like a request method + handles connection error + sends files supports open_timeout option represents empty body response as blank string - sends url encoded parameters - sends request body + handles deflate compression retrieves the response body + handles gzip compression + handles headers with multiple values sends user agent - with parallel setup - handles parallel requests body - handles parallel requests status - #get - behaves like a request method + sends request body + retrieves the response headers + handles proxy failures sends url encoded nested parameters + handles requests with proxy + supports timeout option + parses the reason phrase sends url encoded parameters + #delete + behaves like a request method + sends url encoded nested parameters handles connection error parses the reason phrase - sends request body + handles gzip compression + handles deflate compression + sends user agent supports timeout option - handles requests with proxy - binds local socket + sends request body + supports open_timeout option handles proxy failures handles headers with multiple values - supports open_timeout option + handles requests with proxy + retrieves the response body + represents empty body response as blank string + sends url encoded parameters + retrieves the response headers + with SSL disabled + #trace + behaves like a request method + handles gzip compression + handles deflate compression retrieves the response body + supports timeout option + handles proxy failures + handles connection error retrieves the response headers + handles headers with multiple values + sends url encoded nested parameters + sends request body + handles requests with proxy represents empty body response as blank string + parses the reason phrase + sends url encoded parameters + supports open_timeout option sends user agent - with parallel setup - handles parallel requests body - handles parallel requests status #options behaves like a request method + supports open_timeout option + retrieves the response headers + supports timeout option + handles proxy failures + handles requests with proxy + handles gzip compression + sends user agent + handles deflate compression + handles connection error + represents empty body response as blank string retrieves the response body + sends url encoded parameters + sends url encoded nested parameters + sends request body + handles headers with multiple values + parses the reason phrase + #head + behaves like a request method + handles requests with proxy + parses the reason phrase + supports timeout option + supports open_timeout option handles connection error + retrieves the response headers + retrieves the response body handles proxy failures - supports timeout option + sends url encoded nested parameters represents empty body response as blank string - sends user agent sends request body + handles headers with multiple values sends url encoded parameters - handles requests with proxy + sends user agent + #patch + behaves like a request method retrieves the response headers - handles headers with multiple values - binds local socket - sends url encoded nested parameters + sends request body supports open_timeout option + sends files + supports timeout option + handles requests with proxy + handles connection error + sends url encoded nested parameters + handles proxy failures + represents empty body response as blank string + sends url encoded parameters + handles headers with multiple values + sends user agent + retrieves the response body + handles deflate compression parses the reason phrase - with parallel setup - handles parallel requests body - handles parallel requests status - #trace + handles gzip compression + #post behaves like a request method sends url encoded nested parameters - sends url encoded parameters + handles requests with proxy + represents empty body response as blank string + retrieves the response headers + handles connection error + handles headers with multiple values + sends files + handles deflate compression + parses the reason phrase handles proxy failures + sends request body retrieves the response body - handles connection error + supports timeout option + sends user agent + supports open_timeout option + sends url encoded parameters + handles gzip compression + #get + behaves like a request method + handles proxy failures + handles gzip compression + supports timeout option handles requests with proxy - parses the reason phrase + supports open_timeout option + sends user agent + handles connection error + sends url encoded nested parameters + handles deflate compression + sends url encoded parameters sends request body + handles headers with multiple values represents empty body response as blank string retrieves the response headers - handles headers with multiple values + retrieves the response body + parses the reason phrase + #put + behaves like a request method supports timeout option - binds local socket + represents empty body response as blank string supports open_timeout option + handles connection error + handles requests with proxy + handles gzip compression + retrieves the response headers sends user agent - with parallel setup - handles parallel requests body - handles parallel requests status - with SSL disabled - #trace + parses the reason phrase + handles deflate compression + sends url encoded nested parameters + sends files + retrieves the response body + handles headers with multiple values + sends request body + sends url encoded parameters + handles proxy failures + #delete behaves like a request method + handles gzip compression + retrieves the response body + handles requests with proxy + retrieves the response headers sends url encoded nested parameters - sends user agent + handles proxy failures represents empty body response as blank string handles connection error - binds local socket + handles deflate compression + sends url encoded parameters + sends user agent supports timeout option - handles proxy failures - retrieves the response body - sends request body supports open_timeout option - sends url encoded parameters - handles requests with proxy parses the reason phrase handles headers with multiple values - retrieves the response headers - with parallel setup - handles parallel requests status - handles parallel requests body - #post + sends request body + min_version + allows to set min_version in SSL settings + +Faraday::ClientError + .initialize + with exception only + is expected to be nil + is expected to eq "#>" + is expected to eq "test" + is expected to eq # + is expected to eq nil + with response hash + is expected to eq "#400}>" + is expected to eq "the server responded with status 400" + is expected to be nil + is expected to eq {:status=>400} + with string + is expected to eq "custom message" + is expected to be nil + is expected to eq "#>" + is expected to be nil + 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 + +Faraday::Request::UrlEncoded + works with unicode + works with nested params + works with with headers + ignores custom content type + works with non nested params + works with nested keys + works with no headers + does nothing without payload + customising default_space_encoding + uses the custom character to encode spaces + +Faraday::Adapter::NetHttp + behaves like an adapter + with SSL disabled + #trace behaves like a request method - sends url encoded parameters - retrieves the response body parses the reason phrase - retrieves the response headers - supports open_timeout option + sends url encoded parameters + supports timeout option + handles deflate compression + handles gzip compression + represents empty body response as blank string + handles requests with proxy sends request body + supports open_timeout option + sends user agent handles headers with multiple values + retrieves the response body + retrieves the response headers handles proxy failures - handles requests with proxy handles connection error - supports timeout option - sends files - binds local socket - sends user agent sends url encoded nested parameters - represents empty body response as blank string - with parallel setup - handles parallel requests status - handles parallel requests body + streaming + when response contains big data + handles streaming + when response is empty + is expected to eq [["", 0]] #delete behaves like a request method + sends user agent + sends url encoded nested parameters + sends url encoded parameters parses the reason phrase + handles requests with proxy retrieves the response body + supports timeout option supports open_timeout option + handles gzip compression + represents empty body response as blank string + retrieves the response headers handles connection error - sends url encoded nested parameters + handles proxy failures + handles deflate compression + sends request body handles headers with multiple values - sends url encoded parameters + streaming + when response is empty + is expected to eq [["", 0]] + when response contains big data + handles streaming + #put + behaves like a request method + handles gzip compression + represents empty body response as blank string + handles headers with multiple values + sends files + supports open_timeout option + handles connection error + handles deflate compression retrieves the response headers - handles proxy failures + handles requests with proxy + supports timeout option + parses the reason phrase + retrieves the response body + sends url encoded nested parameters + sends url encoded parameters sends request body - binds local socket + sends user agent + handles proxy failures + streaming + when response contains big data + handles streaming + when response is empty + is expected to eq [["", 0]] + #patch + behaves like a request method represents empty body response as blank string + handles connection error + supports open_timeout option supports timeout option + retrieves the response headers + handles deflate compression handles requests with proxy + sends files + handles proxy failures + sends url encoded nested parameters sends user agent - with parallel setup - handles parallel requests status - handles parallel requests body + sends url encoded parameters + sends request body + parses the reason phrase + handles gzip compression + handles headers with multiple values + retrieves the response body + streaming + when response contains big data + handles streaming + when response is empty + is expected to eq [["", 0]] #get behaves like a request method + represents empty body response as blank string + supports open_timeout option + handles requests with proxy + handles deflate compression + handles proxy failures sends user agent + sends request body + parses the reason phrase sends url encoded nested parameters + handles headers with multiple values + retrieves the response body + retrieves the response headers supports timeout option - parses the reason phrase - binds local socket - sends request body - supports open_timeout option + handles gzip compression handles connection error - retrieves the response body + sends url encoded parameters + streaming + when response is empty + is expected to eq [["", 0]] + when response contains big data + handles streaming + #head + behaves like a request method + supports timeout option handles requests with proxy + retrieves the response body handles headers with multiple values - represents empty body response as blank string handles proxy failures + sends user agent + parses the reason phrase + handles connection error retrieves the response headers + sends request body + represents empty body response as blank string + sends url encoded nested parameters + supports open_timeout option sends url encoded parameters - with parallel setup - handles parallel requests status - handles parallel requests body - #put + streaming + when response contains big data + handles streaming + when response is empty + is expected to eq [["", 0]] + #post behaves like a request method - handles proxy failures - represents empty body response as blank string + handles deflate compression + handles gzip compression retrieves the response headers - sends request body + handles requests with proxy + sends url encoded parameters + represents empty body response as blank string parses the reason phrase + sends user agent + handles proxy failures + sends request body + sends url encoded nested parameters + handles headers with multiple values + supports open_timeout option + handles connection error sends files + supports timeout option + retrieves the response body + streaming + when response contains big data + handles streaming + when response is empty + is expected to eq [["", 0]] + #options + behaves like a request method supports open_timeout option - handles requests with proxy - sends user agent + handles gzip compression + retrieves the response headers + retrieves the response body supports timeout option - handles connection error + handles requests with proxy + handles deflate compression handles headers with multiple values sends url encoded nested parameters + sends user agent + sends request body + parses the reason phrase + handles proxy failures sends url encoded parameters - retrieves the response body - binds local socket - with parallel setup - handles parallel requests status - handles parallel requests body - #head + represents empty body response as blank string + handles connection error + streaming + when response contains big data + handles streaming + when response is empty + is expected to eq [["", 0]] + with SSL enabled + #put behaves like a request method + handles headers with multiple values + sends url encoded parameters + sends user agent + sends url encoded nested parameters supports timeout option + sends request body + handles requests with proxy supports open_timeout option retrieves the response headers represents empty body response as blank string - handles headers with multiple values + handles deflate compression + retrieves the response body + handles connection error + handles proxy failures + parses the reason phrase + sends files + handles gzip compression + streaming + when response is empty + is expected to eq [["", 0]] + when response contains big data + handles streaming + #post + behaves like a request method + sends files + parses the reason phrase + represents empty body response as blank string handles requests with proxy - sends url encoded nested parameters - sends url encoded parameters handles proxy failures - sends user agent + handles gzip compression sends request body + supports open_timeout option + handles connection error + sends url encoded nested parameters + retrieves the response body + supports timeout option + sends user agent + handles headers with multiple values + handles deflate compression + sends url encoded parameters + retrieves the response headers + streaming + when response contains big data + handles streaming + when response is empty + is expected to eq [["", 0]] + #trace + behaves like a request method + handles requests with proxy parses the reason phrase - binds local socket handles connection error - with parallel setup - handles parallel requests status - #options + supports timeout option + handles gzip compression + sends user agent + handles headers with multiple values + represents empty body response as blank string + sends request body + sends url encoded parameters + sends url encoded nested parameters + handles deflate compression + supports open_timeout option + handles proxy failures + retrieves the response headers + 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 represents empty body response as blank string + handles proxy failures + retrieves the response headers + supports open_timeout option + retrieves the response body + sends url encoded parameters + handles requests with proxy + sends request body sends user agent + sends url encoded nested parameters + parses the reason phrase + handles deflate compression + handles connection error + handles gzip compression + handles headers with multiple values supports timeout option + streaming + when response is empty + is expected to eq [["", 0]] + when response contains big data + handles streaming + #get + behaves like a request method handles connection error - retrieves the response body parses the reason phrase + supports timeout option + handles deflate compression + handles gzip compression + sends url encoded parameters sends url encoded nested parameters + sends request body + retrieves the response body + handles headers with multiple values handles requests with proxy + retrieves the response headers handles proxy failures - sends url encoded parameters - sends request body supports open_timeout option + represents empty body response as blank string + sends user agent + streaming + when response contains big data + handles streaming + when response is empty + is expected to eq [["", 0]] + #head + behaves like a request method + sends request body handles headers with multiple values - binds local socket + handles connection error + sends url encoded nested parameters + represents empty body response as blank string + handles proxy failures + retrieves the response body + sends user agent + supports timeout option + sends url encoded parameters retrieves the response headers - with parallel setup - handles parallel requests body - handles parallel requests status + supports open_timeout option + handles requests with proxy + parses the reason phrase + streaming + when response is empty + is expected to eq [["", 0]] + when response contains big data + handles streaming #patch behaves like a request method - supports timeout option + handles proxy failures + supports open_timeout option + handles headers with multiple values + retrieves the response headers + handles connection error + handles requests with proxy sends url encoded parameters sends files + sends user agent + retrieves the response body + sends url encoded nested parameters + sends request body + handles gzip compression + handles deflate compression + supports timeout option + parses the reason phrase + represents empty body response as blank string + streaming + when response is empty + is expected to eq [["", 0]] + when response contains big data + handles streaming + #options + behaves like a request method + supports open_timeout option + sends url encoded parameters handles connection error + parses the reason phrase + handles proxy failures represents empty body response as blank string + handles headers with multiple values + handles gzip compression + supports timeout option retrieves the response headers - sends url encoded nested parameters - supports open_timeout option - binds local socket retrieves the response body sends request body - parses the reason phrase sends user agent - handles proxy failures + sends url encoded nested parameters handles requests with proxy - handles headers with multiple values - with parallel setup - handles parallel requests status - handles parallel requests body + handles deflate compression + streaming + when response is empty + is expected to eq [["", 0]] + when response contains big data + handles streaming + checking http + is expected to eq 80 + supports open_timeout + sets max_retries to 0 + supports read_timeout + supports write_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 + +Faraday::Request::Authorization + token_auth + when passed correct params + is expected to eq "Token token=\"quux\"" + and request already has an authentication header + does not interfere with existing authorization + when other values are provided + is expected to match /foo="42"/ + is expected to match /token="baz"/ + is expected to match /^Token / + and request already has an authentication header + does not interfere with existing authorization + basic_auth + when passed correct params + is expected to eq "Basic YWxhZGRpbjpvcGVuc2VzYW1l" + and request already has an authentication header + does not interfere with existing authorization + when passed very long values + is expected to eq "Basic QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQU...UFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBOg==" + and request already has an authentication header + does not interfere with existing authorization + authorization + when passed two strings + is expected to eq "custom abc def" + and request already has an authentication header + does not interfere with existing authorization + when passed a string and a hash + is expected to eq "baz foo=\"42\"" + and request already has an authentication header + does not interfere with existing authorization Faraday::CompositeReadIO + with utf8 multibyte part + is expected to eq "\x86\xE3\x83\x95\xE3\x82\xA1\xE3\x82\xA4\xE3\x83\xAB" + allows to read in chunks with empty composite_io is expected to eq "" - is expected to be nil is expected to eq 0 - 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" + is expected to be nil with mix of empty and non-empty parts allows to read in chunks with empty parts - is expected to eq 0 - is expected to be nil is expected to eq "" + is expected to be nil + is expected to eq 0 with 2 parts - is expected to eq 8 + allows to rewind while reading in chunks allows to read in chunks is expected to eq "abcd1234" - allows to rewind while reading in chunks - -Faraday::Utils::Headers - #fetch - is expected to be nil - is expected to eq false - is expected to eq "Invalid key" - is expected to eq "application/json" - is expected to eq "application/json" - is expected to eq "default" - raises an error if key not found - calls a block when provided - is expected to eq "application/json" - #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 "text/html" - is expected to eq ["Content-Type"] - when response headers include a blank line - is expected to eq "text/html" - when Content-Type is set to application/json - is expected to eq ["Content-Type"] - is expected to include "content-type" - is expected to eq "application/json" - is expected to eq "application/json" - is expected to eq "application/json" - when Content-Type is set to application/xml - is expected to eq "application/xml" - is expected to include "content-type" - is expected to eq "application/xml" - is expected to eq ["Content-Type"] - is expected to eq "application/xml" - #delete - is expected to be nil - is expected not to include "content-type" - is expected to eq "application/json" - is expected to eq 0 - -Faraday::Response::Middleware - with a custom ResponseMiddleware - parses the response - with a custom ResponseMiddleware but empty response - doesn't call the middleware for 204 responses - doesn't call the middleware for 304 responses - raises exception for 200 responses - with a custom ResponseMiddleware and private parse - parses the response + is expected to eq 8 -Faraday::Adapter::Typhoeus +Faraday::Adapter::EMHttp + allows to provide adapter specific configs + Options + configures timeout + configures timeout and open_timeout + configures all timeout settings behaves like an adapter with SSL disabled #head behaves like a request method - sends request body - handles proxy failures - handles requests with proxy - supports open_timeout option - handles headers with multiple values + binds local socket sends url encoded parameters - sends url encoded nested parameters - represents empty body response as blank string - retrieves the response body + handles connection error + supports open_timeout option + handles proxy failures retrieves the response headers - supports timeout option + represents empty body response as blank string + sends request body sends user agent - handles connection error + handles headers with multiple values + handles requests with proxy + supports timeout option + parses the reason phrase + sends url encoded nested parameters with parallel setup - handles parallel requests body handles parallel requests status - #options + #post behaves like a request method - handles connection error - supports timeout option - handles headers with multiple values - retrieves the response headers - handles proxy failures + retrieves the response body represents empty body response as blank string sends user agent - retrieves the response body - supports open_timeout option + binds local socket sends url encoded parameters - sends request body + handles headers with multiple values + supports open_timeout option handles requests with proxy + handles connection error + sends request body + parses the reason phrase + sends files + handles proxy failures + supports timeout option sends url encoded nested parameters + retrieves the response headers with parallel setup handles parallel requests body handles parallel requests status #trace behaves like a request method - handles headers with multiple values - sends url encoded nested parameters - retrieves the response body - handles connection error - retrieves the response headers - supports timeout option sends user agent - handles proxy failures + represents empty body response as blank string handles requests with proxy sends url encoded parameters - represents empty body response as blank string + sends url encoded nested parameters + retrieves the response headers supports open_timeout option + handles headers with multiple values sends request body + binds local socket + handles connection error + handles proxy failures + supports timeout option + retrieves the response body + parses the reason phrase with parallel setup handles parallel requests status handles parallel requests body - #patch + #get behaves like a request method - sends url encoded nested parameters - supports timeout option + retrieves the response headers + parses the reason phrase handles requests with proxy + represents empty body response as blank string + retrieves the response body sends request body - retrieves the response headers - handles proxy failures + supports timeout option handles headers with multiple values - retrieves the response body - handles connection error - supports open_timeout option - sends files - represents empty body response as blank string + handles proxy failures + sends url encoded nested parameters sends user agent + binds local socket + supports open_timeout option + handles connection error sends url encoded parameters with parallel setup - handles parallel requests status handles parallel requests body - #delete + handles parallel requests status + #options behaves like a request method retrieves the response headers - handles headers with multiple values - supports timeout option - sends url encoded nested parameters - sends user agent + handles requests with proxy + binds local socket represents empty body response as blank string - sends url encoded parameters - retrieves the response body sends request body + sends url encoded nested parameters + sends url encoded parameters + handles proxy failures + supports timeout option + sends user agent + handles headers with multiple values supports open_timeout option + parses the reason phrase + retrieves the response body handles connection error - handles requests with proxy - handles proxy failures with parallel setup - handles parallel requests status handles parallel requests body - #get + handles parallel requests status + #put behaves like a request method - sends user agent - supports timeout option - sends url encoded nested parameters - handles connection error - retrieves the response body - retrieves the response headers - handles headers with multiple values sends request body + binds local socket + parses the reason phrase sends url encoded parameters + sends url encoded nested parameters + handles requests with proxy + retrieves the response body handles proxy failures + handles headers with multiple values + handles connection error represents empty body response as blank string supports open_timeout option - handles requests with proxy + sends files + sends user agent + supports timeout option + retrieves the response headers with parallel setup handles parallel requests status handles parallel requests body - #post + #patch behaves like a request method + represents empty body response as blank string + handles proxy failures + parses the reason phrase + supports timeout option + retrieves the response body retrieves the response headers handles connection error - sends request body - sends user agent - handles requests with proxy handles headers with multiple values - handles proxy failures - retrieves the response body - sends files + sends user agent sends url encoded parameters - supports open_timeout option - supports timeout option - represents empty body response as blank string + sends request body + sends files sends url encoded nested parameters + supports open_timeout option + binds local socket + handles requests with proxy with parallel setup - handles parallel requests status handles parallel requests body - #put + handles parallel requests status + #delete behaves like a request method - handles headers with multiple values - supports timeout option + handles connection error represents empty body response as blank string - sends url encoded parameters + supports open_timeout option + supports timeout option sends user agent - retrieves the response headers sends request body - supports open_timeout option - handles proxy failures - sends files - handles requests with proxy - sends url encoded nested parameters - handles connection error + binds local socket retrieves the response body + retrieves the response headers + handles headers with multiple values + sends url encoded parameters + sends url encoded nested parameters + parses the reason phrase + handles requests with proxy + handles proxy failures with parallel setup handles parallel requests body handles parallel requests status with SSL enabled - #post + #patch behaves like a request method - supports open_timeout option retrieves the response body sends url encoded nested parameters - sends files - represents empty body response as blank string - handles headers with multiple values - sends user agent - handles proxy failures - sends url encoded parameters - handles connection error + parses the reason phrase + supports open_timeout option retrieves the response headers + sends user agent + supports timeout option + represents empty body response as blank string handles requests with proxy + handles connection error sends request body - supports timeout option + handles proxy failures + handles headers with multiple values + binds local socket + sends files + sends url encoded parameters with parallel setup handles parallel requests status handles parallel requests body - #delete + #get behaves like a request method - sends url encoded parameters - retrieves the response headers - handles requests with proxy represents empty body response as blank string + supports timeout option + handles requests with proxy handles connection error handles proxy failures sends request body + binds local socket + parses the reason phrase + supports open_timeout option handles headers with multiple values + sends url encoded parameters sends user agent - supports timeout option - sends url encoded nested parameters + retrieves the response headers retrieves the response body - supports open_timeout option + sends url encoded nested parameters with parallel setup handles parallel requests body handles parallel requests status - #trace + #put behaves like a request method - handles headers with multiple values - sends user agent - handles connection error - sends url encoded nested parameters - sends request body - represents empty body response as blank string retrieves the response headers - supports timeout option - handles proxy failures + sends files supports open_timeout option - retrieves the response body + sends request body handles requests with proxy + retrieves the response body + handles proxy failures + sends user agent + supports timeout option sends url encoded parameters + sends url encoded nested parameters + parses the reason phrase + handles headers with multiple values + handles connection error + binds local socket + represents empty body response as blank string with parallel setup - handles parallel requests body handles parallel requests status - #patch + handles parallel requests body + #delete behaves like a request method + retrieves the response headers handles proxy failures sends user agent + handles headers with multiple values + retrieves the response body supports open_timeout option - retrieves the response headers - handles requests with proxy sends url encoded parameters - retrieves the response body + supports timeout option handles connection error - sends url encoded nested parameters + handles requests with proxy represents empty body response as blank string - supports timeout option - handles headers with multiple values sends request body - sends files + sends url encoded nested parameters + binds local socket + parses the reason phrase with parallel setup - handles parallel requests body handles parallel requests status - #put + handles parallel requests body + #trace behaves like a request method - handles proxy failures - retrieves the response body - supports open_timeout option + handles requests with proxy + parses the reason phrase sends request body - handles connection error sends user agent + supports open_timeout option handles headers with multiple values - retrieves the response headers - sends files + handles proxy failures supports timeout option - sends url encoded parameters + binds local socket represents empty body response as blank string + retrieves the response body + retrieves the response headers + handles connection error + sends url encoded parameters sends url encoded nested parameters - handles requests with proxy with parallel setup handles parallel requests body handles parallel requests status - #get + #head behaves like a request method - retrieves the response body - supports timeout option - handles connection error - sends user agent sends request body + sends url encoded nested parameters + sends user agent + handles connection error + supports timeout option sends url encoded parameters + supports open_timeout option + binds local socket represents empty body response as blank string - sends url encoded nested parameters retrieves the response headers - supports open_timeout option + handles proxy failures handles requests with proxy + parses the reason phrase handles headers with multiple values - handles proxy failures with parallel setup handles parallel requests status - handles parallel requests body - #head + #post behaves like a request method - sends url encoded parameters handles connection error + sends files + parses the reason phrase sends url encoded nested parameters - handles proxy failures - handles requests with proxy represents empty body response as blank string + sends url encoded parameters supports open_timeout option - sends user agent - supports timeout option - handles headers with multiple values - sends request body + handles requests with proxy + handles proxy failures retrieves the response headers + supports timeout option retrieves the response body + sends request body + handles headers with multiple values + sends user agent + binds local socket with parallel setup handles parallel requests status handles parallel requests body #options behaves like a request method - sends url encoded nested parameters - handles requests with proxy - supports open_timeout option - retrieves the response headers + binds local socket sends url encoded parameters - supports timeout option handles proxy failures - represents empty body response as blank string handles connection error + sends url encoded nested parameters + handles headers with multiple values + sends request body sends user agent + supports open_timeout option + supports timeout option + retrieves the response headers + handles requests with proxy + represents empty body response as blank string + parses the reason phrase retrieves the response body - sends request body - handles headers with multiple values with parallel setup - handles parallel requests status handles parallel requests body + handles parallel requests status + +Faraday::Env + ignores false when fetching + allows to access string non members + allows to access members + allows to access symbol non members + retains custom 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::Request::Retry + #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.1 + is expected to eq 0.2 + is expected to eq 0.3 + 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 + retry_after header support + when retry_after bigger than interval + is expected to be > 0.5 + when retry_after smaller than interval + is expected to be > 0.2 + when retry_after is bigger than max_interval + is expected to eq 1 + when retry_after is a timestamp + is expected to be > 1 + 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 + when method is not idempotent + is expected to eq 1 + when an expected error happens + is expected to eq 3 + and new max_retry set to -9 + is expected to eq 1 + and legacy max_retry set to -9 + is expected to eq 1 + and both max_retry and interval are set + is expected to be within 0.04 of 0.2 + and new max_retry set to 3 + is expected to eq 4 + and legacy max_retry set to 1 + is expected to eq 2 + when an unexpected error happens + is expected to eq 1 + and this is passed as a custom exception + is expected to eq 3 + retry_if option + does not retry if retry_if block returns false checking exception + FilePart: should rewind files on retry + retries if retry_if block always returns true + UploadIO: should rewind files on retry + does not retry if retry_if block returns false checking env + when explicitly specifying methods to retry + does not call retry_if for specified methods + with empty list of methods to retry + calls retry_if for all methods Faraday::Connection + default_connection_options + assigning a default value + behaves like default connection options + default connection options persist with an instance overriding + default connection uses default connection options + works with option url + works with implicit url + works with instance connection options + assigning a hash + behaves like default connection options + default connection options persist with an instance overriding + default connection uses default connection options + works with instance connection options + works with implicit url + works with option url + #respond_to? + is expected to be truthy + is expected to be truthy #token_auth is expected to eq "Token nonce=\"abc\", token=\"abcdef\"" + #to_env + bracketizes nested params in query + escapes per spec + bracketizes repeated params in query + parses url params into query + without braketizing repeated params in query + proxy support + allows when url is not in no proxy list but ip address is + accepts http env + allows when subdomain url is in no proxy list + does not accept uppercase env + uses env http_proxy + accepts hash with string uri + accepts hash + allows in multi element no proxy list + gives priority to manually set proxy + allows when prefixed url is not in no proxy list + accepts http env with auth + ignores env proxy if set that way + test proxy requires uri + uses processes no_proxy before http_proxy + fetches no proxy from blank env + uses processes no_proxy before https_proxy + allows when ip address is not in no proxy list but url is + fetches no proxy from nil env + accepts string + allows when url in no proxy list + accepts env without scheme + allows when url not in no proxy list + accepts uri + uses env https_proxy + performing a request + dynamically checks proxy + dynamically check no proxy + request params + with flat params encoder + supports array params in params + with array param in url + is expected to request GET http://example.com/?color=blue 1 time + with url and extra params + allows to set params_encoder for single request + allows to override all params + merges connection and request params + with simple url + test_overrides_request_params_block_url + test_overrides_request_params + test_overrides_request_params_block + with default params encoder + supports array params in params + supports array params in url .new with custom headers is expected to eq "Faraday" with ssl false is expected to be falsey - with empty block - is expected to eq 0 - with custom params - is expected to eq {"a"=>1} - with implicit url param + with explicit url param behaves like initializer with url - with complex url - is expected to eq "/fish" - is expected to eq {"a"=>"1"} - is expected to eq 815 with simple url is expected to eq "http" - is expected to eq "sushi.com" - is expected to eq {} is expected to eq 80 + is expected to eq {} is expected to eq "/" + is expected to eq "sushi.com" + with complex url + is expected to eq "/fish" + is expected to eq 815 + is expected to eq {"a"=>"1"} + with empty block + is expected to eq 0 with custom params and params in url is expected to eq {"a"=>3, "b"=>"2"} - with custom builder - is expected to eq # - with block - is expected to eq "/omnom" - is expected to eq 0 - with explicit url param + with implicit url param behaves like initializer with url with simple url - is expected to eq "sushi.com" - is expected to eq 80 is expected to eq "http" - is expected to eq "/" + is expected to eq 80 + is expected to eq "sushi.com" is expected to eq {} + is expected to eq "/" with complex url - is expected to eq 815 is expected to eq {"a"=>"1"} + is expected to eq 815 is expected to eq "/fish" - 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==" - proxy support - does not accept uppercase env - uses processes no_proxy before https_proxy - allows when subdomain url is in no proxy list - accepts env without scheme - allows when prefixed url is not in no proxy list - gives priority to manually set proxy - accepts hash - uses env https_proxy - allows when url is not in no proxy list but ip address is - fetches no proxy from blank env - allows when url in no proxy list - accepts uri - allows when url not in no proxy list - ignores env proxy if set that way - uses processes no_proxy before http_proxy - allows when ip address is not in no proxy list but url is - accepts http env - test proxy requires uri - allows in multi element no proxy list - accepts string - fetches no proxy from nil env - uses env http_proxy - accepts hash with string uri - accepts http env with auth - performing a request - dynamically check no proxy - dynamically checks proxy + with block + is expected to eq "/omnom" + is expected to eq 0 + with custom builder + is expected to eq # + with custom params + is expected to eq {"a"=>1} #build_url - uses params merges params - default_connection_options - assigning a default value - behaves like default connection options - works with option url - works with implicit url - default connection options persist with an instance overriding - works with instance connection options - default connection uses default connection options - assigning a hash - behaves like default connection options - works with implicit url - works with option url - default connection options persist with an instance overriding - works with instance connection options - default connection uses default connection options + uses params #close can close underlying app - #to_env - parses url params into query - escapes per spec - without braketizing repeated params in query - bracketizes nested params in query - bracketizes repeated params in query - #dup - is expected to eq "text/plain" - is expected to eq # - is expected to eq "1" - after manual changes - is expected to be falsey - is expected to be nil - is expected to eq 5 - is expected to be falsey - is expected to eq 1 - is expected to eq 1 + #build_request + is expected to eq ["Authorization"] + is expected to be empty + is expected to be truthy + is expected to be falsey + basic_auth + adding basic auth info to url + is expected to eq "Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==" + calling the #basic_auth method + is expected to eq "Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==" #build_exclusive_url - does not add ending slash given empty url allows to provide params argument does not use connection params overrides connection port for absolute url - does not add ending slash given nil url handles uri instances + does not add ending slash given nil url + does not add ending slash given empty url with absolute path example at ./spec/faraday/connection_spec.rb:196 is expected to eq "/sake.html" is expected to eq "/sake.html" is expected to eq "/sake.html" with complete url - is expected to eq "http" - is expected to eq "/sake.html" + is expected to eq 80 is expected to eq "a=1" is expected to eq "sushi.com" - is expected to eq 80 - with relative path - is expected to eq "/fish/sake.html" - is expected to eq "/fish/sake.html" + is expected to eq "http" is expected to eq "/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 - #respond_to? - is expected to be truthy - is expected to be truthy - #build_request - is expected to eq ["Authorization"] - is expected to be empty - is expected to be truthy - is expected to be falsey - request params - with url and extra params - merges connection and request params - allows to set params_encoder for single request - allows to override all params - with default params encoder - supports array params in url - supports array params in params - with simple url - test_overrides_request_params - 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 - -Faraday::Request - supports marshal serialization - with global request options set - is expected to eq 5 - is expected to eq 3 - is expected to eq 3 - is expected to eq 5 - and per-request options set - is expected to eq 5 - is expected to eq 10 - is expected to eq {:consumer_key=>"anonymous", :consumer_secret=>"xyz"} - is expected to eq 10 - is expected to eq "boo" - is expected to eq {:bar=>"bar", :foo=>"foo"} + used default base with ending slash + with relative path + uses connection host as default host + is expected to eq "/fish/sake.html" + is expected to eq "/fish/sake.html" + is expected to eq "/fish/sake.html" + is expected to eq "/sake.html" + #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 be nil is expected to eq 5 - deprecate method for HTTP method - is expected to output /WARNING: `Faraday::Request#method` is deprecated; use `#http_method` instead. It will be removed in ...r after version 2.0.\n`Faraday::Request#method` called from .+\/spec\/faraday\/request_spec.rb:\d+./ to stderr -WARNING: `Faraday::Request#method` is deprecated; use `#http_method` instead. It will be removed in or after version 2.0. -`Faraday::Request#method` called from /build/ruby-faraday-1.1.0/spec/faraday/request_spec.rb:31:in `block (3 levels) in ' - is expected to eq :post - when nothing particular is configured - is expected to be falsey - is expected to eq :get - when setting a header on setup with []= syntax - is expected to eq "Faraday" - is expected to eq "1.0" - is expected to eq "Faraday" - when setting the url on setup with a URI - is expected to eq "http://sushi.com/api/foo.json?a=1" - is expected to eq {"a"=>"1"} - is expected to eq # - when setting the body on setup - is expected to eq "hi" - is expected to eq "hi" - when HTTP method is post - is expected to eq :post - when setting the url on setup with a path including params - is expected to eq "foo.json" - is expected to eq {"a"=>"1", "b"=>"2"} - is expected to eq "http://sushi.com/api/foo.json?a=1&b=2" - when setting the url on setup with a 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} - -Faraday::Utils - headers parsing - parse headers for aggregated responses - URI parsing - replaces headers hash - parses with block - parses with URI - parses with default parser - escapes safe buffer + is expected to be falsey + is expected to be falsey + is expected to eq 1 -Faraday::ProxyOptions - allows hash access - #from - works with nil - works with no auth - works with string +Faraday::Request::Instrumentation + is expected to eq "request.faraday" + instruments with default name + defaults to ActiveSupport::Notifications + with custom name + is expected to eq "custom" + instruments with custom name + with custom instrumenter + is expected to eq :custom Faraday::Response - is expected to eq "yikes" + is expected to raise RuntimeError is expected to eq "text/plain" - is expected to eq 404 is expected to be truthy - is expected to be falsey is expected to eq "text/plain" - is expected to raise RuntimeError - #apply_request - is expected to eq "yikes" - is expected to eq :post - #to_hash + is expected to eq 404 + is expected to be falsey + is expected to eq "yikes" + marshal serialization support is expected to eq "yikes" - is expected to be a kind of Hash - is expected to eq 404 is expected to eq {"Content-Type"=>"text/plain"} + is expected to eq 404 + is expected to be nil #on_complete - parse body on finish can access response body in on_complete callback can access response body in on_complete callback - marshal serialization support + parse body on finish + #to_hash + is expected to eq "yikes" is expected to eq 404 + is expected to be a kind of Hash is expected to eq {"Content-Type"=>"text/plain"} + #apply_request + is expected to eq :post is expected to eq "yikes" - is expected to be nil - -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::RequestOptions - allows to set the request proxy - -Faraday::Request::Authorization - token_auth - when passed correct params - is expected to eq "Token token=\"quux\"" - and request already has an authentication header - does not interfere with existing authorization - when other values are provided - is expected to match /token="baz"/ - is expected to match /foo="42"/ - is expected to match /^Token / - and request already has an authentication header - does not interfere with existing authorization - 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 - 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 - -Faraday::Middleware - #close - with app that supports #close - should issue warning - with app that doesn't support #close - should issue warning - -Faraday::Response::RaiseError - raises Faraday::ConflictError for 409 responses - raises Faraday::UnauthorizedError for 401 responses - raises Faraday::BadRequestError for 400 responses - raises Faraday::ProxyAuthError for 407 responses - raises Faraday::NilStatusError for nil status in response - raises Faraday::ClientError for other 4xx responses - raises Faraday::UnprocessableEntityError for 422 responses - raises Faraday::ForbiddenError for 403 responses - raises Faraday::ServerError for 500 responses - raises Faraday::ResourceNotFound for 404 responses - raises no exception for 200 responses - request info - returns the request info in the exception - -Faraday::Request::Instrumentation - defaults to ActiveSupport::Notifications - instruments with default name - is expected to eq "request.faraday" - with custom instrumenter - is expected to eq :custom - with custom name - instruments with custom name - is expected to eq "custom" - -Faraday::Env - allows to access members - allows to access string non members - ignores false when fetching - allows to access symbol non members - retains custom members - #body - when response is not finished yet - returns the request body - when response is finished - returns the response body - allows to access response_body - allows to access request_body -Faraday::Adapter::NetHttp - checking http - sets max_retries to 0 - supports write_timeout - is expected to eq 80 - supports open_timeout - supports read_timeout - with https url - is expected to eq 443 - with custom adapter config - is expected to eq 123 - with http url including port - is expected to eq 1234 - behaves like an adapter - with SSL disabled - #options - behaves like a request method - sends url encoded parameters - sends request body - handles proxy failures - handles requests with proxy - handles connection error - represents empty body response as blank string - retrieves the response headers - sends url encoded nested parameters - parses the reason phrase - handles deflate compression - retrieves the response body - handles headers with multiple values - sends user agent - supports timeout option - supports open_timeout option - handles gzip compression - streaming - when response is empty - is expected to eq [["", 0]] - when response contains big data - handles streaming - #put - behaves like a request method - handles proxy failures - supports open_timeout option - sends url encoded nested parameters - sends request body - parses the reason phrase - represents empty body response as blank string - handles connection error - handles gzip compression - handles deflate compression - supports timeout option - handles headers with multiple values - retrieves the response headers - handles requests with proxy - sends files - sends url encoded parameters - retrieves the response body - sends user agent - streaming - when response contains big data - handles streaming - when response is empty - is expected to eq [["", 0]] - #post - behaves like a request method - parses the reason phrase - represents empty body response as blank string - handles deflate compression - handles proxy failures - sends request body - supports open_timeout option - sends files - retrieves the response body - handles connection error - handles headers with multiple values - sends user agent - supports timeout option - handles requests with proxy - retrieves the response headers - sends url encoded parameters - sends url encoded nested parameters - 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 - supports open_timeout option - sends url encoded parameters - handles proxy failures - represents empty body response as blank string - handles connection error - supports timeout option - handles headers with multiple values - handles deflate compression - handles gzip compression - retrieves the response body - parses the reason phrase - sends url encoded nested parameters - sends user agent - sends request body - retrieves the response headers - handles requests with proxy - streaming - when response contains big data - handles streaming - when response is empty - is expected to eq [["", 0]] - #patch - behaves like a request method - parses the reason phrase - retrieves the response body - handles requests with proxy - handles gzip compression - retrieves the response headers - sends user agent - represents empty body response as blank string - sends url encoded nested parameters - handles proxy failures - sends files - supports open_timeout option - sends request body - sends url encoded parameters - handles connection error - handles headers with multiple values - handles deflate compression - supports timeout option - streaming - when response is empty - is expected to eq [["", 0]] - when response contains big data - handles streaming - #trace - behaves like a request method - represents empty body response as blank string - parses the reason phrase - supports open_timeout option - supports timeout option - sends user agent - handles connection error - retrieves the response headers - handles requests with proxy - retrieves the response body - handles deflate compression - handles gzip compression - handles proxy failures - handles headers with multiple values - sends request body - sends url encoded nested parameters - sends url encoded parameters - streaming - when response is empty - is expected to eq [["", 0]] - when response contains big data - handles streaming - #head - behaves like a request method - handles proxy failures - supports timeout option - sends url encoded nested parameters - handles requests with proxy - supports open_timeout option - handles headers with multiple values - parses the reason phrase - sends request body - sends url encoded parameters - represents empty body response as blank string - sends user agent - handles connection error - retrieves the response headers - retrieves the response body - streaming - when response is empty - is expected to eq [["", 0]] - when response contains big data - handles streaming - #get - behaves like a request method - retrieves the response headers - handles requests with proxy - handles connection error - sends user agent - sends url encoded parameters - handles deflate compression - parses the reason phrase - sends request body - handles headers with multiple values - supports open_timeout option - retrieves the response body - supports timeout option - handles proxy failures - represents empty body response as blank string - 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 - with SSL enabled - #put - behaves like a request method - sends url encoded parameters - sends request body - supports timeout option - represents empty body response as blank string - supports open_timeout option - handles deflate compression - parses the reason phrase - handles connection error - retrieves the response body - handles proxy failures - handles gzip compression - sends files - handles requests with proxy - sends url encoded nested parameters - sends user agent - handles headers with multiple values - retrieves the response headers - streaming - when response is empty - is expected to eq [["", 0]] - when response contains big data - handles streaming - #get - behaves like a request method - retrieves the response body - parses the reason phrase - supports open_timeout option - handles deflate compression - sends url encoded nested parameters - sends request body - sends user agent - handles connection error - supports timeout option - represents empty body response as blank string - handles headers with multiple values - sends url encoded parameters - retrieves the response headers - handles proxy failures - handles requests with proxy - handles gzip compression - streaming - when response is empty - is expected to eq [["", 0]] - when response contains big data - handles streaming - #trace - behaves like a request method - sends user agent - supports open_timeout option - sends request body - handles requests with proxy - handles deflate compression - parses the reason phrase - sends url encoded parameters - represents empty body response as blank string - retrieves the response headers - sends url encoded nested parameters - retrieves the response body - handles connection error - handles gzip compression - handles headers with multiple values - handles proxy failures - supports timeout option - streaming - when response is empty - is expected to eq [["", 0]] - when response contains big data - handles streaming - #options - behaves like a request method - handles deflate compression - handles proxy failures - handles requests with proxy - sends url encoded nested parameters - supports open_timeout option - handles connection error - sends user agent - sends url encoded parameters - sends request body - handles headers with multiple values - represents empty body response as blank string - retrieves the response headers - retrieves the response body - handles gzip compression - parses the reason phrase - supports timeout option - streaming - when response contains big data - handles streaming - when response is empty - is expected to eq [["", 0]] - #head - behaves like a request method - handles requests with proxy - represents empty body response as blank string - retrieves the response body - supports timeout option - sends url encoded parameters - handles proxy failures - sends url encoded nested parameters - handles headers with multiple values - parses the reason phrase - sends request body - handles connection error - retrieves the response headers - supports open_timeout option - sends user agent - streaming - when response is empty - is expected to eq [["", 0]] - when response contains big data - handles streaming - #delete - behaves like a request method - handles proxy failures - sends url encoded parameters - handles gzip compression - retrieves the response headers - handles headers with multiple values - supports timeout option - handles requests with proxy - parses the reason phrase - represents empty body response as blank string - sends user agent - handles deflate compression - supports open_timeout option - sends url encoded nested parameters - sends request body - retrieves the response body - handles connection error - streaming - when response contains big data - handles streaming - when response is empty - is expected to eq [["", 0]] - #patch - behaves like a request method - represents empty body response as blank string - sends url encoded nested parameters - handles gzip compression - handles proxy failures - retrieves the response body - handles deflate compression - sends user agent - sends url encoded parameters - supports open_timeout option - sends files - retrieves the response headers - handles requests with proxy - handles headers with multiple values - supports timeout option - handles connection error - sends request body - parses the reason phrase - streaming - when response contains big data - handles streaming - when response is empty - is expected to eq [["", 0]] - #post - behaves like a request method - handles deflate compression - handles proxy failures - retrieves the response headers - sends url encoded parameters - supports timeout option - sends files - retrieves the response body - handles connection error - sends url encoded nested parameters - sends user agent - parses the reason phrase - sends request body - handles gzip compression - handles requests with proxy - supports open_timeout option - represents empty body response as blank string - handles headers with multiple values - streaming - when response is empty - is expected to eq [["", 0]] - when response contains big data - handles streaming +Faraday::NestedParamsEncoder + decodes nested array mixed types + decodes hashes + encodes boolean values in array + decodes nested ignores malformed keys + encodes unsorted when asked + encodes boolean values + decodes nested ignores invalid array + decodes nested ignores repeated array notation + decodes arrays + encodes empty string array value + decodes nested arrays rack compat + encodes empty array value + decodes nested final value overrides any type + encodes nil array value + decodes nested subkeys dont have to be in brackets + encodes rack compat + when expecting array but getting string + behaves like a wrong decoding + is expected to raise TypeError + behaves like a params encoder + escapes safe buffer + raises type error for empty string + encodes nil + when expecting array but getting hash + 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 nested hash but getting non nested + 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 -Faraday::Response::Logger - logs filter url - logs request headers by default - logs response headers by default - logs filter headers - logs method and url - still returns output - does not log response body by default - does not log request body by default - when not logging response headers - does not log response headers if option is false - when not logging request headers - does not log request headers if option is false - when logging request body - log only request body - when logging request and response bodies - log request and response body - logs filter body - log response body object - without configuration - defaults to stdout - when logging response body - log only response body - with custom formatter - logs with custom formatter - with default formatter - delegates logging to the formatter - when using log_level - does not log request/response body on the info level - does not log headers on the info level - logs request/request body on the specified level (debug) - logs headers on the debug level +Faraday::Response::Middleware + with a custom ResponseMiddleware and private parse + parses the response + with a custom ResponseMiddleware but empty response + doesn't call the middleware for 304 responses + doesn't call the middleware for 204 responses + raises exception for 200 responses + with a custom ResponseMiddleware + parses the response -Finished in 1 minute 36.79 seconds (files took 7.24 seconds to load) +Finished in 55.94 seconds (files took 2.83 seconds to load) 2543 examples, 0 failures -Randomized with seed 33160 +Randomized with seed 61370 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. @@ -4702,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/2103318/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/2103318/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/3618121 and its subdirectories -I: Current time: Thu Jun 13 15:26:50 -12 2024 -I: pbuilder-time-stamp: 1718335610 +I: removing directory /srv/workspace/pbuilder/2103318 and its subdirectories +I: Current time: Sat May 13 11:05:50 +14 2023 +I: pbuilder-time-stamp: 1683925550