Diff of the two buildlogs: -- --- b1/build.log 2024-12-22 10:54:24.443632984 +0000 +++ b2/build.log 2024-12-22 10:55:18.729177716 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Sat Jan 24 05:16:37 -12 2026 -I: pbuilder-time-stamp: 1769274997 +I: Current time: Sun Jan 25 07:17:28 +14 2026 +I: pbuilder-time-stamp: 1769275048 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/trixie-reproducible-base.tgz] I: copying local configuration @@ -29,52 +29,84 @@ dpkg-source: info: applying rspec3.patch I: using fakeroot in build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/3325860/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/211223/tmp/hooks/D01_modify_environment starting +debug: Running on codethink01-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 Jan 24 17:17 /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/211223/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/211223/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]="2" [2]="37" [3]="1" [4]="release" [5]="aarch64-unknown-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=arm64 + DEBIAN_FRONTEND=noninteractive DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=12 ' - DISTRIBUTION='trixie' - HOME='/root' - HOST_ARCH='arm64' + DIRSTACK=() + DISTRIBUTION=trixie + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=aarch64 + HOST_ARCH=arm64 IFS=' ' - INVOCATION_ID='99b2b4816a3a4e12b12b53d22d1de7de' - 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='3325860' - PS1='# ' - PS2='> ' + INVOCATION_ID=d7208dfb5b2e41bd93f298926035c45d + 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=211223 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.F4A0gRYe/pbuilderrc_kDI5 --distribution trixie --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.F4A0gRYe/b1 --logfile b1/build.log ruby-coercible_1.0.0-2.1.dsc' - SUDO_GID='109' - 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.F4A0gRYe/pbuilderrc_gkbI --distribution trixie --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.F4A0gRYe/b2 --logfile b2/build.log ruby-coercible_1.0.0-2.1.dsc' + SUDO_GID=109 + 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 codethink03-arm64 6.1.0-28-cloud-arm64 #1 SMP Debian 6.1.119-1 (2024-11-22) aarch64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-28-cloud-arm64 #1 SMP Debian 6.1.119-1 (2024-11-22) aarch64 GNU/Linux I: ls -l /bin lrwxrwxrwx 1 root root 7 Nov 22 2024 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/3325860/tmp/hooks/D02_print_environment finished +I: user script /srv/workspace/pbuilder/211223/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -726,8 +758,8 @@ Setting up tzdata (2024b-4) ... Current default time zone: 'Etc/UTC' -Local time is now: Sat Jan 24 17:17:07 UTC 2026. -Universal Time is now: Sat Jan 24 17:17:07 UTC 2026. +Local time is now: Sat Jan 24 17:17:53 UTC 2026. +Universal Time is now: Sat Jan 24 17:17:53 UTC 2026. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up autotools-dev (20220109.1) ... @@ -856,7 +888,11 @@ fakeroot is already the newest version (1.36-1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. I: Building the package -I: Running cd /build/reproducible-path/ruby-coercible-1.0.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-coercible_1.0.0-2.1_source.changes +I: user script /srv/workspace/pbuilder/211223/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for trixie +I: user script /srv/workspace/pbuilder/211223/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/ruby-coercible-1.0.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-coercible_1.0.0-2.1_source.changes dpkg-buildpackage: info: source package ruby-coercible dpkg-buildpackage: info: source version 1.0.0-2.1 dpkg-buildpackage: info: source distribution unstable @@ -948,15 +984,111 @@ All examples were filtered out; ignoring {:focus=>true} -Randomized with seed 17467 +Randomized with seed 46884 -Coercible::Coercer::TimeCoercions.to_date - when the value responds to #to_date - is expected to eql # - is expected to be an instance of Date - when the value does not respond to #to_date - is expected to be an instance of Date - is expected to eql # +Coercible::Coercer::Hash.to_datetime + when time segments are strings + is expected to eql # + is expected to be an instance of DateTime + when time segments are integers + is expected to eql # + is expected to be an instance of DateTime + when time segments are missing + is expected to be an instance of DateTime + uses the Time now to populate the segments + +Coercible::Coercer::Object.to_integer + when the value responds to #to_int + is expected to equal # + when the value does not respond to #to_int + is expected to raise Coercible::UnsupportedCoercion + +Coercible::Coercer#[] + with a known type + is expected to be an instance of Coercible::Coercer::String + with an unknown type + is expected to be an instance of Coercible::Coercer::Object + +Coercible::Coercer::TimeCoercions.to_datetime + when the value does not respond to #to_datetime + is expected to eql # + is expected to be an instance of DateTime + when the value responds to #to_datetime + is expected to eql # + is expected to be an instance of DateTime + +Coercible::Coercer::String.to_decimal + with "-1" + is expected to be an instance of BigDecimal + is expected to eql -0.1e1 + with "1.0E-1" + is expected to be an instance of BigDecimal + is expected to eql 0.1e0 + with ".1e-1" + is expected to be an instance of BigDecimal + is expected to eql 0.1e-1 + with "1.0" + is expected to be an instance of BigDecimal + is expected to eql 0.1e1 + with "+1.0" + is expected to be an instance of BigDecimal + is expected to eql 0.1e1 + with "+1.0E-1" + is expected to eql 0.1e0 + is expected to be an instance of BigDecimal + with "+1" + is expected to be an instance of BigDecimal + is expected to eql 0.1e1 + with ".1" + is expected to be an instance of BigDecimal + is expected to eql 0.1e0 + with "-1.0E+1" + is expected to eql -0.1e2 + is expected to be an instance of BigDecimal + with "-1.0e+1" + is expected to be an instance of BigDecimal + is expected to eql -0.1e2 + with "-1.0" + is expected to be an instance of BigDecimal + is expected to eql -0.1e1 + with "1.0E+1" + is expected to be an instance of BigDecimal + is expected to eql 0.1e2 + with ".1E+1" + is expected to be an instance of BigDecimal + is expected to eql 0.1e1 + with "+1.0e+1" + is expected to be an instance of BigDecimal + is expected to eql 0.1e2 + with "1.0e+1" + is expected to eql 0.1e2 + is expected to be an instance of BigDecimal + with ".1e+1" + is expected to be an instance of BigDecimal + is expected to eql 0.1e1 + with "-1.0e-1" + is expected to eql -0.1e0 + is expected to be an instance of BigDecimal + with an invalid decimal string + is expected to raise Coercible::UnsupportedCoercion + with "+1.0e-1" + is expected to be an instance of BigDecimal + is expected to eql 0.1e0 + with "-1.0E-1" + is expected to eql -0.1e0 + is expected to be an instance of BigDecimal + with "+1.0E+1" + is expected to eql 0.1e2 + is expected to be an instance of BigDecimal + with ".1E-1" + is expected to eql 0.1e-1 + is expected to be an instance of BigDecimal + with "1.0e-1" + is expected to eql 0.1e0 + is expected to be an instance of BigDecimal + with "1" + is expected to eql 0.1e1 + is expected to be an instance of BigDecimal Coercible::Coercer::Float#coerced? behaves like Coercible::Coercer#coerced? @@ -965,334 +1097,351 @@ with a primitive value is expected to equal true -Coercible::Coercer::Configurable.config_name - is expected to equal :test - -Coercible::Coercer::Date#coerced? +Coercible::Coercer::Time#coerced? behaves like Coercible::Coercer#coerced? with a primitive value is expected to equal true with a non-primitive value is expected to equal false -Coercible::Coercer::DateTime.to_datetime - is expected to equal # +Coercible::Coercer::Integer.to_boolean + when the fixnum is not 1 or 0 + is expected to raise Coercible::UnsupportedCoercion + when the fixnum is 1 + is expected to equal true + when the fixnum is 0 + is expected to equal false -Coercible::Coercer::Object.to_string - when the value does not respond to #to_str +Coercible::Coercer::DateTime.to_string + is expected to be an instance of String + is expected to eql "2011-01-01T00:00:00+00:00" + +Coercible::Coercer::Decimal.to_float + is expected to eql 1.0 + is expected to be an instance of Float + +Coercible::Coercer::Object.to_hash + when the value does not respond to #to_hash is expected to raise Coercible::UnsupportedCoercion - when the value responds to #to_str + when the value responds to #to_hash is expected to equal # -Coercible::Coercer::Date.to_date - is expected to equal # +Coercible::Coercer::Integer.to_float + is expected to eql 1.0 + is expected to be an instance of Float + +Coercible::Coercer::Array#coerced? + behaves like Coercible::Coercer#coerced? + with a non-primitive value + is expected to equal false + with a primitive value + is expected to equal true + +Coercible::Coercer::Numeric.to_float + is expected to eql 1.0 + +Coercible::Coercer::Integer#coerced? + behaves like Coercible::Coercer#coerced? + with a primitive value + is expected to equal true + with a non-primitive value + is expected to equal false Coercible::Coercer::String behaves like Configurable - .config_keys - is expected not to be empty - is expected to be an instance of Array - .config - responds to configuration keys - is expected to be an instance of Coercible::Configuration .config_name is expected to be an instance of Symbol + .config + is expected to be an instance of Coercible::Configuration + responds to configuration keys + .config_keys + is expected to be an instance of Array + is expected not to be empty .config_name is expected to equal :string -Coercible::Coercer::Numeric.to_string - is expected to eql "1/1" +Coercible::Coercer::Float.to_float + is expected to equal 1.0 -Coercible::Coercer::Time.to_time - is expected to equal 0, 0, 0, 1, 1, 2012, 0, 1, false, and "UTC" +Coercible::Coercer::TrueClass#coerced? + behaves like Coercible::Coercer#coerced? + with a non-primitive value + is expected to equal false + with a primitive value + is expected to equal true -Coercible::Coercer::Symbol.to_string - is expected to be an instance of String - is expected to eql "piotr" +Coercible::Coercer::Decimal.to_integer + is expected to be a kind of Integer + is expected to eql 1 -Coercible::Coercer::String.to_constant - with a non-namespaced name - is expected to equal String - with a name outside of the namespace - is expected to raise NameError - when the name is unknown - is expected to raise NameError - with a namespaced qualified name - is expected to equal Coercible::Coercer::String - when the name is invalid - is expected to raise NameError - with a namespaced name - is expected to equal Coercible::Coercer::String - with a non-namespaced qualified name - is expected to equal String +Coercible::Coercer::DateTime.to_time + when DateTime supports #to_time + is expected to equal 0, 0, 0, 1, 1, 2011, 6, 1, false, and "UTC" + when DateTime does not support #to_time + is expected to eql 0, 0, 0, 1, 1, 2011, 6, 1, false, and "UTC" + is expected to be an instance of Time -Coercible::Coercer::Numeric.to_float - is expected to eql 1.0 +Coercible::Coercer::Float.to_decimal + is expected to eql 0.1e1 + is expected to be an instance of BigDecimal -Coercible::Coercer::Object#coerced? - is expected to equal true +Coercible::Coercer::TimeCoercions.to_time + when the value responds to #to_time + is expected to eql 0, 0, 0, 1, 1, 2011, 6, 1, false, and "UTC" + is expected to be an instance of Time + when the value does not respond to #to_time + is expected to eql 0, 0, 0, 1, 1, 2011, 6, 1, false, and "UTC" + is expected to be an instance of Time -Coercible::Coercer::String.to_float - with "-1.0e+1" - is expected to eql -10.0 - is expected to be an instance of Float - with "-1.0E-1" - is expected to be an instance of Float - is expected to eql -0.1 - with "+1e-1" - is expected to eql 0.1 - is expected to be an instance of Float - with "+1" - is expected to eql 1.0 - is expected to be an instance of Float - with "1.0" - is expected to eql 1.0 - is expected to be an instance of Float - with "+1.0E-1" - is expected to be an instance of Float - is expected to eql 0.1 - with "-1.0" - is expected to eql -1.0 - is expected to be an instance of Float - with ".1e-1" - is expected to eql 0.01 - is expected to be an instance of Float - with ".1E-1" - is expected to eql 0.01 - is expected to be an instance of Float - with "-1.0e-1" - is expected to eql -0.1 - is expected to be an instance of Float - with "1E+1" - is expected to be an instance of Float - is expected to eql 10.0 - with "1.0E+1" - is expected to be an instance of Float - is expected to eql 10.0 - string starts with e - is expected to raise Coercible::UnsupportedCoercion - with ".1E+1" - is expected to be an instance of Float - is expected to eql 1.0 - with "1e1" - is expected to eql 10.0 - is expected to be an instance of Float - with ".1e+1" - is expected to eql 1.0 - is expected to be an instance of Float - with "-1.0E+1" - is expected to be an instance of Float - is expected to eql -10.0 - with "-1e-1" - is expected to be an instance of Float - is expected to eql -0.1 - with "-1" - is expected to eql -1.0 - is expected to be an instance of Float - with "1" - is expected to eql 1.0 - is expected to be an instance of Float - with "1.0e+1" - is expected to eql 10.0 - is expected to be an instance of Float - with "1.0e-1" - is expected to eql 0.1 - is expected to be an instance of Float - with ".1" - is expected to be an instance of Float - is expected to eql 0.1 - with "+1.0E+1" - is expected to eql 10.0 - is expected to be an instance of Float - with an invalid float string - is expected to raise Coercible::UnsupportedCoercion - with "-1E1" - is expected to be an instance of Float - is expected to eql -10.0 - with "+1.0e-1" - is expected to be an instance of Float - is expected to eql 0.1 - with "+1.0e+1" - is expected to eql 10.0 - is expected to be an instance of Float - with "+1.0" - is expected to be an instance of Float - is expected to eql 1.0 - with "1.0E-1" - is expected to eql 0.1 - is expected to be an instance of Float +Coercible::Coercer::DateTime#coerced? + behaves like Coercible::Coercer#coerced? + with a non-primitive value + is expected to equal false + with a primitive value + is expected to equal true -Coercible::Coercer::Integer#to_datetime - is expected to eql "2013-02-16 17:44:32.000" +Coercible::Coercer::Float#to_float + is expected to eql "2013-02-16 17:44:32.120" -Coercible::Coercer::Array#coerced? +Coercible::Coercer::Integer#datetime_format + with Rubinius + is expected to == "%Q" + with other Ruby VMs + is expected to == "%s" + +Coercible::Coercer::Time.to_integer + is expected to eql 1769275092 + +Coercible::Coercer::Date#coerced? behaves like Coercible::Coercer#coerced? with a non-primitive value is expected to equal false with a primitive value is expected to equal true +Coercible::Coercer::Float.to_string + is expected to be an instance of String + is expected to eql "1.0" + +Configuring coercers +WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Actual error raised was #. Instead consider providing a specific error class or message. This message can be suppressed by setting: `RSpec::Expectations.configuration.on_potential_false_positives = :nothing`. Called from /build/reproducible-path/ruby-coercible-1.0.0/spec/integration/configuring_coercers_spec.rb:12:in `block (2 levels) in '. + allows to configure coercers + +Coercible::Coercer::Object.to_array + when the value does not respond to #to_ary or #to_a + is expected to be an instance of Array + is expected to == [#] + when the value responds to #to_a but not #to_ary + is expected to equal # + when the value responds to #to_ary + does not call #to_a if #to_ary is available + is expected to equal # + when the value returns nil from #to_ary + calls #to_a as a fallback + wraps the value in an Array if #to_a is not available + +Coercible::Coercer::Date.to_datetime + when Date does not support #to_datetime + is expected to be an instance of DateTime + is expected to eql # + when Date supports #to_datetime + is expected to equal # + Coercible::Coercer::Decimal.to_decimal is expected to equal 0.1e1 -Coercible::Coercer::Time.to_integer - is expected to eql 1769275040 +Coercible::Coercer::DateTime.to_datetime + is expected to equal # + +Coercible::Coercer::FalseClass.to_string + is expected to be an instance of String + is expected to eql "false" + +Coercible::Coercer::Symbol.to_string + is expected to be an instance of String + is expected to eql "piotr" Coercible::Coercer::String.to_integer - when integer string is big - is expected to == 334490140000101135 - string starts with e - is expected to raise Coercible::UnsupportedCoercion - with "1.0e+1" - is expected to be a kind of Integer - is expected to eql 10 - with ".1E+1" - is expected to eql 1 - is expected to be a kind of Integer with ".1E-1" + is expected to be a kind of Integer is expected to eql 0 + with "-1.0E-1" is expected to be a kind of Integer + is expected to eql 0 with "2.2250738585072014e-308" is expected to eql 0 is expected to be a kind of Integer + with "+1.0E+1" + is expected to eql 10 + is expected to be a kind of Integer with "1.7976931348623158e+307" + is expected to be a kind of Integer is expected to eql 17976931348623157580412819756850388593900235011794141176754562789180111453639664485361928830517704263...0189893797509826303293149283469713429932049693599732425511693654044437030940398714664210204414967808 + with "-1" + is expected to eql -1 is expected to be a kind of Integer with "1.0" is expected to eql 1 is expected to be a kind of Integer + with ".1e+1" + is expected to be a kind of Integer + is expected to eql 1 + with "+1.0e-1" + is expected to be a kind of Integer + is expected to eql 0 + with "1.0e-1" + is expected to be a kind of Integer + is expected to eql 0 with "+1.0" is expected to eql 1 is expected to be a kind of Integer - with "1e1" - is expected to eql 10 + with "1" + is expected to eql 1 is expected to be a kind of Integer with "+1.0e+1" - is expected to be a kind of Integer is expected to eql 10 - with ".1e-1" - is expected to eql 0 is expected to be a kind of Integer - with "1.0E+1" + with "1E+1" + is expected to be a kind of Integer is expected to eql 10 + with "+1.0E-1" is expected to be a kind of Integer - with "-1.0E-1" is expected to eql 0 - is expected to be a kind of Integer with ".1" is expected to eql 0 is expected to be a kind of Integer - with "-1.0e-1" + when integer string is big + is expected to == 334490140000101135 + with "+1" + is expected to eql 1 is expected to be a kind of Integer - is expected to eql 0 - with "+1.0E+1" - is expected to eql 10 + with "1e1" is expected to be a kind of Integer - with "-1" + is expected to eql 10 + with "-1.0" is expected to be a kind of Integer is expected to eql -1 - with "+1e-1" + with "-1.0E+1" + is expected to eql -10 is expected to be a kind of Integer - is expected to eql 0 + with an invalid integer string + is expected to raise Coercible::UnsupportedCoercion with "-1E1" is expected to be a kind of Integer is expected to eql -10 - with "-1.0E+1" - is expected to be a kind of Integer - is expected to eql -10 - with "+1.0e-1" + with "1.0E-1" is expected to eql 0 is expected to be a kind of Integer - with "+1" - is expected to eql 1 - is expected to be a kind of Integer - with "-1.0" + with "+1e-1" is expected to be a kind of Integer - is expected to eql -1 - with "1" + is expected to eql 0 + with "1.0E+1" + is expected to eql 10 is expected to be a kind of Integer - is expected to eql 1 - with "-1e-1" + with "-1.0e+1" is expected to be a kind of Integer + is expected to eql -10 + with "-1.0e-1" is expected to eql 0 - with "1.0E-1" is expected to be a kind of Integer + with ".1e-1" is expected to eql 0 - with ".1e+1" is expected to be a kind of Integer - is expected to eql 1 - with "1E+1" + string starts with e + is expected to raise Coercible::UnsupportedCoercion + with "1.0e+1" is expected to be a kind of Integer is expected to eql 10 - with "1.0e-1" + with "-1e-1" is expected to eql 0 is expected to be a kind of Integer - with "-1.0e+1" - is expected to be a kind of Integer - is expected to eql -10 - with an invalid integer string - is expected to raise Coercible::UnsupportedCoercion - with "+1.0E-1" + with ".1E+1" is expected to be a kind of Integer - is expected to eql 0 + is expected to eql 1 -Coercible::Coercer::DateTime.to_time - when DateTime supports #to_time - is expected to equal 0, 0, 0, 1, 1, 2011, 6, 1, false, and "UTC" - when DateTime does not support #to_time - is expected to be an instance of Time - is expected to eql 0, 0, 0, 1, 1, 2011, 6, 1, false, and "UTC" +Coercible::Coercer::String.to_date + with an invalid date string + is expected to raise Coercible::UnsupportedCoercion + with a valid date string + is expected to be an instance of Date + month + is expected to == 7 + day + is expected to == 22 + year + is expected to == 2011 -Coercible::Coercer#[] - with a known type - is expected to be an instance of Coercible::Coercer::String - with an unknown type - is expected to be an instance of Coercible::Coercer::Object +Coercible::Coercer::Integer#to_datetime + is expected to eql "2013-02-16 17:44:32.000" -Coercible::Coercer::DateTime.to_string - is expected to eql "2011-01-01T00:00:00+00:00" - is expected to be an instance of String +Coercible::Coercer::Time.to_time + is expected to equal 0, 0, 0, 1, 1, 2012, 0, 1, false, and "UTC" -Coercible::Coercer::Date.to_datetime - when Date does not support #to_datetime - is expected to be an instance of DateTime - is expected to eql # - when Date supports #to_datetime - is expected to equal # +Coercible::Coercer::String.to_constant + with a name outside of the namespace + is expected to raise NameError + with a non-namespaced qualified name + is expected to equal String + when the name is unknown + is expected to raise NameError + when the name is invalid + is expected to raise NameError + with a namespaced name + is expected to equal Coercible::Coercer::String + with a non-namespaced name + is expected to equal String + with a namespaced qualified name + is expected to equal Coercible::Coercer::String -Coercible::Coercer::Integer.to_decimal - is expected to be an instance of BigDecimal - is expected to eql 0.1e1 +Coercible::Coercer::Hash.to_date + when time segments are missing + uses the Time now to populate the segments + is expected to be an instance of Date + when time segments are strings + is expected to be an instance of Date + is expected to eql # + when time segments are integers + is expected to be an instance of Date + is expected to eql # -Coercible::Coercer::Integer.to_boolean - when the fixnum is 1 - is expected to equal true - when the fixnum is not 1 or 0 - is expected to raise Coercible::UnsupportedCoercion - when the fixnum is 0 - is expected to equal false +Coercible::Coercer::Object#coerced? + is expected to equal true -Coercible::Coercer::FalseClass#coerced? +Coercible::Coercer::Hash#coerced? behaves like Coercible::Coercer#coerced? with a non-primitive value is expected to equal false with a primitive value is expected to equal true -Coercible::Coercer::FalseClass.to_string - is expected to eql "false" +Coercible::Coercer::Date.to_date + is expected to equal # + +Coercible::Coercer::Date.to_time + is expected to be an instance of Time + is expected to eql 0, 0, 0, 1, 1, 2011, 6, 1, false, and "UTC" + +Coercible::Coercer::Integer.to_string is expected to be an instance of String + is expected to eql "1" -Coercible::Coercer::String.config - boolean_map - is expected to equal {"0"=>false, "1"=>true, "f"=>false, "false"=>false, "n"=>false, "no"=>false, "off"=>false, "on"=>true, "t"=>true, "true"=>true, "y"=>true, "yes"=>true} +Coercible::Coercer::DateTime.to_date + when DateTime does not support #to_date + is expected to be an instance of Date + is expected to eql # + when DateTime supports #to_date + is expected to equal # -Coercible::Coercer::Integer.to_float - is expected to eql 1.0 - is expected to be an instance of Float +Coercible::Coercer::TimeCoercions.to_string + is expected to eql "2011-01-01" + is expected to be an instance of String -Coercible::Coercer::Configurable.config - is expected to equal # +Coercible::Coercer::Numeric.to_string + is expected to eql "1/1" + +Coercible::Coercer::Decimal.to_string + is expected to eql "1.0" + is expected to be an instance of String Coercible::Coercer::String#coerced? behaves like Coercible::Coercer#coerced? @@ -1301,468 +1450,355 @@ with a non-primitive value is expected to equal false -Configuring coercers -WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Actual error raised was #. Instead consider providing a specific error class or message. This message can be suppressed by setting: `RSpec::Expectations.configuration.on_potential_false_positives = :nothing`. Called from /build/reproducible-path/ruby-coercible-1.0.0/spec/integration/configuring_coercers_spec.rb:12:in `block (2 levels) in '. - allows to configure coercers +Coercible::Coercer::Numeric.to_integer + is expected to eql 1 -Coercible::Coercer::Float#to_float - is expected to eql "2013-02-16 17:44:32.120" +Coercible::Coercer::TimeCoercions.to_date + when the value responds to #to_date + is expected to be an instance of Date + is expected to eql # + when the value does not respond to #to_date + is expected to eql # + is expected to be an instance of Date -Coercible::Coercer::Object.to_array - when the value does not respond to #to_ary or #to_a - is expected to == [#] - is expected to be an instance of Array - when the value responds to #to_ary - does not call #to_a if #to_ary is available - is expected to equal # - when the value responds to #to_a but not #to_ary - is expected to equal # - when the value returns nil from #to_ary - calls #to_a as a fallback - wraps the value in an Array if #to_a is not available +Coercible::Coercer::Numeric.to_decimal + with an object responding to #to_d + is expected to eql 0.1e1 + with an object not responding to #to_d + is expected to eql 0.1e1 -Coercible::Coercer::TimeCoercions.to_time - when the value does not respond to #to_time - is expected to be an instance of Time - is expected to eql 0, 0, 0, 1, 1, 2011, 6, 1, false, and "UTC" - when the value responds to #to_time - is expected to eql 0, 0, 0, 1, 1, 2011, 6, 1, false, and "UTC" - is expected to be an instance of Time +Coercible::Coercer::Object#method_missing + when method matches coercion method regexp + is expected to equal # + when method doesn't match coercion method regexp + is expected to raise NoMethodError -Coercible::Coercer::Float.to_decimal - is expected to be an instance of BigDecimal +Coercible::Coercer::String.config + boolean_map + is expected to equal {"0"=>false, "1"=>true, "f"=>false, "false"=>false, "n"=>false, "no"=>false, "off"=>false, "on"=>true, "t"=>true, "true"=>true, "y"=>true, "yes"=>true} + +Coercible::Coercer::Date.to_string + is expected to be an instance of String + is expected to eql "2011-01-01" + +Coercible::Coercer::Integer.to_decimal is expected to eql 0.1e1 + is expected to be an instance of BigDecimal + +Coercible::Coercer::String.to_boolean + with "1" + is expected to equal true + with "N" + is expected to equal false + with "f" + is expected to equal false + with an invalid boolean string +WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Actual error raised was #. Instead consider providing a specific error class or message. This message can be suppressed by setting: `RSpec::Expectations.configuration.on_potential_false_positives = :nothing`. Called from /build/reproducible-path/ruby-coercible-1.0.0/spec/unit/coercible/coercer/string/to_boolean_spec.rb:28:in `block (3 levels) in '. + is expected to raise Exception + with "false" + is expected to equal false + with "on" + is expected to equal true + with "F" + is expected to equal false + with "FALSE" + is expected to equal false + with "y" + is expected to equal true + with "T" + is expected to equal true + with "NO" + is expected to equal false + with "OFF" + is expected to equal false + with "n" + is expected to equal false + with "ON" + is expected to equal true + with "off" + is expected to equal false + with "YES" + is expected to equal true + with "TRUE" + is expected to equal true + with "no" + is expected to equal false + with "t" + is expected to equal true + with "yes" + is expected to equal true + with "Y" + is expected to equal true + with "0" + is expected to equal false + with "true" + is expected to equal true Coercible::Coercer::Integer behaves like Configurable .config_name - is expected to equal :integer + is expected to be an instance of Symbol .config - is expected to be an instance of Coercible::Configuration responds to configuration keys - .config_name - is expected to be an instance of Symbol + is expected to be an instance of Coercible::Configuration .config_keys - is expected not to be empty is expected to be an instance of Array + is expected not to be empty + .config_name + is expected to equal :integer -Coercible::Coercer::Decimal.to_string - is expected to eql "1.0" - is expected to be an instance of String +Coercible::Coercer::String.to_float + with "-1.0e+1" + is expected to be an instance of Float + is expected to eql -10.0 + with "+1.0E-1" + is expected to be an instance of Float + is expected to eql 0.1 + with ".1e-1" + is expected to be an instance of Float + is expected to eql 0.01 + with "-1.0" + is expected to be an instance of Float + is expected to eql -1.0 + with "1.0E+1" + is expected to be an instance of Float + is expected to eql 10.0 + with ".1e+1" + is expected to be an instance of Float + is expected to eql 1.0 + with ".1E-1" + is expected to eql 0.01 + is expected to be an instance of Float + with an invalid float string + is expected to raise Coercible::UnsupportedCoercion + with "-1.0E-1" + is expected to be an instance of Float + is expected to eql -0.1 + with "+1.0e+1" + is expected to be an instance of Float + is expected to eql 10.0 + with ".1E+1" + is expected to eql 1.0 + is expected to be an instance of Float + with ".1" + is expected to eql 0.1 + is expected to be an instance of Float + with "+1.0E+1" + is expected to be an instance of Float + is expected to eql 10.0 + string starts with e + is expected to raise Coercible::UnsupportedCoercion + with "-1.0E+1" + is expected to eql -10.0 + is expected to be an instance of Float + with "-1E1" + is expected to eql -10.0 + is expected to be an instance of Float + with "1" + is expected to eql 1.0 + is expected to be an instance of Float + with "1.0E-1" + is expected to be an instance of Float + is expected to eql 0.1 + with "+1" + is expected to eql 1.0 + is expected to be an instance of Float + with "1e1" + is expected to be an instance of Float + is expected to eql 10.0 + with "-1.0e-1" + is expected to be an instance of Float + is expected to eql -0.1 + with "1.0" + is expected to eql 1.0 + is expected to be an instance of Float + with "-1" + is expected to eql -1.0 + is expected to be an instance of Float + with "+1e-1" + is expected to eql 0.1 + is expected to be an instance of Float + with "1E+1" + is expected to be an instance of Float + is expected to eql 10.0 + with "+1.0e-1" + is expected to eql 0.1 + is expected to be an instance of Float + with "1.0e+1" + is expected to eql 10.0 + is expected to be an instance of Float + with "-1e-1" + is expected to be an instance of Float + is expected to eql -0.1 + with "+1.0" + is expected to be an instance of Float + is expected to eql 1.0 + with "1.0e-1" + is expected to be an instance of Float + is expected to eql 0.1 -Coercible::Coercer::Integer#datetime_proc - with Rubinius - is expected to be an instance of Proc - with other Ruby VMs - is expected to be an instance of Proc +Coercible::Coercer::Configurable.config_name + is expected to equal :test -Coercible::Coercer::Integer#coerced? +Coercible::Coercer::Float.to_integer + is expected to eql 1 + is expected to be a kind of Integer + +Coercible::Coercer::Integer.to_integer + is expected to equal 1 + +Coercible::Coercer::Symbol#coerced? behaves like Coercible::Coercer#coerced? - with a primitive value - is expected to equal true with a non-primitive value is expected to equal false + with a primitive value + is expected to equal true -Coercible::Coercer::String.to_date - with an invalid date string - is expected to raise Coercible::UnsupportedCoercion +Coercible::Coercer::String.to_datetime with a valid date string - is expected to be an instance of Date - year - is expected to == 2011 - day - is expected to == 22 - month - is expected to == 7 - -Coercible::Coercer::String.to_time - with a valid time string - including time part - it should behave like a correct time object - is expected to be an instance of Time + not including time part + it should behave like a correct datetime object + is expected to be an instance of DateTime min - is expected to == 44 + is expected to == 0 hour - is expected to == 13 - day - is expected to == 22 + is expected to == 0 month is expected to == 7 + sec + is expected to == 0 + day + is expected to == 22 year is expected to == 2011 - sec - is expected to == 50 - not including time part - it should behave like a correct time object - is expected to be an instance of Time + including time part + it should behave like a correct datetime object + is expected to be an instance of DateTime min - is expected to == 0 + is expected to == 44 year is expected to == 2011 + hour + is expected to == 13 month is expected to == 7 + sec + is expected to == 50 day is expected to == 22 - hour - is expected to == 0 - sec - is expected to == 0 with an invalid date time string is expected to raise Coercible::UnsupportedCoercion -Coercible::Coercer::Time#coerced? - behaves like Coercible::Coercer#coerced? - with a primitive value - is expected to equal true - with a non-primitive value - is expected to equal false - -Coercible::Coercer::Symbol#coerced? - behaves like Coercible::Coercer#coerced? - with a primitive value - is expected to equal true - with a non-primitive value - is expected to equal false - -Coercible::Coercer::TimeCoercions.to_string - is expected to be an instance of String - is expected to eql "2011-01-01" - -Coercible::Coercer::Hash.to_time - when time segments are strings - is expected to be an instance of Time - is expected to eql 1, 1, 1, 1, 1, 2011, 6, 1, false, and "UTC" - when time segments are missing - uses the Time now to populate the segments - is expected to be an instance of Time - when time segments are integers - is expected to eql 1, 1, 1, 1, 1, 2011, 6, 1, false, and "UTC" - is expected to be an instance of Time +Coercible::Coercer::Array#to_set + is expected to be an instance of Set + is expected to eql "a", 1, "b", and 2 -Coercible::Coercer::Integer.to_integer - is expected to equal 1 +Coercible::Coercer::String.to_symbol + is expected to equal :value Coercible::Coercer.new is expected to be an instance of Coercible::Coercer config - is expected to be an instance of Coercible::Configuration + is expected to respond to #string= config is expected to respond to #string config - is expected to respond to #string= - -Coercible::Coercer::DateTime.to_date - when DateTime does not support #to_date - is expected to eql # - is expected to be an instance of Date - when DateTime supports #to_date - is expected to equal # - -Coercible::Coercer::Hash#coerced? - behaves like Coercible::Coercer#coerced? - with a non-primitive value - is expected to equal false - with a primitive value - is expected to equal true - -Coercible::Coercer::Array#to_set - is expected to be an instance of Set - is expected to eql "a", 1, "b", and 2 - -Coercible::Coercer::Object.to_hash - when the value responds to #to_hash - is expected to equal # - when the value does not respond to #to_hash - is expected to raise Coercible::UnsupportedCoercion - -Coercible::Coercer::Float.to_string - is expected to eql "1.0" - is expected to be an instance of String - -Coercible::Coercer::Numeric.to_integer - is expected to eql 1 - -Coercible::Coercer::TrueClass#coerced? - behaves like Coercible::Coercer#coerced? - with a primitive value - is expected to equal true - with a non-primitive value - is expected to equal false - -Coercible::Coercer::Decimal.to_integer - is expected to eql 1 - is expected to be a kind of Integer - -Coercible::Coercer::String.to_symbol - is expected to equal :value - -Coercible::Coercer::Decimal#coerced? - behaves like Coercible::Coercer#coerced? - with a non-primitive value - is expected to equal false - with a primitive value - is expected to equal true - -Coercible::Coercer::Numeric.to_decimal - with an object responding to #to_d - is expected to eql 0.1e1 - with an object not responding to #to_d - is expected to eql 0.1e1 + is expected to be an instance of Coercible::Configuration -Coercible::Coercer::String.to_datetime - with an invalid date time string - is expected to raise Coercible::UnsupportedCoercion - with a valid date string - including time part - it should behave like a correct datetime object - is expected to be an instance of DateTime +Coercible::Coercer::String.to_time + with a valid time string + not including time part + it should behave like a correct time object + is expected to be an instance of Time day is expected to == 22 - year - is expected to == 2011 - hour - is expected to == 13 - min - is expected to == 44 sec - is expected to == 50 + is expected to == 0 month is expected to == 7 - not including time part - it should behave like a correct datetime object - is expected to be an instance of DateTime year is expected to == 2011 - day - is expected to == 22 min is expected to == 0 - month - is expected to == 7 hour is expected to == 0 + including time part + it should behave like a correct time object + is expected to be an instance of Time sec - is expected to == 0 - -Coercible::Coercer::Hash.to_datetime - when time segments are strings - is expected to be an instance of DateTime - is expected to eql # - when time segments are missing - is expected to be an instance of DateTime - uses the Time now to populate the segments - when time segments are integers - is expected to eql # - is expected to be an instance of DateTime + is expected to == 50 + hour + is expected to == 13 + day + is expected to == 22 + month + is expected to == 7 + min + is expected to == 44 + year + is expected to == 2011 + with an invalid date time string + is expected to raise Coercible::UnsupportedCoercion -Coercible::Coercer::Integer#datetime_format +Coercible::Coercer::Integer#datetime_proc with other Ruby VMs - is expected to == "%s" + is expected to be an instance of Proc with Rubinius - is expected to == "%Q" - -Coercible::Coercer::Date.to_time - is expected to eql 0, 0, 0, 1, 1, 2011, 6, 1, false, and "UTC" - is expected to be an instance of Time - -Coercible::Coercer::String.to_decimal - with ".1" - is expected to eql 0.1e0 - is expected to be an instance of BigDecimal - with an invalid decimal string - is expected to raise Coercible::UnsupportedCoercion - with "-1.0e+1" - is expected to eql -0.1e2 - is expected to be an instance of BigDecimal - with "-1.0E+1" - is expected to eql -0.1e2 - is expected to be an instance of BigDecimal - with ".1E-1" - is expected to eql 0.1e-1 - is expected to be an instance of BigDecimal - with ".1e-1" - is expected to be an instance of BigDecimal - is expected to eql 0.1e-1 - with "+1.0E+1" - is expected to eql 0.1e2 - is expected to be an instance of BigDecimal - with "-1.0E-1" - is expected to eql -0.1e0 - is expected to be an instance of BigDecimal - with ".1E+1" - is expected to be an instance of BigDecimal - is expected to eql 0.1e1 - with ".1e+1" - is expected to eql 0.1e1 - is expected to be an instance of BigDecimal - with "1.0e-1" - is expected to eql 0.1e0 - is expected to be an instance of BigDecimal - with "+1.0e-1" - is expected to eql 0.1e0 - is expected to be an instance of BigDecimal - with "1.0" - is expected to eql 0.1e1 - is expected to be an instance of BigDecimal - with "1" - is expected to be an instance of BigDecimal - is expected to eql 0.1e1 - with "1.0E+1" - is expected to eql 0.1e2 - is expected to be an instance of BigDecimal - with "+1" - is expected to be an instance of BigDecimal - is expected to eql 0.1e1 - with "+1.0e+1" - is expected to be an instance of BigDecimal - is expected to eql 0.1e2 - with "-1" - is expected to be an instance of BigDecimal - is expected to eql -0.1e1 - with "-1.0" - is expected to be an instance of BigDecimal - is expected to eql -0.1e1 - with "-1.0e-1" - is expected to eql -0.1e0 - is expected to be an instance of BigDecimal - with "1.0e+1" - is expected to be an instance of BigDecimal - is expected to eql 0.1e2 - with "1.0E-1" - is expected to eql 0.1e0 - is expected to be an instance of BigDecimal - with "+1.0" - is expected to eql 0.1e1 - is expected to be an instance of BigDecimal - with "+1.0E-1" - is expected to be an instance of BigDecimal - is expected to eql 0.1e0 - -Coercible::Coercer::Object.to_integer - when the value responds to #to_int - is expected to equal # - when the value does not respond to #to_int - is expected to raise Coercible::UnsupportedCoercion + is expected to be an instance of Proc -Coercible::Coercer::Float.to_float - is expected to equal 1.0 +Coercible::Coercer::Object#inspect + is expected to == "#" Coercible::Configuration.build - is expected to be an instance of Coercible::Configuration - is expected to respond to #foo - is expected to respond to #foo= is expected to respond to #bar + is expected to respond to #foo= + is expected to respond to #foo is expected to respond to #bar= + is expected to be an instance of Coercible::Configuration -Coercible::Coercer::Decimal.to_float - is expected to eql 1.0 - is expected to be an instance of Float - -Coercible::Coercer::Date.to_string - is expected to eql "2011-01-01" - is expected to be an instance of String +Coercible::Coercer::Object.to_string + when the value does not respond to #to_str + is expected to raise Coercible::UnsupportedCoercion + when the value responds to #to_str + is expected to equal # -Coercible::Coercer::DateTime#coerced? - behaves like Coercible::Coercer#coerced? - with a non-primitive value - is expected to equal false - with a primitive value - is expected to equal true +Coercible::Coercer::Configurable.config + is expected to equal # -Coercible::Coercer::Hash.to_date +Coercible::Coercer::Hash.to_time when time segments are strings - is expected to eql # - is expected to be an instance of Date + is expected to be an instance of Time + is expected to eql 1, 1, 1, 1, 1, 2011, 6, 1, false, and "UTC" when time segments are integers - is expected to eql # - is expected to be an instance of Date + is expected to be an instance of Time + is expected to eql 1, 1, 1, 1, 1, 2011, 6, 1, false, and "UTC" when time segments are missing uses the Time now to populate the segments - is expected to be an instance of Date - -Coercible::Coercer::Object#inspect - is expected to == "#" - -Coercible::Coercer::Object#method_missing - when method matches coercion method regexp - is expected to equal # - when method doesn't match coercion method regexp - is expected to raise NoMethodError - -Coercible::Coercer::String.to_boolean - with "FALSE" - is expected to equal false - with "NO" - is expected to equal false - with "off" - is expected to equal false - with "ON" - is expected to equal true - with "Y" - is expected to equal true - with "yes" - is expected to equal true - with "y" - is expected to equal true - with "F" - is expected to equal false - with "n" - is expected to equal false - with "false" - is expected to equal false - with an invalid boolean string -WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Actual error raised was #. Instead consider providing a specific error class or message. This message can be suppressed by setting: `RSpec::Expectations.configuration.on_potential_false_positives = :nothing`. Called from /build/reproducible-path/ruby-coercible-1.0.0/spec/unit/coercible/coercer/string/to_boolean_spec.rb:28:in `block (3 levels) in '. - is expected to raise Exception - with "f" - is expected to equal false - with "T" - is expected to equal true - with "N" - is expected to equal false - with "t" - is expected to equal true - with "1" - is expected to equal true - with "TRUE" - is expected to equal true - with "on" - is expected to equal true - with "true" - is expected to equal true - with "no" - is expected to equal false - with "YES" - is expected to equal true - with "0" - is expected to equal false - with "OFF" - is expected to equal false - -Coercible::Coercer::Integer.to_string - is expected to be an instance of String - is expected to eql "1" - -Coercible::Coercer::TimeCoercions.to_datetime - when the value responds to #to_datetime - is expected to eql # - is expected to be an instance of DateTime - when the value does not respond to #to_datetime - is expected to eql # - is expected to be an instance of DateTime + is expected to be an instance of Time Coercible::Coercer::TrueClass.to_string is expected to eql "true" is expected to be an instance of String -Coercible::Coercer::Float.to_integer - is expected to be a kind of Integer - is expected to eql 1 +Coercible::Coercer::FalseClass#coerced? + behaves like Coercible::Coercer#coerced? + with a primitive value + is expected to equal true + with a non-primitive value + is expected to equal false + +Coercible::Coercer::Decimal#coerced? + behaves like Coercible::Coercer#coerced? + with a non-primitive value + is expected to equal false + with a primitive value + is expected to equal true Deprecation Warnings: RSpec::Core::Configuration#treat_symbols_as_metadata_keys_with_true_values= is deprecated, it is now set to true as default and setting it to false has no effect. -Using `should_receive` from rspec-mocks' old `:should` syntax without explicitly enabling the syntax is deprecated. Use the new `:expect` syntax or explicitly enable `:should` instead. Called from /build/reproducible-path/ruby-coercible-1.0.0/spec/unit/coercible/coercer/time_coercions/to_date_spec.rb:16:in `block (3 levels) in '. +Using `stub` from rspec-mocks' old `:should` syntax without explicitly enabling the syntax is deprecated. Use the new `:expect` syntax or explicitly enable `:should` instead. Called from /build/reproducible-path/ruby-coercible-1.0.0/spec/unit/coercible/coercer/hash/to_datetime_spec.rb:13:in `block (3 levels) in '. If you need more of the backtrace for any of these deprecations to @@ -1772,54 +1808,54 @@ 2 deprecation warnings total -Top 10 slowest examples (0.02767 seconds, 10.2% of total time): - Coercible::Coercer::Array#coerced? behaves like Coercible::Coercer#coerced? with a non-primitive value is expected to equal false - 0.00722 seconds ./spec/shared/unit/coerced_predicate.rb:11 - Coercible::Coercer::Decimal#coerced? behaves like Coercible::Coercer#coerced? with a non-primitive value is expected to equal false - 0.00446 seconds ./spec/shared/unit/coerced_predicate.rb:11 - Coercible::Coercer::String.to_integer when integer string is big is expected to == 334490140000101135 - 0.00363 seconds ./spec/unit/coercible/coercer/string/to_integer_spec.rb:59 - Coercible::Coercer::String behaves like Configurable .config responds to configuration keys - 0.00309 seconds ./spec/shared/unit/configurable.rb:20 +Top 10 slowest examples (0.0263 seconds, 11.1% of total time): + Coercible::Coercer::TrueClass#coerced? behaves like Coercible::Coercer#coerced? with a non-primitive value is expected to equal false + 0.00614 seconds ./spec/shared/unit/coerced_predicate.rb:11 + Coercible::Coercer::String.to_boolean with "Y" is expected to equal true + 0.00405 seconds ./spec/unit/coercible/coercer/string/to_boolean_spec.rb:12 + Coercible::Coercer::String.to_datetime with a valid date string including time part it should behave like a correct datetime object sec is expected to == 50 + 0.00352 seconds ./spec/unit/coercible/coercer/string/to_datetime_spec.rb:11 + Coercible::Coercer::Integer#datetime_format with Rubinius is expected to == "%Q" + 0.00328 seconds ./spec/unit/coercible/coercer/integer/datetime_format_spec.rb:15 Coercible::Coercer::String behaves like Configurable .config_keys is expected not to be empty - 0.00195 seconds ./spec/shared/unit/configurable.rb:12 - Coercible::Coercer::TimeCoercions.to_date when the value responds to #to_date is expected to eql # - 0.00176 seconds ./spec/unit/coercible/coercer/time_coercions/to_date_spec.rb:21 - Coercible::Coercer::Object.to_string when the value does not respond to #to_str is expected to raise Coercible::UnsupportedCoercion - 0.00157 seconds ./spec/unit/coercible/coercer/object/to_string_spec.rb:20 - Coercible::Coercer::String.to_constant with a namespaced qualified name is expected to equal Coercible::Coercer::String - 0.00137 seconds ./spec/unit/coercible/coercer/string/to_constant_spec.rb:29 - Coercible::Coercer::String.to_constant with a non-namespaced name is expected to equal String - 0.00136 seconds ./spec/unit/coercible/coercer/string/to_constant_spec.rb:11 - Coercible::Coercer::TimeCoercions.to_date when the value responds to #to_date is expected to be an instance of Date - 0.00124 seconds ./spec/unit/coercible/coercer/time_coercions/to_date_spec.rb:19 + 0.00202 seconds ./spec/shared/unit/configurable.rb:12 + Coercible::Coercer::Object.to_integer when the value does not respond to #to_int is expected to raise Coercible::UnsupportedCoercion + 0.0018 seconds ./spec/unit/coercible/coercer/object/to_integer_spec.rb:20 + Coercible::Coercer::Object.to_integer when the value responds to #to_int is expected to equal # + 0.00153 seconds ./spec/unit/coercible/coercer/object/to_integer_spec.rb:16 + Coercible::Coercer::String behaves like Configurable .config responds to configuration keys + 0.00143 seconds ./spec/shared/unit/configurable.rb:20 + Coercible::Coercer::Hash.to_datetime when time segments are strings is expected to eql # + 0.00141 seconds ./spec/unit/coercible/coercer/hash/to_datetime_spec.rb:36 + Coercible::Coercer::Hash.to_datetime when time segments are strings is expected to be an instance of DateTime + 0.00112 seconds ./spec/unit/coercible/coercer/hash/to_datetime_spec.rb:34 Top 10 slowest example groups: - Coercible::Coercer::Array#coerced? - 0.00425 seconds average (0.00849 seconds / 2 examples) ./spec/unit/coercible/coercer/array/coerced_predicate_spec.rb:3 - Coercible::Coercer::Decimal#coerced? - 0.00271 seconds average (0.00542 seconds / 2 examples) ./spec/unit/coercible/coercer/decimal/coerced_predicate_spec.rb:3 - Coercible::Coercer::Object.to_string - 0.00156 seconds average (0.00313 seconds / 2 examples) ./spec/unit/coercible/coercer/object/to_string_spec.rb:3 - Coercible::Coercer::String.to_constant - 0.00143 seconds average (0.01004 seconds / 7 examples) ./spec/unit/coercible/coercer/string/to_constant_spec.rb:3 - Coercible::Coercer::TimeCoercions.to_date - 0.00135 seconds average (0.0054 seconds / 4 examples) ./spec/unit/coercible/coercer/time_coercions/to_date_spec.rb:3 - Coercible::Coercer::Time.to_time - 0.00134 seconds average (0.00134 seconds / 1 example) ./spec/unit/coercible/coercer/time/to_time_spec.rb:3 + Coercible::Coercer::TrueClass#coerced? + 0.00357 seconds average (0.00713 seconds / 2 examples) ./spec/unit/coercible/coercer/true_class/coerced_predicate_spec.rb:3 + Coercible::Coercer::Integer#datetime_format + 0.00222 seconds average (0.00443 seconds / 2 examples) ./spec/unit/coercible/coercer/integer/datetime_format_spec.rb:3 + Coercible::Coercer::Object.to_integer + 0.00195 seconds average (0.0039 seconds / 2 examples) ./spec/unit/coercible/coercer/object/to_integer_spec.rb:3 + Coercible::Coercer::Configurable.config + 0.00114 seconds average (0.00114 seconds / 1 example) ./spec/unit/coercible/coercer/configurable/config_spec.rb:3 + Coercible::Coercer::Hash.to_datetime + 0.00099 seconds average (0.00593 seconds / 6 examples) ./spec/unit/coercible/coercer/hash/to_datetime_spec.rb:3 + Coercible::Coercer::TimeCoercions.to_time + 0.00089 seconds average (0.00357 seconds / 4 examples) ./spec/unit/coercible/coercer/time_coercions/to_time_spec.rb:3 + Coercible::Coercer::Decimal.to_integer + 0.00086 seconds average (0.00172 seconds / 2 examples) ./spec/unit/coercible/coercer/decimal/to_integer_spec.rb:3 Coercible::Coercer::String - 0.00134 seconds average (0.00803 seconds / 6 examples) ./spec/unit/coercible/coercer/string_spec.rb:3 - Coercible::Coercer::Object.to_array - 0.00133 seconds average (0.00934 seconds / 7 examples) ./spec/unit/coercible/coercer/object/to_array_spec.rb:3 - Coercible::Coercer::Numeric.to_string - 0.0012 seconds average (0.0012 seconds / 1 example) ./spec/unit/coercible/coercer/numeric/to_string_spec.rb:3 - Coercible::Coercer::Symbol.to_string - 0.00106 seconds average (0.00213 seconds / 2 examples) ./spec/unit/coercible/coercer/symbol/to_string_spec.rb:3 + 0.00085 seconds average (0.0051 seconds / 6 examples) ./spec/unit/coercible/coercer/string_spec.rb:3 + Coercible::Coercer::TimeCoercions.to_datetime + 0.00084 seconds average (0.00337 seconds / 4 examples) ./spec/unit/coercible/coercer/time_coercions/to_datetime_spec.rb:3 + Coercible::Coercer::String.to_datetime + 0.00081 seconds average (0.01209 seconds / 15 examples) ./spec/unit/coercible/coercer/string/to_datetime_spec.rb:14 -Finished in 0.27237 seconds (files took 0.30399 seconds to load) +Finished in 0.2363 seconds (files took 0.3277 seconds to load) 396 examples, 0 failures -Randomized with seed 17467 +Randomized with seed 46884 ┌──────────────────────────────────────────────────────────────────────────────┐ @@ -1861,12 +1897,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/211223/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/211223/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/3325860 and its subdirectories -I: Current time: Sat Jan 24 05:17:23 -12 2026 -I: pbuilder-time-stamp: 1769275043 +I: removing directory /srv/workspace/pbuilder/211223 and its subdirectories +I: Current time: Sun Jan 25 07:18:17 +14 2026 +I: pbuilder-time-stamp: 1769275097