Diff of the two buildlogs: -- --- b1/build.log 2025-10-21 07:49:45.632446309 +0000 +++ b2/build.log 2025-10-21 07:51:30.384547643 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Mon Oct 20 19:47:53 -12 2025 -I: pbuilder-time-stamp: 1761032873 +I: Current time: Tue Nov 24 04:12:47 +14 2026 +I: pbuilder-time-stamp: 1795443167 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/forky-reproducible-base.tgz] I: copying local configuration @@ -26,53 +26,85 @@ dpkg-source: info: applying skip-test-failing-in-ubuntu.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/761363/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/1062510/tmp/hooks/D01_modify_environment starting +debug: Running on codethink03-arm64. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Nov 23 14:13 /bin/sh -> /bin/bash +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/1062510/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/1062510/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='arm64' - DEBIAN_FRONTEND='noninteractive' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="3" [2]="3" [3]="1" [4]="release" [5]="aarch64-unknown-linux-gnu") + BASH_VERSION='5.3.3(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=arm64 + DEBIAN_FRONTEND=noninteractive DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=12 ' - DISTRIBUTION='forky' - HOME='/root' - HOST_ARCH='arm64' + DIRSTACK=() + DISTRIBUTION=forky + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=aarch64 + HOST_ARCH=arm64 IFS=' ' - INVOCATION_ID='d1cb7249d2fa4f73ad14ae39b0d9df7b' - 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='761363' - PS1='# ' - PS2='> ' + INVOCATION_ID=e0a4c105012540ab93b1271182727ed7 + LANG=C + LANGUAGE=nl_BE:nl + LC_ALL=C + MACHTYPE=aarch64-unknown-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=1062510 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.VCjRLe0W/pbuilderrc_Uv09 --distribution forky --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/forky-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.VCjRLe0W/b1 --logfile b1/build.log ruby-faraday_2.14.0-1.dsc' - SUDO_GID='109' - SUDO_HOME='/var/lib/jenkins' - SUDO_UID='104' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://192.168.101.4:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.VCjRLe0W/pbuilderrc_4onf --distribution forky --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/forky-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.VCjRLe0W/b2 --logfile b2/build.log ruby-faraday_2.14.0-1.dsc' + SUDO_GID=109 + SUDO_HOME=/var/lib/jenkins + SUDO_UID=104 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://192.168.101.4:3128 I: uname -a - Linux codethink04-arm64 6.12.48+deb13-cloud-arm64 #1 SMP Debian 6.12.48-1 (2025-09-20) aarch64 GNU/Linux + Linux i-capture-the-hostname 6.12.48+deb13-cloud-arm64 #1 SMP Debian 6.12.48-1 (2025-09-20) aarch64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Aug 10 12:30 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/761363/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Aug 10 2025 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/1062510/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -310,7 +342,7 @@ Get: 172 http://deb.debian.org/debian forky/main arm64 ruby-rspec-mocks all 3.13.0c0e0m0s1-2 [81.3 kB] Get: 173 http://deb.debian.org/debian forky/main arm64 ruby-rspec all 3.13.0c0e0m0s1-2 [5184 B] Get: 174 http://deb.debian.org/debian forky/main arm64 ruby-webmock all 3.25.1-1 [68.8 kB] -Fetched 39.3 MB in 4s (8838 kB/s) +Fetched 39.3 MB in 1s (48.1 MB/s) Preconfiguring packages ... Selecting previously unselected package libexpat1:arm64. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 20000 files and directories currently installed.) @@ -888,8 +920,8 @@ Setting up tzdata (2025b-5) ... Current default time zone: 'Etc/UTC' -Local time is now: Tue Oct 21 07:49:14 UTC 2025. -Universal Time is now: Tue Oct 21 07:49:14 UTC 2025. +Local time is now: Mon Nov 23 14:13:43 UTC 2026. +Universal Time is now: Mon Nov 23 14:13:43 UTC 2026. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up ruby-minitest (5.25.4-3) ... @@ -1043,7 +1075,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/ruby-faraday-2.14.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_2.14.0-1_source.changes +I: user script /srv/workspace/pbuilder/1062510/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for forky +I: user script /srv/workspace/pbuilder/1062510/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/ruby-faraday-2.14.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_2.14.0-1_source.changes dpkg-buildpackage: info: source package ruby-faraday dpkg-buildpackage: info: source version 2.14.0-1 dpkg-buildpackage: info: source distribution unstable @@ -1077,7 +1113,7 @@ │ ruby-faraday: Installing files and building extensions for ruby3.3 │ └──────────────────────────────────────────────────────────────────────────────┘ -/usr/bin/ruby3.3 -S gem build --config-file /dev/null --verbose /tmp/d20251020-770657-inc04k/gemspec +/usr/bin/ruby3.3 -S gem build --config-file /dev/null --verbose /tmp/d20261124-1070944-641j5h/gemspec WARNING: open-ended dependency on json (>= 0) is not recommended use a bounded requirement, such as "~> x.y" WARNING: open-ended dependency on logger (>= 0) is not recommended @@ -1087,7 +1123,7 @@ Name: faraday Version: 2.14.0 File: faraday-2.14.0.gem -/usr/bin/ruby3.3 -S gem install --config-file /dev/null --verbose --local --verbose --no-document --ignore-dependencies --install-dir debian/ruby-faraday/usr/share/rubygems-integration/all /tmp/d20251020-770657-inc04k/faraday-2.14.0.gem +/usr/bin/ruby3.3 -S gem install --config-file /dev/null --verbose --local --verbose --no-document --ignore-dependencies --install-dir debian/ruby-faraday/usr/share/rubygems-integration/all /tmp/d20261124-1070944-641j5h/faraday-2.14.0.gem /build/reproducible-path/ruby-faraday-2.14.0/debian/ruby-faraday/usr/share/rubygems-integration/all/gems/faraday-2.14.0/lib/faraday.rb /build/reproducible-path/ruby-faraday-2.14.0/debian/ruby-faraday/usr/share/rubygems-integration/all/gems/faraday-2.14.0/lib/faraday/adapter.rb /build/reproducible-path/ruby-faraday-2.14.0/debian/ruby-faraday/usr/share/rubygems-integration/all/gems/faraday-2.14.0/lib/faraday/adapter/test.rb @@ -1161,448 +1197,771 @@ RUBYLIB=. GEM_PATH=/build/reproducible-path/ruby-faraday-2.14.0/debian/ruby-faraday/usr/share/rubygems-integration/all:/build/reproducible-path/ruby-faraday-2.14.0/debian/.debhelper/generated/_source/home/.local/share/gem/ruby/3.3.0:/var/lib/gems/3.3.0:/usr/local/lib/ruby/gems/3.3.0:/usr/lib/ruby/gems/3.3.0:/usr/lib/aarch64-linux-gnu/ruby/gems/3.3.0:/usr/share/rubygems-integration/3.3.0:/usr/share/rubygems-integration/all:/usr/lib/aarch64-linux-gnu/rubygems-integration/3.3.0 ruby3.3 -S rake --rakelibdir /gem2deb-nonexistent -f debian/ruby-tests.rake /usr/bin/ruby3.3 -I/usr/share/rubygems-integration/all/gems/rspec-support-3.13.1/lib:/usr/share/rubygems-integration/all/gems/rspec-core-3.13.0/lib /usr/share/rubygems-integration/all/gems/rspec-core-3.13.0/exe/rspec ./spec/faraday/adapter/test_spec.rb ./spec/faraday/adapter_registry_spec.rb ./spec/faraday/adapter_spec.rb ./spec/faraday/connection_spec.rb ./spec/faraday/error_spec.rb ./spec/faraday/middleware_registry_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/json_spec.rb ./spec/faraday/request/url_encoded_spec.rb ./spec/faraday/request_spec.rb ./spec/faraday/response/json_spec.rb ./spec/faraday/response/logger_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 64250 +Randomized with seed 62297 -Faraday::Connection - proxy support - test proxy requires uri - accepts hash - uses env https_proxy - allows when prefixed url is not in no proxy list - allows when url is not in no proxy list but ip address is - accepts uri - fetches no proxy from nil env - allows in multi element no proxy list - gives priority to manually set proxy - allows when url in no proxy list with url_prefix - accepts hash with string uri - allows when subdomain url is in no proxy list - does not accept uppercase env - allows when url in no proxy list - fetches no proxy from blank env - accepts string - uses env http_proxy - uses processes no_proxy before http_proxy - accepts http env with auth - allows when ip address is not in no proxy list but url is - accepts http env - accepts env without scheme - allows when url not in no proxy list - uses processes no_proxy before https_proxy - ignores env proxy if set that way - performing a request - dynamically checks proxy - dynamically check no proxy - #build_request - is expected to eq ["Authorization"] - is expected to be truthy +Faraday::Env + retains custom members + allows to access string non members + handle verify_hostname when fetching + allows to access members + allows to access symbol non members + ignores false when fetching + #body + when response is not finished yet + returns the request body + when response is finished + returns the response body + allows to access response_body + allows to access request_body + +Faraday::Request::UrlEncoded + works with with headers + works with files + works with unicode + ignores custom content type + works with nested keys + does nothing without payload + works with nested params + works with non nested params + works with no headers + customising default_space_encoding + uses the custom character to encode spaces + +Faraday::Request + supports marshal serialization + when setting a header on setup with []= syntax + is expected to eq "1.0" + is expected to eq "Faraday" + is expected to eq "Faraday" + when nothing particular is configured is expected to be falsey - is expected to be empty - #build_url - uses params - merges params + is expected to eq :get + is expected to be falsey + with global request options set + is expected to eq 5 + is expected to eq 3 + is expected to eq 5 + is expected to eq 3 + and per-request options set + is expected to eq "boo" + is expected to eq 5 + is expected to eq 10 + 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"} + when setting the url on setup with a URI + is expected to eq # + is expected to eq {"a"=>"1"} + is expected to eq "http://httpbingo.org/api/foo.json?a=1" + when HTTP method is post + is expected to eq :post + when setting the url on setup with a path including params + is expected to eq {"a"=>"1", "b"=>"2"} + is expected to eq "foo.json" + is expected to eq "http://httpbingo.org/api/foo.json?a=1&b=2" + when setting the body on setup + is expected to eq "hi" + is expected to eq "hi" + 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://httpbingo.org/api/foo.json?a=1" + +Faraday + has a version number + proxies to default_connection + proxied methods can be accessed + proxies methods that exist on the default_connection + uses method_missing on Faraday if there is no proxyable method + +Faraday::Response + is expected to be truthy + is expected to raise RuntimeError + is expected to eq # + is expected to eq "text/plain" + is expected to eq "yikes" + is expected to eq "text/plain" + is expected to be falsey + is expected to eq 404 + marshal serialization support + is expected to be nil + is expected to eq "yikes" + is expected to eq {"Content-Type"=>"text/plain"} + is expected to eq # + is expected to eq 404 + #apply_request + is expected to eq "yikes" + is expected to eq :post + #on_complete + can access response body in on_complete callback + can access response body in on_complete callback + parse body on finish + #to_hash + is expected to eq {"Content-Type"=>"text/plain"} + is expected to eq "yikes" + is expected to be a kind of Hash + is expected to eq 404 + is expected to eq # + when response is not finished + is expected to eq {:body=>nil, :response_headers=>{}, :status=>nil, :url=>nil} + +Faraday::Utils::Headers + #fetch + is expected to eq false + raises an error if key not found + is expected to eq "application/json" + is expected to be nil + calls a block when provided + is expected to eq "application/json" + is expected to eq "Invalid key" + is expected to eq "application/json" + is expected to eq "default" + when Content-Type is set to application/xml + is expected to eq "application/xml" + is expected to include "content-type" + is expected to eq ["Content-Type"] + is expected to eq "application/xml" + is expected to eq "application/xml" + #dig + is expected to eq "application/json" + is expected to eq "application/json" + is expected to eq "application/json" + is expected to be nil + when Content-Type is set to application/json + is expected to include "content-type" + is expected to eq "application/json" + is expected to eq ["Content-Type"] + is expected to eq "application/json" + is expected to eq "application/json" + #parse + when response headers leave http status line out + is expected to eq "text/html" + is expected to eq "text/html" + is expected to eq ["Content-Type"] + when response headers values include a colon + is expected to eq "http://httpbingo.org/" + when response headers include already stored keys + is expected to eq "8, 123" + when response headers include a blank line + is expected to eq "text/html" + #delete + is expected to be nil + is expected to eq "application/json" + is expected not to include "content-type" + is expected to eq 0 + +Faraday::Request::Json + object body with vendor json type + encodes body + doesn't change content type + object body with json type + encodes body + doesn't change content type + object body + encodes body + adds content type + string body + doesn't change body + adds content type + object body with incompatible type + doesn't change content type + doesn't change body + false body + encodes body + adds content type + with encoder + when encoder is passed as object + adds content type + calls specified JSON encoder's dump method + encodes body + when encoder is passed as an object-method pair + encodes body + adds content type + calls specified JSON encoder + when encoder is not passed + encodes body + calls JSON.generate + adds content type + no body + doesn't add content type + doesn't change body + true body + adds content type + encodes body + empty object body + encodes body + empty body + doesn't add content type + doesn't change body + +Faraday::Response::RaiseError + raises Faraday::TooManyRequestsError for 429 responses + raises Faraday::ResourceNotFound for 404 responses + raises Faraday::NilStatusError for nil status in response + raises Faraday::ProxyAuthError for 407 responses + raises Faraday::ForbiddenError for 403 responses + raises no exception for 200 responses + raises Faraday::RequestTimeoutError for 408 responses + raises Faraday::UnprocessableContentError for 422 responses + raises legacy Faraday::UnprocessableEntityError for 422 responses + raises Faraday::UnauthorizedError for 401 responses + raises Faraday::ConflictError for 409 responses + raises Faraday::BadRequestError for 400 responses + raises Faraday::ServerError for 500 responses + raises Faraday::ClientError for other 4xx responses + allowing certain status codes + raises an error for status codes that are not explicitly allowed + does not raise an error for allowed status codes + request info + returns the request info in the exception + DEFAULT_OPTION: include_request + when RaiseError DEFAULT_OPTION (include_request: true) is used + includes request info in the exception + when application sets default_options `include_request: false` + and when include_request option is omitted + does not include request info in the exception + and when include_request option is explicitly set for instance + includes request info in the exception + +Faraday::Adapter + #request_timeout + attempts unknown timeout type + gets :open timeout + gets :read timeout + gets :write timeout + +Faraday::Options + #merge + deeply merges two options + deeply merges options with options having nil sub-options + deeply merges options with hashes + merges options with hashes + deeply merges options with nil + #value? + returns true if any key has that value + #deep_dup + duplicate options and also suboptions + #key? + returns true if the key exists and is not nil + #clear + clears the options + #fetch + when the fetched key has no value + needs a default if key is missing + uses falsey default + accepts block + when the fetched key has a value + grabs value + works with key + #empty? + returns true only if all options are nil + #update + updates options from hashes + #memoized + requires block + accepts block + #delete + allows to remove value for key + #each_value + allows to iterate through values + #dup + duplicate options but not sub-options + #from + works with options with sub object + works with options + works with nil + works with hash with sub object + is expected to raise NoMethodError + works with deep hash + respects inheritance + works with hash + #each_key + allows to iterate through keys + +Faraday::Request::Instrumentation + defaults to ActiveSupport::Notifications + is expected to eq "request.faraday" + instruments with default name + with custom instrumenter + is expected to eq :custom + with custom name + is expected to eq "custom" + instruments with custom name + +Faraday::NestedParamsEncoder + encodes nil array value + encodes boolean values in array + encodes empty array value + encodes unsorted when asked + decodes nested final value overrides any type + decodes nested ignores malformed keys + decodes nested array mixed types + decodes arrays + encodes boolean values + decodes nested ignores invalid array + decodes hashes + encodes arrays indices when asked + decodes nested subkeys dont have to be in brackets + decodes nested arrays rack compat + encodes rack compat + decodes nested ignores repeated array notation + encodes empty string array value + when expecting array but getting string + behaves like a wrong decoding + is expected to raise TypeError + when expecting hash but getting string + behaves like a wrong decoding + is expected to raise TypeError + behaves like a params encoder + escapes safe buffer + raises type error for empty string + encodes nil + when expecting hash but getting array + behaves like a wrong decoding + is expected to raise TypeError + when expecting array but getting hash + behaves like a wrong decoding + is expected to raise TypeError + when expecting nested hash but getting non nested + behaves like a wrong decoding + is expected to raise TypeError + +Faraday::ProxyOptions + allows hash access + #from + works with string + works with hash + works with option + works with nil + defaults to http + works with no auth + treats empty string as nil + +Faraday::Connection + #build_exclusive_url + does not add ending slash given nil url + does not add ending slash given empty url + handles uri instances + always returns new URI instance + allows to provide params argument + overrides connection port for absolute url + does not use connection params + with absolute path + example at ./spec/faraday/connection_spec.rb:206 + is expected to eq "/sake.html" + is expected to eq "/sake.html" + is expected to eq "/sake.html" + with url_prefixed connection + overrides base + used default base with ending slash + joins url to base with ending slash + parses url and changes scheme + with relative path + is expected to eq "/fish/sake.html" + is expected to eq "/sake.html" + uses connection host as default host + is expected to eq "/fish/sake.html" + is expected to eq "/fish/sake.html" + with complete url + is expected to eq 80 + is expected to eq "/sake.html" + is expected to eq "httpbingo.org" + is expected to eq "a=1" + is expected to eq "http" + with colon in path + joins url to base when used relative path + joins url to base when used absolute path + joins url to base when used with path prefix + with a custom `default_uri_parser` + does not raise error + #to_env + without braketizing repeated params in query + parses url params into query + escapes per spec + bracketizes nested params in query + bracketizes repeated params in query default_connection_options + preserving a user_agent assigned via default_conncetion_options + when url is a String + is expected to eq {"CustomHeader"=>"CustomValue", "User-Agent"=>"My Agent 1.2"} + when url is a Hash + is expected to eq {"CustomHeader"=>"CustomValue", "User-Agent"=>"My Agent 1.2"} assigning a default value behaves like default connection options - works with implicit url + works with instance connection options default connection uses default connection options - default connection options persist with an instance overriding works with option url - works with instance connection options - preserving a user_agent assigned via default_conncetion_options - when url is a Hash - is expected to eq {"CustomHeader"=>"CustomValue", "User-Agent"=>"My Agent 1.2"} - when url is a String - is expected to eq {"CustomHeader"=>"CustomValue", "User-Agent"=>"My Agent 1.2"} + default connection options persist with an instance overriding + works with implicit url assigning a hash behaves like default connection options - works with option url works with implicit url + works with option url default connection uses default connection options - works with instance connection options default connection options persist with an instance overriding + works with instance connection options #close can close underlying app - #to_env - bracketizes repeated params in query - bracketizes nested params in query - without braketizing repeated params in query - escapes per spec - parses url params into query + #dup + is expected to eq "1" + is expected to eq # + is expected to eq "text/plain" + after manual changes + is expected to be nil + is expected to eq 5 + is expected to be falsey + is expected to eq 1 + is expected to be falsey + is expected to eq 1 request params + with simple url + test_overrides_request_params + test_overrides_request_params_block + test_overrides_request_params_block_url + with default params encoder + supports array params in url + supports array params in params with flat params encoder supports array params in params with array param in url example at ./spec/faraday/connection_spec.rb:802 - with simple url - test_overrides_request_params_block - test_overrides_request_params - test_overrides_request_params_block_url with url and extra params allows to set params_encoder for single request merges connection and request params allows to override all params - with default params encoder - supports array params in params - supports array params in url - #build_exclusive_url - does not use connection params - overrides connection port for absolute url - does not add ending slash given nil url - handles uri instances - allows to provide params argument - always returns new URI instance - does not add ending slash given empty url - with a custom `default_uri_parser` - does not raise error - with complete url - is expected to eq 80 - is expected to eq "http" - is expected to eq "httpbingo.org" - is expected to eq "a=1" - is expected to eq "/sake.html" - with url_prefixed connection - parses url and changes scheme - overrides base - joins url to base with ending slash - used default base with ending slash - with relative path - is expected to eq "/fish/sake.html" - is expected to eq "/sake.html" - is expected to eq "/fish/sake.html" - is expected to eq "/fish/sake.html" - uses connection host as default host - with absolute path - example at ./spec/faraday/connection_spec.rb:207 - is expected to eq "/sake.html" - is expected to eq "/sake.html" - is expected to eq "/sake.html" - with colon in path - joins url to base when used relative path - joins url to base when used absolute path - joins url to base when used with path prefix - #respond_to? - is expected to be truthy - is expected to be truthy + proxy support + accepts http env with auth + allows in multi element no proxy list + fetches no proxy from nil env + accepts env without scheme + uses processes no_proxy before https_proxy + uses env http_proxy + uses env https_proxy + accepts hash with string uri + accepts string + uses processes no_proxy before http_proxy + fetches no proxy from blank env + test proxy requires uri + accepts hash + allows when url in no proxy list with url_prefix + allows when prefixed url is not in no proxy list + accepts uri + allows when url not in no proxy list + ignores env proxy if set that way + allows when url is not in no proxy list but ip address is + allows when ip address is not in no proxy list but url is + allows when subdomain url is in no proxy list + accepts http env + gives priority to manually set proxy + does not accept uppercase env + allows when url in no proxy list + performing a request + dynamically checks proxy + dynamically check no proxy .new with ssl false is expected to be falsey + with verify_hostname false + is expected to be falsey + with custom headers + is expected to eq "Faraday" + with custom params + is expected to eq {"a"=>1} with implicit url param behaves like initializer with url with complex url is expected to eq "/fish" - is expected to eq 815 is expected to eq {"a"=>"1"} + is expected to eq 815 with simple url - is expected to eq "/" is expected to eq 80 - is expected to eq "httpbingo.org" is expected to eq {} is expected to eq "http" + is expected to eq "/" + is expected to eq "httpbingo.org" with IPv6 address is expected to eq "[::1]" is expected to eq 85 + with block + is expected to eq 0 + is expected to eq "/omnom" + with basic_auth in url + is expected to eq "Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==" with explicit url param behaves like initializer with url - with complex url - is expected to eq {"a"=>"1"} - is expected to eq "/fish" - is expected to eq 815 with IPv6 address is expected to eq 85 is expected to eq "[::1]" + with complex url + is expected to eq {"a"=>"1"} + is expected to eq 815 + is expected to eq "/fish" with simple url is expected to eq "/" - is expected to eq 80 - is expected to eq "http" is expected to eq {} + is expected to eq "http" is expected to eq "httpbingo.org" - with verify_hostname false - is expected to be falsey - with basic_auth in url - is expected to eq "Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==" + is expected to eq 80 + with custom builder + is expected to eq # with custom params and params in url is expected to eq {"a"=>3, "b"=>"2"} with empty block is expected to eq 0 - with custom headers - is expected to eq "Faraday" - with block - is expected to eq "/omnom" - is expected to eq 0 - with custom builder - is expected to eq # - with custom params - is expected to eq {"a"=>1} - #dup - is expected to eq # - is expected to eq "1" - is expected to eq "text/plain" - after manual changes - is expected to eq 5 - is expected to be nil - is expected to eq 1 - is expected to eq 1 - is expected to be falsey - is expected to be falsey - -Faraday::Response::Json - chokes on invalid json - includes the response on the ParsingError instance - with decoder - when decoder is passed as an object-method pair - passes relevant options to specified decoder's method - when decoder is not passed - passes relevant options to JSON parse - passes relevant options to JSON parse even when nil responds to :load - when decoder is passed as object - passes relevant options to specified decoder's load method - no type matching - doesn't change nil body - parses json body - nullifies empty body - with array type matching - ignores json body of incorrect type - parses json body of correct type - JSON options - passes relevant options to JSON parse - with default regexp type matching - parses json body of correct type - ignores json body of incorrect type - with preserving raw - parses json body - HEAD responses - nullifies the body if it's only one space - nullifies the body if it's two spaces + #respond_to? + is expected to be truthy + is expected to be truthy + #build_request + is expected to eq ["Authorization"] + is expected to be empty + is expected to be falsey + is expected to be truthy + #build_url + merges params + uses params -Faraday::Request::Instrumentation - defaults to ActiveSupport::Notifications - is expected to eq "request.faraday" - instruments with default name - with custom name - instruments with custom name - is expected to eq "custom" - with custom instrumenter - is expected to eq :custom +Faraday::FlatParamsEncoder + encodes boolean values + encodes empty array in hash + encodes boolean values in array + decodes arrays + encodes unsorted when asked + decodes boolean values + behaves like a params encoder + escapes safe buffer + encodes nil + raises type error for empty string -Faraday::Response::Logger - does not log request body by default - logs filter url - logs response headers by default - does not log error message by default - does not log response body by default - logs request headers by default - logs method and url - still returns output - logs status - logs filter headers - when not logging request headers - does not log request headers if option is false - when logging request and response bodies - logs request and response body - logs response body object - logs filter body - with default formatter - delegates logging to the formatter - when no route - delegates logging to the formatter - when not logging response headers - does not log response headers if option is false - without configuration - defaults to stdout - when logger without program name - logs without program name - when logger with program name - logs with program name - when logging request body - logs only request body - when using log_level - does not log headers on the info level - does not log request/response body on the info level - logs headers on the debug level - logs request/request body on the specified level (debug) - when bodies are logged by default - logs response body - converts to UTF-8 - when logging errors - logs error message - when logging headers and errors - logs error message - when logging response body - logs only response body - with custom formatter - logs with custom formatter +Faraday::Middleware + #on_error + is called by #call + #on_request + is called by #call + ::default_options + default_options input validation + raises error if Faraday::Middleware option does not exist + raises error if subclass option does not exist + with FARADAY::MIDDLEWARE DEFAULT_OPTIONS and with Subclass DEFAULT_OPTIONS + and without application options configured + is expected to eq "ok" + has only subclass defaults + and with two applications' options changed + is expected to eq "ok" + is expected to eq "ok" + updates subclasses and parent independent of each other + with subclass DEFAULT_OPTIONS defined + and with one application's options changed + is expected to eq "ok" + only updates default options of target subclass + and without application options configured + has only subclass defaults + is expected to eq "ok" + and with two applications' options changed + updates subclasses and parent independent of each other + is expected to eq "ok" + is expected to eq "ok" + #close + with app that supports #close + should issue warning + with app that doesn't support #close + should issue warning + options + when options are passed to the middleware + accepts options when initialized Faraday::Adapter::Test - with simple path sets headers - is expected to eq "text/html" + with simple path sets status + is expected to eq 200 with get params is expected to eq "a" - ignoring unspecified get params - with single param + params parsing + with flat encoder is expected to eq "a" - without params - is expected to raise Faraday::Adapter::Test::Stubs::NotFound - with multiple params + with default encoder is expected to eq "a" - for request with non default params encoder - behaves like raise NotFound when params do not satisfy the flat param values - with {:b=>["x", "y", "z"]} - is expected to raise Faraday::Adapter::Test::Stubs::NotFound - when all flat param values are correctly set - is expected to eq 200 - behaves like raise NotFound when params do not satisfy the flat param values - with {:a=>["x"]} - is expected to raise Faraday::Adapter::Test::Stubs::NotFound - behaves like raise NotFound when params do not satisfy the flat param values - with {:a=>["x", "z", "y"]} - is expected to raise Faraday::Adapter::Test::Stubs::NotFound - behaves like raise NotFound when params do not satisfy the flat param values - with {:a=>["x", "y"]} - is expected to raise Faraday::Adapter::Test::Stubs::NotFound + with nested encoder + is expected to eq "a" + can handle regular expression path with captured result + is expected to eq "show specified" + can be called several times + is expected to eq "hello" + yielding env to stubs + is expected to eq "a" different outcomes for the same request - the second request - is expected to eq "world" the first request is expected to eq "hello" - can be called several times - is expected to eq "hello" + the second request + is expected to eq "world" + with simple path sets headers + is expected to eq "text/html" strict_mode behaves like raise NotFound when params do not satisfy the strict check - with {:a=>"123", :b=>"xy"} - is expected to raise Faraday::Adapter::Test::Stubs::NotFound - behaves like raise NotFound when headers do not satisfy the strict check - with {"X-C"=>"hello"} - is expected to raise Faraday::Adapter::Test::Stubs::NotFound - behaves like raise NotFound when headers do not satisfy the strict check - with {:authorization=>"Bearer m_ck", :user_agent=>"Unknown"} + with {:a=>"12", :b=>"xy", :c=>"hello"} is expected to raise Faraday::Adapter::Test::Stubs::NotFound + when params and headers are exactly set + is expected to eq 200 behaves like raise NotFound when params do not satisfy the strict check - with {:b=>"xy"} + with {:a=>"12", :b=>"xyz"} is expected to raise Faraday::Adapter::Test::Stubs::NotFound body_match? - when trying with proc body stubs + when trying without any args for body is expected to eq 200 when trying with string body stubs is expected to eq 200 - when trying without any args for body + when trying with proc body stubs is expected to eq 200 behaves like raise NotFound when headers do not satisfy the strict check + with {:authorization=>"Bearer m_ck", :user_agent=>"Unknown"} + is expected to raise Faraday::Adapter::Test::Stubs::NotFound + behaves like raise NotFound when headers do not satisfy the strict check with {:authorization=>"Bearer m_ck", :user_agent=>"My Agent", :x_special=>"special"} is expected to raise Faraday::Adapter::Test::Stubs::NotFound + behaves like raise NotFound when headers do not satisfy the strict check + with {"X-C"=>"hello"} + is expected to raise Faraday::Adapter::Test::Stubs::NotFound + behaves like raise NotFound when headers do not satisfy the strict check + with {:authorization=>"Bearer m_ck", :"x-c"=>"hello", :x_special=>"special"} + is expected to raise Faraday::Adapter::Test::Stubs::NotFound behaves like raise NotFound when params do not satisfy the strict check - with {:a=>"12", :b=>"xyz"} + with {:b=>"xy"} + is expected to raise Faraday::Adapter::Test::Stubs::NotFound + behaves like raise NotFound when headers do not satisfy the strict check + with {:authorization=>"Bearer m_ck", :"x-c"=>"Hi"} + is expected to raise Faraday::Adapter::Test::Stubs::NotFound + behaves like raise NotFound when headers do not satisfy the strict check + with {:authorization=>"Bearer m_ck"} + is expected to raise Faraday::Adapter::Test::Stubs::NotFound + behaves like raise NotFound when headers do not satisfy the strict check + with {:authorization=>"Basic m_ck", :"x-c"=>"hello"} + is expected to raise Faraday::Adapter::Test::Stubs::NotFound + when params and headers are exactly set with a custom user agent + is expected to eq 200 + behaves like raise NotFound when headers do not satisfy the strict check + with {:authorization=>"Bearer m_ck"} + is expected to raise Faraday::Adapter::Test::Stubs::NotFound + behaves like raise NotFound when params do not satisfy the strict check + with {:a=>"123", :b=>"xy"} is expected to raise Faraday::Adapter::Test::Stubs::NotFound when strict_mode is disabled behaves like does not raise NotFound even when headers do not satisfy the strict check - with {:authorization=>"Bearer m_ck", :"x-c"=>"hello", :user_agent=>"Special Agent"} + with {:authorization=>"Bearer m_ck", :"x-c"=>"hello"} + is expected to eq 200 + behaves like does not raise NotFound even when headers do not satisfy the strict check + with {:authorization=>"Bearer m_ck", :"x-c"=>"hello", :x_special=>"special"} is expected to eq 200 behaves like does not raise NotFound even when params do not satisfy the strict check with {:additional=>"special", :a=>"12", :b=>"xy", :c=>"hello"} is expected to eq 200 behaves like does not raise NotFound even when headers do not satisfy the strict check - with {:authorization=>"Bearer m_ck", :user_agent=>"My Agent", :x_special=>"special"} - is expected to eq 200 - behaves like does not raise NotFound even when headers do not satisfy the strict check - with {:authorization=>"Bearer m_ck", :"x-c"=>"hello", :x_special=>"special"} + with {:authorization=>"Bearer m_ck", :"x-c"=>"hello", :user_agent=>"Special Agent"} is expected to eq 200 behaves like does not raise NotFound even when headers do not satisfy the strict check - with {:authorization=>"Bearer m_ck", :user_agent=>"My Agent"} + with {:authorization=>"Bearer m_ck", :user_agent=>"My Agent", :x_special=>"special"} is expected to eq 200 behaves like does not raise NotFound even when params do not satisfy the strict check with {:a=>"12", :b=>"xy"} is expected to eq 200 + behaves like does not raise NotFound even when headers do not satisfy the strict check + with {:authorization=>"Bearer m_ck", :user_agent=>"My Agent"} + is expected to eq 200 behaves like does not raise NotFound even when params do not satisfy the strict check with {:a=>"12", :b=>"xy", :c=>"hello"} is expected to eq 200 - behaves like does not raise NotFound even when headers do not satisfy the strict check - with {:authorization=>"Bearer m_ck", :"x-c"=>"hello"} - is expected to eq 200 - when params and headers are exactly set with a custom user agent - is expected to eq 200 - behaves like raise NotFound when headers do not satisfy the strict check - with {:authorization=>"Bearer m_ck", :"x-c"=>"Hi"} - is expected to raise Faraday::Adapter::Test::Stubs::NotFound behaves like raise NotFound when params do not satisfy the strict check with {:a=>"12"} is expected to raise Faraday::Adapter::Test::Stubs::NotFound - behaves like raise NotFound when headers do not satisfy the strict check - with {:authorization=>"Bearer m_ck", :"x-c"=>"hello", :x_special=>"special"} - is expected to raise Faraday::Adapter::Test::Stubs::NotFound - behaves like raise NotFound when headers do not satisfy the strict check - with {:authorization=>"Basic m_ck", :"x-c"=>"hello"} - is expected to raise Faraday::Adapter::Test::Stubs::NotFound - behaves like raise NotFound when headers do not satisfy the strict check - with {:authorization=>"Bearer m_ck"} - is expected to raise Faraday::Adapter::Test::Stubs::NotFound - behaves like raise NotFound when headers do not satisfy the strict check - with {:authorization=>"Bearer m_ck"} - is expected to raise Faraday::Adapter::Test::Stubs::NotFound - behaves like raise NotFound when params do not satisfy the strict check - with {:a=>"12", :b=>"xy", :c=>"hello"} - is expected to raise Faraday::Adapter::Test::Stubs::NotFound behaves like raise NotFound when params do not satisfy the strict check with {:additional=>"special", :a=>"12", :b=>"xy", :c=>"hello"} is expected to raise Faraday::Adapter::Test::Stubs::NotFound - when params and headers are exactly set - is expected to eq 200 - with http headers - with header - is expected to eq "a" - without header - is expected to eq "b" - with host points to the right stub - is expected to eq "domain: hello" - request timeout - when request is too slow - raises an exception - when request is within timeout - is expected to eq 200 - can handle regular expression path - is expected to eq "show" raising an error if no stub was found - for request without specified header - is expected to raise Faraday::Adapter::Test::Stubs::NotFound for request is expected to raise Faraday::Adapter::Test::Stubs::NotFound for specified host is expected to raise Faraday::Adapter::Test::Stubs::NotFound - with simple path sets body - is expected to eq "hello" - yielding env to stubs - is expected to eq "a" - params parsing - with nested encoder + for request without specified header + is expected to raise Faraday::Adapter::Test::Stubs::NotFound + can handle regular expression path + is expected to eq "show" + request timeout + when request is too slow + raises an exception + when request is within timeout + is expected to eq 200 + can handle single parameter block + is expected to eq "get" + ignoring unspecified get params + with multiple params is expected to eq "a" - with flat encoder + with single param is expected to eq "a" - with default encoder + without params + is expected to raise Faraday::Adapter::Test::Stubs::NotFound + with host points to the right stub + is expected to eq "domain: hello" + with http headers + without header + is expected to eq "b" + with header is expected to eq "a" - with simple path sets status - is expected to eq 200 - can handle regular expression path with captured result - is expected to eq "show specified" - can handle single parameter block - is expected to eq "get" + for request with non default params encoder + behaves like raise NotFound when params do not satisfy the flat param values + with {:a=>["x"]} + is expected to raise Faraday::Adapter::Test::Stubs::NotFound + behaves like raise NotFound when params do not satisfy the flat param values + with {:b=>["x", "y", "z"]} + is expected to raise Faraday::Adapter::Test::Stubs::NotFound + behaves like raise NotFound when params do not satisfy the flat param values + with {:a=>["x", "y"]} + is expected to raise Faraday::Adapter::Test::Stubs::NotFound + when all flat param values are correctly set + is expected to eq 200 + behaves like raise NotFound when params do not satisfy the flat param values + with {:a=>["x", "z", "y"]} + is expected to raise Faraday::Adapter::Test::Stubs::NotFound + with simple path sets body + is expected to eq "hello" -Faraday::ProxyOptions - allows hash access - #from - works with hash - works with option - works with no auth - works with nil - treats empty string as nil - defaults to http - works with string +Faraday::Response::Json + includes the response on the ParsingError instance + chokes on invalid json + with preserving raw + parses json body + JSON options + passes relevant options to JSON parse + with default regexp type matching + ignores json body of incorrect type + parses json body of correct type + with decoder + when decoder is not passed + passes relevant options to JSON parse + passes relevant options to JSON parse even when nil responds to :load + when decoder is passed as object + passes relevant options to specified decoder's load method + when decoder is passed as an object-method pair + passes relevant options to specified decoder's method + HEAD responses + nullifies the body if it's two spaces + nullifies the body if it's only one space + no type matching + doesn't change nil body + parses json body + nullifies empty body + with array type matching + ignores json body of incorrect type + parses json body of correct type Faraday::Request::Authorization authorization - when passed a string - is expected to eq "Bearer custom" + when passed too many arguments + is expected to raise ArgumentError and request already has an authentication header does not interfere with existing authorization with an argument + when passed a callable with an argument + is expected to eq "Bearer callable crunchy surprise" + and request already has an authentication header + does not interfere with existing authorization when passed a lambda is expected to eq "Bearer lambda crunchy surprise" and request already has an authentication header @@ -1611,20 +1970,16 @@ is expected to eq "Bearer proc crunchy surprise" and request already has an authentication header does not interfere with existing authorization - when passed a callable with an argument - is expected to eq "Bearer callable crunchy surprise" - and request already has an authentication header - does not interfere with existing authorization - when passed too many arguments - is expected to raise ArgumentError + when passed a callable + is expected to eq "Bearer custom_from_callable" and request already has an authentication header does not interfere with existing authorization when passed a proc is expected to eq "Bearer custom_from_proc" and request already has an authentication header does not interfere with existing authorization - when passed a callable - is expected to eq "Bearer custom_from_callable" + when passed a string + is expected to eq "Bearer custom" and request already has an authentication header does not interfere with existing authorization basic_auth @@ -1637,529 +1992,210 @@ and request already has an authentication header does not interfere with existing authorization -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::Json - empty body - doesn't change body - doesn't add content type - empty object body - encodes body - no body - doesn't change body - doesn't add content type - string body - adds content type - doesn't change body - object body with json type - encodes body - doesn't change content type - false body - encodes body - adds content type - object body - adds content type - encodes body - object body with incompatible type - doesn't change body - doesn't change content type - object body with vendor json type - doesn't change content type - encodes body - with encoder - when encoder is passed as object - adds content type - encodes body - calls specified JSON encoder's dump method - when encoder is not passed - calls JSON.generate - encodes body - adds content type - when encoder is passed as an object-method pair - calls specified JSON encoder - encodes body - adds content type - true body - adds content type - encodes body - -Faraday::Options - #merge - merges options with hashes - deeply merges two options - deeply merges options with options having nil sub-options - deeply merges options with hashes - deeply merges options with nil - #delete - allows to remove value for key - #empty? - returns true only if all options are nil - #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 - accepts block - needs a default if key is missing - uses falsey default - #dup - duplicate options but not sub-options - #each_key - allows to iterate through keys - #clear - clears the options - #from - works with hash - works with options - works with nil - respects inheritance - is expected to raise NoMethodError - works with hash with sub object - works with deep hash - works with options with sub object - #memoized - accepts block - requires block - #each_value - allows to iterate through values - #value? - returns true if any key has that value - #key? - returns true if the key exists and is not nil - #update - updates options from hashes - -Faraday::MiddlewareRegistry - allows to register with Proc - allows to register with constant - allows to register with string - allows to register with symbol - -Faraday::Env - ignores false when fetching - retains custom members - handle verify_hostname when fetching - allows to access symbol non members - allows to access string non members - allows to access members - #body - when response is finished - allows to access response_body - allows to access request_body - returns the response body - when response is not finished yet - returns the request body - -Faraday::Middleware - options - when options are passed to the middleware - accepts options when initialized - #on_request - is called by #call - #on_error - is called by #call - ::default_options - with FARADAY::MIDDLEWARE DEFAULT_OPTIONS and with Subclass DEFAULT_OPTIONS - and without application options configured - is expected to eq "ok" - has only subclass defaults - and with two applications' options changed - is expected to eq "ok" - updates subclasses and parent independent of each other - is expected to eq "ok" - with subclass DEFAULT_OPTIONS defined - and without application options configured - is expected to eq "ok" - has only subclass defaults - and with two applications' options changed - updates subclasses and parent independent of each other - is expected to eq "ok" - is expected to eq "ok" - and with one application's options changed - only updates default options of target subclass - is expected to eq "ok" - default_options input validation - raises error if subclass option does not exist - raises error if Faraday::Middleware option does not exist - #close - with app that doesn't support #close - should issue warning - with app that supports #close - should issue warning - -Faraday::Utils::Headers - #fetch - calls a block when provided - is expected to eq "Invalid key" - is expected to eq "default" - is expected to eq "application/json" - is expected to eq "application/json" - is expected to eq "application/json" - is expected to be nil - is expected to eq false - raises an error if key not found - #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://httpbingo.org/" - when response headers leave http status line out - is expected to eq "text/html" - is expected to eq "text/html" - is expected to eq ["Content-Type"] - when response headers include already stored keys - is expected to eq "8, 123" - 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 eq ["Content-Type"] - is expected to include "content-type" - when Content-Type is set to application/json - is expected to include "content-type" - is expected to eq ["Content-Type"] - is expected to eq "application/json" - is expected to eq "application/json" - is expected to eq "application/json" - #dig - is expected to eq "application/json" - is expected to eq "application/json" - is expected to eq "application/json" +Faraday::RackBuilder + with custom empty block is expected to be nil - #delete - is expected to eq 0 + is expected to eq Faraday::Adapter::Test + when a plain adapter is added with named arguments + adds a handler to construct adapter with options passed to adapter + when a middleware is added with named arguments + adds a handler to construct request adapter with options passed to request + with custom handler and adapter + locks the stack after making a request + dup stack is unlocked + allows to compare handlers + 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::Test + is expected to eq Faraday::Request::UrlEncoded + when adapter is added with named options + adds a handler to construct adapter with named options + when a middleware is added with named arguments + adds a handler to construct response adapter with options passed to response + when handlers are directly added or updated + adds a handler to construct adapter with options passed to insert + adds a handler with options passed to swap + adds a handler with options passed to insert_after + with custom adapter only + is expected to eq Faraday::Adapter::Test is expected to be nil - is expected to eq "application/json" - is expected not to include "content-type" + when having two handlers + allows insert_after + allows to delete a handler + allows to swap handlers + allows insert_before + when having a single handler + raises an error trying to use an unregistered symbol + is expected to eq [Apple] + allows insert_after + allows insert_before + allows use + +Faraday::Response::Logger + logs request headers by default + logs filter url + logs filter headers + does not log error message by default + still returns output + does not log request body by default + logs method and url + logs status + does not log response body by default + logs response headers by default + when logger with program name + logs with program name + without configuration + defaults to stdout + when logging request body + logs only request body + when logging request and response bodies + logs request and response body + logs response body object + logs filter body + with default formatter + delegates logging to the formatter + when no route + delegates logging to the 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 logger without program name + logs without program name + when not logging response headers + does not log response headers if option is false + when logging response body + logs only response body + when not logging request headers + does not log request headers if option is false + when logging headers and errors + logs error message + with custom formatter + logs with custom formatter + when bodies are logged by default + converts to UTF-8 + logs response body + when logging errors + logs error message Faraday::AdapterRegistry #initialize - is expected to raise NameError - caches lookups with explicit name looks up class by symbol name + caches lookups with explicit name caches lookups with implicit name - is expected to raise NameError looks up class by string name + is expected to raise NameError + is expected to raise NameError -Faraday::Response - is expected to raise RuntimeError - is expected to eq "yikes" - is expected to eq "text/plain" - is expected to be truthy - is expected to eq "text/plain" - is expected to be falsey - is expected to eq # - is expected to eq 404 - marshal serialization support - is expected to be nil - is expected to eq {"Content-Type"=>"text/plain"} - is expected to eq # - is expected to eq 404 - is expected to eq "yikes" - #apply_request - is expected to eq "yikes" - is expected to eq :post - #on_complete - parse body on finish - can access response body in on_complete callback - can access response body in on_complete callback - #to_hash - is expected to be a kind of Hash - is expected to eq 404 - is expected to eq "yikes" - is expected to eq # - is expected to eq {"Content-Type"=>"text/plain"} - when response is not finished - is expected to eq {:body=>nil, :response_headers=>{}, :status=>nil, :url=>nil} - -Faraday::Response::RaiseError - raises Faraday::ConflictError for 409 responses - raises no exception for 200 responses - raises Faraday::BadRequestError for 400 responses - raises Faraday::NilStatusError for nil status in response - raises Faraday::UnauthorizedError for 401 responses - raises Faraday::ClientError for other 4xx responses - raises Faraday::RequestTimeoutError for 408 responses - raises Faraday::UnprocessableContentError for 422 responses - raises Faraday::ResourceNotFound for 404 responses - raises Faraday::TooManyRequestsError for 429 responses - raises legacy Faraday::UnprocessableEntityError for 422 responses - raises Faraday::ServerError for 500 responses - raises Faraday::ProxyAuthError for 407 responses - raises Faraday::ForbiddenError for 403 responses - request info - returns the request info in the exception - DEFAULT_OPTION: include_request - when RaiseError DEFAULT_OPTION (include_request: true) is used - includes request info in the exception - when application sets default_options `include_request: false` - and when include_request option is explicitly set for instance - includes request info in the exception - and when include_request option is omitted - does not include request info in the exception - allowing certain status codes - does not raise an error for allowed status codes - raises an error for status codes that are not explicitly allowed - -Faraday::Adapter - #request_timeout - gets :write timeout - gets :read timeout - gets :open timeout - attempts unknown timeout type - -Faraday::FlatParamsEncoder - encodes empty array in hash - decodes arrays - decodes boolean values - encodes boolean values in array - encodes unsorted when asked - encodes boolean values - behaves like a params encoder +Faraday::Utils + headers parsing + parse headers for aggregated responses + .deep_merge! + recursively merges the headers + when a target hash has an Options Struct value + does not overwrite an Options Struct value + URI parsing + parses with URI + replaces headers hash + parses with default parser + parses with block escapes safe buffer - encodes nil - raises type error for empty string -Faraday::NestedParamsEncoder - decodes nested ignores repeated array notation - decodes nested subkeys dont have to be in brackets - decodes nested ignores invalid array - decodes nested final value overrides any type - encodes unsorted when asked - encodes boolean values in array - decodes nested arrays rack compat - encodes empty string array value - decodes nested ignores malformed keys - encodes empty array value - encodes arrays indices when asked - encodes boolean values - decodes hashes - encodes nil array value - decodes arrays - decodes nested array mixed types - encodes rack compat - behaves like a params encoder - escapes safe buffer - encodes nil - raises type error for empty string - when expecting array but getting string - behaves like a wrong decoding - is expected to raise TypeError - when expecting array but getting hash - behaves like a wrong decoding - is expected to raise TypeError - when expecting hash but getting array - behaves like a wrong decoding - is expected to raise TypeError - when expecting nested hash but getting non nested - behaves like a wrong decoding - is expected to raise TypeError - when expecting hash but getting string - behaves like a wrong decoding - is expected to raise TypeError +Faraday::MiddlewareRegistry + allows to register with string + allows to register with Proc + allows to register with symbol + allows to register with constant -Faraday::Request - supports marshal serialization - when setting the url on setup with a path including params - is expected to eq {"a"=>"1", "b"=>"2"} - is expected to eq "http://httpbingo.org/api/foo.json?a=1&b=2" - is expected to eq "foo.json" - when nothing particular is configured - is expected to be falsey - is expected to eq :get - is expected to be falsey - with global request options set - is expected to eq 5 - is expected to eq 3 - is expected to eq 3 - is expected to eq 5 - and per-request options set - is expected to eq {:bar=>"bar", :foo=>"foo"} - is expected to eq {:consumer_key=>"anonymous", :consumer_secret=>"xyz"} - is expected to eq 5 - is expected to eq "boo" - is expected to eq 10 - is expected to eq 5 - is expected to eq 10 - when setting the url on setup with a URI - is expected to eq {"a"=>"1"} - is expected to eq "http://httpbingo.org/api/foo.json?a=1" - is expected to eq # - when setting the body on setup - is expected to eq "hi" - is expected to eq "hi" - when HTTP method is post - is expected to eq :post - when setting the url on setup with a string path and params - is expected to eq {"a"=>1} - is expected to eq "http://httpbingo.org/api/foo.json?a=1" - is expected to eq "foo.json" - when setting a header on setup with []= syntax - is expected to eq "Faraday" - is expected to eq "Faraday" - is expected to eq "1.0" +Faraday::RequestOptions + allows to set the request proxy Faraday::Error .initialize - with hash missing status key - is expected to eq {:body=>"error body"} - is expected to be nil - is expected to eq "the server responded with status - method and url are not available due to include_request: false on Faraday::Response::RaiseError middleware" - with hash with status and request but missing method in request - is expected to eq {:body=>"not found", :request=>{:url=>"http://example.com/test"}, :status=>404} - is expected to be nil - is expected to eq "the server responded with status 404 for http://example.com/test" - with string - is expected to be nil + with exception only + is expected to eq # is expected to be nil - is expected to eq "#>" - is expected to eq "custom message" is expected to be nil is expected to be nil + is expected to eq "#>" + is expected to eq "test" + is expected to eq nil is expected to be nil with anything else #to_s - is expected to eq "#>" - is expected to be nil - is expected to be nil - is expected to eq "[\"error1\", \"error2\"]" is expected to be nil + is expected to eq "#>" is expected to be nil is expected to be nil - with hash with status and request but missing url in request is expected to be nil - is expected to eq "the server responded with status 404 for GET " - is expected to eq {:body=>"not found", :request=>{:method=>:get}, :status=>404} - with properly formed Faraday::Env + is expected to eq "[\"error1\", \"error2\"]" is expected to be nil - is expected to eq "the server responded with status 500 for POST https://api.example.com/users" - is expected to eq #"application/json"} @status=500 @response_body="{\"error\": \"Internal server error\"}"> with exception and response object - is expected to eq "test" is expected to eq {:test=>"test"} + is expected to eq #"application/json"} @status=400 @response_body={:test=>"test"}>, @on_complete_callbacks=[]> is expected to eq nil - is expected to eq # - is expected to eq 400 - is expected to eq #"application/json"} @status=400 @response_body={:test=>"test"}>, @on_complete_callbacks=[]> is expected to eq {"Content-Type"=>"application/json"} - with response hash - is expected to be nil - is expected to eq "the server responded with status 400 - method and url are not available due to include_request: false on Faraday::Response::RaiseError middleware" - is expected to eq "#400}>" - is expected to be nil + is expected to eq "test" is expected to eq 400 - is expected to eq {:status=>400} - is expected to be nil - with exception only - is expected to eq nil - is expected to be nil - is expected to be nil is expected to eq # - is expected to be nil - is expected to eq "#>" - is expected to eq "test" - is expected to be nil with exception string and response hash + is expected to eq {:status=>400} is expected to be nil + is expected to eq "#400}>" + is expected to eq "custom message" is expected to be nil - is expected to eq {:status=>400} is expected to eq 400 - is expected to eq "custom message" - is expected to eq "#400}>" is expected to be nil with Faraday::Env with direct method and url properties is expected to eq # @status=404 @response_body="not found"> is expected to eq "the server responded with status 404 for GET http://example.com/test" is expected to be nil with Faraday::Env missing status key - is expected to eq # is expected to be nil + is expected to eq # is expected to eq "the server responded with status for " + with properly formed Faraday::Env + is expected to eq #"application/json"} @status=500 @response_body="{\"error\": \"Internal server error\"}"> + is expected to eq "the server responded with status 500 for POST https://api.example.com/users" + is expected to be nil + with response hash + is expected to eq 400 + is expected to be nil + is expected to eq "#400}>" + is expected to eq {:status=>400} + is expected to eq "the server responded with status 400 - method and url are not available due to include_request: false on Faraday::Response::RaiseError middleware" + is expected to be nil + is expected to be nil + with hash with status and request but missing url in request + is expected to be nil + is expected to eq "the server responded with status 404 for GET " + is expected to eq {:body=>"not found", :request=>{:method=>:get}, :status=>404} with hash with status but missing request data - is expected to eq {:body=>"not found", :status=>404} is expected to be nil + is expected to eq {:body=>"not found", :status=>404} is expected to eq "the server responded with status 404 - method and url are not available due to include_request: false on Faraday::Response::RaiseError middleware" + with hash missing status key + is expected to be nil + is expected to eq "the server responded with status - method and url are not available due to include_request: false on Faraday::Response::RaiseError middleware" + is expected to eq {:body=>"error body"} + with string + is expected to eq "#>" + is expected to be nil + is expected to be nil + is expected to be nil + is expected to be nil + is expected to be nil + is expected to eq "custom message" + with hash with status and request but missing method in request + is expected to be nil + is expected to eq "the server responded with status 404 for http://example.com/test" + is expected to eq {:body=>"not found", :request=>{:url=>"http://example.com/test"}, :status=>404} -Faraday::RackBuilder - when having a single handler - allows insert_after - raises an error trying to use an unregistered symbol - is expected to eq [Apple] - allows insert_before - allows use - when a middleware is added with named arguments - adds a handler to construct request adapter with options passed to request - when a middleware is added with named arguments - adds a handler to construct response adapter with options passed to response - when middleware is added with named arguments - adds a handler to construct middleware with options passed to use - when a plain adapter is added with named arguments - adds a handler to construct adapter with options passed to adapter - when having two handlers - allows insert_after - allows insert_before - allows to swap handlers - allows to delete a handler - with custom empty block - is expected to eq Faraday::Adapter::Test - is expected to be nil - with custom handler and adapter - locks the stack after making a request - dup stack is unlocked - allows to compare handlers - when adapter is added with named options - adds a handler to construct adapter with named options - with default stack - is expected to eq Faraday::Adapter::Test - is expected to eq Faraday::Request::UrlEncoded - when handlers are directly added or updated - adds a handler with options passed to swap - adds a handler with options passed to insert_after - adds a handler to construct adapter with options passed to insert - with custom adapter only - is expected to eq Faraday::Adapter::Test - is expected to be nil - -Faraday::Utils - URI parsing - parses with URI - replaces headers hash - parses with block - escapes safe buffer - parses with default parser - headers parsing - parse headers for aggregated responses - .deep_merge! - recursively merges the headers - when a target hash has an Options Struct value - does not overwrite an Options Struct value - -Faraday::RequestOptions - allows to set the request proxy - -Faraday::Request::UrlEncoded - works with non nested params - ignores custom content type - does nothing without payload - works with nested keys - works with files - works with unicode - works with no headers - works with nested params - works with with headers - customising default_space_encoding - uses the custom character to encode spaces - -Finished in 1.29 seconds (files took 1.99 seconds to load) +Finished in 2.48 seconds (files took 1.95 seconds to load) 623 examples, 0 failures -Randomized with seed 64250 +Randomized with seed 62297 Coverage report generated for RSpec to /build/reproducible-path/ruby-faraday-2.14.0/coverage. 0 / 0 LOC (100.0%) covered. [Coveralls] Outside the CI environment, not sending data. @@ -2193,12 +2229,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: including full source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/1062510/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/1062510/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/761363 and its subdirectories -I: Current time: Mon Oct 20 19:49:44 -12 2025 -I: pbuilder-time-stamp: 1761032984 +I: removing directory /srv/workspace/pbuilder/1062510 and its subdirectories +I: Current time: Tue Nov 24 04:14:29 +14 2026 +I: pbuilder-time-stamp: 1795443269