Diff of the two buildlogs: -- --- b1/build.log 2021-09-21 01:26:56.983081277 +0000 +++ b2/build.log 2021-09-21 01:40:46.745241851 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Mon Sep 20 13:20:13 -12 2021 -I: pbuilder-time-stamp: 1632187213 +I: Current time: Tue Sep 21 15:27:10 +14 2021 +I: pbuilder-time-stamp: 1632187631 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/bullseye-reproducible-base.tgz] I: copying local configuration @@ -16,8 +16,8 @@ I: copying [./ruby-faraday_1.1.0-6.debian.tar.xz] I: Extracting source gpgv: unknown type of key resource 'trustedkeys.kbx' -gpgv: keyblock resource '/tmp/dpkg-verify-sig.xPzOH94q/trustedkeys.kbx': General error -gpgv: Signature made Thu Jan 28 08:29:33 2021 -12 +gpgv: keyblock resource '/tmp/dpkg-verify-sig.KYEnJdKM/trustedkeys.kbx': General error +gpgv: Signature made Fri Jan 29 10:29:33 2021 +14 gpgv: using RSA key 8ED6C3F8BAC9DB7FC130A870F823A2729883C97C gpgv: issuer "lucas.kanashiro@canonical.com" gpgv: Can't check signature: No public key @@ -33,135 +33,169 @@ dpkg-source: info: applying skip-test-failing-in-ubuntu.patch I: using fakeroot in build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/29791/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/9234/tmp/hooks/D01_modify_environment starting +debug: Running on cbxi4b. +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/9234/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/9234/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='armhf' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all,-fixfilepath parallel=3' - DISTRIBUTION='' - HOME='/root' - HOST_ARCH='armhf' + 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]="arm-unknown-linux-gnueabihf") + 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=armhf + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all,-fixfilepath parallel=4' + DIRSTACK=() + DISTRIBUTION= + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=arm + HOST_ARCH=armhf IFS=' ' - INVOCATION_ID='cbd4375417e042a9ad195e5412bf532a' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='29791' - PS1='# ' - PS2='> ' + INVOCATION_ID=267d543665ae40daad8711924a6110f1 + LANG=C + LANGUAGE=it_CH:it + LC_ALL=C + MACHTYPE=arm-unknown-linux-gnueabihf + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnueabihf + 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=9234 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.sPKJylJDwP/pbuilderrc_apsw --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bullseye-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.sPKJylJDwP/b1 --logfile b1/build.log ruby-faraday_1.1.0-6.dsc' - SUDO_GID='114' - SUDO_UID='108' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://10.0.0.15:8000/' + 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.sPKJylJDwP/pbuilderrc_wBXs --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bullseye-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.sPKJylJDwP/b2 --logfile b2/build.log ruby-faraday_1.1.0-6.dsc' + SUDO_GID=116 + SUDO_UID=112 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://10.0.0.15:8000/ I: uname -a - Linux virt64a 5.10.0-8-arm64 #1 SMP Debian 5.10.46-4 (2021-08-03) aarch64 GNU/Linux + Linux i-capture-the-hostname 5.10.0-8-armmp #1 SMP Debian 5.10.46-4 (2021-08-03) armv7l GNU/Linux I: ls -l /bin total 3580 - -rwxr-xr-x 1 root root 816764 Aug 4 08:25 bash - -rwxr-xr-x 3 root root 26052 Jul 20 2020 bunzip2 - -rwxr-xr-x 3 root root 26052 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 26052 Jul 20 2020 bzip2 - -rwxr-xr-x 1 root root 9636 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 26668 Sep 22 2020 cat - -rwxr-xr-x 1 root root 43104 Sep 22 2020 chgrp - -rwxr-xr-x 1 root root 38984 Sep 22 2020 chmod - -rwxr-xr-x 1 root root 43112 Sep 22 2020 chown - -rwxr-xr-x 1 root root 92616 Sep 22 2020 cp - -rwxr-xr-x 1 root root 75524 Dec 10 2020 dash - -rwxr-xr-x 1 root root 75880 Sep 22 2020 date - -rwxr-xr-x 1 root root 55436 Sep 22 2020 dd - -rwxr-xr-x 1 root root 59912 Sep 22 2020 df - -rwxr-xr-x 1 root root 96764 Sep 22 2020 dir - -rwxr-xr-x 1 root root 55012 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 22508 Sep 22 2020 echo - -rwxr-xr-x 1 root root 28 Nov 9 2020 egrep - -rwxr-xr-x 1 root root 22496 Sep 22 2020 false - -rwxr-xr-x 1 root root 28 Nov 9 2020 fgrep - -rwxr-xr-x 1 root root 47492 Jul 28 07:09 findmnt - -rwsr-xr-x 1 root root 26076 Feb 26 2021 fusermount - -rwxr-xr-x 1 root root 124508 Nov 9 2020 grep - -rwxr-xr-x 2 root root 2346 Mar 2 2021 gunzip - -rwxr-xr-x 1 root root 6376 Mar 2 2021 gzexe - -rwxr-xr-x 1 root root 64212 Mar 2 2021 gzip - -rwxr-xr-x 1 root root 13784 Nov 6 2019 hostname - -rwxr-xr-x 1 root root 43180 Sep 22 2020 ln - -rwxr-xr-x 1 root root 35068 Feb 7 2020 login - -rwxr-xr-x 1 root root 96764 Sep 22 2020 ls - -rwxr-xr-x 1 root root 99940 Jul 28 07:09 lsblk - -rwxr-xr-x 1 root root 51408 Sep 22 2020 mkdir - -rwxr-xr-x 1 root root 43184 Sep 22 2020 mknod - -rwxr-xr-x 1 root root 30780 Sep 22 2020 mktemp - -rwxr-xr-x 1 root root 34408 Jul 28 07:09 more - -rwsr-xr-x 1 root root 34400 Jul 28 07:09 mount - -rwxr-xr-x 1 root root 9824 Jul 28 07:09 mountpoint - -rwxr-xr-x 1 root root 88524 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 26652 Sep 22 2020 pwd - lrwxrwxrwx 1 root root 4 Aug 4 08:25 rbash -> bash - -rwxr-xr-x 1 root root 30740 Sep 22 2020 readlink - -rwxr-xr-x 1 root root 43104 Sep 22 2020 rm - -rwxr-xr-x 1 root root 30732 Sep 22 2020 rmdir - -rwxr-xr-x 1 root root 14144 Sep 27 2020 run-parts - -rwxr-xr-x 1 root root 76012 Dec 22 2018 sed - lrwxrwxrwx 1 root root 4 Sep 6 21:27 sh -> dash - -rwxr-xr-x 1 root root 22532 Sep 22 2020 sleep - -rwxr-xr-x 1 root root 55360 Sep 22 2020 stty - -rwsr-xr-x 1 root root 46704 Jul 28 07:09 su - -rwxr-xr-x 1 root root 22532 Sep 22 2020 sync - -rwxr-xr-x 1 root root 340872 Feb 16 2021 tar - -rwxr-xr-x 1 root root 9808 Sep 27 2020 tempfile - -rwxr-xr-x 1 root root 67696 Sep 22 2020 touch - -rwxr-xr-x 1 root root 22496 Sep 22 2020 true - -rwxr-xr-x 1 root root 9636 Feb 26 2021 ulockmgr_server - -rwsr-xr-x 1 root root 22108 Jul 28 07:09 umount - -rwxr-xr-x 1 root root 22520 Sep 22 2020 uname - -rwxr-xr-x 2 root root 2346 Mar 2 2021 uncompress - -rwxr-xr-x 1 root root 96764 Sep 22 2020 vdir - -rwxr-xr-x 1 root root 38512 Jul 28 07:09 wdctl - lrwxrwxrwx 1 root root 8 Nov 6 2019 ypdomainname -> hostname - -rwxr-xr-x 1 root root 1984 Mar 2 2021 zcat - -rwxr-xr-x 1 root root 1678 Mar 2 2021 zcmp - -rwxr-xr-x 1 root root 5880 Mar 2 2021 zdiff - -rwxr-xr-x 1 root root 29 Mar 2 2021 zegrep - -rwxr-xr-x 1 root root 29 Mar 2 2021 zfgrep - -rwxr-xr-x 1 root root 2081 Mar 2 2021 zforce - -rwxr-xr-x 1 root root 7585 Mar 2 2021 zgrep - -rwxr-xr-x 1 root root 2206 Mar 2 2021 zless - -rwxr-xr-x 1 root root 1842 Mar 2 2021 zmore - -rwxr-xr-x 1 root root 4553 Mar 2 2021 znew -I: user script /srv/workspace/pbuilder/29791/tmp/hooks/D02_print_environment finished + -rwxr-xr-x 1 root root 816764 Aug 5 10:25 bash + -rwxr-xr-x 3 root root 26052 Jul 21 2020 bunzip2 + -rwxr-xr-x 3 root root 26052 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 26052 Jul 21 2020 bzip2 + -rwxr-xr-x 1 root root 9636 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 26668 Sep 23 2020 cat + -rwxr-xr-x 1 root root 43104 Sep 23 2020 chgrp + -rwxr-xr-x 1 root root 38984 Sep 23 2020 chmod + -rwxr-xr-x 1 root root 43112 Sep 23 2020 chown + -rwxr-xr-x 1 root root 92616 Sep 23 2020 cp + -rwxr-xr-x 1 root root 75524 Dec 11 2020 dash + -rwxr-xr-x 1 root root 75880 Sep 23 2020 date + -rwxr-xr-x 1 root root 55436 Sep 23 2020 dd + -rwxr-xr-x 1 root root 59912 Sep 23 2020 df + -rwxr-xr-x 1 root root 96764 Sep 23 2020 dir + -rwxr-xr-x 1 root root 55012 Jul 29 09:09 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 22508 Sep 23 2020 echo + -rwxr-xr-x 1 root root 28 Nov 10 2020 egrep + -rwxr-xr-x 1 root root 22496 Sep 23 2020 false + -rwxr-xr-x 1 root root 28 Nov 10 2020 fgrep + -rwxr-xr-x 1 root root 47492 Jul 29 09:09 findmnt + -rwsr-xr-x 1 root root 26076 Feb 27 2021 fusermount + -rwxr-xr-x 1 root root 124508 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 64212 Mar 3 2021 gzip + -rwxr-xr-x 1 root root 13784 Nov 8 2019 hostname + -rwxr-xr-x 1 root root 43180 Sep 23 2020 ln + -rwxr-xr-x 1 root root 35068 Feb 8 2020 login + -rwxr-xr-x 1 root root 96764 Sep 23 2020 ls + -rwxr-xr-x 1 root root 99940 Jul 29 09:09 lsblk + -rwxr-xr-x 1 root root 51408 Sep 23 2020 mkdir + -rwxr-xr-x 1 root root 43184 Sep 23 2020 mknod + -rwxr-xr-x 1 root root 30780 Sep 23 2020 mktemp + -rwxr-xr-x 1 root root 34408 Jul 29 09:09 more + -rwsr-xr-x 1 root root 34400 Jul 29 09:09 mount + -rwxr-xr-x 1 root root 9824 Jul 29 09:09 mountpoint + -rwxr-xr-x 1 root root 88524 Sep 23 2020 mv + lrwxrwxrwx 1 root root 8 Nov 8 2019 nisdomainname -> hostname + lrwxrwxrwx 1 root root 14 Apr 19 05:38 pidof -> /sbin/killall5 + -rwxr-xr-x 1 root root 26652 Sep 23 2020 pwd + lrwxrwxrwx 1 root root 4 Aug 5 10:25 rbash -> bash + -rwxr-xr-x 1 root root 30740 Sep 23 2020 readlink + -rwxr-xr-x 1 root root 43104 Sep 23 2020 rm + -rwxr-xr-x 1 root root 30732 Sep 23 2020 rmdir + -rwxr-xr-x 1 root root 14144 Sep 28 2020 run-parts + -rwxr-xr-x 1 root root 76012 Dec 23 2018 sed + lrwxrwxrwx 1 root root 4 Sep 21 15:28 sh -> bash + lrwxrwxrwx 1 root root 4 Sep 7 23:30 sh.distrib -> dash + -rwxr-xr-x 1 root root 22532 Sep 23 2020 sleep + -rwxr-xr-x 1 root root 55360 Sep 23 2020 stty + -rwsr-xr-x 1 root root 46704 Jul 29 09:09 su + -rwxr-xr-x 1 root root 22532 Sep 23 2020 sync + -rwxr-xr-x 1 root root 340872 Feb 17 2021 tar + -rwxr-xr-x 1 root root 9808 Sep 28 2020 tempfile + -rwxr-xr-x 1 root root 67696 Sep 23 2020 touch + -rwxr-xr-x 1 root root 22496 Sep 23 2020 true + -rwxr-xr-x 1 root root 9636 Feb 27 2021 ulockmgr_server + -rwsr-xr-x 1 root root 22108 Jul 29 09:09 umount + -rwxr-xr-x 1 root root 22520 Sep 23 2020 uname + -rwxr-xr-x 2 root root 2346 Mar 3 2021 uncompress + -rwxr-xr-x 1 root root 96764 Sep 23 2020 vdir + -rwxr-xr-x 1 root root 38512 Jul 29 09:09 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/9234/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -450,7 +484,7 @@ Get: 213 http://deb.debian.org/debian bullseye/main armhf ruby-sinatra all 2.0.8.1-2 [351 kB] Get: 214 http://deb.debian.org/debian bullseye/main armhf ruby-typhoeus all 1.4.0-1 [36.2 kB] Get: 215 http://deb.debian.org/debian bullseye/main armhf ruby-webmock all 3.8.3-1 [64.3 kB] -Fetched 49.6 MB in 6s (8113 kB/s) +Fetched 49.6 MB in 12s (4307 kB/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 ... 19398 files and directories currently installed.) @@ -1342,7 +1376,8 @@ fakeroot is already the newest version (1.25.3-1.1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. I: Building the package -I: Running cd /build/ruby-faraday-1.1.0/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../ruby-faraday_1.1.0-6_source.changes +hostname: Name or service not known +I: Running cd /build/ruby-faraday-1.1.0/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../ruby-faraday_1.1.0-6_source.changes dpkg-buildpackage: info: source package ruby-faraday dpkg-buildpackage: info: source version 1.1.0-6 dpkg-buildpackage: info: source distribution unstable @@ -1382,54 +1417,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/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/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/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/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.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/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/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/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/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/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/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/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/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/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/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/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/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/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.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/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/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/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/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/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/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.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/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/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/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/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/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/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/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.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_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/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_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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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.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/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/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/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/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/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/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/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/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/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/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/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/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 Rubygems integration metadata │ @@ -1446,303 +1481,1076 @@ 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/arm-linux-gnueabihf/ruby/gems/2.7.0:/usr/share/rubygems-integration/2.7.0:/usr/share/rubygems-integration/all:/usr/lib/arm-linux-gnueabihf/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 42975 +Randomized with seed 54978 -Faraday::Response::RaiseError - raises Faraday::UnauthorizedError for 401 responses - raises no exception for 200 responses - raises Faraday::BadRequestError for 400 responses - raises Faraday::ForbiddenError for 403 responses - raises Faraday::NilStatusError for nil status in response - raises Faraday::ConflictError for 409 responses - raises Faraday::ProxyAuthError for 407 responses - raises Faraday::ServerError for 500 responses - raises Faraday::ResourceNotFound for 404 responses - raises Faraday::ClientError for other 4xx responses - raises Faraday::UnprocessableEntityError for 422 responses - request info - returns the request info in the exception +Faraday::Request::UrlEncoded + does nothing without payload + works with unicode + works with nested keys + works with non nested params + works with no headers + works with with headers + works with nested params + ignores custom content type + customising default_space_encoding + uses the custom character to encode spaces + +Faraday::Utils::Headers + #fetch + is expected to eq "application/json" + is expected to eq "default" + is expected to eq "application/json" + is expected to eq "Invalid key" + is expected to eq "application/json" + is expected to eq false + raises an error if key not found + is expected to be nil + calls a block when provided + when Content-Type is set to application/json + is expected to include "content-type" + is expected to eq "application/json" + is expected to eq "application/json" + is expected to eq "application/json" + is expected to eq ["Content-Type"] + when Content-Type is set to application/xml + is expected to eq "application/xml" + is expected to eq "application/xml" + is expected to eq "application/xml" + is expected to include "content-type" + is expected to eq ["Content-Type"] + #delete + is expected to eq "application/json" + is expected to eq 0 + is expected to be nil + is expected not to include "content-type" + #parse + when response headers include a blank line + is expected to eq "text/html" + when response headers values include a colon + is expected to eq "http://sushi.com/" + when response headers leave http status line out + is expected to eq "text/html" + is expected to eq "text/html" + is expected to eq ["Content-Type"] Faraday::NestedParamsEncoder - decodes nested final value overrides any type - decodes nested array mixed types - decodes nested subkeys dont have to be in brackets - decodes nested ignores invalid array + encodes nil array value + decodes hashes decodes nested arrays rack compat - encodes unsorted when asked - encodes boolean values encodes rack compat - encodes empty string array value - decodes hashes - encodes empty array value - encodes nil array value encodes boolean values in array + encodes boolean values decodes nested ignores repeated array notation - decodes arrays + decodes nested ignores invalid array decodes nested ignores malformed keys - when expecting array but getting hash + decodes nested final value overrides any type + encodes empty string array value + encodes empty array value + decodes nested array mixed types + decodes arrays + decodes nested subkeys dont have to be in brackets + encodes unsorted when asked + when expecting hash but getting array behaves like a wrong decoding is expected to raise TypeError behaves like a params encoder - escapes safe buffer encodes nil raises type error for empty string - when expecting nested hash but getting non nested + escapes safe buffer + when expecting array but getting string behaves like a wrong decoding is expected to raise TypeError - when expecting hash but getting string + when expecting array but getting hash behaves like a wrong decoding is expected to raise TypeError - when expecting array but getting string + when expecting nested hash but getting non nested behaves like a wrong decoding is expected to raise TypeError - when expecting hash but getting array + when expecting hash but getting string behaves like a wrong decoding is expected to raise TypeError +Faraday::Response::RaiseError + raises no exception for 200 responses + raises Faraday::BadRequestError for 400 responses + raises Faraday::ClientError for other 4xx responses + raises Faraday::UnauthorizedError for 401 responses + raises Faraday::ResourceNotFound for 404 responses + raises Faraday::ServerError for 500 responses + raises Faraday::ProxyAuthError for 407 responses + raises Faraday::ConflictError for 409 responses + raises Faraday::ForbiddenError for 403 responses + raises Faraday::NilStatusError for nil status in response + raises Faraday::UnprocessableEntityError for 422 responses + request info + returns the request info in the exception + Faraday::Env + allows to access string non members retains custom members - allows to access symbol non members ignores false when fetching - allows to access string non members + allows to access symbol non members allows to access members #body - when response is not finished yet - returns the request body when response is finished - allows to access request_body - allows to access response_body 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" - instruments with default name - defaults to ActiveSupport::Notifications - with custom name - instruments with custom name - is expected to eq "custom" - with custom instrumenter - is expected to eq :custom +Faraday::CompositeReadIO + with empty parts + is expected to eq 0 + is expected to be nil + is expected to eq "" + with 2 parts + is expected to eq "abcd1234" + allows to rewind while reading in chunks + is expected to eq 8 + allows to read in chunks + with utf8 multibyte part + is expected to eq "\x86\xE3\x83\x95\xE3\x82\xA1\xE3\x82\xA4\xE3\x83\xAB" + allows to read in chunks + with mix of empty and non-empty parts + allows to read in chunks + with empty composite_io + is expected to eq 0 + is expected to eq "" + is expected to be nil -Faraday::Adapter::NetHttp - checking http - supports write_timeout - supports read_timeout - supports open_timeout - is expected to eq 80 - sets max_retries to 0 - with custom adapter config - is expected to eq 123 - with http url including port - is expected to eq 1234 - with https url - is expected to eq 443 +Faraday::FlatParamsEncoder + encodes empty array in hash + encodes unsorted when asked + encodes boolean values + decodes arrays + encodes boolean values in array + decodes boolean values + behaves like a params encoder + escapes safe buffer + encodes nil + raises type error for empty string + +Faraday::Adapter::Rack behaves like an adapter with SSL enabled - #patch + #delete behaves like a request method + handles connection error + supports open_timeout option + handles proxy failures + sends url encoded parameters + handles headers with multiple values + sends request body + supports timeout option + sends url encoded nested parameters + represents empty body response as blank string + sends user agent + retrieves the response headers + retrieves the response body + handles requests with proxy + #post + behaves like a request method + sends request body sends files + retrieves the response headers + sends url encoded nested parameters + supports timeout option + sends user agent + handles connection error represents empty body response as blank string + handles proxy failures + sends url encoded parameters + handles headers with multiple values supports open_timeout option retrieves the response body + handles requests with proxy + #trace + behaves like a request method + handles headers with multiple values + sends url encoded parameters + represents empty body response as blank string + handles proxy failures + sends url encoded nested parameters + retrieves the response headers + supports timeout option + supports open_timeout option + handles requests with proxy + retrieves the response body sends request body + handles connection error sends user agent - sends url encoded nested parameters + #options + behaves like a request method + sends request body + handles proxy failures + handles headers with multiple values + supports open_timeout option + handles requests with proxy sends url encoded parameters + sends url encoded nested parameters handles connection error - handles gzip compression - handles deflate compression + represents empty body response as blank string + supports timeout option retrieves the response headers - parses the reason phrase + sends user agent + retrieves the response body + #get + behaves like a request method + sends url encoded nested parameters + sends request body + sends user agent + supports open_timeout option handles proxy failures + sends url encoded parameters + handles headers with multiple values + retrieves the response body + represents empty body response as blank string + handles connection error handles requests with proxy + retrieves the response headers supports timeout option - handles headers with multiple values - streaming - when response is empty - is expected to eq [["", 0]] - when response contains big data - handles streaming - #options + #patch behaves like a request method + sends url encoded nested parameters + retrieves the response body sends user agent + sends request body + supports timeout option + represents empty body response as blank string handles connection error + sends url encoded parameters + handles requests with proxy + handles proxy failures + sends files retrieves the response headers + supports open_timeout option handles headers with multiple values - handles gzip compression - retrieves the response body - handles deflate compression + #head + behaves like a request method + supports open_timeout option handles requests with proxy - sends url encoded parameters - sends url encoded nested parameters sends request body - supports open_timeout option + represents empty body response as blank string + sends url encoded parameters + retrieves the response headers handles proxy failures - parses the reason phrase + handles headers with multiple values supports timeout option - represents empty body response as blank string - streaming - when response contains big data - handles streaming - when response is empty - is expected to eq [["", 0]] + sends user agent + handles connection error + sends url encoded nested parameters #put behaves like a request method + handles requests with proxy + handles connection error + sends user agent + represents empty body response as blank string + retrieves the response body + sends url encoded parameters + supports open_timeout option + sends files sends url encoded nested parameters + handles headers with multiple values sends request body - handles gzip compression + supports timeout option + retrieves the response headers + handles proxy failures + with SSL disabled + #put + behaves like a request method handles headers with multiple values + handles proxy failures + sends url encoded parameters + retrieves the response headers + handles requests with proxy + sends url encoded nested parameters + sends request body + retrieves the response body + supports open_timeout option + supports timeout option + sends files + represents empty body response as blank string + sends user agent + handles connection error + #trace + behaves like a request method + supports open_timeout option + retrieves the response body + sends request body + sends user agent + handles connection error + retrieves the response headers + handles requests with proxy sends url encoded parameters + handles proxy failures + sends url encoded nested parameters + supports timeout option + handles headers with multiple values + represents empty body response as blank string + #post + behaves like a request method + handles proxy failures sends user agent + sends url encoded nested parameters + retrieves the response headers sends files + handles requests with proxy + sends request body + sends url encoded parameters + supports open_timeout option + supports timeout option + handles connection error + handles headers with multiple values represents empty body response as blank string + retrieves the response body + #head + behaves like a request method + sends url encoded parameters handles requests with proxy - parses the reason phrase + sends request body + handles headers with multiple values + handles connection error + supports timeout option + handles proxy failures + represents empty body response as blank string + sends user agent + supports open_timeout option + sends url encoded nested parameters retrieves the response headers + #options + behaves like a request method + retrieves the response body + handles requests with proxy + sends user agent supports timeout option + retrieves the response headers handles proxy failures + supports open_timeout option handles connection error - handles deflate compression + handles headers with multiple values + sends url encoded nested parameters + represents empty body response as blank string + sends url encoded parameters + sends request body + #patch + behaves like a request method supports open_timeout option + retrieves the response headers + sends request body + sends user agent + handles requests with proxy + sends url encoded parameters + sends files + represents empty body response as blank string + handles proxy failures + handles connection error + supports timeout option + handles headers with multiple values retrieves the response body - streaming - when response is empty - is expected to eq [["", 0]] - when response contains big data - handles streaming - #trace + sends url encoded nested parameters + #get behaves like a request method + handles requests with proxy + represents empty body response as blank string + sends user agent + handles connection error + sends url encoded parameters + handles proxy failures + retrieves the response headers + retrieves the response body + sends url encoded nested parameters supports timeout option + sends request body handles headers with multiple values - parses the reason phrase + supports open_timeout option + #delete + behaves like a request method + handles proxy failures + sends url encoded parameters + represents empty body response as blank string + retrieves the response body handles connection error + supports timeout option + handles headers with multiple values handles requests with proxy + sends url encoded nested parameters + supports open_timeout option + sends user agent + retrieves the response headers sends request body + +Faraday::Adapter + #request_timeout + attempts unknown timeout type + gets :open timeout + gets :write timeout + gets :read timeout + +Faraday::Options + #merge + deeply merges two options + deeply merges options with options having nil sub-options + deeply merges options with hashes + deeply merges options with nil + merges options with hashes + #memoized + requires block + accepts block + #dup + duplicate options but not sub-options + #each_value + allows to iterate through values + #each_key + allows to iterate through keys + #value? + returns true if any key has that value + #update + updates options from hashes + #from + works with hash with sub object + works with deep hash + works with options + works with options with sub object + respects inheritance + works with nil + is expected to raise NoMethodError + works with hash + #delete + allows to remove value for key + #key? + returns true if the key exists and is not nil + #clear + clears the options + #empty? + returns true only if all options are nil + #deep_dup + duplicate options and also suboptions + #fetch + when the fetched key has no value + uses falsey default + needs a default if key is missing + accepts block + when the fetched key has a value + works with key + grabs value + +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::Request::Retry + when no exception raised + and response code is not in retry_statuses + is expected to eq 1 + and response code is in retry_statuses + is expected to eq 2 + when method is not idempotent + is expected to eq 1 + #calculate_retry_interval + with exponential backoff and interval_randomness + is expected to be between 0.1 and 0.15 (inclusive) + with exponential backoff + is expected to eq 0.1 + is expected to eq 0.4 + is expected to eq 0.2 + with exponential backoff and max_interval + is expected to eq 0.2 + is expected to eq 0.3 + is expected to eq 0.3 + is expected to eq 0.1 + retry_if option + UploadIO: should rewind files on retry + does not retry if retry_if block returns false checking env + FilePart: should rewind files on retry + does not retry if retry_if block returns false checking exception + retries if retry_if block always returns true + with empty list of methods to retry + calls retry_if for all methods + when explicitly specifying methods to retry + does not call retry_if for specified methods + when an unexpected error happens + is expected to eq 1 + and this is passed as a custom exception + is expected to eq 3 + retry_after header support + when retry_after bigger than interval + is expected to be > 0.5 + when retry_after smaller than interval + is expected to be > 0.2 + when retry_after is bigger than max_interval + is expected to eq 1 + when retry_after is a timestamp + is expected to be > 1 + when 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 new 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 3 + is expected to eq 4 + and legacy max_retry set to -9 + is expected to eq 1 + +Faraday::RackBuilder + with custom handler and adapter + allows to compare handlers + dup stack is unlocked + locks the stack after making a request + with custom registered middleware + allows to register with string + allows to register with symbol + allows to register with Proc + allows to register with constant + 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 + when having a single handler + allows insert_before + allows rebuilding + allows insert_after + raises an error trying to use an unregistered symbol + allows use + is expected to eq [Apple] + with custom adapter only + is expected to be nil + is expected to eq Faraday::Adapter::Test + when having two handlers + allows to delete a handler + allows to swap handlers + allows insert_before + allows insert_after + with default stack + is expected to eq Faraday::Request::UrlEncoded + is expected to eq Faraday::Adapter::NetHttp + when a request adapter is added with named arguments + adds a handler to construct request adapter with options passed to request + when middleware is added with named arguments + adds a handler to construct middleware with options passed to use + when handlers are directly added or updated + adds a handler to construct adapter with options passed to insert + adds a handler with options passed to insert_after + adds a handler with options passed to swap + when having a handler with broken dependency + raises an error while making a request + with custom empty block + is expected to eq Faraday::Adapter::NetHttp + is expected to be nil + +Faraday::Utils + URI parsing + parses with block + parses with default parser + escapes safe buffer + parses with URI + replaces headers hash + headers parsing + parse headers for aggregated responses + +Faraday::ProxyOptions + allows hash access + #from + works with no auth + works with nil + works with string + +Faraday::Adapter::Excon + allows to provide adapter specific configs + config + sets timeout + sets timeout and open_timeout + sets open_timeout + behaves like an adapter + with SSL enabled + #trace + behaves like a request method + handles connection error represents empty body response as blank string - retrieves the response body + supports timeout option + parses the reason phrase + retrieves the response headers + sends request body + handles requests with proxy sends url encoded parameters + retrieves the response body + sends url encoded nested parameters + sends user agent supports open_timeout option + handles headers with multiple values + handles proxy failures + #put + behaves like a request method + sends url encoded parameters + sends request body + handles requests with proxy + parses the reason phrase handles proxy failures - handles gzip compression sends user agent retrieves the response headers + handles headers with multiple values + retrieves the response body + represents empty body response as blank string + sends files + supports open_timeout option sends url encoded nested parameters - handles deflate compression - streaming - when response contains big data - handles streaming - when response is empty - is expected to eq [["", 0]] - #post + handles connection error + supports timeout option + #delete behaves like a request method - retrieves the response headers + retrieves the response body + handles proxy failures + sends url encoded parameters handles connection error + retrieves the response headers + handles headers with multiple values + represents empty body response as blank string + supports timeout option + supports open_timeout option + sends url encoded nested parameters parses the reason phrase sends request body + handles requests with proxy + sends user agent + #get + behaves like a request method + represents empty body response as blank string + retrieves the response body + handles headers with multiple values + handles requests with proxy handles proxy failures + handles connection error + sends request body + parses the reason phrase + retrieves the response headers + sends url encoded nested parameters + supports timeout option sends url encoded parameters - handles headers with multiple values + sends user agent supports open_timeout option + #head + behaves like a request method + supports open_timeout option + parses the reason phrase + sends request body + handles headers with multiple values + represents empty body response as blank string + retrieves the response headers supports timeout option - handles gzip compression + handles connection error + retrieves the response body sends user agent + handles proxy failures + sends url encoded nested parameters + sends url encoded parameters + handles requests with proxy + #options + behaves like a request method + supports open_timeout option represents empty body response as blank string + sends url encoded parameters + parses the reason phrase + sends user agent + handles proxy failures + handles requests with proxy + handles headers with multiple values + supports timeout option + retrieves the response headers retrieves the response body + handles connection error + sends request body + sends url encoded nested parameters + #post + behaves like a request method + retrieves the response headers + supports timeout option + represents empty body response as blank string + handles proxy failures + handles headers with multiple values + sends url encoded parameters + sends user agent sends files + sends request body + retrieves the response body sends url encoded nested parameters - handles deflate compression + parses the reason phrase + supports open_timeout option handles requests with proxy - streaming - when response contains big data - handles streaming - when response is empty - is expected to eq [["", 0]] - #get + handles connection error + #patch behaves like a request method - parses the reason phrase + handles requests with proxy + retrieves the response headers + supports timeout option + sends files + retrieves the response body + sends user agent + sends request body + handles headers with multiple values + handles connection error supports open_timeout option - handles proxy failures sends url encoded nested parameters + parses the reason phrase + handles proxy failures + sends url encoded parameters + represents empty body response as blank string + with SSL disabled + #trace + behaves like a request method handles requests with proxy + parses the reason phrase + represents empty body response as blank string + sends url encoded parameters + supports timeout option retrieves the response headers - handles gzip compression handles connection error + sends user agent + handles proxy failures + retrieves the response body + handles headers with multiple values + supports open_timeout option + sends request body + sends url encoded nested parameters + #post + behaves like a request method + handles connection error + sends url encoded nested parameters + retrieves the response headers + sends request body sends url encoded parameters sends user agent - handles deflate compression + handles requests with proxy retrieves the response body + supports open_timeout option + supports timeout option handles headers with multiple values represents empty body response as blank string + handles proxy failures + sends files + parses the reason phrase + #put + behaves like a request method + handles requests with proxy + sends url encoded parameters + sends url encoded nested parameters + retrieves the response body + handles connection error + sends files + handles headers with multiple values + represents empty body response as blank string + parses the reason phrase + sends user agent + supports open_timeout option sends request body supports timeout option - streaming - when response is empty - is expected to eq [["", 0]] - when response contains big data - handles streaming - #delete + retrieves the response headers + handles proxy failures + #patch behaves like a request method retrieves the response body - sends url encoded parameters - handles deflate compression + parses the reason phrase + handles headers with multiple values + supports open_timeout option + handles requests with proxy + retrieves the response headers + represents empty body response as blank string sends url encoded nested parameters + sends url encoded parameters + sends files + sends request body + supports timeout option + handles connection error + sends user agent + handles proxy failures + #options + behaves like a request method supports open_timeout option sends user agent supports timeout option handles connection error + handles headers with multiple values + sends url encoded parameters + parses the reason phrase represents empty body response as blank string + retrieves the response body handles requests with proxy - retrieves the response headers handles proxy failures - parses the reason phrase - handles gzip compression - handles headers with multiple values sends request body - streaming - when response contains big data - handles streaming - when response is empty - is expected to eq [["", 0]] - #head + retrieves the response headers + sends url encoded nested parameters + #get behaves like a request method + handles requests with proxy + sends request body represents empty body response as blank string + handles proxy failures + parses the reason phrase + supports open_timeout option + retrieves the response headers + sends url encoded nested parameters + sends user agent supports timeout option - handles requests with proxy + handles connection error + handles headers with multiple values retrieves the response body sends url encoded parameters + #delete + behaves like a request method sends url encoded nested parameters - handles proxy failures + handles connection error supports open_timeout option + supports timeout option + sends url encoded parameters + retrieves the response body + parses the reason phrase + handles proxy failures + handles headers with multiple values + sends user agent sends request body + handles requests with proxy + represents empty body response as blank string retrieves the response headers + #head + behaves like a request method + handles proxy failures + represents empty body response as blank string + sends request body handles headers with multiple values + supports timeout option + supports open_timeout option handles connection error + retrieves the response headers + retrieves the response body parses the reason phrase sends user agent - streaming - when response contains big data - handles streaming - when response is empty - is expected to eq [["", 0]] + sends url encoded nested parameters + handles requests with proxy + sends url encoded parameters + +Faraday::Connection + proxy support + fetches no proxy from blank env + allows when url is not in no proxy list but ip address is + accepts hash + fetches no proxy from nil env + ignores env proxy if set that way + allows when ip address is not in no proxy list but url is + accepts env without scheme + uses processes no_proxy before http_proxy + test proxy requires uri + does not accept uppercase env + accepts hash with string uri + allows when prefixed url is not in no proxy list + allows in multi element no proxy list + allows when url in no proxy list + uses env https_proxy + accepts uri + uses env http_proxy + allows when url not in no proxy list + uses processes no_proxy before https_proxy + accepts string + accepts http env + accepts http env with auth + gives priority to manually set proxy + allows when subdomain url is in no proxy list + performing a request + dynamically checks proxy + dynamically check no proxy + #to_env + without braketizing repeated params in query + escapes per spec + bracketizes nested params in query + parses url params into query + bracketizes repeated params in query + #dup + is expected to eq # + is expected to eq "text/plain" + is expected to eq "1" + after manual changes + is expected to be nil + is expected to eq 1 + is expected to eq 1 + is expected to eq 5 + is expected to be falsey + is expected to be falsey + default_connection_options + assigning a default value + behaves like default connection options + works with option url + default connection uses default connection options + default connection options persist with an instance overriding + works with implicit url + works with instance connection options + assigning a hash + behaves like default connection options + works with implicit url + works with instance connection options + default connection options persist with an instance overriding + works with option url + default connection uses default connection options + #respond_to? + is expected to be truthy + is expected to be truthy + #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==" + #token_auth + is expected to eq "Token nonce=\"abc\", token=\"abcdef\"" + .new + with empty block + is expected to eq 0 + with block + is expected to eq 0 + is expected to eq "/omnom" + with custom headers + is expected to eq "Faraday" + with custom params and params in url + is expected to eq {"a"=>3, "b"=>"2"} + with custom params + is expected to eq {"a"=>1} + with ssl false + is expected to be falsey + with explicit url param + behaves like initializer with url + with complex url + is expected to eq "/fish" + is expected to eq 815 + is expected to eq {"a"=>"1"} + with simple url + is expected to eq {} + is expected to eq "/" + is expected to eq "sushi.com" + is expected to eq 80 + is expected to eq "http" + with implicit url param + behaves like initializer with url + with complex url + is expected to eq 815 + is expected to eq "/fish" + is expected to eq {"a"=>"1"} + with simple url + is expected to eq "sushi.com" + is expected to eq "http" + is expected to eq "/" + is expected to eq 80 + is expected to eq {} + with custom builder + is expected to eq # + request params + with default params encoder + supports array params in url + supports array params in params + with simple url + test_overrides_request_params_block + test_overrides_request_params_block_url + test_overrides_request_params + with flat params encoder + supports array params in params + with array param in url + is expected to request GET http://example.com/?color=blue 1 time + with url and extra params + allows to set params_encoder for single request + merges connection and request params + allows to override all params + #build_exclusive_url + handles uri instances + does not add ending slash given empty url + does not use connection params + allows to provide params argument + does not add ending slash given nil url + overrides connection port for absolute url + with complete url + is expected to eq "sushi.com" + is expected to eq "http" + is expected to eq "/sake.html" + is expected to eq 80 + is expected to eq "a=1" + with url_prefixed connection + joins url to base with ending slash + used default base with ending slash + overrides base + parses url and changes scheme + with absolute path + example at ./spec/faraday/connection_spec.rb:197 + is expected to eq "/sake.html" + is expected to eq "/sake.html" + is expected to eq "/sake.html" + with relative path + is expected to eq "/fish/sake.html" + is expected to eq "/sake.html" + is expected to eq "/fish/sake.html" + uses connection host as default host + is expected to eq "/fish/sake.html" + #close + can close underlying app + #build_request + is expected to eq ["Authorization"] + is expected to be empty + is expected to be truthy + is expected to be falsey + +Faraday::Request::Multipart + when passing flat_encode=true option + encode params using flat encoder + behaves like a multipart request + generates a unique boundary for each request + FilePart: when multipart objects in array param + forms a multipart request + behaves like a multipart request + generates a unique boundary for each request + UploadIO: when multipart objects in param + forms a multipart request + behaves like a multipart request + generates a unique boundary for each request + FilePart: when providing json and IO content in the same payload + forms a multipart request + behaves like a multipart request + generates a unique boundary for each request + FilePart: when multipart objects in param + forms a multipart request + behaves like a multipart request + generates a unique boundary for each request + UploadIO: when multipart objects in array param + forms a multipart request + behaves like a multipart request + generates a unique boundary for each request + UploadIO: when providing json and IO content in the same payload + forms a multipart request + behaves like a multipart request + generates a unique boundary for each request + +Faraday::Adapter::NetHttp + behaves like an adapter with SSL disabled #trace behaves like a request method - handles proxy failures - retrieves the response headers - handles headers with multiple values - supports timeout option + handles gzip compression + parses the reason phrase handles requests with proxy - sends url encoded parameters - handles connection error - supports open_timeout option + supports timeout option represents empty body response as blank string + handles deflate compression + sends url encoded nested parameters retrieves the response body + handles proxy failures + retrieves the response headers sends request body + handles connection error + supports open_timeout option + handles headers with multiple values + sends url encoded parameters sends user agent - sends url encoded nested parameters - handles gzip compression - handles deflate compression - parses the reason phrase streaming when response is empty is expected to eq [["", 0]] @@ -1750,92 +2558,185 @@ handles streaming #head behaves like a request method - retrieves the response body + retrieves the response headers handles requests with proxy - handles connection error - sends request body - handles headers with multiple values handles proxy failures - retrieves the response headers + retrieves the response body supports timeout option - sends user agent + handles headers with multiple values + parses the reason phrase + sends request body sends url encoded nested parameters represents empty body response as blank string sends url encoded parameters - parses the reason phrase + handles connection error supports open_timeout option + sends user agent streaming when response contains big data handles streaming when response is empty is expected to eq [["", 0]] - #post + #delete behaves like a request method - retrieves the response body handles requests with proxy - handles deflate compression - retrieves the response headers - supports timeout option - sends files - sends user agent - sends url encoded parameters + handles headers with multiple values + retrieves the response body + represents empty body response as blank string sends request body supports open_timeout option - sends url encoded nested parameters - handles connection error - handles proxy failures + retrieves the response headers handles gzip compression - handles headers with multiple values + handles connection error parses the reason phrase - represents empty body response as blank string + sends url encoded nested parameters + handles deflate compression + sends user agent + supports timeout option + sends url encoded parameters + handles proxy failures streaming when response is empty is expected to eq [["", 0]] when response contains big data handles streaming - #patch + #put behaves like a request method - sends user agent + handles headers with multiple values + supports timeout option + handles connection error + supports open_timeout option + sends url encoded parameters + sends files sends request body + handles gzip compression + represents empty body response as blank string handles requests with proxy + handles deflate compression + retrieves the response headers + sends user agent + parses the reason phrase handles proxy failures + retrieves the response body + sends url encoded nested parameters + streaming + when response contains big data + handles streaming + when response is empty + is expected to eq [["", 0]] + #get + behaves like a request method + handles proxy failures + handles requests with proxy + retrieves the response body + supports timeout option retrieves the response headers - handles gzip compression + sends request body sends url encoded nested parameters + handles connection error sends url encoded parameters handles deflate compression + parses the reason phrase + handles gzip compression + supports open_timeout option + represents empty body response as blank string + handles headers with multiple values + sends user agent + streaming + when response contains big data + handles streaming + when response is empty + is expected to eq [["", 0]] + #post + behaves like a request method sends files + sends user agent + handles proxy failures + sends request body + supports open_timeout option + retrieves the response headers + sends url encoded nested parameters + handles gzip compression + handles deflate compression supports timeout option handles connection error handles headers with multiple values + parses the reason phrase retrieves the response body - supports open_timeout option + handles requests with proxy + sends url encoded parameters represents empty body response as blank string - parses the reason phrase streaming when response contains big data handles streaming when response is empty is expected to eq [["", 0]] - #put + #options behaves like a request method parses the reason phrase + sends request body + represents empty body response as blank string + handles headers with multiple values + supports timeout option handles deflate compression - supports open_timeout option + handles requests with proxy sends user agent - sends files - sends url encoded parameters - handles headers with multiple values - handles proxy failures + sends url encoded nested parameters + supports open_timeout option handles connection error + handles gzip compression + sends url encoded parameters retrieves the response headers + retrieves the response body + handles proxy failures + streaming + when response contains big data + handles streaming + when response is empty + is expected to eq [["", 0]] + #patch + behaves like a request method + handles proxy failures + sends files handles requests with proxy - sends url encoded nested parameters + retrieves the response body + supports open_timeout option + sends user agent + retrieves the response headers + sends url encoded parameters supports timeout option + handles deflate compression + sends request body + handles gzip compression represents empty body response as blank string + parses the reason phrase + handles headers with multiple values + sends url encoded nested parameters + handles connection error + streaming + when response is empty + is expected to eq [["", 0]] + when response contains big data + handles streaming + with SSL enabled + #delete + behaves like a request method + sends request body + sends url encoded parameters + supports open_timeout option handles gzip compression + handles proxy failures + sends url encoded nested parameters + parses the reason phrase + handles connection error retrieves the response body - sends request body + supports timeout option + represents empty body response as blank string + sends user agent + retrieves the response headers + handles deflate compression + handles headers with multiple values + handles requests with proxy streaming when response is empty is expected to eq [["", 0]] @@ -1843,2835 +2744,1969 @@ handles streaming #options behaves like a request method - parses the reason phrase supports timeout option - handles connection error - handles requests with proxy - retrieves the response body handles deflate compression - sends request body - handles proxy failures - sends user agent sends url encoded nested parameters - sends url encoded parameters - supports open_timeout option retrieves the response headers + supports open_timeout option handles gzip compression + sends user agent + handles proxy failures + retrieves the response body represents empty body response as blank string + parses the reason phrase + sends url encoded parameters + sends request body + handles requests with proxy handles headers with multiple values + handles connection error streaming when response is empty is expected to eq [["", 0]] when response contains big data handles streaming - #get + #patch behaves like a request method + handles headers with multiple values + represents empty body response as blank string + sends request body + parses the reason phrase handles gzip compression + handles requests with proxy handles proxy failures - handles deflate compression - supports timeout option - sends request body + retrieves the response body supports open_timeout option - retrieves the response headers - handles connection error - represents empty body response as blank string - sends user agent - handles requests with proxy - parses the reason phrase sends url encoded parameters - handles headers with multiple values + handles deflate compression + sends user agent + sends files + handles connection error + supports timeout option sends url encoded nested parameters - retrieves the response body + retrieves the response headers streaming when response contains big data handles streaming when response is empty is expected to eq [["", 0]] - #delete + #get behaves like a request method - handles headers with multiple values + supports open_timeout option handles gzip compression - retrieves the response headers handles connection error - sends url encoded parameters handles deflate compression + handles headers with multiple values supports timeout option - sends request body - represents empty body response as blank string - handles proxy failures + sends url encoded parameters + parses the reason phrase sends user agent - retrieves the response body handles requests with proxy - supports open_timeout option - parses the reason phrase sends url encoded nested parameters + retrieves the response body + sends request body + represents empty body response as blank string + retrieves the response headers + handles proxy failures streaming + when response is empty + is expected to eq [["", 0]] when response contains big data handles streaming + #put + behaves like a request method + handles headers with multiple values + supports open_timeout option + sends url encoded nested parameters + sends user agent + parses the reason phrase + supports timeout option + sends request body + retrieves the response headers + handles gzip compression + handles deflate compression + handles connection error + handles requests with proxy + sends files + represents empty body response as blank string + retrieves the response body + handles proxy failures + sends url encoded parameters + streaming when response is empty is expected to eq [["", 0]] - -Faraday::Response::Logger - logs method and url - logs request headers by default - does not log request body by default - logs response headers by default - logs filter headers - does not log response body by default - still returns output - logs filter url - when not logging response headers - does not log response headers if option is false - with default formatter - delegates logging to the formatter - with custom formatter - logs with custom formatter - without configuration - defaults to stdout - when logging request and response bodies - logs filter body - log response body object - log request and response body - when using log_level - does not log headers on the info level - does not log request/response body on the info level - logs request/request body on the specified level (debug) - logs headers on the debug level - when not logging request headers - does not log request headers if option is false - when logging request body - log only request body - when logging response body - log only response body - -Faraday::Adapter::Test - with simple path sets headers - is expected to eq "text/html" - with simple path sets status - is expected to eq 200 - can be called several times - is expected to eq "hello" - 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" - yielding env to stubs - is expected to eq "a" - with get params - is expected to eq "a" - with simple path sets body - is expected to eq "hello" - raising an error if no stub was found - 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 - for request - is expected to raise Faraday::Adapter::Test::Stubs::NotFound - ignoring unspecified get params - with single param - is expected to eq "a" - without params - is expected to raise Faraday::Adapter::Test::Stubs::NotFound - with multiple params - is expected to eq "a" - with host points to the right stub - is expected to eq "domain: hello" - can handle regular expression path with captured result - is expected to eq "show specified" - can handle single parameter block - is expected to eq "get" - params parsing - with flat encoder - is expected to eq "a" - with default encoder - is expected to eq "a" - with nested encoder - is expected to eq "a" - different outcomes for the same request - the first request - is expected to eq "hello" - the second request - is expected to eq "world" - -Faraday::Adapter::EMHttp - allows to provide adapter specific configs - Options - configures timeout and open_timeout - configures all timeout settings - configures timeout - behaves like an adapter - with SSL enabled - #post + when response contains big data + handles streaming + #head behaves like a request method + represents empty body response as blank string + parses the reason phrase handles requests with proxy retrieves the response body + supports open_timeout option + handles headers with multiple values + sends url encoded nested parameters sends user agent - represents empty body response as blank string + handles proxy failures + retrieves the response headers + sends url encoded parameters supports timeout option sends request body - sends url encoded parameters - sends url encoded nested parameters + handles connection error + streaming + when response is empty + is expected to eq [["", 0]] + when response contains big data + handles streaming + #post + behaves like a request method + sends user agent handles proxy failures - sends files - binds local socket - handles headers with multiple values + handles deflate compression handles connection error retrieves the response headers - parses the reason phrase + sends url encoded parameters supports open_timeout option - with parallel setup - handles parallel requests body - handles parallel requests status - #delete - behaves like a request method + handles headers with multiple values + handles requests with proxy + sends files retrieves the response body - supports open_timeout option sends request body - binds local socket - handles requests with proxy - sends user agent + handles gzip compression represents empty body response as blank string - handles connection error - handles headers with multiple values - sends url encoded parameters sends url encoded nested parameters supports timeout option parses the reason phrase - handles proxy failures - retrieves the response headers - with parallel setup - handles parallel requests status - handles parallel requests body - #get + 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 headers - sends url encoded parameters + handles deflate compression + parses the reason phrase sends request body - handles requests with proxy - handles connection error + sends url encoded parameters + supports timeout option supports open_timeout option + sends url encoded nested parameters + retrieves the response headers + handles connection error + represents empty body response as blank string sends user agent - binds local socket handles headers with multiple values handles proxy failures retrieves the response body - sends url encoded nested parameters - parses the reason phrase - supports timeout option - represents empty body response as blank string - with parallel setup - handles parallel requests status - handles parallel requests body - #patch + handles gzip compression + handles requests with proxy + streaming + when response is empty + is expected to eq [["", 0]] + when response contains big data + handles streaming + checking http + supports read_timeout + sets max_retries to 0 + supports open_timeout + is expected to eq 80 + supports write_timeout + with custom adapter config + is expected to eq 123 + with http url including port + is expected to eq 1234 + with https url + is expected to eq 443 + +Faraday::Response::Middleware + with a custom ResponseMiddleware and private parse + parses the response + with a custom ResponseMiddleware + parses the response + with a custom ResponseMiddleware but empty response + doesn't call the middleware for 304 responses + doesn't call the middleware for 204 responses + raises exception for 200 responses + +Faraday::Adapter::NetHttpPersistent + sets max_retries to 0 + allows to provide adapter specific configs + allows to set pool_size on initialize + min_version + allows to set min_version in SSL settings + behaves like an adapter + with SSL enabled + #get behaves like a request method + handles deflate compression + supports timeout option + handles connection error + sends request body + parses the reason phrase + handles headers with multiple values handles proxy failures - handles requests with proxy + retrieves the response headers + retrieves the response body sends url encoded nested parameters - parses the reason phrase sends user agent + handles gzip compression + represents empty body response as blank string + handles requests with proxy supports open_timeout option - sends files - retrieves the response body - binds local socket sends url encoded parameters - retrieves the response headers + #post + behaves like a request method + sends user agent + represents empty body response as blank string supports timeout option + parses the reason phrase handles headers with multiple values - represents empty body response as blank string + sends files + retrieves the response headers + supports open_timeout option + sends url encoded nested parameters + sends url encoded parameters + retrieves the response body + handles gzip compression sends request body + handles requests with proxy handles connection error - with parallel setup - handles parallel requests status - handles parallel requests body + handles proxy failures + handles deflate compression #trace behaves like a request method - represents empty body response as blank string + sends url encoded parameters + handles gzip compression + retrieves the response headers retrieves the response body supports open_timeout option - sends request body + supports timeout option + handles deflate compression + handles connection error + parses the reason phrase handles proxy failures - binds local socket - handles requests with proxy sends user agent - retrieves the response headers sends url encoded nested parameters - sends url encoded parameters - parses the reason phrase - handles headers with multiple values - handles connection error - supports timeout option - with parallel setup - handles parallel requests body - handles parallel requests status - #options - behaves like a request method - retrieves the response body - binds local socket + handles requests with proxy sends request body represents empty body response as blank string + handles headers with multiple values + #delete + behaves like a request method + parses the reason phrase supports timeout option + represents empty body response as blank string sends user agent + retrieves the response body + handles gzip compression + handles deflate compression handles headers with multiple values - handles connection error - sends url encoded parameters + handles requests with proxy handles proxy failures + sends url encoded parameters + sends request body + handles connection error + retrieves the response headers supports open_timeout option sends url encoded nested parameters + #patch + behaves like a request method + sends request body + handles deflate compression parses the reason phrase handles requests with proxy + handles headers with multiple values + handles connection error + sends url encoded nested parameters + supports open_timeout option + retrieves the response body + sends url encoded parameters + sends files + sends user agent + handles gzip compression + handles proxy failures retrieves the response headers - with parallel setup - handles parallel requests body - handles parallel requests status + represents empty body response as blank string + supports timeout option #head behaves like a request method + sends user agent + handles requests with proxy sends request body - retrieves the response headers - supports open_timeout option - sends url encoded parameters + retrieves the response body handles connection error - sends url encoded nested parameters - supports timeout option represents empty body response as blank string - parses the reason phrase + supports timeout option + sends url encoded nested parameters handles headers with multiple values - sends user agent + parses the reason phrase handles proxy failures - handles requests with proxy - binds local socket - with parallel setup - handles parallel requests status - #put - behaves like a request method - handles connection error - sends url encoded nested parameters retrieves the response headers - supports open_timeout option - binds local socket - supports timeout option - handles proxy failures - sends request body sends url encoded parameters - parses the reason phrase - handles headers with multiple values - sends user agent - retrieves the response body - handles requests with proxy - represents empty body response as blank string - sends files - with parallel setup - handles parallel requests body - handles parallel requests status - with SSL disabled - #trace + supports open_timeout option + #options behaves like a request method + sends url encoded nested parameters + handles gzip compression sends url encoded parameters - handles connection error - handles requests with proxy sends request body + sends user agent represents empty body response as blank string retrieves the response body - supports timeout option parses the reason phrase supports open_timeout option + handles deflate compression handles headers with multiple values - retrieves the response headers handles proxy failures - sends user agent - sends url encoded nested parameters - binds local socket - with parallel setup - handles parallel requests status - handles parallel requests body - #patch - behaves like a request method - handles requests with proxy - handles proxy failures - sends user agent - handles headers with multiple values handles connection error - sends files supports timeout option - retrieves the response body retrieves the response headers + handles requests with proxy + #put + behaves like a request method + handles connection error + retrieves the response body + sends user agent + handles requests with proxy + handles headers with multiple values + handles deflate compression + handles gzip compression sends request body + retrieves the response headers + handles proxy failures sends url encoded nested parameters - supports open_timeout option - binds local socket + sends files sends url encoded parameters - parses the reason phrase + supports timeout option + supports open_timeout option represents empty body response as blank string - with parallel setup - handles parallel requests status - handles parallel requests body - #get - behaves like a request method parses the reason phrase - supports open_timeout option + with SSL disabled + #options + behaves like a request method + sends user agent + handles connection error handles proxy failures sends request body + parses the reason phrase sends url encoded nested parameters - handles connection error - binds local socket - represents empty body response as blank string + handles gzip compression + sends url encoded parameters + supports timeout option + retrieves the response body retrieves the response headers + handles deflate compression + represents empty body response as blank string + supports open_timeout option handles headers with multiple values - sends user agent handles requests with proxy - supports timeout option - sends url encoded parameters - retrieves the response body - with parallel setup - handles parallel requests body - handles parallel requests status - #options + #trace behaves like a request method + handles proxy failures handles requests with proxy retrieves the response headers - handles headers with multiple values - represents empty body response as blank string - binds local socket + retrieves the response body + parses the reason phrase + sends url encoded parameters + sends request body + supports timeout option sends user agent + handles gzip compression + represents empty body response as blank string + handles headers with multiple values supports open_timeout option + sends url encoded nested parameters handles connection error - retrieves the response body + handles deflate compression + #patch + behaves like a request method sends request body - handles proxy failures - sends url encoded nested parameters - sends url encoded parameters - parses the reason phrase + supports open_timeout option supports timeout option - with parallel setup - handles parallel requests body - handles parallel requests status - #head - behaves like a request method sends url encoded parameters - retrieves the response headers + sends files handles headers with multiple values + retrieves the response body represents empty body response as blank string - sends user agent - handles requests with proxy - handles connection error parses the reason phrase - sends request body handles proxy failures - supports open_timeout option + sends user agent + retrieves the response headers + handles deflate compression + handles connection error + handles gzip compression sends url encoded nested parameters - supports timeout option - binds local socket - with parallel setup - handles parallel requests status + handles requests with proxy #put behaves like a request method - sends url encoded nested parameters - retrieves the response headers - binds local socket represents empty body response as blank string - handles proxy failures + sends request body retrieves the response body + handles gzip compression + parses the reason phrase + handles headers with multiple values + retrieves the response headers + handles proxy failures handles requests with proxy - supports open_timeout option + handles deflate compression + sends url encoded nested parameters + sends user agent supports timeout option + supports open_timeout option + handles connection error sends files sends url encoded parameters - handles headers with multiple values - handles connection error - sends user agent - sends request body - parses the reason phrase - with parallel setup - handles parallel requests body - handles parallel requests status #delete behaves like a request method - parses the reason phrase - sends user agent represents empty body response as blank string - handles requests with proxy - handles connection error - handles proxy failures + sends url encoded nested parameters retrieves the response headers - binds local socket retrieves the response body + supports open_timeout option + handles gzip compression handles headers with multiple values sends request body - sends url encoded nested parameters - supports open_timeout option - supports timeout option + handles deflate compression + handles connection error sends url encoded parameters - with parallel setup - handles parallel requests body - handles parallel requests status + handles requests with proxy + supports timeout option + parses the reason phrase + handles proxy failures + sends user agent #post behaves like a request method - supports open_timeout option handles headers with multiple values - sends url encoded parameters - supports timeout option - handles proxy failures - sends files + sends request body represents empty body response as blank string retrieves the response headers - sends user agent - sends url encoded nested parameters + sends url encoded parameters retrieves the response body handles requests with proxy - sends request body - binds local socket - handles connection error - parses the reason phrase - with parallel setup - handles parallel requests status - handles parallel requests body - -Faraday::Adapter::EMSynchrony - allows to provide adapter specific configs - behaves like an adapter - with SSL disabled - #head - behaves like a request method - handles connection error - sends user agent - sends request body + supports open_timeout option sends url encoded nested parameters supports timeout option - retrieves the response headers - sends url encoded parameters + sends files + handles gzip compression handles proxy failures parses the reason phrase - binds local socket - supports open_timeout option - handles headers with multiple values - handles requests with proxy - represents empty body response as blank string - with parallel setup - handles parallel requests status + sends user agent + handles connection error + handles deflate compression #get behaves like a request method - handles proxy failures supports timeout option - sends user agent - handles requests with proxy - sends request body - supports open_timeout option - represents empty body response as blank string - sends url encoded parameters handles headers with multiple values - binds local socket - retrieves the response body + represents empty body response as blank string + handles proxy failures handles connection error + handles deflate compression parses the reason phrase + sends request body + sends url encoded parameters + supports open_timeout option + retrieves the response body + handles gzip compression sends url encoded nested parameters + handles requests with proxy retrieves the response headers - with parallel setup - handles parallel requests status - handles parallel requests body - #put + sends user agent + #head behaves like a request method - parses the reason phrase - retrieves the response headers - supports open_timeout option - handles headers with multiple values + sends request body represents empty body response as blank string - handles connection error sends user agent - supports timeout option - handles requests with proxy - binds local socket - sends files - handles proxy failures - sends request body sends url encoded nested parameters + handles headers with multiple values + supports open_timeout option retrieves the response body sends url encoded parameters - with parallel setup - handles parallel requests status - handles parallel requests body - #post - behaves like a request method - sends url encoded parameters - handles proxy failures - retrieves the response body - sends user agent - binds local socket - sends request body handles connection error + parses the reason phrase handles requests with proxy - supports timeout option - represents empty body response as blank string + handles proxy failures retrieves the response headers - sends files - sends url encoded nested parameters - handles headers with multiple values - parses the reason phrase - supports open_timeout option - with parallel setup - handles parallel requests body - handles parallel requests status - #delete + supports timeout option + +Faraday::Adapter::Test + can handle single parameter block + is expected to eq "get" + with get params + is expected to eq "a" + with simple path sets headers + is expected to eq "text/html" + different outcomes for the same request + the first request + is expected to eq "hello" + the second request + is expected to eq "world" + can handle regular expression path with captured result + is expected to eq "show specified" + ignoring unspecified get params + without params + is expected to raise Faraday::Adapter::Test::Stubs::NotFound + with single param + is expected to eq "a" + with multiple params + is expected to eq "a" + with simple path sets body + is expected to eq "hello" + with http headers + without header + is expected to eq "b" + with header + is expected to eq "a" + can be called several times + is expected to eq "hello" + with simple path sets status + is expected to eq 200 + can handle regular expression path + is expected to eq "show" + 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" + with host points to the right stub + is expected to eq "domain: hello" + raising an error if no stub was found + for request without specified header + is expected to raise Faraday::Adapter::Test::Stubs::NotFound + for specified host + is expected to raise Faraday::Adapter::Test::Stubs::NotFound + for request + is expected to raise Faraday::Adapter::Test::Stubs::NotFound + yielding env to stubs + is expected to eq "a" + +Faraday::Adapter::EMSynchrony + allows to provide adapter specific configs + behaves like an adapter + with SSL enabled + #put behaves like a request method - sends url encoded parameters - sends url encoded nested parameters represents empty body response as blank string + handles connection error + sends url encoded nested parameters + retrieves the response headers sends user agent - retrieves the response body - handles proxy failures + parses the reason phrase handles requests with proxy sends request body handles headers with multiple values + retrieves the response body supports open_timeout option - handles connection error + sends files binds local socket - retrieves the response headers + handles proxy failures + sends url encoded parameters supports timeout option - parses the reason phrase with parallel setup handles parallel requests body handles parallel requests status - #options + #delete behaves like a request method retrieves the response body - supports timeout option + sends url encoded parameters binds local socket + supports timeout option + supports open_timeout option + retrieves the response headers handles requests with proxy - sends url encoded parameters + handles connection error sends url encoded nested parameters handles proxy failures + sends request body represents empty body response as blank string - supports open_timeout option sends user agent handles headers with multiple values - handles connection error - retrieves the response headers - sends request body parses the reason phrase with parallel setup handles parallel requests status handles parallel requests body #patch behaves like a request method - retrieves the response body retrieves the response headers + sends user agent + retrieves the response body + sends request body + binds local socket + represents empty body response as blank string sends url encoded parameters parses the reason phrase - sends user agent + handles proxy failures supports open_timeout option - sends request body + sends files supports timeout option - handles headers with multiple values - handles proxy failures - handles requests with proxy - binds local socket handles connection error - represents empty body response as blank string + handles requests with proxy + handles headers with multiple values sends url encoded nested parameters - sends files with parallel setup - handles parallel requests status handles parallel requests body - with SSL enabled - #delete + handles parallel requests status + #head behaves like a request method - sends url encoded nested parameters - handles connection error + supports timeout option handles headers with multiple values + sends request body handles requests with proxy + sends user agent + supports open_timeout option represents empty body response as blank string handles proxy failures + retrieves the response headers + sends url encoded parameters + parses the reason phrase + sends url encoded nested parameters + handles connection error binds local socket + with parallel setup + handles parallel requests status + #get + behaves like a request method + retrieves the response headers sends request body - supports timeout option - supports open_timeout option parses the reason phrase - sends url encoded parameters - retrieves the response headers + handles headers with multiple values sends user agent + handles requests with proxy retrieves the response body + sends url encoded parameters + handles proxy failures + sends url encoded nested parameters + handles connection error + supports timeout option + supports open_timeout option + binds local socket + represents empty body response as blank string with parallel setup - handles parallel requests status handles parallel requests body + handles parallel requests status #post behaves like a request method + sends url encoded nested parameters + handles requests with proxy supports open_timeout option - retrieves the response headers binds local socket - sends user agent handles proxy failures - sends request body - handles requests with proxy - retrieves the response body + retrieves the response headers + handles headers with multiple values represents empty body response as blank string + sends files + sends user agent + sends url encoded parameters handles connection error - handles headers with multiple values - sends url encoded nested parameters + sends request body + retrieves the response body supports timeout option - sends url encoded parameters parses the reason phrase - sends files with parallel setup - handles parallel requests status handles parallel requests body - #put + handles parallel requests status + #options behaves like a request method sends url encoded parameters - sends user agent - handles requests with proxy + handles proxy failures sends url encoded nested parameters - supports open_timeout option - sends request body - parses the reason phrase supports timeout option - handles connection error retrieves the response body + sends request body + handles connection error represents empty body response as blank string - sends files handles headers with multiple values - handles proxy failures - retrieves the response headers - binds local socket - with parallel setup - handles parallel requests body - handles parallel requests status - #patch - behaves like a request method - sends url encoded nested parameters - retrieves the response headers sends user agent - supports timeout option - binds local socket supports open_timeout option - represents empty body response as blank string - handles proxy failures - handles headers with multiple values + binds local socket handles requests with proxy - retrieves the response body - sends request body - handles connection error parses the reason phrase - sends url encoded parameters - sends files + retrieves the response headers with parallel setup - handles parallel requests body handles parallel requests status - #get + handles parallel requests body + with SSL disabled + #post behaves like a request method - binds local socket - parses the reason phrase - handles requests with proxy + retrieves the response headers + handles headers with multiple values + represents empty body response as blank string retrieves the response body + sends url encoded nested parameters handles connection error + binds local socket + sends user agent supports open_timeout option - sends url encoded nested parameters sends request body - sends user agent - supports timeout option + parses the reason phrase sends url encoded parameters - handles headers with multiple values - represents empty body response as blank string handles proxy failures - retrieves the response headers + sends files + handles requests with proxy + supports timeout option with parallel setup handles parallel requests body handles parallel requests status - #head + #put behaves like a request method - supports timeout option + handles connection error sends url encoded parameters - handles headers with multiple values - sends url encoded nested parameters + sends files supports open_timeout option - parses the reason phrase - binds local socket - handles connection error + handles requests with proxy sends user agent + sends url encoded nested parameters + supports timeout option handles proxy failures - sends request body - retrieves the response headers - represents empty body response as blank string - handles requests with proxy - with parallel setup - handles parallel requests status - #options - behaves like a request method retrieves the response body - supports timeout option parses the reason phrase - sends request body - sends user agent - supports open_timeout option - binds local socket - handles requests with proxy retrieves the response headers - handles connection error - sends url encoded parameters - sends url encoded nested parameters represents empty body response as blank string - handles proxy failures + sends request body handles headers with multiple values + binds local socket with parallel setup handles parallel requests body handles parallel requests status - -Faraday::Request::Multipart - UploadIO: when multipart objects in param - forms a multipart request - behaves like a multipart request - generates a unique boundary for each request - FilePart: when providing json and IO content in the same payload - forms a multipart request - behaves like a multipart request - generates a unique boundary for each request - UploadIO: when multipart objects in array param - forms a multipart request - behaves like a multipart request - generates a unique boundary for each request - FilePart: when multipart objects in param - forms a multipart request - behaves like a multipart request - generates a unique boundary for each request - when passing flat_encode=true option - encode params using flat encoder - behaves like a multipart request - generates a unique boundary for each request - 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 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::Options - #merge - deeply merges options with nil - merges options with hashes - deeply merges options with options having nil sub-options - deeply merges two options - deeply merges options with hashes - #delete - allows to remove value for key - #update - updates options from hashes - #each_value - allows to iterate through values - #value? - returns true if any key has that value - #each_key - allows to iterate through keys - #dup - duplicate options but not sub-options - #deep_dup - duplicate options and also suboptions - #fetch - when the fetched key has a value - grabs value - works with key - when the fetched key has no value - uses falsey default - needs a default if key is missing - accepts block - #empty? - returns true only if all options are nil - #from - works with nil - is expected to raise NoMethodError - works with hash - works with hash with sub object - works with options with sub object - works with options - respects inheritance - works with deep hash - #key? - returns true if the key exists and is not nil - #memoized - accepts block - requires block - #clear - clears the options - -Faraday::RequestOptions - allows to set the request proxy - -Faraday::Adapter::Rack - behaves like an adapter - with SSL disabled - #post + #delete behaves like a request method retrieves the response headers + sends url encoded parameters sends user agent + retrieves the response body sends request body - handles proxy failures supports open_timeout option - handles connection error - sends files - retrieves the response body handles headers with multiple values - supports timeout option - represents empty body response as blank string + binds local socket + handles connection error sends url encoded nested parameters - sends url encoded parameters handles requests with proxy - #options - behaves like a request method handles proxy failures - handles connection error - sends url encoded nested parameters - supports open_timeout option supports timeout option - sends user agent - retrieves the response headers - handles headers with multiple values - sends url encoded parameters - retrieves the response body + parses the reason phrase represents empty body response as blank string - handles requests with proxy - sends request body - #delete + with parallel setup + handles parallel requests status + handles parallel requests body + #patch behaves like a request method - handles proxy failures + sends files + sends url encoded nested parameters + supports timeout option handles connection error retrieves the response body - supports timeout option - represents empty body response as blank string - supports open_timeout option + sends url encoded parameters sends user agent + handles proxy failures + represents empty body response as blank string + binds local socket handles requests with proxy - sends url encoded nested parameters - sends request body - retrieves the response headers - sends url encoded parameters handles headers with multiple values - #head + supports open_timeout option + retrieves the response headers + parses the reason phrase + sends request body + with parallel setup + handles parallel requests status + handles parallel requests body + #options behaves like a request method - handles requests with proxy - handles headers with multiple values - handles connection error sends url encoded parameters - sends user agent + supports open_timeout option sends request body - represents empty body response as blank string - handles proxy failures - supports timeout option retrieves the response headers + binds local socket + handles proxy failures sends url encoded nested parameters - supports open_timeout option - #trace - behaves like a request method - handles requests with proxy handles headers with multiple values - sends url encoded parameters represents empty body response as blank string - supports open_timeout option - handles proxy failures - sends request body - sends user agent + parses the reason phrase handles connection error retrieves the response body - retrieves the response headers + handles requests with proxy supports timeout option - sends url encoded nested parameters + sends user agent + with parallel setup + handles parallel requests status + handles parallel requests body #get behaves like a request method - supports open_timeout option + supports timeout option retrieves the response body - handles requests with proxy sends user agent - handles connection error - handles headers with multiple values - sends request body retrieves the response headers + handles headers with multiple values + binds local socket + supports open_timeout option + parses the reason phrase sends url encoded nested parameters represents empty body response as blank string + handles connection error + sends request body handles proxy failures - supports timeout option + handles requests with proxy sends url encoded parameters - #patch + with parallel setup + handles parallel requests body + handles parallel requests status + #head behaves like a request method - retrieves the response body - represents empty body response as blank string + handles headers with multiple values sends url encoded parameters - supports open_timeout option - retrieves the response headers - sends request body - sends url encoded nested parameters - handles connection error supports timeout option - handles headers with multiple values - sends user agent - handles proxy failures - sends files handles requests with proxy - #put - behaves like a request method - retrieves the response body - represents empty body response as blank string - sends url encoded parameters - handles headers with multiple values handles connection error - sends request body - handles requests with proxy - sends files + supports open_timeout option handles proxy failures - sends url encoded nested parameters retrieves the response headers + parses the reason phrase + binds local socket + represents empty body response as blank string + sends url encoded nested parameters sends user agent - supports open_timeout option - supports timeout option + sends request body + with parallel setup + handles parallel requests status + +Faraday::AdapterRegistry + #initialize + looks up class by string name + caches lookups with explicit name + is expected to raise NameError + caches lookups with implicit name + is expected to raise NameError + looks up class by symbol name + +Faraday::Adapter::EMHttp + allows to provide adapter specific configs + behaves like an adapter with SSL enabled - #options + #post behaves like a request method - sends user agent - retrieves the response body supports timeout option - retrieves the response headers + supports open_timeout option + sends files handles headers with multiple values - sends request body - handles connection error - handles proxy failures handles requests with proxy - represents empty body response as blank string - sends url encoded nested parameters - supports open_timeout option + retrieves the response headers sends url encoded parameters - #put - behaves like a request method - supports open_timeout option + binds local socket sends request body - retrieves the response headers sends user agent - sends files - handles connection error - represents empty body response as blank string - handles headers with multiple values - sends url encoded parameters - handles requests with proxy retrieves the response body handles proxy failures - sends url encoded nested parameters - supports timeout option - #head - behaves like a request method - supports open_timeout option - handles proxy failures - sends url encoded nested parameters - represents empty body response as blank string - supports timeout option - handles headers with multiple values - sends request body - handles connection error - sends user agent - sends url encoded parameters - retrieves the response headers - handles requests with proxy - #trace - behaves like a request method + parses the reason phrase represents empty body response as blank string - sends user agent handles connection error - supports open_timeout option - sends request body - retrieves the response headers - handles headers with multiple values - supports timeout option sends url encoded nested parameters - sends url encoded parameters - handles requests with proxy - handles proxy failures - retrieves the response body - #post + with parallel setup + handles parallel requests status + handles parallel requests body + #put behaves like a request method - sends request body - sends url encoded parameters - handles requests with proxy - handles proxy failures - handles connection error - retrieves the response body - handles headers with multiple values - supports open_timeout option + parses the reason phrase + supports timeout option retrieves the response headers - represents empty body response as blank string - sends url encoded nested parameters sends files + handles headers with multiple values + sends request body + binds local socket sends user agent - supports timeout option - #delete - behaves like a request method + supports open_timeout option represents empty body response as blank string - handles headers with multiple values handles proxy failures - supports open_timeout option - sends user agent sends url encoded nested parameters - retrieves the response headers - supports timeout option sends url encoded parameters retrieves the response body handles requests with proxy handles connection error - sends request body - #patch + with parallel setup + handles parallel requests status + handles parallel requests body + #trace behaves like a request method retrieves the response body - retrieves the response headers - handles headers with multiple values + binds local socket + sends url encoded parameters handles connection error - represents empty body response as blank string - supports timeout option - handles requests with proxy + parses the reason phrase supports open_timeout option - sends files - sends url encoded nested parameters - handles proxy failures - sends request body sends user agent - sends url encoded parameters - #get - behaves like a request method sends request body - handles proxy failures - retrieves the response body - handles headers with multiple values - supports open_timeout option - sends user agent supports timeout option - represents empty body response as blank string - retrieves the response headers - sends url encoded nested parameters - sends url encoded parameters handles requests with proxy - handles connection error - -Faraday::RackBuilder - with custom handler and adapter - locks the stack after making a request - dup stack is unlocked - allows to compare handlers - when having a single handler - allows use - allows rebuilding - raises an error trying to use an unregistered symbol - allows insert_after - allows insert_before - is expected to eq [Apple] - when having a handler with broken dependency - raises an error while making a request - when a response adapter is added with named arguments - adds a handler to construct response adapter with options passed to response - with custom adapter only - is expected to eq Faraday::Adapter::Test - is expected to be nil - when having two handlers - allows insert_after - allows to swap handlers - allows insert_before - allows to delete a handler - when handlers are directly added or updated - adds a handler with options passed to insert_after - adds a handler to construct adapter with options passed to insert - adds a handler with options passed to swap - with custom empty block - is expected to eq Faraday::Adapter::NetHttp - is expected to be nil - when a request adapter is added with named arguments - adds a handler to construct request adapter with options passed to request - with custom registered middleware - allows to register with Proc - allows to register with symbol - allows to register with string - allows to register with constant - when middleware is added with named arguments - adds a handler to construct middleware with options passed to use - with default stack - is expected to eq Faraday::Adapter::NetHttp - is expected to eq Faraday::Request::UrlEncoded - when a plain adapter is added with named arguments - adds a handler to construct adapter with options passed to adapter - -Faraday::Utils - URI parsing - escapes safe buffer - parses with default parser - replaces headers hash - parses with URI - parses with block - headers parsing - parse headers for aggregated responses - -Faraday::Request::Retry - retry_if option - FilePart: should rewind files on retry - does not retry if retry_if block returns false checking env - retries if retry_if block always returns true - UploadIO: should rewind files on retry - does not retry if retry_if block returns false checking exception - when explicitly specifying methods to retry - does not call retry_if for specified methods - with empty list of methods to retry - calls retry_if for all methods - #calculate_retry_interval - with exponential backoff and max_interval - is expected to eq 0.3 - is expected to eq 0.2 - is expected to eq 0.3 - is expected to eq 0.1 - with exponential backoff - is expected to eq 0.1 - is expected to eq 0.2 - is expected to eq 0.4 - with exponential backoff and interval_randomness - is expected to be between 0.1 and 0.15 (inclusive) - 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 new max_retry set to 3 - is expected to eq 4 - and new max_retry set to -9 - is expected to eq 1 - and legacy max_retry set to 1 - is expected to eq 2 - retry_after header support - when retry_after smaller than interval - is expected to be > 0.2 - when retry_after is a timestamp - is expected to be > 1 - when retry_after bigger than interval - is expected to be > 0.5 - when retry_after is bigger than max_interval - is expected to eq 1 - when an unexpected error happens - is expected to eq 1 - and this is passed as a custom exception - is expected to eq 3 - when method is not idempotent - is expected to eq 1 - 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 - -Faraday::Request::UrlEncoded - works with unicode - works with nested params - ignores custom content type - works with no headers - does nothing without payload - works with with headers - works with nested keys - works with non nested params - customising default_space_encoding - uses the custom character to encode spaces - -Faraday::Adapter::Typhoeus - behaves like an adapter - with SSL enabled - #get - behaves like a request method represents empty body response as blank string - sends url encoded nested parameters - handles requests with proxy - handles proxy failures - sends url encoded parameters - supports timeout option retrieves the response headers - handles connection error - retrieves the response body + handles proxy failures + sends url encoded nested parameters handles headers with multiple values - supports open_timeout option - sends user agent - sends request body with parallel setup handles parallel requests status handles parallel requests body - #delete + #get behaves like a request method retrieves the response body - sends url encoded parameters handles proxy failures - represents empty body response as blank string sends request body + retrieves the response headers + handles headers with multiple values + supports open_timeout option sends user agent + represents empty body response as blank string + sends url encoded nested parameters + parses the reason phrase + binds local socket + sends url encoded parameters handles requests with proxy supports timeout option - retrieves the response headers - sends url encoded nested parameters handles connection error - handles headers with multiple values - supports open_timeout option with parallel setup handles parallel requests body handles parallel requests status - #put + #delete behaves like a request method - supports timeout option - handles connection error - sends files - supports open_timeout option - handles proxy failures retrieves the response headers sends url encoded parameters - handles headers with multiple values - sends user agent - handles requests with proxy sends url encoded nested parameters + supports open_timeout option retrieves the response body + binds local socket + sends user agent + handles proxy failures + handles requests with proxy represents empty body response as blank string + supports timeout option + handles headers with multiple values sends request body + handles connection error + parses the reason phrase with parallel setup handles parallel requests status handles parallel requests body - #patch + #options behaves like a request method - handles proxy failures - sends url encoded parameters - sends url encoded nested parameters - sends request body - retrieves the response body supports open_timeout option - handles requests with proxy + sends request body handles headers with multiple values - handles connection error - sends files - represents empty body response as blank string sends user agent - supports timeout option - retrieves the response headers - with parallel setup - handles parallel requests body - handles parallel requests status - #head - behaves like a request method + sends url encoded parameters represents empty body response as blank string - supports open_timeout option + handles requests with proxy handles proxy failures - supports timeout option + parses the reason phrase handles connection error - retrieves the response body retrieves the response headers - sends url encoded parameters - sends user agent - sends request body - handles headers with multiple values - handles requests with proxy sends url encoded nested parameters + retrieves the response body + supports timeout option + binds local socket with parallel setup - handles parallel requests status handles parallel requests body - #trace + handles parallel requests status + #patch behaves like a request method - retrieves the response body - handles requests with proxy - retrieves the response headers sends url encoded parameters - represents empty body response as blank string handles connection error + sends user agent + handles requests with proxy + supports open_timeout option + represents empty body response as blank string sends request body handles headers with multiple values + parses the reason phrase + sends files + retrieves the response body + sends url encoded nested parameters handles proxy failures - supports open_timeout option supports timeout option - sends user agent - sends url encoded nested parameters + retrieves the response headers + binds local socket with parallel setup handles parallel requests status handles parallel requests body - #options + #head behaves like a request method - retrieves the response headers - handles proxy failures - represents empty body response as blank string - supports open_timeout option - supports timeout option - retrieves the response body - sends request body - handles headers with multiple values - sends user agent handles requests with proxy - sends url encoded parameters + binds local socket handles connection error - sends url encoded nested parameters - with parallel setup - handles parallel requests body - handles parallel requests status - #post - behaves like a request method - sends files handles headers with multiple values - retrieves the response headers - handles requests with proxy + sends url encoded parameters supports open_timeout option + represents empty body response as blank string sends url encoded nested parameters + retrieves the response headers + sends request body supports timeout option + parses the reason phrase sends user agent - sends request body - handles connection error - sends url encoded parameters handles proxy failures - retrieves the response body - represents empty body response as blank string with parallel setup - handles parallel requests body handles parallel requests status with SSL disabled - #trace + #get behaves like a request method + sends user agent + sends url encoded parameters supports timeout option + sends url encoded nested parameters + parses the reason phrase + handles connection error handles proxy failures - handles headers with multiple values + binds local socket + represents empty body response as blank string retrieves the response headers - sends user agent + handles requests with proxy + handles headers with multiple values sends request body - sends url encoded nested parameters retrieves the response body - handles connection error - handles requests with proxy - sends url encoded parameters - represents empty body response as blank string supports open_timeout option with parallel setup handles parallel requests body handles parallel requests status - #options + #put behaves like a request method - supports timeout option - retrieves the response body - supports open_timeout option - sends request body + binds local socket + parses the reason phrase + handles requests with proxy + represents empty body response as blank string handles connection error - handles headers with multiple values + sends request body + sends user agent + sends files + supports timeout option retrieves the response headers - handles requests with proxy handles proxy failures - represents empty body response as blank string sends url encoded parameters sends url encoded nested parameters - sends user agent + retrieves the response body + supports open_timeout option + handles headers with multiple values with parallel setup handles parallel requests body handles parallel requests status - #get + #delete behaves like a request method - sends url encoded parameters - sends user agent - handles headers with multiple values - represents empty body response as blank string - handles requests with proxy - sends request body - retrieves the response headers handles proxy failures supports open_timeout option - sends url encoded nested parameters - handles connection error + parses the reason phrase retrieves the response body + handles connection error + sends user agent + sends url encoded parameters supports timeout option + binds local socket + handles headers with multiple values + sends url encoded nested parameters + retrieves the response headers + sends request body + handles requests with proxy + represents empty body response as blank string with parallel setup - handles parallel requests body handles parallel requests status - #delete + handles parallel requests body + #options behaves like a request method - handles connection error - handles headers with multiple values retrieves the response body - retrieves the response headers + parses the reason phrase sends user agent - handles requests with proxy - supports open_timeout option + represents empty body response as blank string supports timeout option + handles proxy failures + binds local socket + retrieves the response headers sends url encoded nested parameters - represents empty body response as blank string - sends url encoded parameters + handles requests with proxy + handles headers with multiple values + supports open_timeout option + handles connection error sends request body - handles proxy failures + sends url encoded parameters with parallel setup handles parallel requests status handles parallel requests body - #head + #post behaves like a request method - sends url encoded parameters - sends user agent - sends url encoded nested parameters - handles headers with multiple values - handles requests with proxy retrieves the response body + binds local socket sends request body + supports open_timeout option + handles proxy failures + parses the reason phrase + sends url encoded nested parameters supports timeout option + sends url encoded parameters + sends user agent + sends files handles connection error - retrieves the response headers + handles requests with proxy represents empty body response as blank string - supports open_timeout option - handles proxy failures + handles headers with multiple values + retrieves the response headers with parallel setup handles parallel requests status handles parallel requests body - #patch + #trace behaves like a request method - sends user agent retrieves the response headers + handles headers with multiple values + sends url encoded parameters + handles connection error + sends user agent + supports timeout option + supports open_timeout option + sends url encoded nested parameters handles proxy failures - represents empty body response as blank string - handles requests with proxy sends request body - supports open_timeout option + parses the reason phrase + handles requests with proxy + represents empty body response as blank string retrieves the response body - sends url encoded parameters - sends url encoded nested parameters - supports timeout option - handles connection error - handles headers with multiple values - sends files + binds local socket with parallel setup handles parallel requests body handles parallel requests status - #put + #patch behaves like a request method - handles requests with proxy sends user agent - represents empty body response as blank string - retrieves the response headers sends url encoded nested parameters - sends files - retrieves the response body - supports open_timeout option + sends url encoded parameters + sends request body + handles connection error handles headers with multiple values + handles requests with proxy + supports open_timeout option handles proxy failures supports timeout option - sends request body - sends url encoded parameters - handles connection error + binds local socket + sends files + represents empty body response as blank string + parses the reason phrase + retrieves the response body + retrieves the response headers with parallel setup - handles parallel requests body handles parallel requests status - #post + handles parallel requests body + #head behaves like a request method + supports open_timeout option + handles requests with proxy supports timeout option - retrieves the response headers sends request body + sends url encoded nested parameters sends user agent - retrieves the response body - sends files sends url encoded parameters - handles headers with multiple values - handles requests with proxy - supports open_timeout option - sends url encoded nested parameters + binds local socket represents empty body response as blank string + parses the reason phrase + handles headers with multiple values handles connection error + retrieves the response headers handles proxy failures with parallel setup handles parallel requests status - handles parallel requests body + Options + configures timeout and open_timeout + configures all timeout settings + configures timeout + +Faraday::Request::Instrumentation + is expected to eq "request.faraday" + instruments with default name + defaults to ActiveSupport::Notifications + with custom name + instruments with custom name + is expected to eq "custom" + with custom instrumenter + is expected to eq :custom Faraday::ClientError .initialize + with response hash + is expected to eq "the server responded with status 400" + is expected to be nil + is expected to eq {:status=>400} + is expected to eq "#400}>" with string - is expected to eq "#>" - is expected to eq "custom message" is expected to be nil + is expected to eq "#>" is expected to be nil + is expected to eq "custom message" with exception only - is expected to be nil - is expected to eq "test" - is expected to eq # is expected to eq "#>" + is expected to eq # is expected to eq nil + is expected to eq "test" + is expected to be nil with anything else #to_s is expected to be nil - is expected to eq "[\"error1\", \"error2\"]" is expected to eq "#>" is expected to be nil - with response hash - is expected to eq "the server responded with status 400" - is expected to be nil - is expected to eq {:status=>400} - is expected to eq "#400}>" - -Faraday::Request::Authorization - token_auth - when passed correct params - is expected to eq "Token token=\"quux\"" - and request already has an authentication header - does not interfere with existing authorization - when other values are provided - is expected to match /^Token / - is expected to match /foo="42"/ - is expected to match /token="baz"/ - and request already has an authentication header - does not interfere with existing authorization - authorization - when passed two strings - is expected to eq "custom abc def" - and request already has an authentication header - does not interfere with existing authorization - when passed a string and a hash - is expected to eq "baz foo=\"42\"" - and request already has an authentication header - does not interfere with existing authorization - basic_auth - when passed very long values - is expected to eq "Basic QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQU...UFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBOg==" - and request already has an authentication header - does not interfere with existing authorization - when passed correct params - is expected to eq "Basic YWxhZGRpbjpvcGVuc2VzYW1l" - and request already has an authentication header - does not interfere with existing authorization - -Faraday::Middleware - #close - with app that doesn't support #close - should issue warning - with app that supports #close - should issue warning - -Faraday::CompositeReadIO - with empty composite_io - is expected to be nil - is expected to eq 0 - is expected to eq "" - with utf8 multibyte part - allows to read in chunks - is expected to eq "\x86\xE3\x83\x95\xE3\x82\xA1\xE3\x82\xA4\xE3\x83\xAB" - with empty parts - is expected to eq 0 - is expected to be nil - is expected to eq "" - with mix of empty and non-empty parts - allows to read in chunks - with 2 parts - allows to read in chunks - allows to rewind while reading in chunks - is expected to eq "abcd1234" - is expected to eq 8 - -Faraday::Utils::Headers - #parse - when response headers include a blank line - is expected to eq "text/html" - when response headers values include a colon - is expected to eq "http://sushi.com/" - when response headers leave http status line out - is expected to eq ["Content-Type"] - is expected to eq "text/html" - is expected to eq "text/html" - #delete - is expected to be nil - is expected to eq 0 - is expected not to include "content-type" - is expected to eq "application/json" - when Content-Type is set to application/xml - is expected to eq "application/xml" - is expected to eq "application/xml" - is expected to include "content-type" - is expected to eq ["Content-Type"] - is expected to eq "application/xml" - when Content-Type is set to application/json - is expected to eq "application/json" - is expected to eq "application/json" - is expected to eq ["Content-Type"] - is expected to eq "application/json" - is expected to include "content-type" - #fetch - raises an error if key not found - is expected to eq "application/json" - is expected to eq "application/json" - is expected to be nil - is expected to eq "Invalid key" - is expected to eq false - is expected to eq "application/json" - calls a block when provided - is expected to eq "default" + is expected to eq "[\"error1\", \"error2\"]" Faraday::Request supports marshal serialization 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 body on setup - is expected to eq "hi" - is expected to eq "hi" when setting the url on setup with a URI + is expected to eq "http://sushi.com/api/foo.json?a=1" is expected to eq # is expected to eq {"a"=>"1"} - is expected to eq "http://sushi.com/api/foo.json?a=1" - when setting the url on setup with a string path and params - is expected to eq {"a"=>1} - is expected to eq "foo.json" - is expected to eq "http://sushi.com/api/foo.json?a=1" - deprecate method for HTTP method - is expected to output /WARNING: `Faraday::Request#method` is deprecated; use `#http_method` instead. It will be removed in ...r after version 2.0.\n`Faraday::Request#method` called from .+\/spec\/faraday\/request_spec.rb:\d+./ to stderr -WARNING: `Faraday::Request#method` is deprecated; use `#http_method` instead. It will be removed in or after version 2.0. -`Faraday::Request#method` called from /build/ruby-faraday-1.1.0/spec/faraday/request_spec.rb:31:in `block (3 levels) in ' - is expected to eq :post - when nothing particular is configured - is expected to be falsey - is expected to eq :get - when setting 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"} with global request options set - is expected to eq 3 is expected to eq 5 is expected to eq 3 is expected to eq 5 + is expected to eq 3 and per-request options set - is expected to eq {:consumer_key=>"anonymous", :consumer_secret=>"xyz"} is expected to eq 10 - is expected to eq {:bar=>"bar", :foo=>"foo"} + is expected to eq 10 is expected to eq 5 is expected to eq 5 - is expected to eq 10 + is expected to eq {:bar=>"bar", :foo=>"foo"} + is expected to eq {:consumer_key=>"anonymous", :consumer_secret=>"xyz"} is expected to eq "boo" + deprecate method for HTTP method +WARNING: `Faraday::Request#method` is deprecated; use `#http_method` instead. It will be removed in or after version 2.0. +`Faraday::Request#method` called from /build/ruby-faraday-1.1.0/spec/faraday/request_spec.rb:31:in `block (3 levels) in ' + is expected to eq :post + is expected to output /WARNING: `Faraday::Request#method` is deprecated; use `#http_method` instead. It will be removed in ...r after version 2.0.\n`Faraday::Request#method` called from .+\/spec\/faraday\/request_spec.rb:\d+./ to stderr + when setting the url on setup with a string path and params + is expected to eq "foo.json" + is expected to eq {"a"=>1} + is expected to eq "http://sushi.com/api/foo.json?a=1" + when setting the body on setup + is expected to eq "hi" + is expected to eq "hi" + when setting the url on setup with a path including params + is expected to eq {"a"=>"1", "b"=>"2"} + is expected to eq "foo.json" + is expected to eq "http://sushi.com/api/foo.json?a=1&b=2" + when setting a header on setup with []= syntax + is expected to eq "1.0" + is expected to eq "Faraday" + is expected to eq "Faraday" + when nothing particular is configured + is expected to be falsey + is expected to eq :get + +Faraday::RequestOptions + allows to set the request proxy + +Faraday::Middleware + #close + with app that supports #close + should issue warning + with app that doesn't support #close + should issue warning Faraday::Adapter::HTTPClient allows to provide adapter specific configs Options configures open timeout - configures timeout configures multiple timeouts + configures timeout behaves like an adapter with SSL disabled - #patch + #put behaves like a request method - handles connection error - binds local socket + sends files handles requests with proxy - handles headers with multiple values - sends user agent + binds local socket retrieves the response body - sends request body - sends url encoded nested parameters - parses the reason phrase - represents empty body response as blank string - sends files - retrieves the response headers - handles gzip compression - sends url encoded parameters - supports timeout option - supports open_timeout option - handles proxy failures handles deflate compression - #put - behaves like a request method - sends request body retrieves the response headers - handles deflate compression + supports open_timeout option handles connection error - represents empty body response as blank string - supports timeout option - binds local socket - sends user agent + handles gzip compression handles headers with multiple values - supports open_timeout option + sends url encoded nested parameters + supports timeout option sends url encoded parameters - handles requests with proxy + sends user agent handles proxy failures - handles gzip compression + sends request body parses the reason phrase - sends files - sends url encoded nested parameters - retrieves the response body - #options + represents empty body response as blank string + #trace behaves like a request method - binds local socket - handles requests with proxy - retrieves the response headers - parses the reason phrase - sends url encoded parameters - sends url encoded nested parameters - handles gzip compression sends request body - sends user agent - supports timeout option - supports open_timeout option - represents empty body response as blank string - handles headers with multiple values - handles deflate compression - handles connection error retrieves the response body - handles proxy failures - #delete - behaves like a request method handles deflate compression - handles requests with proxy - handles connection error - supports timeout option - sends url encoded nested parameters + sends user agent binds local socket - sends url encoded parameters - handles gzip compression - retrieves the response body - supports open_timeout option - retrieves the response headers - handles headers with multiple values + handles requests with proxy handles proxy failures - represents empty body response as blank string - parses the reason phrase - sends request body - sends user agent - #head - behaves like a request method - sends request body supports open_timeout option - parses the reason phrase - sends url encoded nested parameters - binds local socket - sends url encoded parameters handles connection error - retrieves the response body - retrieves the response headers - sends user agent represents empty body response as blank string - handles headers with multiple values - handles proxy failures - handles requests with proxy supports timeout option - #post - behaves like a request method retrieves the response headers - retrieves the response body - supports timeout option - handles requests with proxy - sends request body - supports open_timeout option - represents empty body response as blank string sends url encoded nested parameters - handles connection error - sends user agent - sends files - handles proxy failures - handles gzip compression sends url encoded parameters - handles deflate compression - parses the reason phrase handles headers with multiple values - binds local socket - #trace + handles gzip compression + parses the reason phrase + #options behaves like a request method sends user agent handles connection error - retrieves the response headers - supports timeout option - handles requests with proxy - parses the reason phrase - sends request body - handles gzip compression - supports open_timeout option retrieves the response body + sends url encoded nested parameters handles headers with multiple values - sends url encoded parameters - binds local socket + parses the reason phrase represents empty body response as blank string - sends url encoded nested parameters - handles deflate compression - handles proxy failures - #get - behaves like a request method sends request body - handles proxy failures - supports open_timeout option - handles requests with proxy handles gzip compression - parses the reason phrase - handles headers with multiple values - sends user agent - binds local socket - represents empty body response as blank string supports timeout option - retrieves the response headers + supports open_timeout option + handles proxy failures handles deflate compression - sends url encoded nested parameters + binds local socket sends url encoded parameters - handles connection error - retrieves the response body - with SSL enabled - #post - behaves like a request method - handles proxy failures + handles requests with proxy retrieves the response headers - retrieves the response body + #patch + behaves like a request method + sends url encoded nested parameters handles gzip compression - parses the reason phrase sends user agent - sends files - sends url encoded parameters - sends request body - handles connection error represents empty body response as blank string - handles deflate compression - sends url encoded nested parameters - supports open_timeout option - binds local socket - handles requests with proxy supports timeout option + handles deflate compression handles headers with multiple values - #put - behaves like a request method - handles connection error - sends user agent supports open_timeout option - represents empty body response as blank string - binds local socket - sends url encoded parameters + handles connection error + handles requests with proxy + sends request body parses the reason phrase sends files - handles deflate compression - retrieves the response headers - handles headers with multiple values - handles requests with proxy - handles gzip compression - supports timeout option - sends url encoded nested parameters handles proxy failures - sends request body + sends url encoded parameters retrieves the response body - #get - behaves like a request method - represents empty body response as blank string retrieves the response headers - parses the reason phrase - sends user agent - retrieves the response body binds local socket + #post + behaves like a request method handles connection error - sends request body - handles gzip compression + retrieves the response headers + retrieves the response body + supports open_timeout option handles requests with proxy handles deflate compression - supports open_timeout option - sends url encoded nested parameters - handles headers with multiple values - supports timeout option - sends url encoded parameters + sends files handles proxy failures - #options - behaves like a request method - supports open_timeout option - retrieves the response headers - parses the reason phrase - sends user agent - handles requests with proxy - binds local socket + handles headers with multiple values handles gzip compression sends url encoded parameters - handles headers with multiple values - retrieves the response body - handles connection error + sends user agent + supports timeout option represents empty body response as blank string sends request body - handles deflate compression - handles proxy failures - supports timeout option sends url encoded nested parameters - #patch + parses the reason phrase + binds local socket + #head behaves like a request method - handles gzip compression - handles connection error + sends request body + parses the reason phrase + represents empty body response as blank string + handles requests with proxy handles headers with multiple values - sends url encoded parameters - retrieves the response body handles proxy failures - parses the reason phrase supports open_timeout option - sends url encoded nested parameters retrieves the response headers + sends url encoded nested parameters binds local socket - handles deflate compression - sends user agent - sends files - represents empty body response as blank string - handles requests with proxy - sends request body supports timeout option - #head + handles connection error + sends user agent + retrieves the response body + sends url encoded parameters + #get behaves like a request method - supports timeout option + handles deflate compression + sends request body + retrieves the response headers + retrieves the response body sends user agent + handles gzip compression handles proxy failures sends url encoded parameters - parses the reason phrase - retrieves the response body - handles connection error - sends request body + supports timeout option + supports open_timeout option binds local socket + sends url encoded nested parameters handles headers with multiple values - retrieves the response headers handles requests with proxy - supports open_timeout option + handles connection error represents empty body response as blank string - sends url encoded nested parameters + parses the reason phrase #delete behaves like a request method sends user agent - sends url encoded nested parameters handles proxy failures - handles connection error - supports timeout option - handles requests with proxy - handles gzip compression parses the reason phrase - retrieves the response headers - sends url encoded parameters + sends url encoded nested parameters + supports timeout option + supports open_timeout option handles headers with multiple values + sends url encoded parameters + retrieves the response body + handles gzip compression handles deflate compression sends request body - supports open_timeout option represents empty body response as blank string - retrieves the response body + retrieves the response headers binds local socket - #trace - behaves like a request method - parses the reason phrase - sends request body - supports timeout option handles requests with proxy - retrieves the response body - handles deflate compression - handles gzip compression - sends user agent - handles headers with multiple values - handles proxy failures - supports open_timeout option handles connection error - retrieves the response headers - represents empty body response as blank string - binds local socket - sends url encoded parameters - sends url encoded nested parameters - -Faraday::Adapter - #request_timeout - gets :read timeout - gets :write timeout - attempts unknown timeout type - gets :open timeout - -Faraday::Connection - basic_auth - adding basic auth info to url - is expected to eq "Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==" - calling the #basic_auth method - is expected to eq "Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==" - #token_auth - is expected to eq "Token nonce=\"abc\", token=\"abcdef\"" - #build_exclusive_url - handles uri instances - does not add ending slash given nil url - allows to provide params argument - does not add ending slash given empty url - overrides connection port for absolute url - does not use connection params - with url_prefixed connection - joins url to base with ending slash - parses url and changes scheme - overrides base - used default base with ending slash - with absolute path - example at ./spec/faraday/connection_spec.rb:197 - is expected to eq "/sake.html" - is expected to eq "/sake.html" - is expected to eq "/sake.html" - with relative path - is expected to eq "/fish/sake.html" - is expected to eq "/fish/sake.html" - is expected to eq "/fish/sake.html" - uses connection host as default host - is expected to eq "/sake.html" - with complete url - is expected to eq "/sake.html" - is expected to eq "a=1" - is expected to eq "sushi.com" - is expected to eq "http" - is expected to eq 80 - #dup - is expected to eq # - is expected to eq "text/plain" - is expected to eq "1" - after manual changes - is expected to be nil - is expected to eq 5 - is expected to be falsey - is expected to be falsey - is expected to eq 1 - is expected to eq 1 - .new - with custom builder - is expected to eq # - with custom headers - is expected to eq "Faraday" - with implicit url param - behaves like initializer with url - with complex url - is expected to eq 815 - is expected to eq {"a"=>"1"} - is expected to eq "/fish" - with simple url - is expected to eq 80 - is expected to eq "http" - is expected to eq {} - is expected to eq "sushi.com" - is expected to eq "/" - with ssl false - is expected to be falsey - with block - is expected to eq "/omnom" - is expected to eq 0 - with explicit url param - behaves like initializer with url - with simple url - is expected to eq "/" - is expected to eq {} - is expected to eq "sushi.com" - is expected to eq 80 - is expected to eq "http" - with complex url - is expected to eq "/fish" - is expected to eq {"a"=>"1"} - is expected to eq 815 - with custom params - is expected to eq {"a"=>1} - with custom params and params in url - is expected to eq {"a"=>3, "b"=>"2"} - with empty block - is expected to eq 0 - #respond_to? - is expected to be truthy - is expected to be truthy - #build_url - merges params - uses params - default_connection_options - assigning a hash - behaves like default connection options - works with option url - works with instance connection options - default connection options persist with an instance overriding - works with implicit url - default connection uses default connection options - assigning a default value - behaves like default connection options - default connection uses default connection options - default connection options persist with an instance overriding - works with option url - works with implicit url - works with instance connection options - request params - with url and extra params - allows to set params_encoder for single request - merges connection and request params - allows to override all 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 simple url - test_overrides_request_params - test_overrides_request_params_block_url - test_overrides_request_params_block - with default params encoder - supports array params in url - supports array params in params - #to_env - without braketizing repeated params in query - escapes per spec - parses url params into query - bracketizes nested params in query - bracketizes repeated params in query - proxy support - uses env https_proxy - allows when subdomain url is in no proxy list - allows when prefixed url is not in no proxy list - accepts http env - does not accept uppercase env - accepts hash - gives priority to manually set proxy - accepts env without scheme - fetches no proxy from blank env - allows when ip address is not in no proxy list but url is - uses processes no_proxy before http_proxy - allows when url is not in no proxy list but ip address is - test proxy requires uri - accepts http env with auth - uses env http_proxy - ignores env proxy if set that way - allows in multi element no proxy list - accepts uri - allows when url not in no proxy list - fetches no proxy from nil env - accepts hash with string uri - allows when url in no proxy list - accepts string - uses processes no_proxy before https_proxy - performing a request - dynamically check no proxy - dynamically checks proxy - #close - can close underlying app - #build_request - is expected to be empty - is expected to be truthy - is expected to be falsey - is expected to eq ["Authorization"] - -Faraday::Adapter::Excon - allows to provide adapter specific configs - behaves like an adapter - with SSL disabled - #put + with SSL enabled + #head behaves like a request method - handles connection error - handles proxy failures - sends files - supports open_timeout option + sends url encoded parameters + binds local socket supports timeout option - sends user agent - sends request body - represents empty body response as blank string + handles proxy failures retrieves the response headers - sends url encoded nested parameters - handles requests with proxy - sends url encoded parameters - handles headers with multiple values - retrieves the response body parses the reason phrase - #trace - behaves like a request method - handles headers with multiple values - retrieves the response body + sends url encoded nested parameters + supports open_timeout option handles requests with proxy represents empty body response as blank string - parses the reason phrase - retrieves the response headers - sends url encoded parameters - supports open_timeout option - handles proxy failures - supports timeout option sends user agent - sends request body + handles headers with multiple values handles connection error - sends url encoded nested parameters - #patch - behaves like a request method - sends user agent sends request body - handles requests with proxy - handles connection error - handles proxy failures - retrieves the response headers - handles headers with multiple values - parses the reason phrase - represents empty body response as blank string - supports open_timeout option - sends files retrieves the response body - sends url encoded parameters - sends url encoded nested parameters - supports timeout option #options behaves like a request method - retrieves the response body - sends user agent + handles proxy failures sends url encoded nested parameters - retrieves the response headers + handles gzip compression + sends request body handles connection error + parses the reason phrase + binds local socket sends url encoded parameters - sends request body - handles proxy failures represents empty body response as blank string - handles headers with multiple values - parses the reason phrase supports timeout option - supports open_timeout option - handles requests with proxy - #get - behaves like a request method retrieves the response body supports open_timeout option - retrieves the response headers - sends request body - supports timeout option handles requests with proxy - handles connection error + handles deflate compression + retrieves the response headers sends user agent - parses the reason phrase - sends url encoded parameters - sends url encoded nested parameters handles headers with multiple values - handles proxy failures - represents empty body response as blank string - #head + #trace behaves like a request method - retrieves the response body - represents empty body response as blank string - handles connection error + handles requests with proxy + handles gzip compression sends request body + handles headers with multiple values + parses the reason phrase + supports timeout option + represents empty body response as blank string sends user agent + binds local socket sends url encoded nested parameters - handles headers with multiple values + handles deflate compression + handles proxy failures supports open_timeout option - handles requests with proxy + retrieves the response body sends url encoded parameters - supports timeout option retrieves the response headers - parses the reason phrase - handles proxy failures - #delete + handles connection error + #put behaves like a request method - retrieves the response body + handles connection error + sends url encoded nested parameters sends user agent - handles requests with proxy parses the reason phrase - sends request body - retrieves the response headers - sends url encoded nested parameters - supports timeout option - sends url encoded parameters - represents empty body response as blank string - supports open_timeout option - handles connection error - handles proxy failures handles headers with multiple values - #post - behaves like a request method - parses the reason phrase supports timeout option - sends url encoded nested parameters - supports open_timeout option - sends request body represents empty body response as blank string - sends files - handles headers with multiple values handles proxy failures - sends url encoded parameters - sends user agent - handles requests with proxy - handles connection error retrieves the response headers retrieves the response body - with SSL enabled - #delete - behaves like a request method - sends request body + handles deflate compression + handles gzip compression handles requests with proxy - parses the reason phrase - sends url encoded nested parameters - handles headers with multiple values - retrieves the response body - supports open_timeout option - handles connection error - handles proxy failures - retrieves the response headers + sends files + binds local socket + sends request body sends url encoded parameters - sends user agent - represents empty body response as blank string - supports timeout option - #trace + supports open_timeout option + #post behaves like a request method - handles proxy failures - parses the reason phrase - handles connection error supports timeout option - handles requests with proxy - sends user agent + binds local socket retrieves the response headers + sends files represents empty body response as blank string - retrieves the response body + handles gzip compression supports open_timeout option - sends url encoded nested parameters + sends user agent + retrieves the response body + handles proxy failures + handles requests with proxy sends url encoded parameters + parses the reason phrase + handles deflate compression sends request body + sends url encoded nested parameters + handles connection error handles headers with multiple values - #head + #get behaves like a request method - sends url encoded parameters + represents empty body response as blank string + binds local socket sends request body - retrieves the response body - sends user agent - handles connection error - sends url encoded nested parameters - handles headers with multiple values - handles proxy failures parses the reason phrase + handles proxy failures + handles connection error retrieves the response headers - supports open_timeout option - represents empty body response as blank string supports timeout option - handles requests with proxy - #options - behaves like a request method + handles gzip compression + handles headers with multiple values supports open_timeout option - retrieves the response headers - parses the reason phrase handles requests with proxy - handles headers with multiple values sends user agent - represents empty body response as blank string - handles connection error - sends url encoded parameters - supports timeout option sends url encoded nested parameters - handles proxy failures - sends request body + handles deflate compression retrieves the response body - #post - behaves like a request method sends url encoded parameters - handles requests with proxy - sends url encoded nested parameters - sends request body - sends files - supports open_timeout option - handles headers with multiple values - handles connection error - sends user agent - retrieves the response headers - supports timeout option - handles proxy failures - parses the reason phrase - represents empty body response as blank string - retrieves the response body - #put + #patch behaves like a request method - supports open_timeout option - sends files - sends url encoded nested parameters retrieves the response headers handles connection error - supports timeout option + handles gzip compression parses the reason phrase + handles deflate compression sends url encoded parameters - sends user agent - handles proxy failures - retrieves the response body - handles requests with proxy + supports open_timeout option sends request body - handles headers with multiple values - represents empty body response as blank string - #patch - behaves like a request method - retrieves the response headers + handles requests with proxy represents empty body response as blank string + sends url encoded nested parameters supports timeout option - handles requests with proxy + binds local socket handles headers with multiple values - handles connection error - parses the reason phrase - handles proxy failures - retrieves the response body - sends url encoded nested parameters - sends url encoded parameters - sends request body - supports open_timeout option sends user agent sends files - #get + handles proxy failures + retrieves the response body + #delete behaves like a request method + represents empty body response as blank string + binds local socket retrieves the response body - retrieves the response headers - sends url encoded nested parameters - handles connection error - sends request body - handles proxy failures + handles gzip compression + handles deflate compression supports open_timeout option handles requests with proxy - supports timeout option parses the reason phrase + sends url encoded parameters sends user agent + supports timeout option + sends url encoded nested parameters + handles proxy failures + sends request body + handles connection error handles headers with multiple values - sends url encoded parameters - represents empty body response as blank string - config - sets timeout - sets timeout and open_timeout - sets open_timeout + retrieves the response headers -Faraday::ProxyOptions - allows hash access - #from - works with string - works with nil - works with no auth +Faraday::Request::Authorization + basic_auth + when passed correct params + is expected to eq "Basic YWxhZGRpbjpvcGVuc2VzYW1l" + and request already has an authentication header + does not interfere with existing authorization + when passed very long values + is expected to eq "Basic QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQU...UFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBOg==" + and request already has an authentication header + does not interfere with existing authorization + token_auth + when passed correct params + is expected to eq "Token token=\"quux\"" + and request already has an authentication header + does not interfere with existing authorization + when other values are provided + is expected to match /^Token / + is expected to match /foo="42"/ + is expected to match /token="baz"/ + 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 is expected to eq "text/plain" - is expected to eq "yikes" - is expected to eq 404 - is expected to eq "text/plain" - is expected to be truthy is expected to be falsey + is expected to be truthy + is expected to eq "text/plain" is expected to raise RuntimeError - #to_hash - is expected to eq {"Content-Type"=>"text/plain"} - is expected to be a kind of Hash - is expected to eq 404 - is expected to eq "yikes" + is expected to eq "yikes" + is expected to eq 404 #apply_request + is expected to eq "yikes" is expected to eq :post + marshal serialization support + is expected to eq {"Content-Type"=>"text/plain"} + is expected to be nil is expected to eq "yikes" + is expected to eq 404 #on_complete - parse body on finish can access response body in on_complete callback can access response body in on_complete callback - marshal serialization support - is expected to eq "yikes" - is expected to be nil - is expected to eq 404 + parse body on finish + #to_hash is expected to eq {"Content-Type"=>"text/plain"} + is expected to eq 404 + is expected to be a kind of Hash + is expected to eq "yikes" -Faraday::Adapter::NetHttpPersistent - allows to set pool_size on initialize - sets max_retries to 0 - allows to provide adapter specific configs +Faraday::Adapter::Typhoeus behaves like an adapter - with SSL enabled - #head + with SSL disabled + #patch behaves like a request method - represents empty body response as blank string - sends user agent - handles connection error - retrieves the response headers sends request body + handles requests with proxy + sends url encoded nested parameters + represents empty body response as blank string + supports open_timeout option + handles headers with multiple values + sends files sends url encoded parameters + handles connection error + sends user agent + supports timeout option retrieves the response body - supports open_timeout option - parses the reason phrase handles proxy failures - supports timeout option - sends url encoded nested parameters - handles requests with proxy - handles headers with multiple values + retrieves the response headers + with parallel setup + handles parallel requests status + handles parallel requests body #put behaves like a request method - sends url encoded parameters - parses the reason phrase - handles proxy failures - sends files - represents empty body response as blank string + handles requests with proxy + handles headers with multiple values sends url encoded nested parameters handles connection error + represents empty body response as blank string + supports open_timeout option supports timeout option - sends request body - retrieves the response headers + handles proxy failures retrieves the response body - handles headers with multiple values - handles gzip compression - handles requests with proxy - supports open_timeout option - handles deflate compression + retrieves the response headers + sends url encoded parameters + sends request body + sends files sends user agent + with parallel setup + handles parallel requests body + handles parallel requests status #get behaves like a request method + supports timeout option + sends user agent + sends url encoded parameters + supports open_timeout option + retrieves the response body sends request body - parses the reason phrase handles proxy failures handles connection error - sends url encoded nested parameters - sends user agent - handles deflate compression - handles headers with multiple values - handles requests with proxy retrieves the response headers + handles headers with multiple values + sends url encoded nested parameters represents empty body response as blank string - sends url encoded parameters - handles gzip compression - retrieves the response body - supports timeout option - supports open_timeout option - #options + handles requests with proxy + with parallel setup + handles parallel requests body + handles parallel requests status + #head behaves like a request method - retrieves the response body - represents empty body response as blank string - handles deflate compression - sends url encoded nested parameters + supports timeout option + sends url encoded parameters + handles connection error + sends user agent handles proxy failures - handles gzip compression + sends url encoded nested parameters supports open_timeout option + handles requests with proxy + retrieves the response body sends request body + represents empty body response as blank string handles headers with multiple values retrieves the response headers - handles requests with proxy - sends url encoded parameters - handles connection error - sends user agent - parses the reason phrase - supports timeout option - #delete + with parallel setup + handles parallel requests status + handles parallel requests body + #trace behaves like a request method + handles requests with proxy + retrieves the response body handles headers with multiple values - handles gzip compression - retrieves the response headers + handles proxy failures + sends user agent + sends url encoded parameters + supports open_timeout option sends request body + supports timeout option + sends url encoded nested parameters represents empty body response as blank string + retrieves the response headers handles connection error - supports open_timeout option + with parallel setup + handles parallel requests body + handles parallel requests status + #delete + behaves like a request method supports timeout option - handles deflate compression - handles requests with proxy - parses the reason phrase - sends user agent - retrieves the response body handles proxy failures + handles requests with proxy + supports open_timeout option sends url encoded nested parameters - sends url encoded parameters - #post - behaves like a request method - handles deflate compression - sends files + represents empty body response as blank string + sends request body + handles connection error + retrieves the response body handles headers with multiple values + sends user agent sends url encoded parameters + retrieves the response headers + with parallel setup + handles parallel requests body + handles parallel requests status + #options + behaves like a request method + supports timeout option handles proxy failures - supports open_timeout option - parses the reason phrase represents empty body response as blank string - sends user agent - supports timeout option - handles gzip compression - handles connection error + supports open_timeout option retrieves the response headers - sends request body - sends url encoded nested parameters handles requests with proxy - retrieves the response body - #trace - behaves like a request method - parses the reason phrase - handles deflate compression sends url encoded nested parameters sends user agent - handles proxy failures + retrieves the response body + sends request body + handles connection error + handles headers with multiple values sends url encoded parameters + with parallel setup + handles parallel requests body + handles parallel requests status + #post + behaves like a request method supports timeout option sends request body + sends url encoded nested parameters + sends url encoded parameters represents empty body response as blank string - retrieves the response body + sends user agent + retrieves the response headers handles connection error - handles gzip compression supports open_timeout option - retrieves the response headers - handles headers with multiple values + retrieves the response body + sends files handles requests with proxy - #patch + handles proxy failures + handles headers with multiple values + with parallel setup + handles parallel requests body + handles parallel requests status + with SSL enabled + #put behaves like a request method - parses the reason phrase - sends url encoded parameters - handles requests with proxy - handles connection error - handles deflate compression - sends request body retrieves the response body + handles headers with multiple values + supports timeout option + represents empty body response as blank string + supports open_timeout option + handles connection error sends files + sends url encoded parameters + handles proxy failures + handles requests with proxy sends url encoded nested parameters + retrieves the response headers + sends user agent + sends request body + with parallel setup + handles parallel requests body + handles parallel requests status + #delete + behaves like a request method supports open_timeout option sends user agent retrieves the response headers represents empty body response as blank string - supports timeout option - handles proxy failures - handles gzip compression - handles headers with multiple values - with SSL disabled - #options - behaves like a request method - handles headers with multiple values - handles deflate compression - handles proxy failures - retrieves the response headers retrieves the response body + handles connection error + sends url encoded nested parameters + sends request body handles requests with proxy - handles gzip compression sends url encoded parameters - represents empty body response as blank string - sends request body - handles connection error - supports open_timeout option - parses the reason phrase + handles headers with multiple values supports timeout option - sends url encoded nested parameters - sends user agent - #put + handles proxy failures + with parallel setup + handles parallel requests body + handles parallel requests status + #get behaves like a request method - handles connection error - handles gzip compression - retrieves the response headers + sends url encoded nested parameters + sends url encoded parameters sends request body - supports open_timeout option - retrieves the response body sends user agent - sends url encoded parameters - handles deflate compression - sends files represents empty body response as blank string handles headers with multiple values handles proxy failures + retrieves the response body handles requests with proxy + supports open_timeout option + handles connection error + retrieves the response headers supports timeout option - sends url encoded nested parameters - parses the reason phrase - #trace + with parallel setup + handles parallel requests status + handles parallel requests body + #patch behaves like a request method - supports open_timeout option handles headers with multiple values - sends user agent - handles gzip compression + retrieves the response body + represents empty body response as blank string handles proxy failures - supports timeout option - sends request body - handles deflate compression + handles connection error sends url encoded nested parameters - represents empty body response as blank string - retrieves the response headers - parses the reason phrase + supports timeout option + sends user agent sends url encoded parameters - retrieves the response body handles requests with proxy - handles connection error - #delete + sends files + retrieves the response headers + supports open_timeout option + sends request body + with parallel setup + handles parallel requests status + handles parallel requests body + #options behaves like a request method - handles proxy failures sends user agent - sends request body - supports open_timeout option + handles connection error + retrieves the response headers sends url encoded nested parameters + represents empty body response as blank string supports timeout option - retrieves the response headers - retrieves the response body handles requests with proxy - handles connection error + supports open_timeout option + retrieves the response body + sends request body + handles proxy failures sends url encoded parameters handles headers with multiple values - handles deflate compression - represents empty body response as blank string - handles gzip compression - parses the reason phrase + with parallel setup + handles parallel requests body + handles parallel requests status #post behaves like a request method - supports timeout option + sends url encoded parameters + supports open_timeout option + sends request body handles requests with proxy - handles deflate compression + handles connection error sends user agent + retrieves the response headers + retrieves the response body handles headers with multiple values - handles gzip compression - represents empty body response as blank string + supports timeout option sends files - handles connection error + represents empty body response as blank string sends url encoded nested parameters - sends request body handles proxy failures - sends url encoded parameters - retrieves the response body - retrieves the response headers - supports open_timeout option - parses the reason phrase + with parallel setup + handles parallel requests status + handles parallel requests body #head behaves like a request method - retrieves the response body - sends request body - parses the reason phrase handles connection error - sends url encoded parameters represents empty body response as blank string - sends user agent - sends url encoded nested parameters - supports timeout option - handles requests with proxy - handles proxy failures - supports open_timeout option + sends request body + sends url encoded parameters handles headers with multiple values + supports open_timeout option retrieves the response headers - #patch - behaves like a request method - retrieves the response body - handles headers with multiple values supports timeout option - retrieves the response headers - sends request body - handles proxy failures handles requests with proxy + handles proxy failures + retrieves the response body + sends url encoded nested parameters sends user agent - represents empty body response as blank string + with parallel setup + handles parallel requests body + handles parallel requests status + #trace + behaves like a request method handles connection error - handles deflate compression - sends url encoded parameters - supports open_timeout option - sends files - parses the reason phrase + handles requests with proxy + handles headers with multiple values sends url encoded nested parameters - handles gzip compression - #get - behaves like a request method - handles deflate compression - sends user agent retrieves the response headers + represents empty body response as blank string + sends request body + sends url encoded parameters supports timeout option - handles connection error - supports open_timeout option handles proxy failures - represents empty body response as blank string - handles requests with proxy - parses the reason phrase + supports open_timeout option + sends user agent retrieves the response body - handles gzip compression - sends url encoded parameters - sends url encoded nested parameters - sends request body - handles headers with multiple values - min_version - allows to set min_version in SSL settings - -Faraday::Response::Middleware - with a custom ResponseMiddleware and private parse - parses the response - with a custom ResponseMiddleware but empty response - doesn't call the middleware for 304 responses - raises exception for 200 responses - doesn't call the middleware for 204 responses - with a custom ResponseMiddleware - parses the response - -Faraday::FlatParamsEncoder - encodes unsorted when asked - encodes empty array in hash - encodes boolean values - decodes arrays - decodes boolean values - encodes boolean values in array - behaves like a params encoder - raises type error for empty string - escapes safe buffer - encodes nil - -Faraday - has a version number - proxies to default_connection - proxied methods can be accessed - proxies methods that exist on the default_connection - uses method_missing on Faraday if there is no proxyable method + with parallel setup + handles parallel requests status + handles parallel requests body -Faraday::AdapterRegistry - #initialize - looks up class by string name - caches lookups with explicit name - is expected to raise NameError - caches lookups with implicit name - is expected to raise NameError - looks up class by symbol name +Faraday::Response::Logger + logs response headers by default + does not log request body by default + does not log response body by default + logs filter url + logs method and url + still returns output + logs request headers by default + logs filter headers + with default formatter + delegates logging to the formatter + when not logging response headers + does not log response headers if option is false + when logging request and response bodies + log response body object + logs filter body + log request and response body + with custom formatter + logs with custom formatter + when using log_level + does not log request/response body on the info level + logs request/request body on the specified level (debug) + logs headers on the debug level + does not log headers on the info level + when not logging request headers + does not log request headers if option is false + when logging request body + log only request body + when logging response body + log only response body + without configuration + defaults to stdout -Finished in 59.94 seconds (files took 14.34 seconds to load) +Finished in 2 minutes 18.6 seconds (files took 34.72 seconds to load) 2543 examples, 0 failures -Randomized with seed 42975 +Randomized with seed 54978 Coverage report generated for RSpec to /build/ruby-faraday-1.1.0/coverage. 907 / 1052 LOC (86.22%) covered. [Coveralls] Outside the CI environment, not sending data. @@ -4706,12 +4741,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: not including original source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/9234/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/9234/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/29791 and its subdirectories -I: Current time: Mon Sep 20 13:26:52 -12 2021 -I: pbuilder-time-stamp: 1632187612 +I: removing directory /srv/workspace/pbuilder/9234 and its subdirectories +I: Current time: Tue Sep 21 15:40:41 +14 2021 +I: pbuilder-time-stamp: 1632188441