Diff of the two buildlogs: -- --- b1/build.log 2025-02-03 14:26:58.736043111 +0000 +++ b2/build.log 2025-02-03 14:27:47.053863909 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Mon Feb 3 02:15:00 -12 2025 -I: pbuilder-time-stamp: 1738592100 +I: Current time: Mon Mar 9 10:50:00 +14 2026 +I: pbuilder-time-stamp: 1773003000 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-reproducible-base.tgz] I: copying local configuration @@ -30,52 +30,84 @@ dpkg-source: info: applying 0007-Skip-test-that-hits-the-network.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/887948/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/1499159/tmp/hooks/D01_modify_environment starting +debug: Running on ionos5-amd64. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Mar 8 20:50 /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/1499159/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/1499159/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='amd64' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=20 ' - DISTRIBUTION='unstable' - HOME='/root' - HOST_ARCH='amd64' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="37" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu") + BASH_VERSION='5.2.37(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=amd64 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=42 ' + DIRSTACK=() + DISTRIBUTION=unstable + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=x86_64 + HOST_ARCH=amd64 IFS=' ' - INVOCATION_ID='eea266e301a9411cb7d10c181f5bddb1' - 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='887948' - PS1='# ' - PS2='> ' + INVOCATION_ID=13a85c5835634a2fb77c71c6d3c0bb2a + LANG=C + LANGUAGE=et_EE:et + LC_ALL=C + MACHTYPE=x86_64-pc-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=1499159 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.HlzGOUsR/pbuilderrc_lE8n --distribution unstable --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.HlzGOUsR/b1 --logfile b1/build.log ruby-rest-client_2.1.0-4.dsc' - SUDO_GID='110' - SUDO_UID='105' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://46.16.76.132: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.HlzGOUsR/pbuilderrc_zL2U --distribution unstable --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.HlzGOUsR/b2 --logfile b2/build.log ruby-rest-client_2.1.0-4.dsc' + SUDO_GID=110 + SUDO_UID=105 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://213.165.73.152:3128 I: uname -a - Linux ionos1-amd64 6.1.0-30-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.124-1 (2025-01-12) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.12.9+bpo-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.9-1~bpo12+1 (2025-01-19) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Nov 22 14:40 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/887948/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Nov 22 2024 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/1499159/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -286,7 +318,7 @@ Get: 155 http://deb.debian.org/debian unstable/main amd64 ruby-rspec-mocks all 3.13.0c0e0m0s1-2 [81.3 kB] Get: 156 http://deb.debian.org/debian unstable/main amd64 ruby-rspec all 3.13.0c0e0m0s1-2 [5184 B] Get: 157 http://deb.debian.org/debian unstable/main amd64 ruby-webmock all 3.24.0-1 [68.5 kB] -Fetched 56.7 MB in 10s (5737 kB/s) +Fetched 56.7 MB in 5s (10.4 MB/s) Preconfiguring packages ... Selecting previously unselected package libpython3.13-minimal:amd64. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19806 files and directories currently installed.) @@ -805,8 +837,8 @@ Setting up tzdata (2025a-1) ... Current default time zone: 'Etc/UTC' -Local time is now: Mon Feb 3 14:20:59 UTC 2025. -Universal Time is now: Mon Feb 3 14:20:59 UTC 2025. +Local time is now: Sun Mar 8 20:50:30 UTC 2026. +Universal Time is now: Sun Mar 8 20:50:30 UTC 2026. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up ruby-minitest (5.25.4-1) ... @@ -949,7 +981,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/ruby-rest-client-2.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-rest-client_2.1.0-4_source.changes +I: user script /srv/workspace/pbuilder/1499159/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for unstable +I: user script /srv/workspace/pbuilder/1499159/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/ruby-rest-client-2.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-rest-client_2.1.0-4_source.changes dpkg-buildpackage: info: source package ruby-rest-client dpkg-buildpackage: info: source version 2.1.0-4 dpkg-buildpackage: info: source distribution unstable @@ -1023,366 +1059,366 @@ RUBYLIB=/build/reproducible-path/ruby-rest-client-2.1.0/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby:. GEM_PATH=/build/reproducible-path/ruby-rest-client-2.1.0/debian/ruby-rest-client/usr/share/rubygems-integration/all:/build/reproducible-path/ruby-rest-client-2.1.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/x86_64-linux-gnu/ruby/gems/3.3.0:/usr/share/rubygems-integration/3.3.0:/usr/share/rubygems-integration/all:/usr/lib/x86_64-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 --pattern ./spec/\*\*/\*_spec.rb --format documentation -Randomized with seed 45942 +Randomized with seed 57880 -backwards compatibility - aliases old names for HTTP 413, 414, 416 - aliases RestClient::NotFound as ResourceNotFound - subclasses timeout from RestClient::RequestTimeout, RequestFailed, EWR - subclasses NotFound from RequestFailed, ExceptionWithResponse +RestClient::Resource + concatenates even non-string urls, :posts + 1 => 'posts/1' + concatenates urls, using no slash if the first url ends with a slash + passes a given block to subresources + is backwards compatible with previous constructor + can instantiate with no user/password + concatenates urls, using no slash if the second url starts with a slash + the block should be overrideable in ruby 1.9 syntax + the block should be overrideable + concatenates urls, inserting a slash when it needs one + transports options to subresources + offers subresources via [] + prints its url with to_s + Resource delegation + PATCH + PUT + overrides resource headers + HEAD + DELETE + POST + GET + block + execution block override resource block + can use block when executing the resource + can use block when creating the resource + +RestClient + API + POST + PUT + GET + DELETE + HEAD + OPTIONS + PATCH + version + has a version > 2.0.0.alpha, < 3.0 + logging + displays the log to stderr + displays the log to stdout + uses << if the log is not a string + append the log to the requested filename RestClient::ParamsArray .new - rejects various invalid input accepts various types of containers + rejects various invalid input -RestClient::NotFound - stores the body on the response of the exception - also has the http response attached - -RestClient::Request - closes payload if not nil - can use a block to process response - params for GET requests - encodes nested GET params - manage params for get requests - adds GET params when params are present in URL - -RestClient::RawResponse - exposes a Tempfile +RestClient::Response + accepts nil strings and sets it to empty for the case of HEAD behaves like string - includes AbstractResponse - -RestClient::Request - timeouts - raises OpenTimeout when it hits an open timeout (PENDING: Temporarily skipped with xit) - -RestClient::Exception - sets the exception message to ErrorMessage - returns the 'message' that was set - contains exceptions in RestClient - returns a 'message' equal to the class name if the message is not set, because 'message' should not be nil - -RestClient::ServerBrokeConnection - should have a default message of 'Server broke connection' + cookie processing + should correctly deal with multiple cookies [multiple Set-Cookie headers] + should correctly deal with one Set-Cookie header with one cookie inside + should correctly deal with multiple cookies [one Set-Cookie header with multiple cookies] + header processing + test headers and raw headers + handles multiple headers by joining with comma + logging + uses the request's logger + exceptions processing + should return itself for normal codes + should throw an exception for other codes + redirection + handles redirects with relative paths + follows a redirection when the request is a get + follows a redirection and keep the cookies + follow a redirection when the request is a get and the response is in the 30x range + follows a redirection and keep the parameters + allows for manual following of redirects + handles redirects with relative path and query string + respects cookie domains on redirect + follows no more than max_redirects redirections, if specified + follows no more than 10 redirections before raising error + follows a redirection when the request is a post and result is a 303 + doesn't follow a 307 when the request is a post + follows a redirection when the request is a head + doesn't follow a 302 when the request is a post + doesn't follow a 301 when the request is a post + doesn't follow a redirection when the request is a put + keeps redirection history RestClient::Request - strips the charset from the response content type - transmits the request with Net::HTTP - correctly formats cookies provided to the constructor - does not warn when overriding user header with header derived from payload if those header values were identical + does not warn for a normal looking payload + catches Net::OpenTimeout and raises RestClient's OpenTimeout + strips out cookies set for a different domain name does not escape or unescape cookies - catches OpenSSL::SSL::SSLError and raise it back without more informative message - catches Net::ReadTimeout and raises RestClient's ReadTimeout - should still return a response object for 204 No Content responses - uses correct error message for OpenTimeout - catches Timeout::Error and raise the more informative ReadTimeout + rejects cookie values containing invalid characters + uses credentials in the url in preference to netrc processes a successful result determines the Net::HTTP class to instantiate by the method name - uses credentials in the url in preference to netrc + catches Net::ReadTimeout and raises RestClient's ReadTimeout + uses correct error message for OpenTimeout + executes by constructing the Net::HTTP object, headers, and payload and calling transmit uses correct error message for ReadTimeout - uses netrc credentials + strips the charset from the response content type + transmits the request with Net::HTTP + class method execute wraps constructor rejects or warns with contradictory cookie options + IPv6: executes by constructing the Net::HTTP object, headers, and payload and calling transmit + does not warn when overriding user header with header derived from payload if those header values were identical + catches Errno::ETIMEDOUT and raise the more informative ReadTimeout + uses netrc credentials + assumes default domain and path for cookies set by hash doesn't classify successful requests as failed - strips out cookies set for a different domain name - class method execute wraps constructor - accept */* mimetype + catches OpenSSL::SSL::SSLError and raise it back without more informative message warns when overriding existing headers via payload - set urlencoded content_type header on hash payloads - rejects cookie values containing invalid characters - assumes default domain and path for cookies set by hash - executes by constructing the Net::HTTP object, headers, and payload and calling transmit - does not warn for a normal looking payload - catches Net::OpenTimeout and raises RestClient's OpenTimeout + catches Timeout::Error and raise the more informative ReadTimeout rejects cookie names containing invalid characters catches EOFError and shows the more informative ServerBrokeConnection - catches Errno::ETIMEDOUT and raise the more informative ReadTimeout - IPv6: executes by constructing the Net::HTTP object, headers, and payload and calling transmit - logging - logs to a passed logger, if provided - logs a response including the status code, content type, and result body size in bytes - does not log request password - logs a response with a nil body - logs a post request with a large payload - logs input headers as a hash - logs a get request - logs a post request with a small payload - logs a response with a nil Content-type - header symbols - converts content-type from extension to real content-type - only convert symbols in header - converts accept from extension(s) to real content-type(s) - converts header symbols from :content_type to 'Content-Type' - converts header values to strings - raw response - should read the response into a binary-mode tempfile - user - password - extracts with escaping the username and password when parsing http://user:password@example.com/ - extracts the username and password when parsing http://user:password@example.com/ - uses the username and password from the URL - doesn't overwrite user and password (which may have already been set by the Resource constructor) if there is no user/password in the url - overrides URL user/pass with explicit options - process_url_params - should handle complex nested URL params per Rack / Rails conventions - should handle basic URL params - should handle ParamsArray objects - should combine with & when URL params already exist - block usage - returns what asked to + should still return a response object for 204 No Content responses + correctly formats cookies provided to the constructor + accept */* mimetype + set urlencoded content_type header on hash payloads user headers - prefers the user header when the same header exists in the defaults converts user headers to string before calling CGI::unescape which fails on non string values + prefers the user header when the same header exists in the defaults merges user headers with the default headers - proxy - disables proxy on a per-request basis - creates a proxy class if a proxy url is given - overrides global proxy with per-request proxy - overrides proxy from environment - creates a proxy class with the correct address if a IPv6 proxy url is given - creates a non-proxy class if a proxy url is not given - sets proxy on a per-request basis + raw response + should read the response into a binary-mode tempfile payload - accepts nested hashes in payload - sends nil payloads converts a hash payload to urlencoded data + sends nil payloads + accepts nested hashes in payload passes non-hash payloads straight through - .normalize_url - raises with invalid URI - does not add http:// to the front of capital HTTPS resources - does not add http:// to the front of https resources - does not add http:// to the front of capital HTTP resources - adds http:// to resources containing a colon - adds http:// to the front of resources specified in the syntax example.com/resource - credentials - sets up the credentials prior to the request - does not attempt to send any credentials if user is nil - setup credentials when there's a user - does not attempt to send credentials if Authorization header is set - exception - raises Unauthorized when the response is 401 - raises ResourceNotFound when the response is 404 - raises RequestFailed otherwise - timeout - supersedes :timeout with open/read_timeout - does not set timeouts if not specified - sets read_timeout - deprecated: warns when disabling timeout by setting it to -1 - sets both timeouts with :timeout - deprecated: disable timeout by setting it to -1 - disable timeout by setting it to nil - sets open_timeout - constructor - should reject valid URIs with no hostname - should reject invalid URIs + logging + logs to a passed logger, if provided + does not log request password + logs a response with a nil body + logs a response including the status code, content type, and result body size in bytes + logs input headers as a hash + logs a post request with a large payload + logs a response with a nil Content-type + logs a post request with a small payload + logs a get request ssl should set the ssl_version if provided - should set the ssl_ca_path if provided + should not set the ssl_verify_callback by default should set the ssl_ciphers if provided - should by default set the ssl_cert_store if no CA info is provided + should set the ssl_ca_path if provided + should set net.verify_mode to OpenSSL::SSL::VERIFY_NONE if verify_ssl is false + should set the ssl_ca_file if provided should not set the ssl_cert_store if it is set falsy - should set net.verify_mode to the passed value if verify_ssl is an OpenSSL constant + should not set the ssl_ca_path if it is not provided + uses SSL when the URI refers to a https address + should set net.verify_mode to OpenSSL::SSL::VERIFY_PEER if verify_ssl is true should have expected values for VERIFY_PEER and VERIFY_NONE + should set net.verify_mode to the passed value if verify_ssl is an OpenSSL constant + should set the ssl_cert_store if provided + should default to verifying ssl certificates + should not set the ssl_client_key if it is not provided should set the ssl_client_cert if provided - should set net.verify_mode to OpenSSL::SSL::VERIFY_PEER if verify_ssl is not given - should not set the ssl_ciphers if set to nil - should set net.verify_mode to OpenSSL::SSL::VERIFY_PEER if verify_ssl is true - uses SSL when the URI refers to a https address - should not set the ssl_version if not provided - should not set the ssl_ca_path if it is not provided should not set the ssl_client_cert if it is not provided - should default to not having an ssl_client_key - should default to verifying ssl certificates - should not set net.verify_mode to OpenSSL::SSL::VERIFY_NONE if verify_ssl is true - should not set the ssl_ca_file if it is not provided should set the ssl_client_key if provided - should set the ssl_verify_callback if passed - should set the ssl_ca_file if provided - should set net.verify_mode to OpenSSL::SSL::VERIFY_NONE if verify_ssl is false - should not set the ssl_verify_callback by default should default to not having an ssl_ca_file - should not set the ssl_client_key if it is not provided - should set the ssl_cert_store if provided - should default to not having an ssl_ca_path should default to not having an ssl_client_cert + should not set the ssl_ciphers if set to nil + should default to not having an ssl_client_key + should set net.verify_mode to OpenSSL::SSL::VERIFY_PEER if verify_ssl is not given + should set the ssl_verify_callback if passed + should not set the ssl_ca_file if it is not provided + should default to not having an ssl_ca_path + should by default set the ssl_cert_store if no CA info is provided + should not set net.verify_mode to OpenSSL::SSL::VERIFY_NONE if verify_ssl is true + should not set the ssl_version if not provided + credentials + does not attempt to send credentials if Authorization header is set + setup credentials when there's a user + sets up the credentials prior to the request + does not attempt to send any credentials if user is nil + timeout + disable timeout by setting it to nil + sets both timeouts with :timeout + sets open_timeout + supersedes :timeout with open/read_timeout + deprecated: warns when disabling timeout by setting it to -1 + deprecated: disable timeout by setting it to -1 + does not set timeouts if not specified + sets read_timeout + .normalize_url + does not add http:// to the front of capital HTTPS resources + adds http:// to the front of resources specified in the syntax example.com/resource + does not add http:// to the front of capital HTTP resources + adds http:// to resources containing a colon + raises with invalid URI + does not add http:// to the front of https resources + exception + raises Unauthorized when the response is 401 + raises ResourceNotFound when the response is 404 + raises RequestFailed otherwise + process_url_params + should handle basic URL params + should handle complex nested URL params per Rack / Rails conventions + should combine with & when URL params already exist + should handle ParamsArray objects + proxy + overrides global proxy with per-request proxy + creates a proxy class with the correct address if a IPv6 proxy url is given + creates a proxy class if a proxy url is given + disables proxy on a per-request basis + creates a non-proxy class if a proxy url is not given + overrides proxy from environment + sets proxy on a per-request basis + user - password + overrides URL user/pass with explicit options + doesn't overwrite user and password (which may have already been set by the Resource constructor) if there is no user/password in the url + extracts the username and password when parsing http://user:password@example.com/ + uses the username and password from the URL + extracts with escaping the username and password when parsing http://user:password@example.com/ + header symbols + converts header values to strings + converts content-type from extension to real content-type + converts header symbols from :content_type to 'Content-Type' + converts accept from extension(s) to real content-type(s) + only convert symbols in header payloads should accept streaming IO payloads should accept string payloads + constructor + should reject invalid URIs + should reject valid URIs with no hostname + block usage + returns what asked to RestClient::Payload - A multipart Payload - should handle hash in hash parameters - should detect optional (original) content type and filename - should correctly format hex boundary + A regular Payload + should properly handle arrays as repeated parameters + should form properly use symbols as parameters should use standard enctype as default content-type - should form properly separated multipart data - should not error on close if stream already closed - should ignore the name attribute when it's not set - should not escape parameters names - should form properly separated multipart data + should handle arrays inside a hash inside a hash + should not close if stream already closed + should handle many attributes inside a hash + should escape parameters + should handle attributes inside an array inside an hash + should form properly encoded params + should properly handle hashes as parameter Payload generation - should recognize multipart params should recognize nested multipart payloads in arrays - should handle deeply nested multipart + should recognize multipart params should be multipart if forced should recognize other payloads that can be streamed - shouldn't treat hashes as streameable should recognize nested multipart payloads in hashes - should return data if no of the above - should recognize multipart payload wrapped in ParamsArray - should handle non-multipart payload wrapped in ParamsArray should pass through Payload::Base and subclasses unchanged + should return data if no of the above should recognize standard urlencoded params + should handle deeply nested multipart + should handle non-multipart payload wrapped in ParamsArray should recognize file payloads that can be streamed - Base Payload - should reset stream after to_s + shouldn't treat hashes as streameable + should recognize multipart payload wrapped in ParamsArray streamed payloads should have a closed? method - should properly determine the size of other kinds of streaming payloads should properly determine the size of file payloads - A regular Payload - should properly handle hashes as parameter - should handle arrays inside a hash inside a hash - should properly handle arrays as repeated parameters - should handle many attributes inside a hash - should form properly use symbols as parameters - should handle attributes inside an array inside an hash - should not close if stream already closed - should form properly encoded params + should properly determine the size of other kinds of streaming payloads + Base Payload + should reset stream after to_s + A multipart Payload + should detect optional (original) content type and filename + should handle hash in hash parameters + should not escape parameters names + should ignore the name attribute when it's not set + should form properly separated multipart data + should form properly separated multipart data should use standard enctype as default content-type - should escape parameters - -RestClient::Response - behaves like string - accepts nil strings and sets it to empty for the case of HEAD - cookie processing - should correctly deal with multiple cookies [multiple Set-Cookie headers] - should correctly deal with one Set-Cookie header with one cookie inside - should correctly deal with multiple cookies [one Set-Cookie header with multiple cookies] - header processing - handles multiple headers by joining with comma - test headers and raw headers - logging - uses the request's logger - exceptions processing - should return itself for normal codes - should throw an exception for other codes - redirection - follows a redirection when the request is a head - handles redirects with relative paths - respects cookie domains on redirect - follows a redirection when the request is a get - handles redirects with relative path and query string - follow a redirection when the request is a get and the response is in the 30x range - doesn't follow a redirection when the request is a put - follows a redirection and keep the parameters - doesn't follow a 307 when the request is a post - keeps redirection history - doesn't follow a 302 when the request is a post - follows a redirection when the request is a post and result is a 303 - follows no more than 10 redirections before raising error - doesn't follow a 301 when the request is a post - allows for manual following of redirects - follows no more than max_redirects redirections, if specified - follows a redirection and keep the cookies + should not error on close if stream already closed + should correctly format hex boundary -RestClient::AbstractResponse - fetches the numeric response code - can access the net http result directly - fetches the headers - extracts cookies from response headers - doesn't escape cookies - extract strange cookies - has a nice description - .cookie_jar - extracts cookies into cookie jar - handles cookies when URI scheme is implicit - #return! - should raise RequestFailed on unknown codes - should raise an error on a redirection after non-GET/HEAD requests - should return the response itself on 200-codes - should gracefully handle 302 redirect with no location header - should follow 302 redirect - .beautify_headers - joins multiple header values by comma - leaves set-cookie headers as array - beautifies the headers by turning the values to strings instead of one-element arrays - beautifies the headers by turning the keys to symbols +RestClient::Request + timeouts + raises OpenTimeout when it hits an open timeout (PENDING: Temporarily skipped with xit) RestClient::Utils - .get_encoding_from_headers - assumes no encoding by default for text - returns nil on failures - handles various charsets + .cgi_parse_header + parses headers .encode_query_string - handles simple arrays - handles nested nulls - handles nested ParamsArrays + handles simple hashes handles nested hashes - handles multiple fields with the same name using ParamsArray + handles simple arrays handles deep nesting + handles multiple fields with the same name using ParamsArray handles null and empty values - handles simple hashes - .cgi_parse_header - parses headers + handles nested ParamsArrays + handles nested nulls + .get_encoding_from_headers + assumes no encoding by default for text + handles various charsets + returns nil on failures -RestClient - version - has a version > 2.0.0.alpha, < 3.0 - logging - displays the log to stderr - displays the log to stdout - uses << if the log is not a string - append the log to the requested filename - API - OPTIONS - HEAD - PUT - GET - PATCH - POST - DELETE +RestClient::ServerBrokeConnection + should have a default message of 'Server broke connection' RestClient - a simple request a 404 + a simple request charset parsing - handles binary handles utf-8 + handles binary defaults to the default encoding + leaves images as binary handles invalid encoding handles windows-1252 - leaves images as binary handles euc-jp -RestClient::Resource - concatenates urls, using no slash if the second url starts with a slash - the block should be overrideable - concatenates even non-string urls, :posts + 1 => 'posts/1' - transports options to subresources - offers subresources via [] - prints its url with to_s - concatenates urls, inserting a slash when it needs one - passes a given block to subresources - concatenates urls, using no slash if the first url ends with a slash - is backwards compatible with previous constructor - can instantiate with no user/password - the block should be overrideable in ruby 1.9 syntax - block - can use block when creating the resource - can use block when executing the resource - execution block override resource block - Resource delegation - overrides resource headers - DELETE - PATCH - GET - PUT - HEAD - POST +RestClient::Request + can use a block to process response + closes payload if not nil + params for GET requests + adds GET params when params are present in URL + encodes nested GET params + manage params for get requests + +backwards compatibility + aliases old names for HTTP 413, 414, 416 + aliases RestClient::NotFound as ResourceNotFound + subclasses timeout from RestClient::RequestTimeout, RequestFailed, EWR + subclasses NotFound from RequestFailed, ExceptionWithResponse + +RestClient::Exception + returns the 'message' that was set + returns a 'message' equal to the class name if the message is not set, because 'message' should not be nil + contains exceptions in RestClient + sets the exception message to ErrorMessage + +RestClient::RawResponse + exposes a Tempfile + behaves like string + includes AbstractResponse + +RestClient::AbstractResponse + extract strange cookies + extracts cookies from response headers + has a nice description + can access the net http result directly + fetches the numeric response code + fetches the headers + doesn't escape cookies + .beautify_headers + joins multiple header values by comma + leaves set-cookie headers as array + beautifies the headers by turning the keys to symbols + beautifies the headers by turning the values to strings instead of one-element arrays + #return! + should return the response itself on 200-codes + should follow 302 redirect + should raise RequestFailed on unknown codes + should gracefully handle 302 redirect with no location header + should raise an error on a redirection after non-GET/HEAD requests + .cookie_jar + handles cookies when URI scheme is implicit + extracts cookies into cookie jar + +RestClient::NotFound + also has the http response attached + stores the body on the response of the exception RestClient::RequestFailed - shows the status code in the message stores the http response on the exception + shows the status code in the message http_code convenience method for fetching the code as an integer http_body convenience method for fetching the body (decoding when necessary) @@ -1392,10 +1428,10 @@ # Temporarily skipped with xit # ./spec/integration/request_spec.rb:17 -Finished in 2.19 seconds (files took 26.5 seconds to load) +Finished in 0.61389 seconds (files took 0.53938 seconds to load) 286 examples, 0 failures, 1 pending -Randomized with seed 45942 +Randomized with seed 57880 /usr/bin/ruby3.1 /usr/bin/gem2deb-test-runner @@ -1412,379 +1448,379 @@ RUBYLIB=/build/reproducible-path/ruby-rest-client-2.1.0/debian/ruby-rest-client/usr/lib/ruby/vendor_ruby:. GEM_PATH=/build/reproducible-path/ruby-rest-client-2.1.0/debian/ruby-rest-client/usr/share/rubygems-integration/all:/build/reproducible-path/ruby-rest-client-2.1.0/debian/.debhelper/generated/_source/home/.local/share/gem/ruby/3.1.0:/var/lib/gems/3.1.0:/usr/local/lib/ruby/gems/3.1.0:/usr/lib/ruby/gems/3.1.0:/usr/lib/x86_64-linux-gnu/ruby/gems/3.1.0:/usr/share/rubygems-integration/3.1.0:/usr/share/rubygems-integration/all:/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0 ruby3.1 -S rake --rakelibdir /gem2deb-nonexistent -f debian/ruby-tests.rake /usr/bin/ruby3.1 -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 --pattern ./spec/\*\*/\*_spec.rb --format documentation -Randomized with seed 45429 - -RestClient::RawResponse - behaves like string - exposes a Tempfile - includes AbstractResponse - -RestClient::ParamsArray - .new - rejects various invalid input - accepts various types of containers +Randomized with seed 43316 RestClient::Request - closes payload if not nil - can use a block to process response - params for GET requests - encodes nested GET params - manage params for get requests - adds GET params when params are present in URL - -RestClient - logging - displays the log to stdout - displays the log to stderr - append the log to the requested filename - uses << if the log is not a string - API - OPTIONS - PUT - GET - HEAD - DELETE - POST - PATCH - version - has a version > 2.0.0.alpha, < 3.0 + timeouts + raises OpenTimeout when it hits an open timeout (PENDING: Temporarily skipped with xit) RestClient::AbstractResponse + extracts cookies from response headers fetches the numeric response code - fetches the headers can access the net http result directly doesn't escape cookies + fetches the headers has a nice description - extracts cookies from response headers extract strange cookies + .cookie_jar + handles cookies when URI scheme is implicit + extracts cookies into cookie jar .beautify_headers - joins multiple header values by comma beautifies the headers by turning the keys to symbols + joins multiple header values by comma leaves set-cookie headers as array beautifies the headers by turning the values to strings instead of one-element arrays #return! should return the response itself on 200-codes - should follow 302 redirect - should raise RequestFailed on unknown codes should raise an error on a redirection after non-GET/HEAD requests + should follow 302 redirect should gracefully handle 302 redirect with no location header - .cookie_jar - extracts cookies into cookie jar - handles cookies when URI scheme is implicit + should raise RequestFailed on unknown codes + +RestClient::Request + closes payload if not nil + can use a block to process response + params for GET requests + manage params for get requests + adds GET params when params are present in URL + encodes nested GET params + +RestClient::RawResponse + behaves like string + includes AbstractResponse + exposes a Tempfile + +RestClient::Resource + is backwards compatible with previous constructor + concatenates urls, inserting a slash when it needs one + passes a given block to subresources + the block should be overrideable in ruby 1.9 syntax + concatenates urls, using no slash if the first url ends with a slash + concatenates even non-string urls, :posts + 1 => 'posts/1' + the block should be overrideable + transports options to subresources + prints its url with to_s + concatenates urls, using no slash if the second url starts with a slash + offers subresources via [] + can instantiate with no user/password + Resource delegation + DELETE + PATCH + GET + overrides resource headers + HEAD + POST + PUT + block + can use block when creating the resource + can use block when executing the resource + execution block override resource block + +RestClient::Utils + .get_encoding_from_headers + returns nil on failures + assumes no encoding by default for text + handles various charsets + .encode_query_string + handles deep nesting + handles simple arrays + handles nested nulls + handles null and empty values + handles simple hashes + handles nested hashes + handles nested ParamsArrays + handles multiple fields with the same name using ParamsArray + .cgi_parse_header + parses headers + +RestClient::Payload + A multipart Payload + should form properly separated multipart data + should handle hash in hash parameters + should detect optional (original) content type and filename + should correctly format hex boundary + should ignore the name attribute when it's not set + should not escape parameters names + should form properly separated multipart data + should use standard enctype as default content-type + should not error on close if stream already closed + A regular Payload + should form properly encoded params + should not close if stream already closed + should form properly use symbols as parameters + should handle arrays inside a hash inside a hash + should use standard enctype as default content-type + should properly handle arrays as repeated parameters + should handle many attributes inside a hash + should properly handle hashes as parameter + should escape parameters + should handle attributes inside an array inside an hash + Payload generation + should recognize multipart params + should recognize nested multipart payloads in arrays + should be multipart if forced + should pass through Payload::Base and subclasses unchanged + should handle non-multipart payload wrapped in ParamsArray + should handle deeply nested multipart + should recognize other payloads that can be streamed + should recognize standard urlencoded params + should recognize nested multipart payloads in hashes + should recognize multipart payload wrapped in ParamsArray + shouldn't treat hashes as streameable + should recognize file payloads that can be streamed + should return data if no of the above + streamed payloads + should properly determine the size of other kinds of streaming payloads + should have a closed? method + should properly determine the size of file payloads + Base Payload + should reset stream after to_s + +RestClient::Response + accepts nil strings and sets it to empty for the case of HEAD + behaves like string + exceptions processing + should throw an exception for other codes + should return itself for normal codes + cookie processing + should correctly deal with multiple cookies [one Set-Cookie header with multiple cookies] + should correctly deal with multiple cookies [multiple Set-Cookie headers] + should correctly deal with one Set-Cookie header with one cookie inside + logging + uses the request's logger + redirection + follow a redirection when the request is a get and the response is in the 30x range + doesn't follow a redirection when the request is a put + respects cookie domains on redirect + doesn't follow a 307 when the request is a post + doesn't follow a 302 when the request is a post + follows a redirection when the request is a head + handles redirects with relative paths + handles redirects with relative path and query string + follows a redirection when the request is a get + follows a redirection and keep the cookies + allows for manual following of redirects + follows no more than max_redirects redirections, if specified + follows no more than 10 redirections before raising error + keeps redirection history + doesn't follow a 301 when the request is a post + follows a redirection and keep the parameters + follows a redirection when the request is a post and result is a 303 + header processing + test headers and raw headers + handles multiple headers by joining with comma RestClient - a 404 a simple request + a 404 charset parsing - handles binary - handles invalid encoding - handles euc-jp - handles windows-1252 handles utf-8 - defaults to the default encoding + handles euc-jp + handles invalid encoding leaves images as binary + handles binary + defaults to the default encoding + handles windows-1252 RestClient::Exception returns a 'message' equal to the class name if the message is not set, because 'message' should not be nil - returns the 'message' that was set contains exceptions in RestClient + returns the 'message' that was set sets the exception message to ErrorMessage +RestClient::NotFound + stores the body on the response of the exception + also has the http response attached + +backwards compatibility + subclasses timeout from RestClient::RequestTimeout, RequestFailed, EWR + subclasses NotFound from RequestFailed, ExceptionWithResponse + aliases RestClient::NotFound as ResourceNotFound + aliases old names for HTTP 413, 414, 416 + +RestClient::ServerBrokeConnection + should have a default message of 'Server broke connection' + RestClient::Request - warns when overriding existing headers via payload - uses correct error message for ReadTimeout - executes by constructing the Net::HTTP object, headers, and payload and calling transmit - rejects cookie names containing invalid characters - does not escape or unescape cookies - set urlencoded content_type header on hash payloads - does not warn when overriding user header with header derived from payload if those header values were identical - determines the Net::HTTP class to instantiate by the method name - uses correct error message for OpenTimeout - accept */* mimetype - catches Net::OpenTimeout and raises RestClient's OpenTimeout - class method execute wraps constructor - strips the charset from the response content type - assumes default domain and path for cookies set by hash rejects cookie values containing invalid characters + rejects or warns with contradictory cookie options + correctly formats cookies provided to the constructor + set urlencoded content_type header on hash payloads transmits the request with Net::HTTP should still return a response object for 204 No Content responses - catches Timeout::Error and raise the more informative ReadTimeout + rejects cookie names containing invalid characters + strips the charset from the response content type + does not warn when overriding user header with header derived from payload if those header values were identical + accept */* mimetype + does not escape or unescape cookies catches Net::ReadTimeout and raises RestClient's ReadTimeout - catches Errno::ETIMEDOUT and raise the more informative ReadTimeout + assumes default domain and path for cookies set by hash + uses credentials in the url in preference to netrc + does not warn for a normal looking payload + uses correct error message for ReadTimeout catches EOFError and shows the more informative ServerBrokeConnection + strips out cookies set for a different domain name + warns when overriding existing headers via payload + determines the Net::HTTP class to instantiate by the method name + catches Timeout::Error and raise the more informative ReadTimeout catches OpenSSL::SSL::SSLError and raise it back without more informative message - uses credentials in the url in preference to netrc + uses netrc credentials + executes by constructing the Net::HTTP object, headers, and payload and calling transmit + catches Errno::ETIMEDOUT and raise the more informative ReadTimeout processes a successful result doesn't classify successful requests as failed + uses correct error message for OpenTimeout + class method execute wraps constructor IPv6: executes by constructing the Net::HTTP object, headers, and payload and calling transmit - rejects or warns with contradictory cookie options - does not warn for a normal looking payload - uses netrc credentials - strips out cookies set for a different domain name - correctly formats cookies provided to the constructor - user - password - doesn't overwrite user and password (which may have already been set by the Resource constructor) if there is no user/password in the url - extracts the username and password when parsing http://user:password@example.com/ - uses the username and password from the URL - overrides URL user/pass with explicit options - extracts with escaping the username and password when parsing http://user:password@example.com/ - header symbols - only convert symbols in header - converts header values to strings - converts header symbols from :content_type to 'Content-Type' - converts accept from extension(s) to real content-type(s) - converts content-type from extension to real content-type + catches Net::OpenTimeout and raises RestClient's OpenTimeout + proxy + disables proxy on a per-request basis + overrides global proxy with per-request proxy + sets proxy on a per-request basis + creates a non-proxy class if a proxy url is not given + creates a proxy class with the correct address if a IPv6 proxy url is given + creates a proxy class if a proxy url is given + overrides proxy from environment payloads should accept streaming IO payloads should accept string payloads - constructor - should reject invalid URIs - should reject valid URIs with no hostname - process_url_params - should combine with & when URL params already exist - should handle basic URL params - should handle complex nested URL params per Rack / Rails conventions - should handle ParamsArray objects - exception - raises RequestFailed otherwise - raises ResourceNotFound when the response is 404 - raises Unauthorized when the response is 401 + logging + logs a post request with a large payload + logs a response including the status code, content type, and result body size in bytes + logs a response with a nil Content-type + does not log request password + logs a get request + logs a response with a nil body + logs to a passed logger, if provided + logs input headers as a hash + logs a post request with a small payload payload - accepts nested hashes in payload - sends nil payloads converts a hash payload to urlencoded data + sends nil payloads passes non-hash payloads straight through + accepts nested hashes in payload + block usage + returns what asked to + exception + raises Unauthorized when the response is 401 + raises RequestFailed otherwise + raises ResourceNotFound when the response is 404 + credentials + setup credentials when there's a user + sets up the credentials prior to the request + does not attempt to send any credentials if user is nil + does not attempt to send credentials if Authorization header is set + user - password + uses the username and password from the URL + overrides URL user/pass with explicit options + doesn't overwrite user and password (which may have already been set by the Resource constructor) if there is no user/password in the url + extracts with escaping the username and password when parsing http://user:password@example.com/ + extracts the username and password when parsing http://user:password@example.com/ ssl - should set the ssl_client_key if provided + should set net.verify_mode to the passed value if verify_ssl is an OpenSSL constant + should not set the ssl_cert_store if it is set falsy + should set the ssl_ciphers if provided should default to verifying ssl certificates should set net.verify_mode to OpenSSL::SSL::VERIFY_PEER if verify_ssl is true - should set the ssl_client_cert if provided - should not set the ssl_ca_file if it is not provided - should not set the ssl_ca_path if it is not provided - should not set the ssl_cert_store if it is set falsy - should not set the ssl_version if not provided - should by default set the ssl_cert_store if no CA info is provided - should not set the ssl_verify_callback by default - should set the ssl_verify_callback if passed - should set the ssl_ca_file if provided - should not set net.verify_mode to OpenSSL::SSL::VERIFY_NONE if verify_ssl is true - should have expected values for VERIFY_PEER and VERIFY_NONE - should set the ssl_version if provided - should not set the ssl_client_cert if it is not provided - should not set the ssl_ciphers if set to nil + should set the ssl_client_key if provided should not set the ssl_client_key if it is not provided - should default to not having an ssl_ca_file - should default to not having an ssl_client_key - should set net.verify_mode to OpenSSL::SSL::VERIFY_NONE if verify_ssl is false + should set the ssl_ca_path if provided uses SSL when the URI refers to a https address should set the ssl_cert_store if provided - should default to not having an ssl_ca_path - should set the ssl_ciphers if provided - should set net.verify_mode to the passed value if verify_ssl is an OpenSSL constant - should set the ssl_ca_path if provided + should not set the ssl_verify_callback by default + should default to not having an ssl_client_key + should not set the ssl_ciphers if set to nil should set net.verify_mode to OpenSSL::SSL::VERIFY_PEER if verify_ssl is not given + should not set the ssl_client_cert if it is not provided + should set the ssl_version if provided + should have expected values for VERIFY_PEER and VERIFY_NONE + should not set the ssl_version if not provided + should default to not having an ssl_ca_file + should by default set the ssl_cert_store if no CA info is provided + should not set net.verify_mode to OpenSSL::SSL::VERIFY_NONE if verify_ssl is true + should default to not having an ssl_ca_path + should not set the ssl_ca_path if it is not provided + should set the ssl_client_cert if provided + should set net.verify_mode to OpenSSL::SSL::VERIFY_NONE if verify_ssl is false + should not set the ssl_ca_file if it is not provided + should set the ssl_verify_callback if passed + should set the ssl_ca_file if provided should default to not having an ssl_client_cert timeout - deprecated: disable timeout by setting it to -1 + sets open_timeout sets both timeouts with :timeout + disable timeout by setting it to nil sets read_timeout - sets open_timeout + deprecated: disable timeout by setting it to -1 + supersedes :timeout with open/read_timeout does not set timeouts if not specified - disable timeout by setting it to nil deprecated: warns when disabling timeout by setting it to -1 - supersedes :timeout with open/read_timeout - user headers - prefers the user header when the same header exists in the defaults - converts user headers to string before calling CGI::unescape which fails on non string values - merges user headers with the default headers - credentials - does not attempt to send credentials if Authorization header is set - does not attempt to send any credentials if user is nil - setup credentials when there's a user - sets up the credentials prior to the request - block usage - returns what asked to - proxy - overrides global proxy with per-request proxy - sets proxy on a per-request basis - creates a non-proxy class if a proxy url is not given - creates a proxy class with the correct address if a IPv6 proxy url is given - disables proxy on a per-request basis - creates a proxy class if a proxy url is given - overrides proxy from environment - logging - logs a response with a nil body - logs a response including the status code, content type, and result body size in bytes - logs input headers as a hash - logs a get request - logs to a passed logger, if provided - logs a post request with a small payload - logs a post request with a large payload - logs a response with a nil Content-type - does not log request password raw response should read the response into a binary-mode tempfile + header symbols + converts content-type from extension to real content-type + converts header symbols from :content_type to 'Content-Type' + converts header values to strings + converts accept from extension(s) to real content-type(s) + only convert symbols in header .normalize_url - does not add http:// to the front of capital HTTP resources does not add http:// to the front of capital HTTPS resources + does not add http:// to the front of https resources + does not add http:// to the front of capital HTTP resources + adds http:// to resources containing a colon raises with invalid URI adds http:// to the front of resources specified in the syntax example.com/resource - adds http:// to resources containing a colon - does not add http:// to the front of https resources - -RestClient::ServerBrokeConnection - should have a default message of 'Server broke connection' - -RestClient::NotFound - stores the body on the response of the exception - also has the http response attached - -RestClient::Utils - .cgi_parse_header - parses headers - .get_encoding_from_headers - assumes no encoding by default for text - handles various charsets - returns nil on failures - .encode_query_string - handles simple arrays - handles simple hashes - handles nested ParamsArrays - handles nested hashes - handles multiple fields with the same name using ParamsArray - handles deep nesting - handles null and empty values - handles nested nulls + user headers + merges user headers with the default headers + converts user headers to string before calling CGI::unescape which fails on non string values + prefers the user header when the same header exists in the defaults + process_url_params + should combine with & when URL params already exist + should handle complex nested URL params per Rack / Rails conventions + should handle basic URL params + should handle ParamsArray objects + constructor + should reject invalid URIs + should reject valid URIs with no hostname -RestClient::Resource - concatenates even non-string urls, :posts + 1 => 'posts/1' - passes a given block to subresources - concatenates urls, inserting a slash when it needs one - concatenates urls, using no slash if the second url starts with a slash - offers subresources via [] - transports options to subresources - prints its url with to_s - is backwards compatible with previous constructor - the block should be overrideable - concatenates urls, using no slash if the first url ends with a slash - can instantiate with no user/password - the block should be overrideable in ruby 1.9 syntax - block - can use block when creating the resource - can use block when executing the resource - execution block override resource block - Resource delegation - PATCH - PUT +RestClient + version + has a version > 2.0.0.alpha, < 3.0 + API DELETE - overrides resource headers - GET POST + PUT HEAD - -RestClient::Response - behaves like string - accepts nil strings and sets it to empty for the case of HEAD - header processing - test headers and raw headers - handles multiple headers by joining with comma - cookie processing - should correctly deal with one Set-Cookie header with one cookie inside - should correctly deal with multiple cookies [multiple Set-Cookie headers] - should correctly deal with multiple cookies [one Set-Cookie header with multiple cookies] + GET + PATCH + OPTIONS logging - uses the request's logger - redirection - handles redirects with relative path and query string - follows no more than max_redirects redirections, if specified - doesn't follow a 307 when the request is a post - allows for manual following of redirects - doesn't follow a redirection when the request is a put - respects cookie domains on redirect - follows a redirection when the request is a get - follows a redirection when the request is a post and result is a 303 - follow a redirection when the request is a get and the response is in the 30x range - follows no more than 10 redirections before raising error - doesn't follow a 302 when the request is a post - follows a redirection and keep the cookies - follows a redirection and keep the parameters - handles redirects with relative paths - follows a redirection when the request is a head - keeps redirection history - doesn't follow a 301 when the request is a post - exceptions processing - should return itself for normal codes - should throw an exception for other codes - -RestClient::Payload - Payload generation - should recognize other payloads that can be streamed - should recognize multipart payload wrapped in ParamsArray - should handle deeply nested multipart - should recognize standard urlencoded params - should return data if no of the above - should recognize nested multipart payloads in arrays - shouldn't treat hashes as streameable - should recognize nested multipart payloads in hashes - should be multipart if forced - should pass through Payload::Base and subclasses unchanged - should handle non-multipart payload wrapped in ParamsArray - should recognize multipart params - should recognize file payloads that can be streamed - Base Payload - should reset stream after to_s - streamed payloads - should properly determine the size of file payloads - should properly determine the size of other kinds of streaming payloads - should have a closed? method - A regular Payload - should handle attributes inside an array inside an hash - should escape parameters - should form properly encoded params - should use standard enctype as default content-type - should properly handle hashes as parameter - should handle many attributes inside a hash - should properly handle arrays as repeated parameters - should form properly use symbols as parameters - should not close if stream already closed - should handle arrays inside a hash inside a hash - A multipart Payload - should detect optional (original) content type and filename - should not escape parameters names - should form properly separated multipart data - should use standard enctype as default content-type - should handle hash in hash parameters - should correctly format hex boundary - should form properly separated multipart data - should not error on close if stream already closed - should ignore the name attribute when it's not set + displays the log to stderr + uses << if the log is not a string + append the log to the requested filename + displays the log to stdout -backwards compatibility - aliases RestClient::NotFound as ResourceNotFound - subclasses NotFound from RequestFailed, ExceptionWithResponse - aliases old names for HTTP 413, 414, 416 - subclasses timeout from RestClient::RequestTimeout, RequestFailed, EWR +RestClient::ParamsArray + .new + rejects various invalid input + accepts various types of containers RestClient::RequestFailed - http_body convenience method for fetching the body (decoding when necessary) shows the status code in the message + http_body convenience method for fetching the body (decoding when necessary) stores the http response on the exception http_code convenience method for fetching the code as an integer -RestClient::Request - timeouts - raises OpenTimeout when it hits an open timeout (PENDING: Temporarily skipped with xit) - Pending: (Failures listed here are expected and do not affect your suite's status) 1) RestClient::Request timeouts raises OpenTimeout when it hits an open timeout # Temporarily skipped with xit # ./spec/integration/request_spec.rb:17 -Finished in 6.97 seconds (files took 6.08 seconds to load) +Finished in 0.65681 seconds (files took 0.52141 seconds to load) 286 examples, 0 failures, 1 pending -Randomized with seed 45429 +Randomized with seed 43316 ┌──────────────────────────────────────────────────────────────────────────────┐ @@ -1819,12 +1855,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/1499159/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/1499159/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/887948 and its subdirectories -I: Current time: Mon Feb 3 02:26:57 -12 2025 -I: pbuilder-time-stamp: 1738592817 +I: removing directory /srv/workspace/pbuilder/1499159 and its subdirectories +I: Current time: Mon Mar 9 10:50:46 +14 2026 +I: pbuilder-time-stamp: 1773003046