Diff of the two buildlogs: -- --- b1/build.log 2021-08-12 15:22:52.412355834 +0000 +++ b2/build.log 2021-08-12 15:23:36.982677553 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Thu Aug 12 03:17:49 -12 2021 -I: pbuilder-time-stamp: 1628781469 +I: Current time: Thu Sep 15 11:45:53 +14 2022 +I: pbuilder-time-stamp: 1663191953 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/bullseye-reproducible-base.tgz] I: copying local configuration @@ -17,8 +17,8 @@ I: copying [./ruby-faraday_1.1.0-6.debian.tar.xz] I: Extracting source gpgv: unknown type of key resource 'trustedkeys.kbx' -gpgv: keyblock resource '/tmp/dpkg-verify-sig.b7ukoE65/trustedkeys.kbx': General error -gpgv: Signature made Thu Jan 28 08:29:33 2021 -12 +gpgv: keyblock resource '/tmp/dpkg-verify-sig.a_9PO1SP/trustedkeys.kbx': General error +gpgv: Signature made Fri Jan 29 10:29:33 2021 +14 gpgv: using RSA key 8ED6C3F8BAC9DB7FC130A870F823A2729883C97C gpgv: issuer "lucas.kanashiro@canonical.com" gpgv: Can't check signature: No public key @@ -34,137 +34,171 @@ 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/17170/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/62259/tmp/hooks/D01_modify_environment starting +debug: Running on ionos16-i386. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +Removing 'diversion of /bin/sh to /bin/sh.distrib by dash' +Adding 'diversion of /bin/sh to /bin/sh.distrib by bash' +Removing 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash' +Adding 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by bash' +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/62259/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/62259/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='i386' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all,-fixfilepath parallel=8' - DISTRIBUTION='' - HOME='/root' - HOST_ARCH='i386' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="1" [2]="4" [3]="1" [4]="release" [5]="i686-pc-linux-gnu") + BASH_VERSION='5.1.4(1)-release' + BUILDDIR=/build + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=i386 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all,-fixfilepath parallel=15' + DIRSTACK=() + DISTRIBUTION= + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=i686 + HOST_ARCH=i386 IFS=' ' - INVOCATION_ID='98eb28c0d4b349229c3a86150f791120' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - LD_LIBRARY_PATH='/usr/lib/libeatmydata' - LD_PRELOAD='libeatmydata.so' - 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='17170' - PS1='# ' - PS2='> ' + INVOCATION_ID=b51308554cfa4543bd1a28a48e5c15e9 + LANG=C + LANGUAGE=de_CH:de + LC_ALL=C + LD_LIBRARY_PATH=/usr/lib/libeatmydata + LD_PRELOAD=libeatmydata.so + MACHTYPE=i686-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=62259 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/tmp.Wig8kUJJJm/pbuilderrc_qVYo --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bullseye-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.Wig8kUJJJm/b1 --logfile b1/build.log ruby-faraday_1.1.0-6.dsc' - SUDO_GID='112' - SUDO_UID='107' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://78.137.99.97:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/tmp.Wig8kUJJJm/pbuilderrc_tD3o --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bullseye-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.Wig8kUJJJm/b2 --logfile b2/build.log --extrapackages usrmerge ruby-faraday_1.1.0-6.dsc' + SUDO_GID=112 + SUDO_UID=107 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://85.184.249.68:3128 I: uname -a - Linux ionos12-i386 4.19.0-17-686-pae #1 SMP Debian 4.19.194-3 (2021-07-18) i686 GNU/Linux + Linux i-capture-the-hostname 4.19.0-17-amd64 #1 SMP Debian 4.19.194-3 (2021-07-18) x86_64 GNU/Linux I: ls -l /bin total 5776 - -rwxr-xr-x 1 root root 1367848 Aug 4 08:25 bash - -rwxr-xr-x 3 root root 38280 Jul 20 2020 bunzip2 - -rwxr-xr-x 3 root root 38280 Jul 20 2020 bzcat - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzcmp -> bzdiff - -rwxr-xr-x 1 root root 2225 Jul 20 2020 bzdiff - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzegrep -> bzgrep - -rwxr-xr-x 1 root root 4877 Sep 4 2019 bzexe - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzfgrep -> bzgrep - -rwxr-xr-x 1 root root 3775 Jul 20 2020 bzgrep - -rwxr-xr-x 3 root root 38280 Jul 20 2020 bzip2 - -rwxr-xr-x 1 root root 17768 Jul 20 2020 bzip2recover - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzless -> bzmore - -rwxr-xr-x 1 root root 1297 Jul 20 2020 bzmore - -rwxr-xr-x 1 root root 38824 Sep 22 2020 cat - -rwxr-xr-x 1 root root 71624 Sep 22 2020 chgrp - -rwxr-xr-x 1 root root 67528 Sep 22 2020 chmod - -rwxr-xr-x 1 root root 75752 Sep 22 2020 chown - -rwxr-xr-x 1 root root 157960 Sep 22 2020 cp - -rwxr-xr-x 1 root root 128724 Dec 10 2020 dash - -rwxr-xr-x 1 root root 124904 Sep 22 2020 date - -rwxr-xr-x 1 root root 92172 Sep 22 2020 dd - -rwxr-xr-x 1 root root 100752 Sep 22 2020 df - -rwxr-xr-x 1 root root 153964 Sep 22 2020 dir - -rwxr-xr-x 1 root root 83644 Jul 28 07:09 dmesg - lrwxrwxrwx 1 root root 8 Nov 6 2019 dnsdomainname -> hostname - lrwxrwxrwx 1 root root 8 Nov 6 2019 domainname -> hostname - -rwxr-xr-x 1 root root 34664 Sep 22 2020 echo - -rwxr-xr-x 1 root root 28 Nov 9 2020 egrep - -rwxr-xr-x 1 root root 34664 Sep 22 2020 false - -rwxr-xr-x 1 root root 28 Nov 9 2020 fgrep - -rwxr-xr-x 1 root root 71928 Jul 28 07:09 findmnt - -rwsr-xr-x 1 root root 30112 Feb 26 04:12 fusermount - -rwxr-xr-x 1 root root 210488 Nov 9 2020 grep - -rwxr-xr-x 2 root root 2346 Mar 2 11:30 gunzip - -rwxr-xr-x 1 root root 6376 Mar 2 11:30 gzexe - -rwxr-xr-x 1 root root 100952 Mar 2 11:30 gzip - -rwxr-xr-x 1 root root 21916 Nov 6 2019 hostname - -rwxr-xr-x 1 root root 83980 Sep 22 2020 ln - -rwxr-xr-x 1 root root 55572 Feb 7 2020 login - -rwxr-xr-x 1 root root 153964 Sep 22 2020 ls - -rwxr-xr-x 1 root root 153124 Jul 28 07:09 lsblk - -rwxr-xr-x 1 root root 96328 Sep 22 2020 mkdir - -rwxr-xr-x 1 root root 79912 Sep 22 2020 mknod - -rwxr-xr-x 1 root root 47048 Sep 22 2020 mktemp - -rwxr-xr-x 1 root root 58920 Jul 28 07:09 more - -rwsr-xr-x 1 root root 50720 Jul 28 07:09 mount - -rwxr-xr-x 1 root root 13856 Jul 28 07:09 mountpoint - -rwxr-xr-x 1 root root 157996 Sep 22 2020 mv - lrwxrwxrwx 1 root root 8 Nov 6 2019 nisdomainname -> hostname - lrwxrwxrwx 1 root root 14 Apr 18 03:38 pidof -> /sbin/killall5 - -rwxr-xr-x 1 root root 38824 Sep 22 2020 pwd - lrwxrwxrwx 1 root root 4 Aug 4 08:25 rbash -> bash - -rwxr-xr-x 1 root root 46984 Sep 22 2020 readlink - -rwxr-xr-x 1 root root 75720 Sep 22 2020 rm - -rwxr-xr-x 1 root root 46984 Sep 22 2020 rmdir - -rwxr-xr-x 1 root root 22292 Sep 27 2020 run-parts - -rwxr-xr-x 1 root root 125036 Dec 22 2018 sed - lrwxrwxrwx 1 root root 4 Aug 10 19:48 sh -> dash - -rwxr-xr-x 1 root root 34696 Sep 22 2020 sleep - -rwxr-xr-x 1 root root 83880 Sep 22 2020 stty - -rwsr-xr-x 1 root root 79396 Jul 28 07:09 su - -rwxr-xr-x 1 root root 34696 Sep 22 2020 sync - -rwxr-xr-x 1 root root 602584 Feb 16 21:55 tar - -rwxr-xr-x 1 root root 13860 Sep 27 2020 tempfile - -rwxr-xr-x 1 root root 108520 Sep 22 2020 touch - -rwxr-xr-x 1 root root 34664 Sep 22 2020 true - -rwxr-xr-x 1 root root 17768 Feb 26 04:12 ulockmgr_server - -rwsr-xr-x 1 root root 30236 Jul 28 07:09 umount - -rwxr-xr-x 1 root root 34664 Sep 22 2020 uname - -rwxr-xr-x 2 root root 2346 Mar 2 11:30 uncompress - -rwxr-xr-x 1 root root 153964 Sep 22 2020 vdir - -rwxr-xr-x 1 root root 63024 Jul 28 07:09 wdctl - lrwxrwxrwx 1 root root 8 Nov 6 2019 ypdomainname -> hostname - -rwxr-xr-x 1 root root 1984 Mar 2 11:30 zcat - -rwxr-xr-x 1 root root 1678 Mar 2 11:30 zcmp - -rwxr-xr-x 1 root root 5880 Mar 2 11:30 zdiff - -rwxr-xr-x 1 root root 29 Mar 2 11:30 zegrep - -rwxr-xr-x 1 root root 29 Mar 2 11:30 zfgrep - -rwxr-xr-x 1 root root 2081 Mar 2 11:30 zforce - -rwxr-xr-x 1 root root 7585 Mar 2 11:30 zgrep - -rwxr-xr-x 1 root root 2206 Mar 2 11:30 zless - -rwxr-xr-x 1 root root 1842 Mar 2 11:30 zmore - -rwxr-xr-x 1 root root 4553 Mar 2 11:30 znew -I: user script /srv/workspace/pbuilder/17170/tmp/hooks/D02_print_environment finished + -rwxr-xr-x 1 root root 1367848 Aug 5 2021 bash + -rwxr-xr-x 3 root root 38280 Jul 21 2020 bunzip2 + -rwxr-xr-x 3 root root 38280 Jul 21 2020 bzcat + lrwxrwxrwx 1 root root 6 Jul 21 2020 bzcmp -> bzdiff + -rwxr-xr-x 1 root root 2225 Jul 21 2020 bzdiff + lrwxrwxrwx 1 root root 6 Jul 21 2020 bzegrep -> bzgrep + -rwxr-xr-x 1 root root 4877 Sep 5 2019 bzexe + lrwxrwxrwx 1 root root 6 Jul 21 2020 bzfgrep -> bzgrep + -rwxr-xr-x 1 root root 3775 Jul 21 2020 bzgrep + -rwxr-xr-x 3 root root 38280 Jul 21 2020 bzip2 + -rwxr-xr-x 1 root root 17768 Jul 21 2020 bzip2recover + lrwxrwxrwx 1 root root 6 Jul 21 2020 bzless -> bzmore + -rwxr-xr-x 1 root root 1297 Jul 21 2020 bzmore + -rwxr-xr-x 1 root root 38824 Sep 23 2020 cat + -rwxr-xr-x 1 root root 71624 Sep 23 2020 chgrp + -rwxr-xr-x 1 root root 67528 Sep 23 2020 chmod + -rwxr-xr-x 1 root root 75752 Sep 23 2020 chown + -rwxr-xr-x 1 root root 157960 Sep 23 2020 cp + -rwxr-xr-x 1 root root 128724 Dec 11 2020 dash + -rwxr-xr-x 1 root root 124904 Sep 23 2020 date + -rwxr-xr-x 1 root root 92172 Sep 23 2020 dd + -rwxr-xr-x 1 root root 100752 Sep 23 2020 df + -rwxr-xr-x 1 root root 153964 Sep 23 2020 dir + -rwxr-xr-x 1 root root 83644 Jul 29 2021 dmesg + lrwxrwxrwx 1 root root 8 Nov 8 2019 dnsdomainname -> hostname + lrwxrwxrwx 1 root root 8 Nov 8 2019 domainname -> hostname + -rwxr-xr-x 1 root root 34664 Sep 23 2020 echo + -rwxr-xr-x 1 root root 28 Nov 10 2020 egrep + -rwxr-xr-x 1 root root 34664 Sep 23 2020 false + -rwxr-xr-x 1 root root 28 Nov 10 2020 fgrep + -rwxr-xr-x 1 root root 71928 Jul 29 2021 findmnt + -rwsr-xr-x 1 root root 30112 Feb 27 2021 fusermount + -rwxr-xr-x 1 root root 210488 Nov 10 2020 grep + -rwxr-xr-x 2 root root 2346 Mar 3 2021 gunzip + -rwxr-xr-x 1 root root 6376 Mar 3 2021 gzexe + -rwxr-xr-x 1 root root 100952 Mar 3 2021 gzip + -rwxr-xr-x 1 root root 21916 Nov 8 2019 hostname + -rwxr-xr-x 1 root root 83980 Sep 23 2020 ln + -rwxr-xr-x 1 root root 55572 Feb 8 2020 login + -rwxr-xr-x 1 root root 153964 Sep 23 2020 ls + -rwxr-xr-x 1 root root 153124 Jul 29 2021 lsblk + -rwxr-xr-x 1 root root 96328 Sep 23 2020 mkdir + -rwxr-xr-x 1 root root 79912 Sep 23 2020 mknod + -rwxr-xr-x 1 root root 47048 Sep 23 2020 mktemp + -rwxr-xr-x 1 root root 58920 Jul 29 2021 more + -rwsr-xr-x 1 root root 50720 Jul 29 2021 mount + -rwxr-xr-x 1 root root 13856 Jul 29 2021 mountpoint + -rwxr-xr-x 1 root root 157996 Sep 23 2020 mv + lrwxrwxrwx 1 root root 8 Nov 8 2019 nisdomainname -> hostname + lrwxrwxrwx 1 root root 14 Apr 19 2021 pidof -> /sbin/killall5 + -rwxr-xr-x 1 root root 38824 Sep 23 2020 pwd + lrwxrwxrwx 1 root root 4 Aug 5 2021 rbash -> bash + -rwxr-xr-x 1 root root 46984 Sep 23 2020 readlink + -rwxr-xr-x 1 root root 75720 Sep 23 2020 rm + -rwxr-xr-x 1 root root 46984 Sep 23 2020 rmdir + -rwxr-xr-x 1 root root 22292 Sep 28 2020 run-parts + -rwxr-xr-x 1 root root 125036 Dec 23 2018 sed + lrwxrwxrwx 1 root root 4 Sep 15 11:46 sh -> bash + lrwxrwxrwx 1 root root 4 Sep 15 05:46 sh.distrib -> dash + -rwxr-xr-x 1 root root 34696 Sep 23 2020 sleep + -rwxr-xr-x 1 root root 83880 Sep 23 2020 stty + -rwsr-xr-x 1 root root 79396 Jul 29 2021 su + -rwxr-xr-x 1 root root 34696 Sep 23 2020 sync + -rwxr-xr-x 1 root root 602584 Feb 17 2021 tar + -rwxr-xr-x 1 root root 13860 Sep 28 2020 tempfile + -rwxr-xr-x 1 root root 108520 Sep 23 2020 touch + -rwxr-xr-x 1 root root 34664 Sep 23 2020 true + -rwxr-xr-x 1 root root 17768 Feb 27 2021 ulockmgr_server + -rwsr-xr-x 1 root root 30236 Jul 29 2021 umount + -rwxr-xr-x 1 root root 34664 Sep 23 2020 uname + -rwxr-xr-x 2 root root 2346 Mar 3 2021 uncompress + -rwxr-xr-x 1 root root 153964 Sep 23 2020 vdir + -rwxr-xr-x 1 root root 63024 Jul 29 2021 wdctl + lrwxrwxrwx 1 root root 8 Nov 8 2019 ypdomainname -> hostname + -rwxr-xr-x 1 root root 1984 Mar 3 2021 zcat + -rwxr-xr-x 1 root root 1678 Mar 3 2021 zcmp + -rwxr-xr-x 1 root root 5880 Mar 3 2021 zdiff + -rwxr-xr-x 1 root root 29 Mar 3 2021 zegrep + -rwxr-xr-x 1 root root 29 Mar 3 2021 zfgrep + -rwxr-xr-x 1 root root 2081 Mar 3 2021 zforce + -rwxr-xr-x 1 root root 7585 Mar 3 2021 zgrep + -rwxr-xr-x 1 root root 2206 Mar 3 2021 zless + -rwxr-xr-x 1 root root 1842 Mar 3 2021 zmore + -rwxr-xr-x 1 root root 4553 Mar 3 2021 znew +I: user script /srv/workspace/pbuilder/62259/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -453,7 +487,7 @@ Get: 213 http://deb.debian.org/debian bullseye/main i386 ruby-sinatra all 2.0.8.1-2 [351 kB] Get: 214 http://deb.debian.org/debian bullseye/main i386 ruby-typhoeus all 1.4.0-1 [36.2 kB] Get: 215 http://deb.debian.org/debian bullseye/main i386 ruby-webmock all 3.8.3-1 [64.3 kB] -Fetched 52.3 MB in 13s (4042 kB/s) +Fetched 52.3 MB in 1s (72.9 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package bsdextrautils. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19675 files and directories currently installed.) @@ -1343,9 +1377,41 @@ Building dependency tree... Reading state information... fakeroot is already the newest version (1.25.3-1.1). -0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. +The following additional packages will be installed: + libfile-find-rule-perl libnumber-compare-perl libtext-glob-perl +The following NEW packages will be installed: + libfile-find-rule-perl libnumber-compare-perl libtext-glob-perl usrmerge +0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. +Need to get 59.5 kB of archives. +After this operation, 157 kB of additional disk space will be used. +Get:1 http://deb.debian.org/debian bullseye/main i386 libnumber-compare-perl all 0.03-1.1 [6956 B] +Get:2 http://deb.debian.org/debian bullseye/main i386 libtext-glob-perl all 0.11-1 [8888 B] +Get:3 http://deb.debian.org/debian bullseye/main i386 libfile-find-rule-perl all 0.34-1 [30.6 kB] +Get:4 http://deb.debian.org/debian bullseye/main i386 usrmerge all 25 [13.0 kB] +debconf: delaying package configuration, since apt-utils is not installed +Fetched 59.5 kB in 0s (4278 kB/s) +Selecting previously unselected package libnumber-compare-perl. +(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 ... 31052 files and directories currently installed.) +Preparing to unpack .../libnumber-compare-perl_0.03-1.1_all.deb ... +Unpacking libnumber-compare-perl (0.03-1.1) ... +Selecting previously unselected package libtext-glob-perl. +Preparing to unpack .../libtext-glob-perl_0.11-1_all.deb ... +Unpacking libtext-glob-perl (0.11-1) ... +Selecting previously unselected package libfile-find-rule-perl. +Preparing to unpack .../libfile-find-rule-perl_0.34-1_all.deb ... +Unpacking libfile-find-rule-perl (0.34-1) ... +Selecting previously unselected package usrmerge. +Preparing to unpack .../archives/usrmerge_25_all.deb ... +Unpacking usrmerge (25) ... +Setting up libtext-glob-perl (0.11-1) ... +Setting up libnumber-compare-perl (0.03-1.1) ... +Setting up libfile-find-rule-perl (0.34-1) ... +Setting up usrmerge (25) ... +The system has been successfully converted. +Processing triggers for man-db (2.9.4-2) ... +Not building database; man-db/auto-update is not 'true'. 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 +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 dpkg-buildpackage: info: source package ruby-faraday dpkg-buildpackage: info: source version 1.1.0-6 dpkg-buildpackage: info: source distribution unstable @@ -1385,54 +1451,54 @@ └──────────────────────────────────────────────────────────────────────────────┘ install -d /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby -install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday.rb -install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/adapter/excon.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/adapter/excon.rb -install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/adapter/net_http.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/adapter/net_http.rb -install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/adapter/em_synchrony/parallel_manager.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/adapter/em_synchrony/parallel_manager.rb -install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/adapter/patron.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/adapter/patron.rb -install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/adapter/em_http_ssl_patch.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/adapter/em_http_ssl_patch.rb -install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/adapter/typhoeus.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/adapter/typhoeus.rb -install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/adapter/rack.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/adapter/rack.rb -install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/adapter/net_http_persistent.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/adapter/net_http_persistent.rb -install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/adapter/em_http.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/adapter/em_http.rb -install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/adapter/em_synchrony.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/adapter/em_synchrony.rb -install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/adapter/test.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/adapter/test.rb -install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/adapter/httpclient.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/adapter/httpclient.rb -install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/response.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/response.rb -install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/autoload.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/autoload.rb -install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/options.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/options.rb -install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/param_part.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/param_part.rb -install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/middleware.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/middleware.rb -install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/error.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/error.rb -install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/dependency_loader.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/dependency_loader.rb -install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/logging/formatter.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/logging/formatter.rb -install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/utils.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/utils.rb -install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/response/raise_error.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/response/raise_error.rb -install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/response/logger.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/response/logger.rb -install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/adapter.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/adapter.rb -install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/options/ssl_options.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/options/ssl_options.rb -install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/options/connection_options.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/options/connection_options.rb -install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/options/env.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/options/env.rb -install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/options/request_options.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/options/request_options.rb -install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/options/proxy_options.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/options/proxy_options.rb -install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/parameters.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/parameters.rb -install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/adapter_registry.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/adapter_registry.rb -install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/middleware_registry.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/middleware_registry.rb install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/request.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/request.rb -install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/file_part.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/file_part.rb -install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/encoders/flat_params_encoder.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/encoders/flat_params_encoder.rb -install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/encoders/nested_params_encoder.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/encoders/nested_params_encoder.rb +install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/logging/formatter.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/logging/formatter.rb +install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/request/authorization.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/request/authorization.rb +install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/request/instrumentation.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/request/instrumentation.rb +install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/request/retry.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/request/retry.rb install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/request/basic_authentication.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/request/basic_authentication.rb install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/request/url_encoded.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/request/url_encoded.rb -install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/request/retry.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/request/retry.rb -install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/request/authorization.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/request/authorization.rb install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/request/multipart.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/request/multipart.rb -install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/request/instrumentation.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/request/instrumentation.rb install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/request/token_authentication.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/request/token_authentication.rb +install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/file_part.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/file_part.rb install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/rack_builder.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/rack_builder.rb -install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/utils/headers.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/utils/headers.rb +install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/parameters.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/parameters.rb +install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/utils.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/utils.rb +install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/response.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/response.rb +install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/options.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/options.rb +install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/encoders/nested_params_encoder.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/encoders/nested_params_encoder.rb +install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/encoders/flat_params_encoder.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/encoders/flat_params_encoder.rb +install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/adapter_registry.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/adapter_registry.rb +install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/options/request_options.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/options/request_options.rb +install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/options/ssl_options.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/options/ssl_options.rb +install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/options/env.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/options/env.rb +install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/options/connection_options.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/options/connection_options.rb +install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/options/proxy_options.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/options/proxy_options.rb +install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/middleware_registry.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/middleware_registry.rb install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/utils/params_hash.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/utils/params_hash.rb +install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/utils/headers.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/utils/headers.rb +install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/error.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/error.rb +install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/dependency_loader.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/dependency_loader.rb +install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/response/raise_error.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/response/raise_error.rb +install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/response/logger.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/response/logger.rb install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/connection.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/connection.rb +install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/middleware.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/middleware.rb +install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/autoload.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/autoload.rb +install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/adapter.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/adapter.rb +install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/adapter/rack.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/adapter/rack.rb +install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/adapter/patron.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/adapter/patron.rb +install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/adapter/typhoeus.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/adapter/typhoeus.rb +install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/adapter/net_http.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/adapter/net_http.rb +install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/adapter/test.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/adapter/test.rb +install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/adapter/em_http_ssl_patch.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/adapter/em_http_ssl_patch.rb +install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/adapter/httpclient.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/adapter/httpclient.rb +install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/adapter/em_synchrony.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/adapter/em_synchrony.rb +install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/adapter/em_http.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/adapter/em_http.rb +install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/adapter/excon.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/adapter/excon.rb +install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/adapter/em_synchrony/parallel_manager.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/adapter/em_synchrony/parallel_manager.rb +install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/adapter/net_http_persistent.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/adapter/net_http_persistent.rb +install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday/param_part.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday/param_part.rb +install -D -m644 /build/ruby-faraday-1.1.0/lib/faraday.rb /build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby/faraday.rb ┌──────────────────────────────────────────────────────────────────────────────┐ │ Install Rubygems integration metadata │ @@ -1449,3232 +1515,3232 @@ RUBYLIB=/build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/lib/ruby/vendor_ruby:. GEM_PATH=/build/ruby-faraday-1.1.0/debian/ruby-faraday/usr/share/rubygems-integration/all:/var/lib/gems/2.7.0:/usr/local/lib/ruby/gems/2.7.0:/usr/lib/ruby/gems/2.7.0:/usr/lib/i386-linux-gnu/ruby/gems/2.7.0:/usr/share/rubygems-integration/2.7.0:/usr/share/rubygems-integration/all:/usr/lib/i386-linux-gnu/rubygems-integration/2.7.0 ruby2.7 -S rake -f debian/ruby-tests.rake /usr/bin/ruby2.7 -I/usr/share/rubygems-integration/all/gems/rspec-support-3.9.3/lib:/usr/share/rubygems-integration/all/gems/rspec-core-3.9.2/lib /usr/share/rubygems-integration/all/gems/rspec-core-3.9.2/exe/rspec ./spec/faraday/adapter/em_http_spec.rb ./spec/faraday/adapter/em_synchrony_spec.rb ./spec/faraday/adapter/excon_spec.rb ./spec/faraday/adapter/httpclient_spec.rb ./spec/faraday/adapter/net_http_persistent_spec.rb ./spec/faraday/adapter/net_http_spec.rb ./spec/faraday/adapter/rack_spec.rb ./spec/faraday/adapter/test_spec.rb ./spec/faraday/adapter/typhoeus_spec.rb ./spec/faraday/adapter_registry_spec.rb ./spec/faraday/adapter_spec.rb ./spec/faraday/composite_read_io_spec.rb ./spec/faraday/connection_spec.rb ./spec/faraday/error_spec.rb ./spec/faraday/middleware_spec.rb ./spec/faraday/options/env_spec.rb ./spec/faraday/options/options_spec.rb ./spec/faraday/options/proxy_options_spec.rb ./spec/faraday/options/request_options_spec.rb ./spec/faraday/params_encoders/flat_spec.rb ./spec/faraday/params_encoders/nested_spec.rb ./spec/faraday/rack_builder_spec.rb ./spec/faraday/request/authorization_spec.rb ./spec/faraday/request/instrumentation_spec.rb ./spec/faraday/request/multipart_spec.rb ./spec/faraday/request/retry_spec.rb ./spec/faraday/request/url_encoded_spec.rb ./spec/faraday/request_spec.rb ./spec/faraday/response/logger_spec.rb ./spec/faraday/response/middleware_spec.rb ./spec/faraday/response/raise_error_spec.rb ./spec/faraday/response_spec.rb ./spec/faraday/utils/headers_spec.rb ./spec/faraday/utils_spec.rb ./spec/faraday_spec.rb --format documentation -Randomized with seed 6160 - -Faraday::RequestOptions - allows to set the request proxy - -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 - decodes arrays - encodes boolean values - encodes boolean values in array - encodes empty array in hash - decodes boolean values - encodes unsorted when asked - behaves like a params encoder - encodes nil - raises type error for empty string - escapes safe buffer - -Faraday::Request::Authorization - basic_auth - when passed very long values - is expected to eq "Basic QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQU...UFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBOg==" - and request already has an authentication header - does not interfere with existing authorization - when passed correct params - is expected to eq "Basic YWxhZGRpbjpvcGVuc2VzYW1l" - and request already has an authentication header - does not interfere with existing authorization - authorization - when passed two strings - is expected to eq "custom abc def" - and request already has an authentication header - does not interfere with existing authorization - when passed a string and a hash - is expected to eq "baz foo=\"42\"" - and request already has an authentication header - does not interfere with existing authorization - token_auth - when 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 - when passed correct params - is expected to eq "Token token=\"quux\"" - and request already has an authentication header - does not interfere with existing authorization +Randomized with seed 14109 Faraday::ProxyOptions allows hash access #from - works with string works with nil + works with string works with no auth -Faraday::Request - supports marshal serialization - 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 {:bar=>"bar", :foo=>"foo"} - is expected to eq 5 - is expected to eq 10 - is expected to eq 5 - is expected to eq 10 - is expected to eq {:consumer_key=>"anonymous", :consumer_secret=>"xyz"} - is expected to eq "boo" - 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 # - is expected to eq "http://sushi.com/api/foo.json?a=1" - is expected to eq {"a"=>"1"} - 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 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 a header on setup with []= syntax - is expected to eq "Faraday" - is expected to eq "Faraday" - is expected to eq "1.0" - when setting the url on setup with a string path and params - is expected to eq "foo.json" - is expected to eq {"a"=>1} - is expected to eq "http://sushi.com/api/foo.json?a=1" - deprecate method for HTTP method -WARNING: `Faraday::Request#method` is deprecated; use `#http_method` instead. It will be removed in or after version 2.0. -`Faraday::Request#method` called from /build/ruby-faraday-1.1.0/spec/faraday/request_spec.rb:31:in `block (3 levels) in ' - is expected to eq :post - is expected to output /WARNING: `Faraday::Request#method` is deprecated; use `#http_method` instead. It will be removed in ...r after version 2.0.\n`Faraday::Request#method` called from .+\/spec\/faraday\/request_spec.rb:\d+./ to stderr - -Faraday::Options - #merge - merges options with hashes - deeply merges options with options having nil sub-options - deeply merges options with hashes - deeply merges options with nil - deeply merges two options - #update - updates options from hashes - #empty? - returns true only if all options are nil - #memoized - requires block - accepts block - #key? - returns true if the key exists and is not nil - #value? - returns true if any key has that value - #clear - clears the options - #each_key - allows to iterate through keys - #delete - allows to remove value for key - #fetch - when the fetched key has no value - accepts block - uses falsey default - needs a default if key is missing - when the fetched key has a value - grabs value - works with key - #each_value - allows to iterate through values - #dup - duplicate options but not sub-options - #from - works with hash - respects inheritance - works with nil - works with options with sub object - works with hash with sub object - is expected to raise NoMethodError - works with deep hash - works with options - #deep_dup - duplicate options and also suboptions - -Faraday::Adapter::HTTPClient +Faraday::Adapter::EMSynchrony allows to provide adapter specific configs behaves like an adapter with SSL disabled - #patch + #delete behaves like a request method + represents empty body response as blank string handles headers with multiple values - handles deflate compression - sends url encoded nested parameters + retrieves the response body + retrieves the response headers sends url encoded parameters - parses the reason phrase - handles gzip compression - supports timeout option - handles requests with proxy supports open_timeout option + binds local socket + handles connection error + parses the reason phrase + sends url encoded nested parameters sends request body - retrieves the response headers - sends files handles proxy failures - handles connection error - binds local socket - retrieves the response body sends user agent - represents empty body response as blank string - #delete - behaves like a request method + handles requests with proxy supports timeout option - sends request body - represents empty body response as blank string - supports open_timeout option - handles deflate compression + with parallel setup + handles parallel requests status + handles parallel requests body + #head + behaves like a request method + handles connection error handles requests with proxy - handles headers with multiple values - handles proxy failures + sends request body binds local socket - parses the reason phrase retrieves the response headers - sends url encoded parameters sends user agent - retrieves the response body - sends url encoded nested parameters - handles connection error - handles gzip compression - #put - behaves like a request method + handles headers with multiple values parses the reason phrase - sends request body supports timeout option - handles deflate compression - handles headers with multiple values - handles requests with proxy - handles gzip compression - binds local socket - handles connection error - sends url encoded parameters - sends user agent handles proxy failures - sends files - sends url encoded nested parameters - retrieves the response headers represents empty body response as blank string - retrieves the response body + sends url encoded nested parameters supports open_timeout option - #options + sends url encoded parameters + with parallel setup + handles parallel requests status + #put behaves like a request method - handles connection error + binds local socket + retrieves the response headers + supports timeout option parses the reason phrase - represents empty body response as blank string - handles gzip compression - handles proxy failures - handles deflate compression + sends files sends user agent sends request body - sends url encoded parameters supports open_timeout option retrieves the response body - supports timeout option - binds local socket handles headers with multiple values - handles requests with proxy - retrieves the response headers + handles connection error sends url encoded nested parameters - #trace + sends url encoded parameters + represents empty body response as blank string + handles proxy failures + handles requests with proxy + with parallel setup + handles parallel requests status + handles parallel requests body + #options behaves like a request method + parses the reason phrase sends user agent - handles gzip compression - handles deflate compression - handles proxy failures - handles headers with multiple values sends url encoded nested parameters - sends url encoded parameters - handles requests with proxy - represents empty body response as blank string retrieves the response body - retrieves the response headers handles connection error + handles proxy failures binds local socket - supports timeout option sends request body - parses the reason phrase + supports timeout option + handles headers with multiple values + sends url encoded parameters + retrieves the response headers + handles requests with proxy supports open_timeout option - #get + represents empty body response as blank string + with parallel setup + handles parallel requests body + handles parallel requests status + #post behaves like a request method - handles deflate compression + sends files sends url encoded parameters - parses the reason phrase + retrieves the response headers + binds local socket retrieves the response body - handles headers with multiple values - supports timeout option - sends request body + handles requests with proxy sends url encoded nested parameters - handles proxy failures - binds local socket supports open_timeout option - represents empty body response as blank string - handles gzip compression - handles connection error - retrieves the response headers - handles requests with proxy sends user agent - #head - behaves like a request method + sends request body supports timeout option - binds local socket - sends url encoded nested parameters + handles proxy failures + parses the reason phrase + handles connection error represents empty body response as blank string - supports open_timeout option - retrieves the response body - handles requests with proxy handles headers with multiple values - parses the reason phrase + with parallel setup + handles parallel requests body + handles parallel requests status + #patch + behaves like a request method + sends url encoded nested parameters + binds local socket handles proxy failures - handles connection error - sends request body - sends user agent sends url encoded parameters + sends files + handles connection error retrieves the response headers - #post - behaves like a request method - handles deflate compression - retrieves the response headers - sends user agent - handles proxy failures - binds local socket - handles requests with proxy - represents empty body response as blank string supports open_timeout option - sends files - supports timeout option + sends user agent handles headers with multiple values + supports timeout option + handles requests with proxy retrieves the response body + represents empty body response as blank string + parses the reason phrase sends request body + with parallel setup + handles parallel requests body + handles parallel requests status + #get + behaves like a request method handles connection error - handles gzip compression sends url encoded nested parameters + handles headers with multiple values + represents empty body response as blank string + retrieves the response headers + handles requests with proxy + binds local socket + retrieves the response body + sends request body + handles proxy failures parses the reason phrase + supports open_timeout option sends url encoded parameters + supports timeout option + sends user agent + with parallel setup + handles parallel requests status + handles parallel requests body with SSL enabled - #get + #post behaves like a request method - supports open_timeout option - binds local socket - handles connection error - retrieves the response body - represents empty body response as blank string - handles headers with multiple values sends request body - sends user agent sends url encoded nested parameters retrieves the response headers + sends url encoded parameters + handles requests with proxy + handles connection error + represents empty body response as blank string supports timeout option + sends user agent + handles headers with multiple values + supports open_timeout option + retrieves the response body + sends files parses the reason phrase - handles deflate compression - handles requests with proxy - sends url encoded parameters + binds local socket handles proxy failures - handles gzip compression + with parallel setup + handles parallel requests body + handles parallel requests status #head behaves like a request method + represents empty body response as blank string + sends url encoded parameters + handles requests with proxy + binds local socket + sends url encoded nested parameters + sends user agent + retrieves the response headers + handles connection error + sends request body handles proxy failures - supports open_timeout option handles headers with multiple values - handles requests with proxy + supports open_timeout option + parses the reason phrase supports timeout option + with parallel setup + handles parallel requests status + #patch + behaves like a request method + supports timeout option + represents empty body response as blank string + handles proxy failures retrieves the response headers - binds local socket + handles headers with multiple values + sends files sends url encoded parameters - sends request body - represents empty body response as blank string sends user agent - sends url encoded nested parameters + handles requests with proxy parses the reason phrase + sends url encoded nested parameters + sends request body + supports open_timeout option retrieves the response body handles connection error + binds local socket + with parallel setup + handles parallel requests body + handles parallel requests status #delete behaves like a request method - handles requests with proxy - handles headers with multiple values - handles deflate compression - sends url encoded nested parameters - parses the reason phrase - supports open_timeout option + retrieves the response headers binds local socket - represents empty body response as blank string + handles connection error sends user agent - sends url encoded parameters - supports timeout option - handles gzip compression - retrieves the response headers sends request body - retrieves the response body - handles connection error - handles proxy failures - #patch - behaves like a request method - handles headers with multiple values - sends files supports timeout option + sends url encoded parameters + handles requests with proxy parses the reason phrase sends url encoded nested parameters supports open_timeout option - binds local socket - handles connection error - retrieves the response headers - handles deflate compression - sends user agent handles proxy failures - handles gzip compression - represents empty body response as blank string + handles headers with multiple values retrieves the response body - handles requests with proxy - sends url encoded parameters - sends request body - #post + represents empty body response as blank string + with parallel setup + handles parallel requests status + handles parallel requests body + #put behaves like a request method - sends user agent - supports timeout option - sends files - handles proxy failures + retrieves the response body handles connection error - handles gzip compression + handles headers with multiple values + parses the reason phrase binds local socket - sends url encoded parameters - sends request body + sends user agent sends url encoded nested parameters - handles deflate compression - parses the reason phrase - supports open_timeout option represents empty body response as blank string + supports timeout option + sends request body handles requests with proxy - handles headers with multiple values + handles proxy failures + sends files + sends url encoded parameters + supports open_timeout option retrieves the response headers - retrieves the response body - #put + with parallel setup + handles parallel requests status + handles parallel requests body + #options behaves like a request method + handles requests with proxy + retrieves the response body sends url encoded nested parameters - supports open_timeout option - binds local socket - handles gzip compression - handles deflate compression parses the reason phrase sends url encoded parameters retrieves the response headers - sends files - represents empty body response as blank string - handles connection error + supports open_timeout option handles headers with multiple values - retrieves the response body - handles proxy failures + represents empty body response as blank string + binds local socket sends request body - handles requests with proxy - sends user agent + handles proxy failures supports timeout option - #options + sends user agent + handles connection error + with parallel setup + handles parallel requests body + handles parallel requests status + #get behaves like a request method - represents empty body response as blank string - sends url encoded parameters - handles deflate compression - binds local socket - parses the reason phrase + supports open_timeout option + handles requests with proxy sends url encoded nested parameters - retrieves the response body sends user agent - sends request body + parses the reason phrase + binds local socket handles connection error supports timeout option - handles requests with proxy - handles proxy failures + retrieves the response body retrieves the response headers - supports open_timeout option - handles gzip compression handles headers with multiple values - #trace - behaves like a request method - supports timeout option sends request body - parses the reason phrase - handles requests with proxy represents empty body response as blank string - supports open_timeout option - handles proxy failures - retrieves the response body sends url encoded parameters - handles deflate compression - sends user agent - handles headers with multiple values - retrieves the response headers - handles connection error - handles gzip compression - binds local socket - sends url encoded nested parameters - Options - configures multiple timeouts - configures open timeout - configures timeout + handles proxy failures + with parallel setup + handles parallel requests body + handles parallel requests status + +Faraday::Request::Retry + retry_if option + FilePart: should rewind files on retry + UploadIO: should rewind files on retry + does not retry if retry_if block returns false checking env + retries if retry_if block always returns true + does not retry if retry_if block returns false checking exception + with empty list of methods to retry + calls retry_if for all methods + when explicitly specifying methods to retry + does not call retry_if for specified methods + when method is not idempotent + is expected to eq 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 + #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.2 + is expected to eq 0.1 + is expected to eq 0.3 + is expected to eq 0.3 + with exponential backoff + is expected to eq 0.1 + is expected to eq 0.2 + is expected to eq 0.4 + 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 + retry_after header support + when retry_after is a timestamp + is expected to be > 1 + when retry_after is bigger than max_interval + is expected to eq 1 + when retry_after bigger than interval + is expected to be > 0.5 + when retry_after smaller than interval + is expected to be > 0.2 Faraday::Adapter::NetHttp - checking http - supports open_timeout - is expected to eq 80 - sets max_retries to 0 - supports read_timeout - supports write_timeout - with https url - is expected to eq 443 - with http url including port - is expected to eq 1234 - with custom adapter config - is expected to eq 123 behaves like an adapter with SSL disabled - #get + #head behaves like a request method + handles connection error handles proxy failures - sends url encoded nested parameters + represents empty body response as blank string + handles requests with proxy handles headers with multiple values + supports timeout option retrieves the response headers + sends url encoded parameters + sends url encoded nested parameters + supports open_timeout option sends user agent - represents empty body response as blank string - handles connection error parses the reason phrase retrieves the response body - supports open_timeout option - handles gzip compression sends request body - sends url encoded parameters - supports timeout option - handles requests with proxy - handles deflate compression streaming - when response contains big data - handles streaming when response is empty is expected to eq [["", 0]] + when response contains big data + handles streaming #put behaves like a request method - represents empty body response as blank string - retrieves the response headers + sends user agent parses the reason phrase - retrieves the response body - handles headers with multiple values - handles connection error - supports timeout option + sends request body + sends url encoded parameters handles gzip compression - sends user agent - supports open_timeout option - handles deflate compression - handles requests with proxy handles proxy failures + handles requests with proxy + supports open_timeout option + handles headers with multiple values sends url encoded nested parameters - sends files - sends request body - sends url encoded parameters - streaming - when response is empty - is expected to eq [["", 0]] - when response contains big data - handles streaming - #post - behaves like a request method retrieves the response body supports timeout option - sends request body - supports open_timeout option - sends user agent - sends url encoded parameters - handles requests with proxy - handles proxy failures - sends files - handles gzip compression - retrieves the response headers - parses the reason phrase represents empty body response as blank string - handles connection error - sends url encoded nested parameters - handles headers with multiple values handles deflate compression + handles connection error + sends files + retrieves the response headers streaming - when response is empty - is expected to eq [["", 0]] when response contains big data handles streaming - #patch + when response is empty + is expected to eq [["", 0]] + #get behaves like a request method + handles deflate compression + handles requests with proxy sends url encoded parameters - sends url encoded nested parameters - represents empty body response as blank string - sends files - handles proxy failures + handles gzip compression + handles headers with multiple values sends user agent supports timeout option - handles deflate compression parses the reason phrase - retrieves the response headers sends request body + represents empty body response as blank string + handles proxy failures + sends url encoded nested parameters supports open_timeout option - handles requests with proxy - handles gzip compression retrieves the response body - handles headers with multiple values + retrieves the response headers handles connection error streaming when response is empty is expected to eq [["", 0]] when response contains big data handles streaming - #head + #delete behaves like a request method - sends user agent - parses the reason phrase - represents empty body response as blank string - retrieves the response body - sends request body - supports open_timeout option - supports timeout option + sends url encoded parameters + handles deflate compression handles requests with proxy - sends url encoded nested parameters handles headers with multiple values - sends url encoded parameters + supports timeout option + supports open_timeout option retrieves the response headers - handles proxy failures - handles connection error - streaming - when response is empty - is expected to eq [["", 0]] - when response contains big data - handles streaming - #trace - behaves like a request method retrieves the response body parses the reason phrase - handles requests with proxy + handles proxy failures + sends request body sends user agent handles connection error - sends request body - retrieves the response headers - represents empty body response as blank string - sends url encoded parameters - handles deflate compression - supports open_timeout option sends url encoded nested parameters - supports timeout option - handles proxy failures - handles headers with multiple values + represents empty body response as blank string handles gzip compression streaming when response contains big data handles streaming when response is empty is expected to eq [["", 0]] - #delete + #options behaves like a request method - retrieves the response body handles requests with proxy + sends url encoded nested parameters represents empty body response as blank string + handles proxy failures handles connection error + retrieves the response headers supports open_timeout option - sends url encoded parameters - sends request body - supports timeout option handles headers with multiple values - handles proxy failures - retrieves the response headers - sends url encoded nested parameters - sends user agent handles gzip compression - handles deflate compression - parses the reason phrase - streaming - when response is empty - is expected to eq [["", 0]] - when response contains big data - handles streaming - #options - behaves like a request method - represents empty body response as blank string - retrieves the response headers - handles requests with proxy - sends url encoded nested parameters - supports open_timeout option sends request body - parses the reason phrase - handles connection error - handles proxy failures - supports timeout option - handles headers with multiple values - sends url encoded parameters handles deflate compression - handles gzip compression - sends user agent retrieves the response body + supports timeout option + sends user agent + parses the reason phrase + sends url encoded parameters streaming when response contains big data handles streaming when response is empty is expected to eq [["", 0]] - with SSL enabled - #options + #post behaves like a request method + handles headers with multiple values sends url encoded parameters - retrieves the response headers - handles gzip compression supports timeout option retrieves the response body + retrieves the response headers supports open_timeout option sends user agent + handles deflate compression + parses the reason phrase handles requests with proxy - handles proxy failures + handles gzip compression represents empty body response as blank string + sends files + sends request body sends url encoded nested parameters + handles proxy failures handles connection error - parses the reason phrase - handles deflate compression - handles headers with multiple values - sends request body streaming when response is empty is expected to eq [["", 0]] when response contains big data handles streaming - #post + #trace behaves like a request method - handles headers with multiple values - parses the reason phrase - supports open_timeout option + retrieves the response body + handles connection error sends user agent - supports timeout option - handles proxy failures + handles gzip compression handles deflate compression + handles proxy failures + supports timeout option + parses the reason phrase retrieves the response headers + handles headers with multiple values + handles requests with proxy sends url encoded parameters sends url encoded nested parameters + represents empty body response as blank string + supports open_timeout option + sends request body + 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 handles requests with proxy + handles connection error + sends url encoded nested parameters + sends url encoded parameters + handles deflate compression + retrieves the response headers + handles proxy failures retrieves the response body - sends request body + handles headers with multiple values + supports open_timeout option + supports timeout option + sends files + sends user agent handles gzip compression represents empty body response as blank string - handles connection error - sends files + sends request body streaming when response contains big data handles streaming when response is empty is expected to eq [["", 0]] - #put + with SSL enabled + #patch behaves like a request method - sends files - handles proxy failures - handles gzip compression - handles deflate compression - supports timeout option - retrieves the response body sends url encoded nested parameters - handles requests with proxy - represents empty body response as blank string - sends user agent sends url encoded parameters + sends user agent handles headers with multiple values handles connection error - parses the reason phrase sends request body + sends files + supports timeout option retrieves the response headers + parses the reason phrase + represents empty body response as blank string + handles requests with proxy + handles gzip compression + handles deflate compression + retrieves the response body + handles proxy failures supports open_timeout option streaming when response contains big data handles streaming when response is empty is expected to eq [["", 0]] - #head + #put behaves like a request method + sends user agent handles requests with proxy - sends url encoded nested parameters + handles deflate compression retrieves the response headers - sends user agent - sends url encoded parameters - parses the reason phrase + handles connection error sends request body + handles gzip compression + sends url encoded parameters supports open_timeout option - supports timeout option - handles connection error - represents empty body response as blank string retrieves the response body - handles headers with multiple values + sends url encoded nested parameters + parses the reason phrase + supports timeout option + sends files handles proxy failures + handles headers with multiple values + represents empty body response as blank string streaming - when response contains big data - handles streaming when response is empty is expected to eq [["", 0]] - #delete + when response contains big data + handles streaming + #trace behaves like a request method - supports open_timeout option - sends url encoded parameters - retrieves the response headers - handles deflate compression supports timeout option + handles deflate compression + handles headers with multiple values + handles connection error sends request body + sends user agent + handles requests with proxy + retrieves the response body + handles gzip compression represents empty body response as blank string + retrieves the response headers + supports open_timeout option parses the reason phrase sends url encoded nested parameters - sends user agent + sends url encoded parameters + handles proxy failures + streaming + when response is empty + is expected to eq [["", 0]] + when response contains big data + handles streaming + #head + behaves like a request method + supports timeout option handles connection error + parses the reason phrase + represents empty body response as blank string + sends url encoded nested parameters handles proxy failures - handles headers with multiple values - handles gzip compression - retrieves the response body + sends url encoded parameters handles requests with proxy + retrieves the response body + supports open_timeout option + retrieves the response headers + handles headers with multiple values + sends user agent + sends request body streaming when response is empty is expected to eq [["", 0]] when response contains big data handles streaming - #trace + #delete behaves like a request method handles requests with proxy - sends user agent retrieves the response headers - handles deflate compression + sends url encoded nested parameters + sends url encoded parameters retrieves the response body + supports open_timeout option supports timeout option - sends url encoded parameters - represents empty body response as blank string + handles deflate compression + sends request body handles connection error - handles headers with multiple values + sends user agent handles gzip compression + handles headers with multiple values parses the reason phrase - supports open_timeout option - sends url encoded nested parameters handles proxy failures - sends request body + represents empty body response as blank string streaming - when response contains big data - handles streaming when response is empty is expected to eq [["", 0]] - #patch + when response contains big data + handles streaming + #get behaves like a request method handles headers with multiple values - sends user agent - sends files - represents empty body response as blank string - handles proxy failures - handles connection error + handles gzip compression handles deflate compression + handles connection error + sends url encoded parameters sends request body - supports open_timeout option - sends url encoded nested parameters - retrieves the response headers + represents empty body response as blank string supports timeout option + retrieves the response headers + handles proxy failures retrieves the response body - handles gzip compression handles requests with proxy + supports open_timeout option parses the reason phrase - sends url encoded parameters + sends url encoded nested parameters + sends user agent streaming - when response is empty - is expected to eq [["", 0]] when response contains big data handles streaming - #get + when response is empty + is expected to eq [["", 0]] + #options behaves like a request method - sends request body handles gzip compression + handles requests with proxy + handles deflate compression + supports timeout option + sends url encoded nested parameters handles headers with multiple values + supports open_timeout option + sends url encoded parameters + sends request body handles connection error - sends user agent retrieves the response body + parses the reason phrase handles proxy failures - sends url encoded nested parameters - supports open_timeout option - sends url encoded parameters - supports timeout option - handles deflate compression + sends user agent + retrieves the response headers represents empty body response as blank string + streaming + when response contains big data + handles streaming + when response is empty + is expected to eq [["", 0]] + #post + behaves like a request method + handles connection error + parses the reason phrase retrieves the response headers + handles gzip compression + sends request body + handles deflate compression + sends url encoded parameters + handles proxy failures + sends user agent handles requests with proxy - parses the reason phrase + sends url encoded nested parameters + represents empty body response as blank string + handles headers with multiple values + supports timeout option + supports open_timeout option + sends files + retrieves the response body streaming when response contains big data handles streaming when response is empty is expected to eq [["", 0]] - -Faraday::ClientError - .initialize - with response hash - is expected to eq {:status=>400} - is expected to eq "the server responded with status 400" - is expected to be nil - is expected to eq "#400}>" - with anything else #to_s - is expected to eq "[\"error1\", \"error2\"]" - is expected to eq "#>" - is expected to be nil - is expected to be nil - with exception only - is expected to eq "#>" - is expected to eq # - is expected to eq nil - is expected to eq "test" - is expected to be nil - with string - is expected to be nil - is expected to be nil - is expected to eq "custom message" - is expected to eq "#>" - -Faraday::Env - retains custom members - allows to access symbol non members - allows to access string non members - allows to access members - ignores false when fetching - #body - when response is finished - returns the response body - allows to access response_body - allows to access request_body - when response is not finished yet - returns the request body - -Faraday::Request::Instrumentation - is expected to eq "request.faraday" - defaults to ActiveSupport::Notifications - instruments with default name - with custom instrumenter - is expected to eq :custom - with custom name - is expected to eq "custom" - instruments with custom name - -Faraday::Response - is expected to be falsey - is expected to eq 404 - is expected to eq "text/plain" - is expected to raise RuntimeError - is expected to eq "yikes" - is expected to be truthy - is expected to eq "text/plain" - #on_complete - can access response body in on_complete callback - can access response body in on_complete callback - 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" - marshal serialization support - is expected to eq "yikes" - is expected to be nil - is expected to eq {"Content-Type"=>"text/plain"} - is expected to eq 404 + 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 Faraday::Adapter::Typhoeus behaves like an adapter - with SSL enabled - #patch + with SSL disabled + #delete behaves like a request method - supports timeout option + retrieves the response body supports open_timeout option - represents empty body response as blank string + handles connection error + retrieves the response headers + sends user agent + supports timeout option handles requests with proxy - sends url encoded nested parameters sends request body - retrieves the response body - handles headers with multiple values sends url encoded parameters - sends files - retrieves the response headers - sends user agent + represents empty body response as blank string + sends url encoded nested parameters + handles headers with multiple values + handles proxy failures + with parallel setup + handles parallel requests body + handles parallel requests status + #head + behaves like a request method + represents empty body response as blank string + sends request body handles connection error + handles requests with proxy + handles headers with multiple values handles proxy failures + sends user agent + supports timeout option + retrieves the response headers + retrieves the response body + sends url encoded parameters + supports open_timeout option + sends url encoded nested parameters with parallel setup handles parallel requests status handles parallel requests body #post behaves like a request method - supports timeout option + sends files sends url encoded nested parameters handles headers with multiple values retrieves the response body + supports open_timeout option + sends url encoded parameters + handles requests with proxy + supports timeout option retrieves the response headers + handles proxy failures handles connection error - supports open_timeout option - sends request body sends user agent - handles proxy failures represents empty body response as blank string - handles requests with proxy - sends files - sends url encoded parameters + sends request body with parallel setup handles parallel requests body handles parallel requests status - #get + #options behaves like a request method - retrieves the response body - sends user agent handles proxy failures - sends request body - handles headers with multiple values - handles requests with proxy + sends user agent supports timeout option - retrieves the response headers represents empty body response as blank string + sends request body + supports open_timeout option + retrieves the response headers + handles requests with proxy + handles headers with multiple values + retrieves the response body sends url encoded parameters handles connection error sends url encoded nested parameters - supports open_timeout option with parallel setup - handles parallel requests status handles parallel requests body - #delete + handles parallel requests status + #get behaves like a request method - supports open_timeout option - represents empty body response as blank string - handles headers with multiple values + sends url encoded nested parameters + supports timeout option + handles proxy failures + sends user agent sends url encoded parameters + sends request body handles connection error retrieves the response headers - sends request body - sends user agent - handles requests with proxy + represents empty body response as blank string + supports open_timeout option + handles headers with multiple values retrieves the response body - sends url encoded nested parameters - supports timeout option - handles proxy failures + handles requests with proxy with parallel setup handles parallel requests body handles parallel requests status #put behaves like a request method - sends url encoded nested parameters + handles requests with proxy handles connection error + handles proxy failures + sends url encoded nested parameters sends files - sends url encoded parameters - supports open_timeout option + retrieves the response body sends request body supports timeout option + sends url encoded parameters retrieves the response headers - handles requests with proxy - handles headers with multiple values + supports open_timeout option sends user agent + handles headers with multiple values represents empty body response as blank string - retrieves the response body - handles proxy failures with parallel setup handles parallel requests body handles parallel requests status - #head + #patch behaves like a request method - sends url encoded nested parameters - sends url encoded parameters + represents empty body response as blank string + handles connection error + sends user agent handles requests with proxy sends request body + supports timeout option handles headers with multiple values - handles connection error - retrieves the response headers + sends files supports open_timeout option - handles proxy failures - sends user agent - supports timeout option - represents empty body response as blank string + retrieves the response headers retrieves the response body + sends url encoded nested parameters + sends url encoded parameters + handles proxy failures with parallel setup - handles parallel requests body handles parallel requests status + handles parallel requests body #trace behaves like a request method - handles headers with multiple values - sends request body + handles connection error handles requests with proxy - supports timeout option - sends user agent retrieves the response body + sends request body + represents empty body response as blank string sends url encoded nested parameters - sends url encoded parameters handles proxy failures - handles connection error + sends user agent + supports open_timeout option retrieves the response headers + handles headers with multiple values + supports timeout option + sends url encoded parameters + with parallel setup + handles parallel requests body + handles parallel requests status + with SSL enabled + #patch + behaves like a request method represents empty body response as blank string + handles requests with proxy + retrieves the response body + supports timeout option + sends request body + sends files + handles headers with multiple values + sends url encoded nested parameters supports open_timeout option + handles connection error + sends url encoded parameters + retrieves the response headers + handles proxy failures + sends user agent with parallel setup handles parallel requests status handles parallel requests body - #options + #trace behaves like a request method - handles proxy failures - sends user agent + sends url encoded parameters + supports open_timeout option sends request body - represents empty body response as blank string - retrieves the response headers supports timeout option - sends url encoded parameters - handles requests with proxy handles connection error + represents empty body response as blank string + sends url encoded nested parameters + handles proxy failures + handles requests with proxy + retrieves the response headers + sends user agent handles headers with multiple values retrieves the response body - sends url encoded nested parameters - supports open_timeout option with parallel setup - handles parallel requests body handles parallel requests status - with SSL disabled - #trace + handles parallel requests body + #options behaves like a request method - handles requests with proxy - handles proxy failures - supports open_timeout option supports timeout option - sends url encoded parameters retrieves the response headers - sends url encoded nested parameters handles connection error + sends url encoded parameters sends request body + sends url encoded nested parameters handles headers with multiple values + handles proxy failures retrieves the response body - represents empty body response as blank string sends user agent + handles requests with proxy + represents empty body response as blank string + supports open_timeout option with parallel setup - handles parallel requests status handles parallel requests body + handles parallel requests status #delete behaves like a request method + represents empty body response as blank string + handles connection error + sends user agent + handles headers with multiple values supports open_timeout option + handles requests with proxy + retrieves the response headers sends url encoded nested parameters - represents empty body response as blank string + supports timeout option + handles proxy failures + retrieves the response body sends url encoded parameters + sends request body + with parallel setup + handles parallel requests body + handles parallel requests status + #get + behaves like a request method handles proxy failures sends user agent - retrieves the response headers + supports timeout option + retrieves the response body + sends url encoded nested parameters handles connection error - handles headers with multiple values + supports open_timeout option + sends url encoded parameters + retrieves the response headers handles requests with proxy - retrieves the response body + represents empty body response as blank string + handles headers with multiple values sends request body - supports timeout option with parallel setup handles parallel requests body handles parallel requests status - #head + #post behaves like a request method - sends url encoded nested parameters + handles proxy failures + sends files handles requests with proxy + sends url encoded nested parameters retrieves the response headers - handles proxy failures + handles headers with multiple values + supports timeout option + handles connection error + supports open_timeout option + represents empty body response as blank string + sends url encoded parameters sends request body retrieves the response body + sends user agent + with parallel setup + handles parallel requests body + handles parallel requests status + #put + behaves like a request method + retrieves the response headers + sends request body + sends url encoded nested parameters + supports open_timeout option + handles proxy failures represents empty body response as blank string + retrieves the response body + handles requests with proxy + supports timeout option + sends user agent sends url encoded parameters handles headers with multiple values - supports open_timeout option + sends files handles connection error - supports timeout option - sends user agent with parallel setup handles parallel requests status handles parallel requests body - #post + #head behaves like a request method + represents empty body response as blank string supports timeout option - sends files - sends url encoded nested parameters + handles proxy failures retrieves the response body - represents empty body response as blank string + sends url encoded parameters supports open_timeout option + handles headers with multiple values retrieves the response headers - sends user agent + handles connection error + sends url encoded nested parameters sends request body + handles requests with proxy + sends user agent + with parallel setup + handles parallel requests status + handles parallel requests body + +Faraday::Options + #merge + deeply merges options with hashes + deeply merges options with nil + merges options with hashes + deeply merges options with options having nil sub-options + deeply merges two options + #each_key + allows to iterate through keys + #value? + returns true if any key has that value + #fetch + when the fetched key has a value + works with key + grabs value + when the fetched key has no value + needs a default if key is missing + uses falsey default + accepts block + #deep_dup + duplicate options and also suboptions + #empty? + returns true only if all options are nil + #each_value + allows to iterate through values + #from + works with deep hash + works with nil + works with hash with sub object + works with hash + respects inheritance + works with options with sub object + works with options + is expected to raise NoMethodError + #update + updates options from hashes + #clear + clears the options + #key? + returns true if the key exists and is not nil + #memoized + accepts block + requires block + #dup + duplicate options but not sub-options + #delete + allows to remove value for key + +Faraday::Utils + URI parsing + parses with URI + escapes safe buffer + replaces headers hash + parses with default parser + parses with block + headers parsing + parse headers for aggregated responses + +Faraday::Adapter::EMHttp + allows to provide adapter specific configs + behaves like an adapter + with SSL enabled + #trace + behaves like a request method handles connection error - sends url encoded parameters - handles headers with multiple values + sends url encoded nested parameters + supports timeout option + represents empty body response as blank string + parses the reason phrase + retrieves the response headers handles proxy failures handles requests with proxy + sends url encoded parameters + supports open_timeout option + sends request body + sends user agent + retrieves the response body + binds local socket + handles headers with multiple values with parallel setup handles parallel requests body handles parallel requests status - #options + #put behaves like a request method - sends url encoded nested parameters + handles connection error + supports timeout option + supports open_timeout option + sends user agent handles headers with multiple values - retrieves the response body + handles proxy failures sends url encoded parameters - sends user agent + parses the reason phrase + binds local socket + sends url encoded nested parameters represents empty body response as blank string - supports open_timeout option - supports timeout option - handles proxy failures - handles connection error - retrieves the response headers sends request body + retrieves the response body + sends files handles requests with proxy + retrieves the response headers with parallel setup handles parallel requests status handles parallel requests body - #patch + #delete behaves like a request method - handles headers with multiple values - retrieves the response body handles requests with proxy - sends url encoded nested parameters - sends files + binds local socket sends user agent - supports open_timeout option + sends url encoded parameters + retrieves the response body retrieves the response headers - supports timeout option + handles connection error + supports open_timeout option sends request body represents empty body response as blank string handles proxy failures - handles connection error - sends url encoded parameters + handles headers with multiple values + sends url encoded nested parameters + supports timeout option + parses the reason phrase with parallel setup handles parallel requests status handles parallel requests body - #put + #head behaves like a request method - retrieves the response body - handles proxy failures sends user agent + retrieves the response headers supports open_timeout option - handles connection error - handles headers with multiple values sends request body - supports timeout option - retrieves the response headers sends url encoded nested parameters + supports timeout option + represents empty body response as blank string sends url encoded parameters handles requests with proxy - sends files - represents empty body response as blank string + handles connection error + parses the reason phrase + handles headers with multiple values + handles proxy failures + binds local socket with parallel setup handles parallel requests status - handles parallel requests body #get behaves like a request method + supports timeout option + handles proxy failures represents empty body response as blank string - retrieves the response body sends url encoded nested parameters - handles headers with multiple values + retrieves the response headers sends url encoded parameters - handles proxy failures + handles requests with proxy + supports open_timeout option + binds local socket + retrieves the response body sends request body + handles headers with multiple values + parses the reason phrase sends user agent - handles requests with proxy - supports timeout option handles connection error - supports open_timeout option - retrieves the response headers with parallel setup - handles parallel requests body handles parallel requests status - -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::Response::Logger - logs response headers by default - does not log response body by default - logs method and url - logs filter url - still returns output - does not log request body by default - logs request headers by default - logs filter headers - when using log_level - does not log request/response body on the info level - does not log headers on the info level - logs headers on the debug level - logs request/request body on the specified level (debug) - with custom formatter - logs with custom formatter - when not logging request headers - does not log request headers if option is false - without configuration - defaults to stdout - when logging response body - log only response body - when not logging response headers - does not log response headers if option is false - with default formatter - delegates logging to the formatter - when logging request and response bodies - logs filter body - log response body object - log request and response body - when logging request body - log only request body - -Faraday::Adapter - #request_timeout - attempts unknown timeout type - gets :open timeout - gets :read timeout - gets :write timeout - -Faraday::Request::Multipart - 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 param - forms a multipart request - behaves like a multipart request - generates a unique boundary for each request - when passing flat_encode=true option - encode params using flat encoder - behaves like a multipart request - generates a unique boundary for each request - FilePart: when providing json and IO content in the same payload - forms a multipart request - behaves like a multipart request - generates a unique boundary for each request - UploadIO: when multipart objects in array param - forms a multipart request - behaves like a multipart request - generates a unique boundary for each request - FilePart: when multipart objects in array param - forms a multipart request - behaves like a multipart request - generates a unique boundary for each request - UploadIO: when multipart objects in param - forms a multipart request - behaves like a multipart request - generates a unique boundary for each request - -Faraday::Adapter::EMSynchrony - allows to provide adapter specific configs - behaves like an adapter - with SSL enabled - #head + handles parallel requests body + #options behaves like a request method sends url encoded parameters - supports open_timeout option parses the reason phrase + handles connection error + supports timeout option + sends request body + retrieves the response body retrieves the response headers + sends url encoded nested parameters + binds local socket sends user agent + represents empty body response as blank string handles proxy failures handles headers with multiple values handles requests with proxy - handles connection error - sends url encoded nested parameters - sends request body - represents empty body response as blank string - binds local socket - supports timeout option + supports open_timeout option with parallel setup + handles parallel requests body handles parallel requests status - #options + #post behaves like a request method - parses the reason phrase + handles proxy failures + supports timeout option + supports open_timeout option + binds local socket + handles requests with proxy + handles connection error retrieves the response headers sends request body - handles connection error - handles requests with proxy sends url encoded parameters handles headers with multiple values - represents empty body response as blank string + parses the reason phrase retrieves the response body - supports open_timeout option - sends url encoded nested parameters + sends files sends user agent - supports timeout option - handles proxy failures - binds local socket + sends url encoded nested parameters + represents empty body response as blank string with parallel setup - handles parallel requests status handles parallel requests body - #delete + handles parallel requests status + #patch behaves like a request method - handles requests with proxy - represents empty body response as blank string + handles headers with multiple values sends user agent - parses the reason phrase - supports open_timeout option sends url encoded nested parameters - binds local socket - handles headers with multiple values retrieves the response headers + supports open_timeout option retrieves the response body + handles requests with proxy + represents empty body response as blank string handles proxy failures - sends request body supports timeout option + sends files + parses the reason phrase handles connection error + sends request body + binds local socket sends url encoded parameters with parallel setup - handles parallel requests body handles parallel requests status - #patch + handles parallel requests body + with SSL disabled + #trace behaves like a request method - sends url encoded nested parameters + sends user agent + retrieves the response headers + binds local socket + handles requests with proxy sends url encoded parameters - retrieves the response body represents empty body response as blank string - handles headers with multiple values - handles requests with proxy - supports open_timeout option handles connection error - parses the reason phrase - sends files + retrieves the response body sends request body - sends user agent - retrieves the response headers - supports timeout option handles proxy failures - binds local socket + supports open_timeout option + sends url encoded nested parameters + supports timeout option + parses the reason phrase + handles headers with multiple values with parallel setup - handles parallel requests body handles parallel requests status - #get + handles parallel requests body + #patch behaves like a request method - retrieves the response body - supports timeout option - retrieves the response headers - handles connection error sends user agent - parses the reason phrase - represents empty body response as blank string sends request body - supports open_timeout option handles headers with multiple values - sends url encoded parameters + handles connection error + represents empty body response as blank string + parses the reason phrase handles proxy failures + handles requests with proxy + retrieves the response body binds local socket + supports timeout option + sends files + supports open_timeout option sends url encoded nested parameters - handles requests with proxy + retrieves the response headers + sends url encoded parameters with parallel setup - handles parallel requests body handles parallel requests status - #put + handles parallel requests body + #options behaves like a request method + supports open_timeout option + supports timeout option + handles connection error + represents empty body response as blank string + binds local socket sends url encoded parameters - sends user agent parses the reason phrase + retrieves the response body + handles requests with proxy sends url encoded nested parameters - handles headers with multiple values + handles proxy failures + sends user agent sends request body - binds local socket retrieves the response headers - handles connection error - handles proxy failures - retrieves the response body - supports timeout option + handles headers with multiple values + with parallel setup + handles parallel requests body + handles parallel requests status + #delete + behaves like a request method + sends url encoded nested parameters supports open_timeout option + sends user agent + supports timeout option + retrieves the response body + handles proxy failures handles requests with proxy - sends files + sends request body + handles headers with multiple values + retrieves the response headers represents empty body response as blank string + handles connection error + sends url encoded parameters + binds local socket + parses the reason phrase with parallel setup handles parallel requests status handles parallel requests body #post behaves like a request method - sends url encoded nested parameters + handles proxy failures + sends request body sends user agent - sends files + retrieves the response body + supports timeout option + retrieves the response headers represents empty body response as blank string - handles headers with multiple values + sends files + sends url encoded nested parameters + supports open_timeout option handles requests with proxy - sends request body binds local socket - retrieves the response headers + parses the reason phrase handles connection error + sends url encoded parameters + handles headers with multiple values + with parallel setup + handles parallel requests status + handles parallel requests body + #put + behaves like a request method parses the reason phrase + sends files + retrieves the response body + handles headers with multiple values sends url encoded parameters + sends url encoded nested parameters + retrieves the response headers + represents empty body response as blank string + handles connection error + handles proxy failures supports timeout option - retrieves the response body + sends request body + binds local socket + sends user agent supports open_timeout option - handles proxy failures + handles requests with proxy with parallel setup handles parallel requests status handles parallel requests body - with SSL disabled - #post + #head behaves like a request method - binds local socket + represents empty body response as blank string + retrieves the response headers + supports open_timeout option sends user agent + handles proxy failures + binds local socket + sends url encoded nested parameters + supports timeout option + handles connection error + sends request body parses the reason phrase sends url encoded parameters handles headers with multiple values handles requests with proxy + with parallel setup + handles parallel requests status + #get + behaves like a request method + binds local socket + sends request body retrieves the response body - supports timeout option + sends url encoded nested parameters + represents empty body response as blank string handles proxy failures + parses the reason phrase + sends user agent + supports timeout option + handles requests with proxy + sends url encoded parameters retrieves the response headers + handles headers with multiple values supports open_timeout option - sends url encoded nested parameters - represents empty body response as blank string - sends request body - sends files handles connection error with parallel setup handles parallel requests body handles parallel requests status + Options + configures timeout and open_timeout + configures all timeout settings + configures timeout + +Faraday::Adapter::NetHttpPersistent + sets max_retries to 0 + allows to set pool_size on initialize + allows to provide adapter specific configs + min_version + allows to set min_version in SSL settings + behaves like an adapter + with SSL enabled + #trace + behaves like a request method + handles gzip compression + sends user agent + handles deflate compression + handles proxy failures + sends url encoded nested parameters + parses the reason phrase + supports open_timeout option + supports timeout option + sends request body + sends url encoded parameters + represents empty body response as blank string + retrieves the response headers + retrieves the response body + handles requests with proxy + handles connection error + handles headers with multiple values #head behaves like a request method + handles proxy failures + retrieves the response body + handles headers with multiple values + handles requests with proxy supports timeout option sends user agent + sends request body + supports open_timeout option + handles connection error + sends url encoded parameters represents empty body response as blank string + sends url encoded nested parameters parses the reason phrase retrieves the response headers + #options + behaves like a request method + handles gzip compression + sends user agent + represents empty body response as blank string supports open_timeout option handles headers with multiple values - handles connection error + sends url encoded parameters sends url encoded nested parameters + sends request body + retrieves the response headers + handles deflate compression + parses the reason phrase + supports timeout option + retrieves the response body handles proxy failures + handles connection error handles requests with proxy - sends url encoded parameters - binds local socket - sends request body - with parallel setup - handles parallel requests status - #options + #post behaves like a request method - binds local socket + retrieves the response headers retrieves the response body - supports timeout option - sends url encoded parameters parses the reason phrase + handles deflate compression + sends url encoded parameters + represents empty body response as blank string handles proxy failures + handles headers with multiple values + sends url encoded nested parameters + supports timeout option sends request body + sends files + handles connection error + handles gzip compression supports open_timeout option + sends user agent + handles requests with proxy + #get + behaves like a request method + handles deflate compression retrieves the response headers + parses the reason phrase + sends url encoded nested parameters + retrieves the response body + handles gzip compression handles requests with proxy + handles connection error represents empty body response as blank string + supports timeout option + sends url encoded parameters + handles proxy failures + sends user agent handles headers with multiple values - sends url encoded nested parameters + supports open_timeout option + sends request body + #patch + behaves like a request method + retrieves the response body + parses the reason phrase + handles gzip compression sends user agent + supports timeout option + supports open_timeout option + handles proxy failures + handles requests with proxy + sends url encoded nested parameters + sends files + retrieves the response headers handles connection error - with parallel setup - handles parallel requests body - handles parallel requests status - #put + handles deflate compression + sends url encoded parameters + sends request body + handles headers with multiple values + represents empty body response as blank string + #delete behaves like a request method supports timeout option - handles requests with proxy parses the reason phrase + handles deflate compression + handles gzip compression handles headers with multiple values - handles proxy failures - handles connection error + sends user agent + retrieves the response headers supports open_timeout option - retrieves the response body - sends files - binds local socket sends request body - sends user agent + handles proxy failures sends url encoded parameters represents empty body response as blank string - retrieves the response headers sends url encoded nested parameters - with parallel setup - handles parallel requests status - handles parallel requests body - #get + retrieves the response body + handles connection error + handles requests with proxy + #put behaves like a request method + handles deflate compression handles headers with multiple values - handles requests with proxy - retrieves the response body - supports open_timeout option + sends user agent + retrieves the response headers + sends url encoded nested parameters + handles gzip compression supports timeout option handles proxy failures - sends url encoded nested parameters - sends url encoded parameters - binds local socket sends request body - handles connection error - sends user agent parses the reason phrase - retrieves the response headers - represents empty body response as blank string - with parallel setup - handles parallel requests body - handles parallel requests status - #patch - behaves like a request method + handles connection error + sends files + supports open_timeout option + sends url encoded parameters represents empty body response as blank string handles requests with proxy + retrieves the response body + with SSL disabled + #put + behaves like a request method + sends url encoded parameters handles proxy failures - retrieves the response headers - binds local socket + retrieves the response body sends url encoded nested parameters + retrieves the response headers + supports open_timeout option + parses the reason phrase + sends files + handles gzip compression + sends user agent + represents empty body response as blank string supports timeout option + handles deflate compression + handles requests with proxy + handles connection error + sends request body handles headers with multiple values + #delete + behaves like a request method + parses the reason phrase + handles connection error + represents empty body response as blank string + supports open_timeout option sends request body + handles gzip compression + supports timeout option + handles requests with proxy + handles proxy failures retrieves the response body + sends url encoded nested parameters + sends url encoded parameters + handles deflate compression + handles headers with multiple values + retrieves the response headers + sends user agent + #post + behaves like a request method + handles proxy failures + handles requests with proxy + sends files sends url encoded parameters + retrieves the response body + supports timeout option supports open_timeout option + handles deflate compression handles connection error + sends request body + represents empty body response as blank string + retrieves the response headers + handles gzip compression parses the reason phrase + handles headers with multiple values + sends user agent + sends url encoded nested parameters + #patch + behaves like a request method + handles deflate compression + sends url encoded parameters + handles connection error + sends request body + handles proxy failures + handles requests with proxy + supports timeout option + retrieves the response headers + handles headers with multiple values + retrieves the response body + supports open_timeout option sends user agent + represents empty body response as blank string + sends url encoded nested parameters + parses the reason phrase sends files - with parallel setup - handles parallel requests body - handles parallel requests status - #delete + handles gzip compression + #options behaves like a request method - binds local socket + handles headers with multiple values + sends url encoded nested parameters + handles gzip compression + sends url encoded parameters + supports timeout option retrieves the response headers + parses the reason phrase + handles proxy failures + retrieves the response body + supports open_timeout option + represents empty body response as blank string + sends request body + handles deflate compression + sends user agent handles connection error + handles requests with proxy + #head + behaves like a request method + supports timeout option + retrieves the response body + retrieves the response headers + handles headers with multiple values + sends url encoded nested parameters + handles proxy failures + parses the reason phrase sends request body + handles connection error sends url encoded parameters + sends user agent + represents empty body response as blank string supports open_timeout option handles requests with proxy + #get + behaves like a request method + sends user agent + sends request body + represents empty body response as blank string + handles gzip compression + retrieves the response headers handles proxy failures + handles requests with proxy + sends url encoded parameters + handles deflate compression + supports open_timeout option + handles headers with multiple values + handles connection error + supports timeout option + sends url encoded nested parameters + parses the reason phrase retrieves the response body + #trace + behaves like a request method + sends request body + supports open_timeout option parses the reason phrase - supports timeout option - sends user agent sends url encoded nested parameters - represents empty body response as blank string + handles requests with proxy + retrieves the response headers + sends url encoded parameters + sends user agent handles headers with multiple values - with parallel setup - handles parallel requests body - handles parallel requests status - -Faraday::Request::UrlEncoded - works with no headers - works with nested keys - works with unicode - ignores custom content type - works with non nested params - does nothing without payload - works with nested params - works with with headers - customising default_space_encoding - uses the custom character to encode spaces - -Faraday::NestedParamsEncoder - encodes unsorted when asked - decodes nested array mixed types - encodes empty array value - decodes nested arrays rack compat - encodes boolean values - decodes hashes - encodes rack compat - decodes nested subkeys dont have to be in brackets - encodes boolean values in array - decodes nested ignores invalid array - decodes arrays - decodes nested final value overrides any type - encodes nil array value - decodes nested ignores repeated array notation - decodes nested ignores malformed keys - encodes empty string array value - when expecting array but getting string - behaves like a wrong decoding - is expected to raise TypeError - when expecting hash but getting array - behaves like a wrong decoding - is expected to raise TypeError - behaves like a params encoder - escapes safe buffer - raises type error for empty string - encodes nil - when expecting nested hash but getting non nested - behaves like a wrong decoding - is expected to raise TypeError - when expecting hash but getting string - behaves like a wrong decoding - is expected to raise TypeError - when expecting array but getting hash - behaves like a wrong decoding - is expected to raise TypeError - -Faraday::Adapter::Test - raising an error if no stub was found - for request - is expected to raise Faraday::Adapter::Test::Stubs::NotFound - for request without specified header - is expected to raise Faraday::Adapter::Test::Stubs::NotFound - for specified host - is expected to raise Faraday::Adapter::Test::Stubs::NotFound - with http headers - without header - is expected to eq "b" - with header - is expected to eq "a" - with simple path sets status - is expected to eq 200 - 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" - ignoring unspecified get params - with single param - is expected to eq "a" - with multiple params - is expected to eq "a" - without params - is expected to raise Faraday::Adapter::Test::Stubs::NotFound - yielding env to stubs - is expected to eq "a" - 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" - with simple path sets headers - is expected to eq "text/html" - 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 - is expected to eq "show" - can be called several times - is expected to eq "hello" - with get params - is expected to eq "a" - can handle single parameter block - is expected to eq "get" + handles gzip compression + supports timeout option + handles connection error + handles deflate compression + represents empty body response as blank string + retrieves the response body + handles proxy failures Faraday::Connection - #respond_to? - is expected to be truthy + #to_env + bracketizes nested params in query + escapes per spec + bracketizes repeated params in query + without braketizing repeated params in query + parses url params into query + #close + can close underlying app + #build_request is expected to be truthy + is expected to be falsey + is expected to be empty + is expected to eq ["Authorization"] .new + with custom builder + is expected to eq # + with empty block + is expected to eq 0 + with custom headers + is expected to eq "Faraday" + with custom params and params in url + is expected to eq {"a"=>3, "b"=>"2"} with explicit url param behaves like initializer with url - with complex url - is expected to eq 815 - is expected to eq {"a"=>"1"} - is expected to eq "/fish" with simple url - is expected to eq "/" - is expected to eq "http" is expected to eq "sushi.com" - is expected to eq 80 - is expected to eq {} - with ssl false - is expected to be falsey - with custom params - is expected to eq {"a"=>1} - with implicit url param - behaves like initializer with url - with simple url is expected to eq {} is expected to eq 80 - is expected to eq "http" - is expected to eq "sushi.com" is expected to eq "/" + is expected to eq "http" with complex url is expected to eq {"a"=>"1"} is expected to eq 815 is expected to eq "/fish" - with custom builder - is expected to eq # - with custom params and params in url - is expected to eq {"a"=>3, "b"=>"2"} - with custom headers - is expected to eq "Faraday" - with empty block - is expected to eq 0 with block is expected to eq 0 is expected to eq "/omnom" + with ssl false + is expected to be falsey + with custom params + is expected to eq {"a"=>1} + with implicit 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 "/" + is expected to eq 80 + is expected to eq "sushi.com" + is expected to eq {} + #respond_to? + is expected to be truthy + is expected to be truthy + default_connection_options + assigning a default value + behaves like default connection options + works with implicit url + default connection options persist with an instance overriding + works with instance connection options + default connection uses default connection options + works with option url + assigning a hash + behaves like default connection options + default connection uses default connection options + works with implicit url + works with instance connection options + works with option url + default connection options persist with an instance overriding #dup - is expected to eq # - is expected to eq "text/plain" is expected to eq "1" + is expected to eq "text/plain" + is expected to eq # after manual changes + is expected to be nil + is expected to be falsey is expected to eq 5 is expected to be falsey is expected to eq 1 - is expected to be nil - is expected to be falsey is expected to eq 1 proxy support + accepts hash + fetches no proxy from blank env + fetches no proxy from nil env + allows when ip address is not in no proxy list but url is + allows when subdomain url is in no proxy list accepts uri + does not accept uppercase env + allows in multi element no proxy list + accepts http env accepts http env with auth uses processes no_proxy before http_proxy - test proxy requires uri - allows when ip address is not in no proxy list but url is - gives priority to manually set proxy - allows in multi element no proxy list allows when url is not in no proxy list but ip address is - allows when prefixed url is not in no proxy list - does not accept uppercase env - accepts env without scheme - accepts http env - ignores env proxy if set that way + allows when url not in no proxy list accepts hash with string uri - accepts hash - fetches no proxy from nil env + accepts env without scheme + uses env http_proxy uses env https_proxy + allows when prefixed url is not in no proxy list + accepts string allows when url in no proxy list - fetches no proxy from blank env - allows when subdomain url is in no proxy list uses processes no_proxy before https_proxy - accepts string - allows when url not in no proxy list - uses env http_proxy + gives priority to manually set proxy + test proxy requires uri + ignores env proxy if set that way performing a request dynamically check no proxy dynamically checks proxy - #build_url - uses params - merges params + basic_auth + calling the #basic_auth method + is expected to eq "Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==" + adding basic auth info to url + is expected to eq "Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==" request params - with default params encoder - supports array params in params - supports array params in url - with simple url - test_overrides_request_params_block_url - test_overrides_request_params - test_overrides_request_params_block with url and extra params merges connection and request params - allows to override all params allows to set params_encoder for single request + allows to override all params + with simple url + test_overrides_request_params_block + test_overrides_request_params_block_url + test_overrides_request_params with flat params encoder supports array params in params with array param in url is expected to request GET http://example.com/?color=blue 1 time + with default params encoder + supports array params in params + supports array params in url + #build_url + merges params + uses params #build_exclusive_url + does not use connection params overrides connection port for absolute url handles uri instances does not add ending slash given nil url does not add ending slash given empty url allows to provide params argument - does not use connection params + with absolute path + example at ./spec/faraday/connection_spec.rb:198 + is expected to eq "/sake.html" + is expected to eq "/sake.html" + is expected to eq "/sake.html" with relative path is expected to eq "/fish/sake.html" - is expected to eq "/sake.html" is expected to eq "/fish/sake.html" + is expected to eq "/sake.html" uses connection host as default host is expected to eq "/fish/sake.html" - with absolute path - example at ./spec/faraday/connection_spec.rb:195 - is expected to eq "/sake.html" - is expected to eq "/sake.html" - is expected to eq "/sake.html" with complete url - is expected to eq "sushi.com" - is expected to eq "a=1" is expected to eq 80 - is expected to eq "http" is expected to eq "/sake.html" + is expected to eq "http" + is expected to eq "a=1" + is expected to eq "sushi.com" with url_prefixed connection + joins url to base with ending slash overrides base used default base with ending slash parses url and changes scheme - joins url to base with ending slash - #build_request - is expected to be empty - is expected to be truthy - is expected to eq ["Authorization"] - is expected to be falsey - #to_env - bracketizes repeated params in query - escapes per spec - bracketizes nested params in query - without braketizing repeated params in query - parses url params into query - default_connection_options - assigning a hash - behaves like default connection options - default connection uses default connection options - works with option url - works with instance connection options - works with implicit url - default connection options persist with an instance overriding - assigning a default value - behaves like default connection options - works with instance connection options - works with option url - default connection uses default connection options - works with implicit url - default connection options persist with an instance overriding - #close - can close underlying app #token_auth is expected to eq "Token nonce=\"abc\", token=\"abcdef\"" - 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==" Faraday::Response::RaiseError - raises Faraday::ProxyAuthError for 407 responses - raises Faraday::ConflictError for 409 responses - raises Faraday::UnprocessableEntityError for 422 responses raises Faraday::ResourceNotFound for 404 responses raises Faraday::NilStatusError for nil status in response - raises Faraday::ServerError for 500 responses - raises Faraday::ForbiddenError for 403 responses - raises Faraday::UnauthorizedError for 401 responses - raises Faraday::BadRequestError for 400 responses raises no exception for 200 responses + raises Faraday::ConflictError for 409 responses + raises Faraday::ForbiddenError for 403 responses raises Faraday::ClientError for other 4xx responses + raises Faraday::UnprocessableEntityError for 422 responses + raises Faraday::ProxyAuthError for 407 responses + raises Faraday::ServerError for 500 responses + raises Faraday::BadRequestError for 400 responses + raises Faraday::UnauthorizedError for 401 responses request info returns the request info in the exception -Faraday::Utils::Headers - #parse - when response headers values include a colon - is expected to eq "http://sushi.com/" - when response headers leave http status line out - is expected to eq "text/html" - is expected to eq ["Content-Type"] - is expected to eq "text/html" - when response headers include a blank line - is expected to eq "text/html" - when Content-Type is set to application/json - is expected to include "content-type" - is expected to eq "application/json" - is expected to eq ["Content-Type"] - is expected to eq "application/json" - is expected to eq "application/json" - when Content-Type is set to application/xml - is expected to eq "application/xml" - is expected to eq "application/xml" - is expected to eq ["Content-Type"] - is expected to eq "application/xml" - is expected to include "content-type" - #fetch - is expected to eq "Invalid key" - is expected to eq "application/json" - is expected to eq "application/json" - calls a block when provided - is expected to eq "application/json" - is expected to eq "default" - raises an error if key not found - is expected to eq false - is expected to be nil - #delete - is expected to eq 0 - is expected to be nil - is expected not to include "content-type" - is expected to eq "application/json" - -Faraday::CompositeReadIO - with mix of empty and non-empty parts - allows to read in chunks - with 2 parts - is expected to eq 8 - allows to read in chunks - allows to rewind while reading in chunks - is expected to eq "abcd1234" - with utf8 multibyte part - allows to read in chunks - is expected to eq "\x86\xE3\x83\x95\xE3\x82\xA1\xE3\x82\xA4\xE3\x83\xAB" - with empty composite_io - is expected to be nil - is expected to eq 0 - is expected to eq "" - with empty parts - is expected to be nil - is expected to eq 0 - is expected to eq "" - -Faraday::RackBuilder - with custom handler and adapter - allows to compare handlers - dup stack is unlocked - locks the stack after making a request - with custom adapter only - is expected to be nil - is expected to eq Faraday::Adapter::Test - when having a handler with broken dependency - raises an error while making a request - when handlers are directly added or updated - adds a handler with options passed to swap - adds a handler with options passed to insert_after - adds a handler to construct adapter with options passed to insert - with default stack - is expected to eq Faraday::Adapter::NetHttp - is expected to eq Faraday::Request::UrlEncoded - when middleware is added with named arguments - adds a handler to construct middleware with options passed to use - with custom empty block - is expected to eq Faraday::Adapter::NetHttp - is expected to be nil - when having two handlers - allows insert_after - allows to delete a handler - allows to swap handlers - allows insert_before - when having a single handler - allows insert_after - is expected to eq [Apple] - allows use - allows insert_before - allows rebuilding - raises an error trying to use an unregistered symbol - when a response adapter is added with named arguments - adds a handler to construct response adapter with options passed to response - when a plain adapter is added with named arguments - adds a handler to construct adapter with options passed to adapter - with custom registered middleware - allows to register with constant - allows to register with Proc - allows to register with string - allows to register with symbol - when a request adapter is added with named arguments - adds a handler to construct request adapter with options passed to request - -Faraday::Utils - headers parsing - parse headers for aggregated responses - URI parsing - parses with default parser - parses with URI - replaces headers hash - escapes safe buffer - parses with block - -Faraday::Request::Retry - when method is not idempotent - is expected to eq 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 - retry_if option - UploadIO: should rewind files on retry - does not retry if retry_if block returns false checking exception - retries if retry_if block always returns true - FilePart: should rewind files on retry - does not retry if retry_if block returns false checking env - with empty list of methods to retry - calls retry_if for all methods - when explicitly specifying methods to retry - does not call retry_if for specified methods - when an unexpected error happens - is expected to eq 1 - and this is passed as a custom exception - is expected to eq 3 - retry_after header support - when retry_after smaller than interval - is expected to be > 0.2 - when retry_after bigger than interval - is expected to be > 0.5 - when retry_after is a timestamp - is expected to be > 1 - when retry_after is bigger than max_interval - is expected to eq 1 - when an expected error happens - is expected to eq 3 - and both max_retry and interval are set - is expected to be within 0.04 of 0.2 - and legacy max_retry set to -9 - is expected to eq 1 - and legacy max_retry set to 1 - is expected to eq 2 - and new max_retry set to -9 - is expected to eq 1 - and new max_retry set to 3 - is expected to eq 4 - #calculate_retry_interval - with exponential backoff and interval_randomness - is expected to be between 0.1 and 0.15 (inclusive) - with exponential backoff - is expected to eq 0.4 - is expected to eq 0.2 - is expected to eq 0.1 - with exponential backoff and max_interval - is expected to eq 0.3 - is expected to eq 0.1 - is expected to eq 0.2 - is expected to eq 0.3 +Faraday::Env + allows to access string non members + allows to access symbol non members + ignores false when fetching + allows to access members + retains custom members + #body + when response is finished + allows to access response_body + allows to access request_body + returns the response body + when response is not finished yet + returns the request body Faraday::Adapter::Excon allows to provide adapter specific configs config + sets timeout and open_timeout sets timeout sets open_timeout - sets timeout and open_timeout behaves like an adapter - with SSL enabled - #post + with SSL disabled + #head behaves like a request method - sends url encoded nested parameters - retrieves the response body - represents empty body response as blank string - sends user agent - sends request body - handles requests with proxy - handles connection error sends url encoded parameters - handles headers with multiple values - supports open_timeout option - retrieves the response headers - supports timeout option handles proxy failures - sends files - parses the reason phrase - #trace - behaves like a request method sends request body - retrieves the response headers + parses the reason phrase represents empty body response as blank string - handles connection error + handles headers with multiple values + retrieves the response headers + sends user agent + supports open_timeout option retrieves the response body - sends url encoded parameters sends url encoded nested parameters - supports timeout option - supports open_timeout option - sends user agent - handles proxy failures - handles headers with multiple values - parses the reason phrase handles requests with proxy - #delete + supports timeout option + handles connection error + #get behaves like a request method - supports open_timeout option - represents empty body response as blank string - parses the reason phrase retrieves the response body retrieves the response headers - handles headers with multiple values - sends user agent - handles connection error - sends url encoded parameters - sends url encoded nested parameters supports timeout option handles requests with proxy + supports open_timeout option handles proxy failures + handles headers with multiple values + sends user agent sends request body + parses the reason phrase + sends url encoded parameters + represents empty body response as blank string + sends url encoded nested parameters + handles connection error #options behaves like a request method - parses the reason phrase - handles requests with proxy handles proxy failures + retrieves the response body + parses the reason phrase sends url encoded parameters + retrieves the response headers + handles requests with proxy supports open_timeout option - retrieves the response body - supports timeout option handles connection error + sends user agent + supports timeout option handles headers with multiple values - retrieves the response headers - represents empty body response as blank string sends url encoded nested parameters sends request body - sends user agent - #patch + represents empty body response as blank string + #trace behaves like a request method - retrieves the response headers + handles connection error + represents empty body response as blank string + supports timeout option + sends request body + sends url encoded parameters + retrieves the response body + handles headers with multiple values handles requests with proxy + retrieves the response headers + supports open_timeout option + sends url encoded nested parameters sends user agent - handles proxy failures parses the reason phrase + handles proxy failures + #patch + behaves like a request method represents empty body response as blank string + sends request body handles headers with multiple values - sends files - supports open_timeout option - sends url encoded nested parameters - retrieves the response body supports timeout option - sends url encoded parameters handles connection error - sends request body - #head - behaves like a request method - handles headers with multiple values - represents empty body response as blank string - retrieves the response headers handles proxy failures - handles requests with proxy - sends url encoded nested parameters - sends url encoded parameters - sends request body + retrieves the response headers parses the reason phrase + sends files retrieves the response body + handles requests with proxy + sends url encoded parameters + sends url encoded nested parameters supports open_timeout option - handles connection error - supports timeout option sends user agent - #get + #post behaves like a request method - parses the reason phrase - handles connection error - sends url encoded parameters - retrieves the response body - supports timeout option retrieves the response headers - handles headers with multiple values - sends request body handles requests with proxy - handles proxy failures - sends url encoded nested parameters supports open_timeout option + handles headers with multiple values + handles connection error sends user agent + sends url encoded parameters + parses the reason phrase + supports timeout option + retrieves the response body + sends url encoded nested parameters + sends files + sends request body represents empty body response as blank string + handles proxy failures #put 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 connection error retrieves the response body + represents empty body response as blank string + sends files + handles proxy failures + sends request body + sends url encoded parameters + supports open_timeout option handles requests with proxy parses the reason phrase - supports open_timeout option - handles proxy failures + #delete + behaves like a request method supports timeout option handles headers with multiple values - sends url encoded parameters - sends url encoded nested parameters sends request body - sends files + handles proxy failures + parses the reason phrase + retrieves the response body + supports open_timeout option + sends url encoded parameters + represents empty body response as blank string retrieves the response headers + sends user agent + handles requests with proxy handles connection error - represents empty body response as blank string - with SSL disabled - #patch - behaves like a request method sends url encoded nested parameters + with SSL enabled + #head + behaves like a request method + supports timeout option supports open_timeout option + sends user agent + retrieves the response body + sends url encoded parameters + sends url encoded nested parameters + represents empty body response as blank string handles connection error handles headers with multiple values - supports timeout option sends request body retrieves the response headers + handles proxy failures + parses the reason phrase + handles requests with proxy + #put + behaves like a request method sends user agent + retrieves the response headers + parses the reason phrase handles proxy failures - sends files sends url encoded parameters + sends url encoded nested parameters represents empty body response as blank string - parses the reason phrase + supports timeout option + supports open_timeout option + handles connection error + sends request body retrieves the response body handles requests with proxy - #head + handles headers with multiple values + sends files + #patch behaves like a request method + handles proxy failures + handles connection error + retrieves the response headers + handles headers with multiple values + sends url encoded parameters supports open_timeout option + sends user agent + handles requests with proxy retrieves the response body + sends request body + supports timeout option represents empty body response as blank string + sends url encoded nested parameters parses the reason phrase + sends files + #trace + behaves like a request method + parses the reason phrase + retrieves the response headers handles requests with proxy - sends user agent - handles headers with multiple values supports timeout option - handles proxy failures + handles headers with multiple values + sends user agent + supports open_timeout option + represents empty body response as blank string + sends url encoded parameters sends url encoded nested parameters sends request body - retrieves the response headers - sends url encoded parameters handles connection error + handles proxy failures + retrieves the response body #options behaves like a request method - sends url encoded parameters - represents empty body response as blank string - sends request body + supports open_timeout option supports timeout option - sends user agent - retrieves the response body + handles connection error + sends url encoded nested parameters + sends url encoded parameters handles headers with multiple values handles requests with proxy - supports open_timeout option - retrieves the response headers handles proxy failures - sends url encoded nested parameters + retrieves the response headers + sends user agent parses the reason phrase - handles connection error - #put + sends request body + retrieves the response body + represents empty body response as blank string + #post behaves like a request method - sends url encoded parameters + handles headers with multiple values retrieves the response headers + sends url encoded parameters supports timeout option - represents empty body response as blank string parses the reason phrase - sends user agent - handles headers with multiple values handles proxy failures + sends request body sends files - handles requests with proxy supports open_timeout option + sends url encoded nested parameters retrieves the response body + sends user agent handles connection error - sends url encoded nested parameters - sends request body + represents empty body response as blank string + handles requests with proxy #delete behaves like a request method - retrieves the response body - represents empty body response as blank string + handles headers with multiple values supports open_timeout option - sends request body handles connection error - sends url encoded parameters - sends url encoded nested parameters - parses the reason phrase - retrieves the response headers - sends user agent - supports timeout option + sends request body handles proxy failures handles requests with proxy - handles headers with multiple values - #trace - behaves like a request method - handles connection error - handles headers with multiple values supports timeout option retrieves the response body - handles requests with proxy - supports open_timeout option - handles proxy failures - retrieves the response headers - sends url encoded parameters parses the reason phrase - sends request body - represents empty body response as blank string - sends user agent sends url encoded nested parameters - #get - behaves like a request method - handles requests with proxy - retrieves the response body - supports timeout option - sends request body - parses the reason phrase - sends user agent - handles connection error sends url encoded parameters - handles proxy failures - sends url encoded nested parameters - handles headers with multiple values - represents empty body response as blank string + sends user agent retrieves the response headers - supports open_timeout option - #post + represents empty body response as blank string + #get behaves like a request method retrieves the response body - parses the reason phrase + retrieves the response headers + handles requests with proxy + represents empty body response as blank string sends url encoded parameters sends request body - represents empty body response as blank string supports timeout option - sends files - sends url encoded nested parameters - handles connection error - handles requests with proxy handles proxy failures - sends user agent - retrieves the response headers + handles connection error + sends url encoded nested parameters + parses the reason phrase supports open_timeout option + sends user agent handles headers with multiple values -Faraday::Response::Middleware - with a custom ResponseMiddleware and private parse - parses the response - with a custom ResponseMiddleware but empty response - raises exception for 200 responses - doesn't call the middleware for 304 responses - doesn't call the middleware for 204 responses - with a custom ResponseMiddleware - parses the response +Faraday::Request::UrlEncoded + ignores custom content type + works with non nested params + works with nested keys + works with no headers + does nothing without payload + works with unicode + works with with headers + works with nested params + customising default_space_encoding + uses the custom character to encode spaces -Faraday::Adapter::EMHttp +Faraday::Response + is expected to raise RuntimeError + is expected to eq 404 + is expected to eq "text/plain" + is expected to eq "yikes" + is expected to eq "text/plain" + is expected to be truthy + is expected to be falsey + marshal serialization support + is expected to eq "yikes" + is expected to eq 404 + is expected to eq {"Content-Type"=>"text/plain"} + is expected to be nil + #apply_request + is expected to eq :post + is expected to eq "yikes" + #on_complete + parse body on finish + can access response body in on_complete callback + can access response body in on_complete callback + #to_hash + is expected to eq "yikes" + is expected to eq {"Content-Type"=>"text/plain"} + is expected to eq 404 + is expected to be a kind of Hash + +Faraday::ClientError + .initialize + with exception only + is expected to eq # + is expected to eq "#>" + is expected to eq nil + is expected to be nil + is expected to eq "test" + with response hash + is expected to eq {:status=>400} + is expected to be nil + is expected to eq "the server responded with status 400" + is expected to eq "#400}>" + with anything else #to_s + is expected to eq "#>" + is expected to be nil + is expected to be nil + is expected to eq "[\"error1\", \"error2\"]" + with string + is expected to be nil + is expected to eq "#>" + is expected to eq "custom message" + is expected to be nil + +Faraday::Request::Authorization + token_auth + when other values are provided + is expected to match /^Token / + is expected to match /token="baz"/ + is expected to match /foo="42"/ + and request already has an authentication header + does not interfere with existing authorization + when passed correct params + is expected to eq "Token token=\"quux\"" + and request already has an authentication header + does not interfere with existing authorization + basic_auth + when passed very long values + is expected to eq "Basic QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQU...UFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBOg==" + and request already has an authentication header + does not interfere with existing authorization + when passed correct params + is expected to eq "Basic YWxhZGRpbjpvcGVuc2VzYW1l" + and request already has an authentication header + does not interfere with existing authorization + authorization + when passed two strings + is expected to eq "custom abc def" + and request already has an authentication header + does not interfere with existing authorization + when passed a string and a hash + is expected to eq "baz foo=\"42\"" + and request already has an authentication header + does not interfere with existing authorization + +Faraday::Response::Logger + logs method and url + does not log response body by default + logs filter headers + logs response headers by default + does not log request body by default + logs request headers by default + logs filter url + still returns output + when logging request body + log only request body + with default formatter + delegates logging to the formatter + when not logging response headers + does not log response headers if option is false + when logging response body + log only response body + without configuration + defaults to stdout + when not logging request headers + does not log request headers if option is false + when logging request and response bodies + log request and response body + logs filter body + log response body object + with custom formatter + logs with custom formatter + when using log_level + logs request/request body on the specified level (debug) + does not log request/response body on the info level + logs headers on the debug level + does not log headers on the info level + +Faraday::Adapter::HTTPClient allows to provide adapter specific configs behaves like an adapter with SSL enabled - #post + #put behaves like a request method - sends request body - supports open_timeout option retrieves the response body handles proxy failures - binds local socket + sends files + retrieves the response headers + represents empty body response as blank string + handles deflate compression + handles connection error supports timeout option + supports open_timeout option + parses the reason phrase + sends url encoded parameters + handles headers with multiple values + handles gzip compression + sends url encoded nested parameters + sends user agent + binds local socket + sends request body handles requests with proxy - retrieves the response headers + #get + behaves like a request method + represents empty body response as blank string + handles connection error + binds local socket sends url encoded parameters - sends files + retrieves the response body + handles proxy failures + handles gzip compression + handles deflate compression + handles headers with multiple values + sends request body + handles requests with proxy + sends url encoded nested parameters sends user agent + supports open_timeout option + retrieves the response headers + supports timeout option parses the reason phrase - sends url encoded nested parameters + #trace + behaves like a request method + handles proxy failures + handles requests with proxy + supports timeout option handles connection error + supports open_timeout option + sends request body + parses the reason phrase + binds local socket + handles deflate compression + handles gzip compression + sends user agent represents empty body response as blank string + retrieves the response body + sends url encoded nested parameters + sends url encoded parameters + retrieves the response headers handles headers with multiple values - with parallel setup - handles parallel requests body - handles parallel requests status - #trace + #options behaves like a request method - handles headers with multiple values - retrieves the response body + binds local socket + handles gzip compression + handles proxy failures supports timeout option - sends url encoded parameters + sends user agent + handles headers with multiple values + handles connection error handles requests with proxy parses the reason phrase - represents empty body response as blank string + handles deflate compression sends request body + represents empty body response as blank string + sends url encoded parameters sends url encoded nested parameters - handles proxy failures retrieves the response headers supports open_timeout option - binds local socket - handles connection error - sends user agent - with parallel setup - handles parallel requests status - handles parallel requests body + retrieves the response body #patch behaves like a request method - retrieves the response body - retrieves the response headers - handles proxy failures - sends files binds local socket - supports open_timeout option - sends user agent - supports timeout option + handles deflate compression + handles proxy failures + retrieves the response headers handles headers with multiple values + sends url encoded nested parameters + supports open_timeout option handles connection error - parses the reason phrase + sends files + retrieves the response body + sends user agent handles requests with proxy sends url encoded parameters + parses the reason phrase + supports timeout option represents empty body response as blank string - sends url encoded nested parameters sends request body - with parallel setup - handles parallel requests body - handles parallel requests status + handles gzip compression #head behaves like a request method supports timeout option + supports open_timeout option + retrieves the response headers + handles requests with proxy parses the reason phrase - handles proxy failures sends url encoded nested parameters + retrieves the response body handles headers with multiple values + sends user agent + sends request body represents empty body response as blank string + sends url encoded parameters binds local socket - handles requests with proxy handles connection error - sends url encoded parameters - retrieves the response headers - supports open_timeout option - sends user agent - sends request body - with parallel setup - handles parallel requests status - #get + handles proxy failures + #post behaves like a request method - handles requests with proxy - sends user agent - represents empty body response as blank string supports open_timeout option + handles requests with proxy + handles proxy failures + parses the reason phrase + retrieves the response body sends request body + sends url encoded nested parameters retrieves the response headers + represents empty body response as blank string + handles connection error + handles gzip compression + supports timeout option handles headers with multiple values - handles proxy failures + sends files binds local socket + sends user agent sends url encoded parameters - sends url encoded nested parameters + handles deflate compression + #delete + behaves like a request method + retrieves the response headers + supports open_timeout option + represents empty body response as blank string + handles headers with multiple values retrieves the response body - parses the reason phrase - handles connection error + sends url encoded nested parameters supports timeout option - with parallel setup - handles parallel requests status - handles parallel requests body - #options - behaves like a request method sends user agent - retrieves the response body + handles deflate compression handles connection error handles requests with proxy - handles headers with multiple values - retrieves the response headers - represents empty body response as blank string - supports timeout option - sends url encoded nested parameters sends request body - supports open_timeout option handles proxy failures parses the reason phrase sends url encoded parameters binds local socket - with parallel setup - handles parallel requests body - handles parallel requests status - #put + handles gzip compression + with SSL disabled + #get behaves like a request method - binds local socket sends url encoded nested parameters - handles headers with multiple values + supports open_timeout option sends url encoded parameters + handles headers with multiple values sends request body - supports timeout option - represents empty body response as blank string parses the reason phrase - sends files - retrieves the response body - sends user agent + retrieves the response headers + represents empty body response as blank string + binds local socket handles connection error handles requests with proxy - retrieves the response headers handles proxy failures - supports open_timeout option - with parallel setup - handles parallel requests body - handles parallel requests status - #delete - behaves like a request method - sends url encoded parameters + sends user agent retrieves the response body + handles deflate compression supports timeout option - parses the reason phrase - supports open_timeout option + handles gzip compression + #patch + behaves like a request method + handles deflate compression sends request body + handles proxy failures + retrieves the response body represents empty body response as blank string - sends url encoded nested parameters - handles connection error retrieves the response headers binds local socket - handles headers with multiple values - handles proxy failures sends user agent - handles requests with proxy - with parallel setup - handles parallel requests status - handles parallel requests body - with SSL disabled - #put - behaves like a request method - sends request body - handles requests with proxy supports open_timeout option - sends user agent - retrieves the response body + handles connection error sends url encoded parameters - represents empty body response as blank string - handles headers with multiple values - retrieves the response headers - sends url encoded nested parameters - handles proxy failures - binds local socket + supports timeout option + handles requests with proxy sends files parses the reason phrase - handles connection error - supports timeout option - with parallel setup - handles parallel requests body - handles parallel requests status - #head - behaves like a request method - handles proxy failures - represents empty body response as blank string - handles connection error sends url encoded nested parameters - sends url encoded parameters - binds local socket - supports open_timeout option - parses the reason phrase - retrieves the response headers + handles gzip compression handles headers with multiple values - supports timeout option - handles requests with proxy - sends user agent - sends request body - with parallel setup - handles parallel requests status - #patch + #trace behaves like a request method - handles proxy failures + parses the reason phrase + supports open_timeout option + handles gzip compression handles connection error + handles headers with multiple values handles requests with proxy - sends url encoded parameters supports timeout option - binds local socket - sends request body - retrieves the response body represents empty body response as blank string - handles headers with multiple values + handles deflate compression + handles proxy failures + binds local socket + sends url encoded parameters retrieves the response headers sends user agent - supports open_timeout option - sends files + retrieves the response body + sends request body sends url encoded nested parameters - parses the reason phrase - with parallel setup - handles parallel requests body - handles parallel requests status - #post + #head behaves like a request method + sends request body + supports open_timeout option + binds local socket + supports timeout option + retrieves the response body represents empty body response as blank string - handles requests with proxy - sends user agent sends url encoded parameters - handles headers with multiple values + sends user agent retrieves the response headers - retrieves the response body - sends request body - binds local socket - handles connection error - sends files - handles proxy failures + handles headers with multiple values parses the reason phrase - supports open_timeout option - supports timeout option + handles requests with proxy + handles connection error sends url encoded nested parameters - with parallel setup - handles parallel requests body - handles parallel requests status - #options + handles proxy failures + #delete behaves like a request method - retrieves the response headers + binds local socket + handles connection error + represents empty body response as blank string sends user agent handles headers with multiple values + sends url encoded nested parameters + supports timeout option supports open_timeout option retrieves the response body - sends request body - handles connection error handles proxy failures - binds local socket - supports timeout option - represents empty body response as blank string - sends url encoded nested parameters - parses the reason phrase + handles gzip compression sends url encoded parameters + sends request body + parses the reason phrase + handles deflate compression + retrieves the response headers handles requests with proxy - with parallel setup - handles parallel requests body - handles parallel requests status - #delete + #post behaves like a request method + handles gzip compression sends request body sends url encoded nested parameters - handles proxy failures - supports timeout option - handles headers with multiple values - parses the reason phrase - retrieves the response headers - retrieves the response body handles requests with proxy - handles connection error + handles headers with multiple values + binds local socket sends url encoded parameters + supports timeout option supports open_timeout option - sends user agent - binds local socket + handles deflate compression represents empty body response as blank string - with parallel setup - handles parallel requests body - handles parallel requests status - #trace + handles proxy failures + sends files + retrieves the response body + handles connection error + sends user agent + parses the reason phrase + retrieves the response headers + #put behaves like a request method + handles requests with proxy + handles proxy failures + retrieves the response headers + handles gzip compression supports open_timeout option - handles connection error + represents empty body response as blank string sends request body + retrieves the response body + handles connection error sends url encoded parameters - handles headers with multiple values - handles requests with proxy - retrieves the response headers parses the reason phrase - retrieves the response body - sends url encoded nested parameters - represents empty body response as blank string + sends files + handles headers with multiple values sends user agent - handles proxy failures binds local socket + sends url encoded nested parameters supports timeout option - with parallel setup - handles parallel requests status - handles parallel requests body - #get + handles deflate compression + #options behaves like a request method + handles requests with proxy + binds local socket + sends request body + handles headers with multiple values + handles connection error supports open_timeout option + supports timeout option + sends url encoded parameters + handles proxy failures + handles deflate compression sends url encoded nested parameters - handles connection error - binds local socket + parses the reason phrase retrieves the response headers + handles gzip compression sends user agent - retrieves the response body represents empty body response as blank string - handles requests with proxy - supports timeout option - handles headers with multiple values - handles proxy failures - parses the reason phrase - sends url encoded parameters - sends request body - with parallel setup - handles parallel requests status - handles parallel requests body + retrieves the response body Options + configures open timeout + configures multiple timeouts configures timeout - configures all timeout settings - configures timeout and open_timeout -Faraday::Middleware - #close - with app that doesn't support #close - should issue warning - with app that supports #close - should issue warning +Faraday::FlatParamsEncoder + encodes empty array in hash + decodes arrays + decodes boolean values + encodes unsorted when asked + encodes boolean values + encodes boolean values in array + behaves like a params encoder + escapes safe buffer + encodes nil + raises type error for empty string + +Faraday::CompositeReadIO + with empty parts + is expected to eq 0 + is expected to eq "" + is expected to be nil + with utf8 multibyte part + allows to read in chunks + is expected to eq "\x86\xE3\x83\x95\xE3\x82\xA1\xE3\x82\xA4\xE3\x83\xAB" + with mix of empty and non-empty parts + allows to read in chunks + with 2 parts + allows to rewind while reading in chunks + is expected to eq 8 + is expected to eq "abcd1234" + allows to read in chunks + with empty composite_io + is expected to eq "" + is expected to eq 0 + is expected to be nil + +Faraday::Response::Middleware + with a custom ResponseMiddleware + parses the response + with a custom ResponseMiddleware and private parse + parses the response + with a custom ResponseMiddleware but empty response + raises exception for 200 responses + doesn't call the middleware for 204 responses + doesn't call the middleware for 304 responses + +Faraday::Utils::Headers + when Content-Type is set to application/json + is expected to eq "application/json" + is expected to eq "application/json" + is expected to include "content-type" + is expected to eq "application/json" + is expected to eq ["Content-Type"] + #delete + is expected to eq 0 + is expected to be nil + is expected not to include "content-type" + is expected to eq "application/json" + #fetch + is expected to eq "application/json" + is expected to eq false + is expected to eq "application/json" + is expected to eq "Invalid key" + is expected to be nil + calls a block when provided + is expected to eq "application/json" + raises an error if key not found + is expected to eq "default" + #parse + when response headers include a blank line + is expected to eq "text/html" + when response headers leave http status line out + is expected to eq ["Content-Type"] + is expected to eq "text/html" + is expected to eq "text/html" + when response headers values include a colon + is expected to eq "http://sushi.com/" + when Content-Type is set to application/xml + is expected to eq ["Content-Type"] + is expected to eq "application/xml" + is expected to eq "application/xml" + is expected to eq "application/xml" + is expected to include "content-type" + +Faraday::RequestOptions + allows to set the request proxy + +Faraday::AdapterRegistry + #initialize + is expected to raise NameError + caches lookups with implicit name + looks up class by symbol name + looks up class by string name + is expected to raise NameError + caches lookups with explicit name + +Faraday::Adapter + #request_timeout + gets :open timeout + gets :write timeout + attempts unknown timeout type + gets :read timeout Faraday::Adapter::Rack behaves like an adapter - with SSL enabled - #get + with SSL disabled + #delete behaves like a request method - handles headers with multiple values - sends url encoded nested parameters - represents empty body response as blank string - sends user agent - supports open_timeout option - handles proxy failures supports timeout option - retrieves the response headers - retrieves the response body sends url encoded parameters handles connection error - sends request body - handles requests with proxy - #options - behaves like a request method + supports open_timeout option + represents empty body response as blank string + sends user agent + handles headers with multiple values retrieves the response headers - sends url encoded parameters - retrieves the response body sends url encoded nested parameters - handles connection error sends request body - handles headers with multiple values - handles proxy failures handles requests with proxy + retrieves the response body + handles proxy failures + #patch + behaves like a request method + supports timeout option supports open_timeout option + retrieves the response headers + retrieves the response body sends user agent represents empty body response as blank string - supports timeout option - #head - behaves like a request method - sends request body - handles proxy failures sends url encoded parameters - handles requests with proxy - handles headers with multiple values - represents empty body response as blank string - handles connection error - sends user agent - supports timeout option sends url encoded nested parameters - retrieves the response headers - supports open_timeout option - #post - behaves like a request method - handles requests with proxy + sends files handles headers with multiple values + handles requests with proxy handles proxy failures - supports open_timeout option - sends files - represents empty body response as blank string - retrieves the response body - sends url encoded nested parameters handles connection error - supports timeout option sends request body - sends user agent - sends url encoded parameters - retrieves the response headers - #patch + #get behaves like a request method handles headers with multiple values - represents empty body response as blank string sends user agent - sends url encoded parameters - handles requests with proxy - handles connection error - supports open_timeout option handles proxy failures - sends request body - retrieves the response body - retrieves the response headers - supports timeout option - sends url encoded nested parameters - sends files - #put - behaves like a request method - handles connection error retrieves the response headers sends url encoded parameters - sends request body - handles proxy failures - handles headers with multiple values - supports timeout option - retrieves the response body - supports open_timeout option - sends files represents empty body response as blank string - handles requests with proxy - sends user agent sends url encoded nested parameters - #trace - behaves like a request method - sends user agent - retrieves the response headers - sends url encoded parameters - represents empty body response as blank string - handles headers with multiple values handles connection error + supports open_timeout option sends request body retrieves the response body handles requests with proxy - sends url encoded nested parameters - handles proxy failures - supports open_timeout option supports timeout option - #delete + #post behaves like a request method - retrieves the response headers - sends request body - sends user agent - supports open_timeout option handles headers with multiple values - handles proxy failures + supports open_timeout option + sends request body + retrieves the response headers retrieves the response body + represents empty body response as blank string sends url encoded nested parameters - handles requests with proxy - sends url encoded parameters supports timeout option handles connection error - represents empty body response as blank string - with SSL disabled - #put - behaves like a request method - handles headers with multiple values - represents empty body response as blank string + sends user agent handles proxy failures sends url encoded parameters - retrieves the response body - supports timeout option - sends request body - supports open_timeout option - sends url encoded nested parameters - retrieves the response headers - handles requests with proxy - sends user agent sends files - handles connection error - #patch + handles requests with proxy + #options behaves like a request method - sends url encoded parameters - represents empty body response as blank string - sends user agent retrieves the response body - handles proxy failures retrieves the response headers supports open_timeout option - supports timeout option - handles headers with multiple values - sends files handles requests with proxy - sends url encoded nested parameters - sends request body - handles connection error - #post - behaves like a request method supports timeout option - sends url encoded nested parameters - retrieves the response headers - retrieves the response body - represents empty body response as blank string - sends request body - sends url encoded parameters - sends files - handles connection error handles headers with multiple values - sends user agent - handles proxy failures - supports open_timeout option - handles requests with proxy - #delete - behaves like a request method - supports open_timeout option - sends request body - retrieves the response body - retrieves the response headers sends url encoded nested parameters + represents empty body response as blank string handles connection error - supports timeout option sends url encoded parameters sends user agent - handles requests with proxy - represents empty body response as blank string - handles headers with multiple values + sends request body handles proxy failures - #get + #put behaves like a request method + sends request body represents empty body response as blank string - supports timeout option - handles requests with proxy - supports open_timeout option - retrieves the response headers - sends url encoded parameters sends user agent - handles connection error handles proxy failures - handles headers with multiple values - retrieves the response body - sends url encoded nested parameters - sends request body - #head - behaves like a request method - handles connection error - supports timeout option - handles requests with proxy sends url encoded nested parameters - represents empty body response as blank string - sends url encoded parameters supports open_timeout option - sends request body - handles headers with multiple values retrieves the response headers - sends user agent - handles proxy failures - #options - behaves like a request method - sends request body - handles proxy failures - handles requests with proxy - handles headers with multiple values - supports open_timeout option retrieves the response body + handles requests with proxy handles connection error - sends url encoded nested parameters - represents empty body response as blank string - sends user agent - retrieves the response headers sends url encoded parameters + handles headers with multiple values + sends files supports timeout option #trace behaves like a request method - handles requests with proxy - retrieves the response headers - handles headers with multiple values + supports open_timeout option handles connection error - sends url encoded nested parameters - sends url encoded parameters - retrieves the response body sends user agent - supports open_timeout option + handles requests with proxy supports timeout option - represents empty body response as blank string handles proxy failures + sends url encoded parameters + represents empty body response as blank string + handles headers with multiple values sends request body - -Faraday::Adapter::NetHttpPersistent - allows to provide adapter specific configs - sets max_retries to 0 - allows to set pool_size on initialize - min_version - allows to set min_version in SSL settings - behaves like an adapter - with SSL disabled - #delete - behaves like a request method - sends request body - parses the reason phrase retrieves the response body - handles connection error - handles requests with proxy - handles gzip compression - handles deflate compression - handles headers with multiple values - retrieves the response headers sends url encoded nested parameters - sends url encoded parameters - supports open_timeout option - represents empty body response as blank string - sends user agent - handles proxy failures - supports timeout option - #put + retrieves the response headers + #head behaves like a request method - sends request body + handles proxy failures + sends user agent supports open_timeout option + handles connection error sends url encoded nested parameters - sends url encoded parameters - supports timeout option - parses the reason phrase handles headers with multiple values - sends user agent - sends files + sends url encoded parameters handles requests with proxy - handles proxy failures - retrieves the response headers + supports timeout option represents empty body response as blank string - retrieves the response body - handles deflate compression - handles gzip compression - handles connection error - #post + retrieves the response headers + sends request body + with SSL enabled + #put behaves like a request method - handles deflate compression - represents empty body response as blank string - sends files handles headers with multiple values - sends url encoded nested parameters - handles connection error - sends request body - sends url encoded parameters supports timeout option - handles gzip compression - retrieves the response headers - supports open_timeout option - handles proxy failures - parses the reason phrase retrieves the response body - handles requests with proxy - sends user agent - #patch - behaves like a request method - sends files - sends user agent - handles requests with proxy - represents empty body response as blank string - handles gzip compression retrieves the response headers - retrieves the response body - handles proxy failures - supports timeout option - handles deflate compression - handles headers with multiple values + represents empty body response as blank string sends url encoded parameters - sends url encoded nested parameters + handles proxy failures + sends user agent sends request body - parses the reason phrase + handles requests with proxy supports open_timeout option + sends url encoded nested parameters handles connection error - #head + sends files + #get behaves like a request method - supports timeout option - sends url encoded parameters sends request body sends user agent - parses the reason phrase handles requests with proxy handles connection error - represents empty body response as blank string + retrieves the response body + supports timeout option sends url encoded nested parameters + supports open_timeout option handles headers with multiple values - retrieves the response body + sends url encoded parameters retrieves the response headers - supports open_timeout option + represents empty body response as blank string handles proxy failures - #get + #delete behaves like a request method - sends url encoded nested parameters - sends url encoded parameters handles connection error - sends user agent - handles gzip compression - handles deflate compression - supports timeout option retrieves the response headers + sends url encoded nested parameters handles headers with multiple values - handles proxy failures handles requests with proxy - represents empty body response as blank string - parses the reason phrase - sends request body - retrieves the response body supports open_timeout option - #trace - behaves like a request method - handles requests with proxy - represents empty body response as blank string - handles proxy failures - handles deflate compression - retrieves the response headers - handles headers with multiple values - handles connection error - handles gzip compression - supports timeout option sends user agent sends request body - supports open_timeout option - sends url encoded nested parameters - parses the reason phrase - sends url encoded parameters + represents empty body response as blank string retrieves the response body + sends url encoded parameters + handles proxy failures + supports timeout option #options behaves like a request method - sends request body - handles requests with proxy - represents empty body response as blank string + retrieves the response body handles connection error - supports timeout option - handles proxy failures - handles headers with multiple values + handles requests with proxy sends url encoded nested parameters - handles gzip compression - parses the reason phrase - retrieves the response headers - retrieves the response body - sends user agent - supports open_timeout option - sends url encoded parameters - handles deflate compression - with SSL enabled - #trace - behaves like a request method sends url encoded parameters - handles connection error - retrieves the response body - supports open_timeout option - sends request body - handles deflate compression - supports timeout option sends user agent represents empty body response as blank string - handles proxy failures - parses the reason phrase retrieves the response headers - handles headers with multiple values - handles gzip compression - sends url encoded nested parameters - handles requests with proxy - #options - behaves like a request method supports open_timeout option - sends url encoded parameters - sends url encoded nested parameters - handles requests with proxy - handles proxy failures - retrieves the response body - handles connection error - parses the reason phrase - handles deflate compression - handles gzip compression supports timeout option - sends user agent - sends request body handles headers with multiple values - represents empty body response as blank string - retrieves the response headers - #patch + handles proxy failures + sends request body + #trace behaves like a request method - sends files - handles headers with multiple values + sends user agent + handles proxy failures sends url encoded nested parameters supports timeout option supports open_timeout option - handles connection error - handles gzip compression - retrieves the response body - sends request body retrieves the response headers - handles proxy failures - sends url encoded parameters - parses the reason phrase - represents empty body response as blank string - handles requests with proxy - sends user agent - handles deflate compression - #delete - behaves like a request method - parses the reason phrase handles headers with multiple values - handles requests with proxy - retrieves the response headers + handles connection error represents empty body response as blank string - handles proxy failures - supports open_timeout option sends url encoded parameters - sends user agent - supports timeout option - handles gzip compression retrieves the response body - sends url encoded nested parameters + handles requests with proxy sends request body - handles connection error - handles deflate compression - #get + #patch behaves like a request method - supports timeout option - retrieves the response headers - sends url encoded nested parameters - sends request body - handles deflate compression - parses the reason phrase supports open_timeout option - handles requests with proxy - handles proxy failures - handles headers with multiple values - handles gzip compression - sends url encoded parameters - represents empty body response as blank string handles connection error - sends user agent + represents empty body response as blank string retrieves the response body - #post - behaves like a request method - sends url encoded parameters - sends url encoded nested parameters - handles connection error handles headers with multiple values - handles proxy failures - retrieves the response body + sends url encoded nested parameters sends files - represents empty body response as blank string + sends user agent + supports timeout option sends request body - handles deflate compression + handles proxy failures handles requests with proxy + sends url encoded parameters retrieves the response headers - supports open_timeout option - supports timeout option - parses the reason phrase - handles gzip compression - sends user agent #head behaves like a request method - supports open_timeout option - handles proxy failures - retrieves the response headers - handles connection error - handles headers with multiple values - supports timeout option sends request body - parses the reason phrase - sends user agent + handles proxy failures represents empty body response as blank string + supports timeout option + handles requests with proxy sends url encoded nested parameters - retrieves the response body + handles headers with multiple values + handles connection error sends url encoded parameters - handles requests with proxy - #put + retrieves the response headers + sends user agent + supports open_timeout option + #post behaves like a request method + sends files sends url encoded parameters - handles gzip compression - sends request body - supports timeout option - supports open_timeout option - handles headers with multiple values - sends url encoded nested parameters retrieves the response body - sends files sends user agent - handles deflate compression - handles proxy failures handles connection error - parses the reason phrase - retrieves the response headers + handles proxy failures + handles headers with multiple values + supports timeout option + sends request body represents empty body response as blank string + supports open_timeout option handles requests with proxy + sends url encoded nested parameters + retrieves the response headers + +Faraday::RackBuilder + 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 to construct adapter with options passed to insert + adds a handler with options passed to swap + adds a handler with options passed to insert_after + with default stack + is expected to eq Faraday::Adapter::NetHttp + is expected to eq Faraday::Request::UrlEncoded + when a request adapter is added with named arguments + adds a handler to construct request adapter with options passed to request + when having a single handler + allows rebuilding + allows insert_after + allows insert_before + is expected to eq [Apple] + raises an error trying to use an unregistered symbol + allows use + when having two handlers + allows insert_before + allows to swap handlers + allows to delete a handler + allows insert_after + with custom handler and adapter + locks the stack after making a request + allows to compare handlers + dup stack is unlocked + with custom empty block + is expected to be nil + is expected to eq Faraday::Adapter::NetHttp + when having a handler with broken dependency + raises an error while making a request + when middleware is added with named arguments + adds a handler to construct middleware with options passed to use + 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 + with custom registered middleware + allows to register with constant + allows to register with string + allows to register with symbol + allows to register with Proc + +Faraday::Middleware + #close + with app that doesn't support #close + should issue warning + with app that supports #close + should issue warning + +Faraday::Request::Multipart + FilePart: when multipart objects in array param + forms a multipart request + behaves like a multipart request + generates a unique boundary for each request + FilePart: when multipart objects in param + forms a multipart request + behaves like a multipart request + generates a unique boundary for each request + UploadIO: when multipart objects in array param + forms a multipart request + behaves like a multipart request + generates a unique boundary for each request + FilePart: when providing json and IO content in the same payload + forms a multipart request + behaves like a multipart request + generates a unique boundary for each request + UploadIO: when multipart objects in param + forms a multipart request + behaves like a multipart request + generates a unique boundary for each request + when passing flat_encode=true option + encode params using flat encoder + behaves like a multipart request + generates a unique boundary for each request + UploadIO: when providing json and IO content in the same payload + forms a multipart request + behaves like a multipart request + generates a unique boundary for each request + +Faraday + has a version number + proxies to default_connection + proxies methods that exist on the default_connection + proxied methods can be accessed + uses method_missing on Faraday if there is no proxyable method + +Faraday::NestedParamsEncoder + encodes nil array value + encodes rack compat + decodes nested ignores malformed keys + encodes unsorted when asked + decodes hashes + decodes nested ignores repeated array notation + decodes nested arrays rack compat + decodes nested array mixed types + encodes boolean values + encodes empty array value + encodes boolean values in array + encodes empty string array value + decodes nested ignores invalid array + decodes arrays + decodes nested subkeys dont have to be in brackets + decodes nested final value overrides any type + behaves like a params encoder + encodes nil + escapes safe buffer + raises type error for empty string + 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 array but getting string + behaves like a wrong decoding + is expected to raise TypeError + when expecting hash but getting array + behaves like a wrong decoding + is expected to raise TypeError + when expecting hash but getting string + behaves like a wrong decoding + is expected to raise TypeError + +Faraday::Adapter::Test + can handle regular expression path with captured result + is expected to eq "show specified" + can handle single parameter block + is expected to eq "get" + yielding env to stubs + 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" + raising an error if no stub was found + for request + is expected to raise Faraday::Adapter::Test::Stubs::NotFound + for request without specified header + is expected to raise Faraday::Adapter::Test::Stubs::NotFound + for specified host + is expected to raise Faraday::Adapter::Test::Stubs::NotFound + with http headers + with header + is expected to eq "a" + without header + is expected to eq "b" + can handle regular expression path + is expected to eq "show" + with simple path sets status + is expected to eq 200 + ignoring unspecified get params + with multiple params + is expected to eq "a" + without params + is expected to raise Faraday::Adapter::Test::Stubs::NotFound + with single param + is expected to eq "a" + with simple path sets headers + is expected to eq "text/html" + with get params + is expected to eq "a" + with host points to the right stub + is expected to eq "domain: hello" + with simple path sets body + is expected to eq "hello" + can be called several times + is expected to eq "hello" + params parsing + with flat encoder + is expected to eq "a" + with nested encoder + is expected to eq "a" + with default encoder + is expected to eq "a" + +Faraday::Request + supports marshal serialization + 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 {"a"=>1} + is expected to eq "foo.json" + 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 {:consumer_key=>"anonymous", :consumer_secret=>"xyz"} + is expected to eq {:bar=>"bar", :foo=>"foo"} + is expected to eq "boo" + is expected to eq 10 + is expected to eq 5 + is expected to eq 5 + when setting the body on setup + is expected to eq "hi" + is expected to eq "hi" + when setting a header on setup with []= syntax + is expected to eq "Faraday" + is expected to eq "Faraday" + is expected to eq "1.0" + when setting the url on setup with a URI + is expected to eq "http://sushi.com/api/foo.json?a=1" + is expected to eq # + is expected to eq {"a"=>"1"} + when 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 "http://sushi.com/api/foo.json?a=1&b=2" + is expected to eq {"a"=>"1", "b"=>"2"} + when nothing particular is configured + is expected to eq :get + is expected to be falsey + +Faraday::Request::Instrumentation + defaults to ActiveSupport::Notifications + instruments with default name + is expected to eq "request.faraday" + with custom name + instruments with custom name + is expected to eq "custom" + with custom instrumenter + is expected to eq :custom -Finished in 11.19 seconds (files took 3.23 seconds to load) +Finished in 8.26 seconds (files took 1.39 seconds to load) 2543 examples, 0 failures -Randomized with seed 6160 +Randomized with seed 14109 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. @@ -4708,12 +4774,14 @@ dpkg-source --after-build . dpkg-buildpackage: info: binary-only upload (no source included) I: copying local configuration +I: user script /srv/workspace/pbuilder/62259/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/62259/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/17170 and its subdirectories -I: Current time: Thu Aug 12 03:22:51 -12 2021 -I: pbuilder-time-stamp: 1628781771 +I: removing directory /srv/workspace/pbuilder/62259 and its subdirectories +I: Current time: Thu Sep 15 11:46:36 +14 2022 +I: pbuilder-time-stamp: 1663191996