Diff of the two buildlogs: -- --- b1/build.log 2021-07-23 11:43:18.068285500 +0000 +++ b2/build.log 2021-07-23 11:44:24.149793084 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Thu Jul 22 23:39:22 -12 2021 -I: pbuilder-time-stamp: 1627040362 +I: Current time: Fri Aug 26 08:06:20 +14 2022 +I: pbuilder-time-stamp: 1661450780 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/buster-reproducible-base.tgz] I: copying local configuration @@ -17,7 +17,7 @@ I: Extracting source gpgv: unknown type of key resource 'trustedkeys.kbx' gpgv: keyblock resource '/root/.gnupg/trustedkeys.kbx': General error -gpgv: Signature made Wed Aug 12 03:08:37 2015 -12 +gpgv: Signature made Thu Aug 13 05:08:37 2015 +14 gpgv: using RSA key 89AF82B739CD217A gpgv: Can't check signature: No public key dpkg-source: warning: failed to verify signature on ./ruby-coercible_1.0.0-2.dsc @@ -30,136 +30,170 @@ dpkg-source: info: applying rspec3.patch I: using fakeroot in build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/13387/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/1879/tmp/hooks/D01_modify_environment starting +debug: Running on ionos15-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 +Removing 'diversion of /bin/sh to /bin/sh.distrib by dash' +Adding 'diversion of /bin/sh to /bin/sh.distrib by bash' +Removing 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash' +Adding 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by bash' +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/1879/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/1879/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='amd64' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=15' - DISTRIBUTION='' - HOME='/root' - HOST_ARCH='amd64' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="0" [2]="3" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu") + BASH_VERSION='5.0.3(1)-release' + BUILDDIR=/build + 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=16' + DIRSTACK=() + DISTRIBUTION= + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=x86_64 + HOST_ARCH=amd64 IFS=' ' - INVOCATION_ID='fcc9137f323148b79b218e81e7d1a8b3' - 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='13387' - PS1='# ' - PS2='> ' + INVOCATION_ID=5cd4d3dc9c0d481cb73a7a7752f1f6bd + 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=1879 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/tmp.zNS5h5RmkT/pbuilderrc_taZq --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/buster-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.zNS5h5RmkT/b1 --logfile b1/build.log ruby-coercible_1.0.0-2.dsc' - SUDO_GID='111' - SUDO_UID='106' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://78.137.99.97:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/tmp.zNS5h5RmkT/pbuilderrc_jX95 --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/buster-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.zNS5h5RmkT/b2 --logfile b2/build.log ruby-coercible_1.0.0-2.dsc' + SUDO_GID=111 + SUDO_UID=106 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://85.184.249.68:3128 I: uname -a - Linux ionos11-amd64 4.19.0-17-amd64 #1 SMP Debian 4.19.194-3 (2021-07-18) x86_64 GNU/Linux + Linux i-capture-the-hostname 5.10.0-0.bpo.7-amd64 #1 SMP Debian 5.10.40-1~bpo10+1 (2021-06-04) x86_64 GNU/Linux I: ls -l /bin total 5116 - -rwxr-xr-x 1 root root 1168776 Apr 17 2019 bash - -rwxr-xr-x 3 root root 38984 Jul 10 2019 bunzip2 - -rwxr-xr-x 3 root root 38984 Jul 10 2019 bzcat - lrwxrwxrwx 1 root root 6 Jul 10 2019 bzcmp -> bzdiff - -rwxr-xr-x 1 root root 2227 Jul 10 2019 bzdiff - lrwxrwxrwx 1 root root 6 Jul 10 2019 bzegrep -> bzgrep - -rwxr-xr-x 1 root root 4877 Jun 24 2019 bzexe - lrwxrwxrwx 1 root root 6 Jul 10 2019 bzfgrep -> bzgrep - -rwxr-xr-x 1 root root 3641 Jul 10 2019 bzgrep - -rwxr-xr-x 3 root root 38984 Jul 10 2019 bzip2 - -rwxr-xr-x 1 root root 14328 Jul 10 2019 bzip2recover - lrwxrwxrwx 1 root root 6 Jul 10 2019 bzless -> bzmore - -rwxr-xr-x 1 root root 1297 Jul 10 2019 bzmore - -rwxr-xr-x 1 root root 43744 Feb 28 2019 cat - -rwxr-xr-x 1 root root 64320 Feb 28 2019 chgrp - -rwxr-xr-x 1 root root 64288 Feb 28 2019 chmod - -rwxr-xr-x 1 root root 72512 Feb 28 2019 chown - -rwxr-xr-x 1 root root 146880 Feb 28 2019 cp - -rwxr-xr-x 1 root root 121464 Jan 17 2019 dash - -rwxr-xr-x 1 root root 109408 Feb 28 2019 date - -rwxr-xr-x 1 root root 76712 Feb 28 2019 dd - -rwxr-xr-x 1 root root 93744 Feb 28 2019 df - -rwxr-xr-x 1 root root 138856 Feb 28 2019 dir - -rwxr-xr-x 1 root root 84288 Jan 9 2019 dmesg - lrwxrwxrwx 1 root root 8 Sep 26 2018 dnsdomainname -> hostname - lrwxrwxrwx 1 root root 8 Sep 26 2018 domainname -> hostname - -rwxr-xr-x 1 root root 39520 Feb 28 2019 echo - -rwxr-xr-x 1 root root 28 Jan 7 2019 egrep - -rwxr-xr-x 1 root root 35424 Feb 28 2019 false - -rwxr-xr-x 1 root root 28 Jan 7 2019 fgrep - -rwxr-xr-x 1 root root 68880 Jan 9 2019 findmnt - -rwsr-xr-x 1 root root 34896 Apr 22 2020 fusermount - -rwxr-xr-x 1 root root 198976 Jan 7 2019 grep - -rwxr-xr-x 2 root root 2345 Jan 5 2019 gunzip - -rwxr-xr-x 1 root root 6375 Jan 5 2019 gzexe - -rwxr-xr-x 1 root root 98048 Jan 5 2019 gzip - -rwxr-xr-x 1 root root 26696 Sep 26 2018 hostname - -rwxr-xr-x 1 root root 68552 Feb 28 2019 ln - -rwxr-xr-x 1 root root 56760 Jul 26 2018 login - -rwxr-xr-x 1 root root 138856 Feb 28 2019 ls - -rwxr-xr-x 1 root root 108624 Jan 9 2019 lsblk - -rwxr-xr-x 1 root root 89088 Feb 28 2019 mkdir - -rwxr-xr-x 1 root root 68544 Feb 28 2019 mknod - -rwxr-xr-x 1 root root 43808 Feb 28 2019 mktemp - -rwxr-xr-x 1 root root 43008 Jan 9 2019 more - -rwsr-xr-x 1 root root 51280 Jan 9 2019 mount - -rwxr-xr-x 1 root root 14408 Jan 9 2019 mountpoint - -rwxr-xr-x 1 root root 138728 Feb 28 2019 mv - lrwxrwxrwx 1 root root 8 Sep 26 2018 nisdomainname -> hostname - lrwxrwxrwx 1 root root 14 Feb 14 2019 pidof -> /sbin/killall5 - -rwxr-xr-x 1 root root 39616 Feb 28 2019 pwd - lrwxrwxrwx 1 root root 4 Apr 17 2019 rbash -> bash - -rwxr-xr-x 1 root root 47776 Feb 28 2019 readlink - -rwxr-xr-x 1 root root 68416 Feb 28 2019 rm - -rwxr-xr-x 1 root root 47776 Feb 28 2019 rmdir - -rwxr-xr-x 1 root root 23312 Jan 21 2019 run-parts - -rwxr-xr-x 1 root root 122224 Dec 22 2018 sed - lrwxrwxrwx 1 root root 4 Jul 20 20:24 sh -> dash - -rwxr-xr-x 1 root root 39552 Feb 28 2019 sleep - -rwxr-xr-x 1 root root 80672 Feb 28 2019 stty - -rwsr-xr-x 1 root root 63568 Jan 9 2019 su - -rwxr-xr-x 1 root root 35488 Feb 28 2019 sync - -rwxr-xr-x 1 root root 445560 Apr 23 2019 tar - -rwxr-xr-x 1 root root 14440 Jan 21 2019 tempfile - -rwxr-xr-x 1 root root 97152 Feb 28 2019 touch - -rwxr-xr-x 1 root root 35424 Feb 28 2019 true - -rwxr-xr-x 1 root root 14328 Apr 22 2020 ulockmgr_server - -rwsr-xr-x 1 root root 34888 Jan 9 2019 umount - -rwxr-xr-x 1 root root 39584 Feb 28 2019 uname - -rwxr-xr-x 2 root root 2345 Jan 5 2019 uncompress - -rwxr-xr-x 1 root root 138856 Feb 28 2019 vdir - -rwxr-xr-x 1 root root 34896 Jan 9 2019 wdctl - -rwxr-xr-x 1 root root 946 Jan 21 2019 which - lrwxrwxrwx 1 root root 8 Sep 26 2018 ypdomainname -> hostname - -rwxr-xr-x 1 root root 1983 Jan 5 2019 zcat - -rwxr-xr-x 1 root root 1677 Jan 5 2019 zcmp - -rwxr-xr-x 1 root root 5879 Jan 5 2019 zdiff - -rwxr-xr-x 1 root root 29 Jan 5 2019 zegrep - -rwxr-xr-x 1 root root 29 Jan 5 2019 zfgrep - -rwxr-xr-x 1 root root 2080 Jan 5 2019 zforce - -rwxr-xr-x 1 root root 7584 Jan 5 2019 zgrep - -rwxr-xr-x 1 root root 2205 Jan 5 2019 zless - -rwxr-xr-x 1 root root 1841 Jan 5 2019 zmore - -rwxr-xr-x 1 root root 4552 Jan 5 2019 znew -I: user script /srv/workspace/pbuilder/13387/tmp/hooks/D02_print_environment finished + -rwxr-xr-x 1 root root 1168776 Apr 18 2019 bash + -rwxr-xr-x 3 root root 38984 Jul 11 2019 bunzip2 + -rwxr-xr-x 3 root root 38984 Jul 11 2019 bzcat + lrwxrwxrwx 1 root root 6 Jul 11 2019 bzcmp -> bzdiff + -rwxr-xr-x 1 root root 2227 Jul 11 2019 bzdiff + lrwxrwxrwx 1 root root 6 Jul 11 2019 bzegrep -> bzgrep + -rwxr-xr-x 1 root root 4877 Jun 25 2019 bzexe + lrwxrwxrwx 1 root root 6 Jul 11 2019 bzfgrep -> bzgrep + -rwxr-xr-x 1 root root 3641 Jul 11 2019 bzgrep + -rwxr-xr-x 3 root root 38984 Jul 11 2019 bzip2 + -rwxr-xr-x 1 root root 14328 Jul 11 2019 bzip2recover + lrwxrwxrwx 1 root root 6 Jul 11 2019 bzless -> bzmore + -rwxr-xr-x 1 root root 1297 Jul 11 2019 bzmore + -rwxr-xr-x 1 root root 43744 Mar 1 2019 cat + -rwxr-xr-x 1 root root 64320 Mar 1 2019 chgrp + -rwxr-xr-x 1 root root 64288 Mar 1 2019 chmod + -rwxr-xr-x 1 root root 72512 Mar 1 2019 chown + -rwxr-xr-x 1 root root 146880 Mar 1 2019 cp + -rwxr-xr-x 1 root root 121464 Jan 18 2019 dash + -rwxr-xr-x 1 root root 109408 Mar 1 2019 date + -rwxr-xr-x 1 root root 76712 Mar 1 2019 dd + -rwxr-xr-x 1 root root 93744 Mar 1 2019 df + -rwxr-xr-x 1 root root 138856 Mar 1 2019 dir + -rwxr-xr-x 1 root root 84288 Jan 10 2019 dmesg + lrwxrwxrwx 1 root root 8 Sep 27 2018 dnsdomainname -> hostname + lrwxrwxrwx 1 root root 8 Sep 27 2018 domainname -> hostname + -rwxr-xr-x 1 root root 39520 Mar 1 2019 echo + -rwxr-xr-x 1 root root 28 Jan 8 2019 egrep + -rwxr-xr-x 1 root root 35424 Mar 1 2019 false + -rwxr-xr-x 1 root root 28 Jan 8 2019 fgrep + -rwxr-xr-x 1 root root 68880 Jan 10 2019 findmnt + -rwsr-xr-x 1 root root 34896 Apr 23 2020 fusermount + -rwxr-xr-x 1 root root 198976 Jan 8 2019 grep + -rwxr-xr-x 2 root root 2345 Jan 6 2019 gunzip + -rwxr-xr-x 1 root root 6375 Jan 6 2019 gzexe + -rwxr-xr-x 1 root root 98048 Jan 6 2019 gzip + -rwxr-xr-x 1 root root 26696 Sep 27 2018 hostname + -rwxr-xr-x 1 root root 68552 Mar 1 2019 ln + -rwxr-xr-x 1 root root 56760 Jul 27 2018 login + -rwxr-xr-x 1 root root 138856 Mar 1 2019 ls + -rwxr-xr-x 1 root root 108624 Jan 10 2019 lsblk + -rwxr-xr-x 1 root root 89088 Mar 1 2019 mkdir + -rwxr-xr-x 1 root root 68544 Mar 1 2019 mknod + -rwxr-xr-x 1 root root 43808 Mar 1 2019 mktemp + -rwxr-xr-x 1 root root 43008 Jan 10 2019 more + -rwsr-xr-x 1 root root 51280 Jan 10 2019 mount + -rwxr-xr-x 1 root root 14408 Jan 10 2019 mountpoint + -rwxr-xr-x 1 root root 138728 Mar 1 2019 mv + lrwxrwxrwx 1 root root 8 Sep 27 2018 nisdomainname -> hostname + lrwxrwxrwx 1 root root 14 Feb 15 2019 pidof -> /sbin/killall5 + -rwxr-xr-x 1 root root 39616 Mar 1 2019 pwd + lrwxrwxrwx 1 root root 4 Apr 18 2019 rbash -> bash + -rwxr-xr-x 1 root root 47776 Mar 1 2019 readlink + -rwxr-xr-x 1 root root 68416 Mar 1 2019 rm + -rwxr-xr-x 1 root root 47776 Mar 1 2019 rmdir + -rwxr-xr-x 1 root root 23312 Jan 22 2019 run-parts + -rwxr-xr-x 1 root root 122224 Dec 23 2018 sed + lrwxrwxrwx 1 root root 4 Aug 26 08:06 sh -> bash + lrwxrwxrwx 1 root root 4 Aug 24 04:46 sh.distrib -> dash + -rwxr-xr-x 1 root root 39552 Mar 1 2019 sleep + -rwxr-xr-x 1 root root 80672 Mar 1 2019 stty + -rwsr-xr-x 1 root root 63568 Jan 10 2019 su + -rwxr-xr-x 1 root root 35488 Mar 1 2019 sync + -rwxr-xr-x 1 root root 445560 Apr 24 2019 tar + -rwxr-xr-x 1 root root 14440 Jan 22 2019 tempfile + -rwxr-xr-x 1 root root 97152 Mar 1 2019 touch + -rwxr-xr-x 1 root root 35424 Mar 1 2019 true + -rwxr-xr-x 1 root root 14328 Apr 23 2020 ulockmgr_server + -rwsr-xr-x 1 root root 34888 Jan 10 2019 umount + -rwxr-xr-x 1 root root 39584 Mar 1 2019 uname + -rwxr-xr-x 2 root root 2345 Jan 6 2019 uncompress + -rwxr-xr-x 1 root root 138856 Mar 1 2019 vdir + -rwxr-xr-x 1 root root 34896 Jan 10 2019 wdctl + -rwxr-xr-x 1 root root 946 Jan 22 2019 which + lrwxrwxrwx 1 root root 8 Sep 27 2018 ypdomainname -> hostname + -rwxr-xr-x 1 root root 1983 Jan 6 2019 zcat + -rwxr-xr-x 1 root root 1677 Jan 6 2019 zcmp + -rwxr-xr-x 1 root root 5879 Jan 6 2019 zdiff + -rwxr-xr-x 1 root root 29 Jan 6 2019 zegrep + -rwxr-xr-x 1 root root 29 Jan 6 2019 zfgrep + -rwxr-xr-x 1 root root 2080 Jan 6 2019 zforce + -rwxr-xr-x 1 root root 7584 Jan 6 2019 zgrep + -rwxr-xr-x 1 root root 2205 Jan 6 2019 zless + -rwxr-xr-x 1 root root 1841 Jan 6 2019 zmore + -rwxr-xr-x 1 root root 4552 Jan 6 2019 znew +I: user script /srv/workspace/pbuilder/1879/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -344,7 +378,7 @@ Get: 137 http://deb.debian.org/debian buster/main amd64 ruby-rspec-core all 3.8.0c0e1m0s0-1 [190 kB] Get: 138 http://deb.debian.org/debian buster/main amd64 ruby-rspec all 3.8.0c0e1m0s0-1 [7620 B] Get: 139 http://deb.debian.org/debian buster/main amd64 ruby-rspec-its all 1.2.0-3 [6296 B] -Fetched 43.1 MB in 3s (12.5 MB/s) +Fetched 43.1 MB in 1s (59.4 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libbsd0: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 ... 19195 files and directories currently installed.) @@ -932,7 +966,7 @@ fakeroot is already the newest version (1.23-1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. I: Building the package -I: Running cd /build/ruby-coercible-1.0.0/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b +I: Running cd /build/ruby-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 dpkg-buildpackage: info: source package ruby-coercible dpkg-buildpackage: info: source version 1.0.0-2 dpkg-buildpackage: info: source distribution unstable @@ -1026,188 +1060,119 @@ All examples were filtered out; ignoring {:focus=>true} -Randomized with seed 23336 +Randomized with seed 54052 -Coercible::Coercer::Numeric.to_string - should eql "1/1" - -Coercible::Coercer::TimeCoercions.to_datetime - when the value does not respond to #to_datetime - should be an instance of DateTime - should eql # - when the value responds to #to_datetime - should eql # - should be an instance of DateTime +Coercible::Coercer::Integer#datetime_proc + with Rubinius + should be an instance of Proc + with other Ruby VMs + should be an instance of Proc -Coercible::Coercer::String.to_constant - with a name outside of the namespace - should raise NameError - with a namespaced name - should equal Coercible::Coercer::String - with a non-namespaced qualified name - should equal String - with a namespaced qualified name - should equal Coercible::Coercer::String - when the name is invalid - should raise NameError - when the name is unknown - should raise NameError - with a non-namespaced name - should equal String +Coercible::Coercer::DateTime#coerced? + behaves like Coercible::Coercer#coerced? + with a non-primitive value + should equal false + with a primitive value + should equal true -Coercible::Coercer::Object#method_missing - when method doesn't match coercion method regexp - should raise NoMethodError - when method matches coercion method regexp - should equal # +Coercible::Coercer::Hash.to_date + when time segments are integers + should eql # + should be an instance of Date + when time segments are missing + uses the Time now to populate the segments + should be an instance of Date + when time segments are strings + should be an instance of Date + should eql # -Coercible::Coercer::Date.to_date - should equal # +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/ruby-coercible-1.0.0/spec/integration/configuring_coercers_spec.rb:12:in `block (2 levels) in '. + allows to configure coercers Coercible::Coercer::Decimal.to_float should be an instance of Float should eql 1.0 -Coercible::Coercer#[] - with an unknown type - should be an instance of Coercible::Coercer::Object - with a known type - should be an instance of Coercible::Coercer::String +Coercible::Coercer::Object.to_string + when the value does not respond to #to_str + should raise Coercible::UnsupportedCoercion + when the value responds to #to_str + should equal # -Coercible::Coercer::Numeric.to_integer - should eql 1 +Coercible::Coercer::TimeCoercions.to_string + should be an instance of String + should eql "2011-01-01" -Coercible::Coercer::String.to_float - with "+1e-1" - should be an instance of Float - should eql 0.1 - with "-1.0E-1" - should eql -0.1 - should be an instance of Float - with an invalid float string - should raise Coercible::UnsupportedCoercion - with "-1e-1" - should be an instance of Float - should eql -0.1 - with ".1E+1" - should be an instance of Float - should eql 1.0 - with "1" - should eql 1.0 - should be an instance of Float - with "1.0e+1" - should be an instance of Float - should eql 10.0 - with "1.0e-1" - should be an instance of Float - should eql 0.1 - with ".1E-1" - should be an instance of Float - should eql 0.01 - with "-1.0E+1" - should be an instance of Float - should eql -10.0 - with "1E+1" - should eql 10.0 - should be an instance of Float - with "+1" - should eql 1.0 - should be an instance of Float - string starts with e - should raise Coercible::UnsupportedCoercion - with "1.0E-1" - should be an instance of Float - should eql 0.1 - with "-1.0e-1" - should be an instance of Float - should eql -0.1 - with "-1.0" - should be an instance of Float - should eql -1.0 - with "1.0E+1" - should eql 10.0 - should be an instance of Float - with "+1.0E+1" - should eql 10.0 - should be an instance of Float - with ".1e-1" - should eql 0.01 - should be an instance of Float - with "-1.0e+1" - should eql -10.0 - should be an instance of Float - with "+1.0E-1" - should be an instance of Float - should eql 0.1 - with "1.0" - should be an instance of Float - should eql 1.0 - with ".1" - should eql 0.1 - should be an instance of Float - with "+1.0e+1" - should be an instance of Float - should eql 10.0 - with "+1.0" - should eql 1.0 - should be an instance of Float - with "1e1" - should eql 10.0 - should be an instance of Float - with ".1e+1" - should be an instance of Float - should eql 1.0 - with "-1E1" - should eql -10.0 - should be an instance of Float - with "+1.0e-1" - should be an instance of Float - should eql 0.1 - with "-1" - should be an instance of Float - should eql -1.0 +Coercible::Coercer::Integer#to_datetime + should eql "2013-02-16 17:44:32.000" -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/ruby-coercible-1.0.0/spec/integration/configuring_coercers_spec.rb:12:in `block (2 levels) in '. - allows to configure coercers +Coercible::Coercer::Decimal.to_integer + should eql 1 + should be a kind of Integer -Coercible::Coercer::Hash.to_time - when time segments are missing - should be an instance of Time - uses the Time now to populate the segments - when time segments are strings - should eql 1, 1, 1, 1, 1, 2011, 6, 1, false, and "UTC" - should be an instance of Time - when time segments are integers - should eql 1, 1, 1, 1, 1, 2011, 6, 1, false, and "UTC" - should be an instance of Time +Coercible::Coercer::Float#to_float + should eql "2013-02-16 17:44:32.120" -Coercible::Coercer::Integer#datetime_proc - with other Ruby VMs - should be an instance of Proc +Coercible::Coercer::Integer#datetime_format with Rubinius - should be an instance of Proc + should == "%Q" + with other Ruby VMs + should == "%s" -Coercible::Coercer.new - should be an instance of Coercible::Coercer - config - should respond to #string= - config - should respond to #string - config - should be an instance of Coercible::Configuration +Coercible::Configuration.build + should respond to #bar= + should be an instance of Coercible::Configuration + should respond to #foo= + should respond to #foo + should respond to #bar -Coercible::Coercer::Configurable.config - should equal # +Coercible::Coercer::Configurable.config_name + should equal :test -Coercible::Coercer::Integer#coerced? +Coercible::Coercer::Object.to_array + when the value responds to #to_ary + should equal # + does not call #to_a if #to_ary is available + 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 + when the value responds to #to_a but not #to_ary + should equal # + when the value does not respond to #to_ary or #to_a + should be an instance of Array + should == [#] + +Coercible::Coercer::Float#coerced? + behaves like Coercible::Coercer#coerced? + with a non-primitive value + should equal false + with a primitive value + should equal true + +Coercible::Coercer::Numeric.to_integer + should eql 1 + +Coercible::Coercer::Time#coerced? behaves like Coercible::Coercer#coerced? with a primitive value should equal true with a non-primitive value should equal false +Coercible::Coercer::Configurable.config + should equal # + +Coercible::Coercer::Float.to_float + should equal 1.0 + +Coercible::Coercer::Date.to_string + should eql "2011-01-01" + should be an instance of String + Coercible::Coercer::String.to_time + with an invalid date time string + should raise Coercible::UnsupportedCoercion with a valid time string not including time part it should behave like a correct time object @@ -1216,310 +1181,333 @@ should == 7 year should == 2011 - min - should == 0 - day - should == 22 hour should == 0 + min + should == 0 sec should == 0 + day + should == 22 including time part it should behave like a correct time object should be an instance of Time - min - should == 44 - sec - should == 50 month should == 7 + day + should == 22 + min + should == 44 hour should == 13 year should == 2011 - day - should == 22 - with an invalid date time string - should raise Coercible::UnsupportedCoercion - -Coercible::Coercer::Array#to_set - should be an instance of Set - should eql "a", 1, "b", and 2 - -Coercible::Configuration.build - should respond to #bar= - should respond to #foo - should be an instance of Coercible::Configuration - should respond to #foo= - should respond to #bar + sec + should == 50 -Coercible::Coercer::FalseClass#coerced? +Coercible::Coercer::String#coerced? behaves like Coercible::Coercer#coerced? with a primitive value should equal true with a non-primitive value should equal false -Coercible::Coercer::String.to_date - with a valid date string - should be an instance of Date - year - should == 2011 - day - should == 22 - month - should == 7 - with an invalid date string +Coercible::Coercer::String.to_float + with an invalid float string should raise Coercible::UnsupportedCoercion - -Coercible::Coercer::Hash.to_datetime - when time segments are missing - should be an instance of DateTime - uses the Time now to populate the segments - when time segments are strings - should eql # - should be an instance of DateTime - when time segments are integers - should eql # - should be an instance of DateTime - -Coercible::Coercer::Float.to_string - should be an instance of String - should eql "1.0" - -Coercible::Coercer::DateTime#coerced? - behaves like Coercible::Coercer#coerced? - with a primitive value - should equal true - with a non-primitive value - should equal false - -Coercible::Coercer::Array#coerced? - behaves like Coercible::Coercer#coerced? - with a non-primitive value - should equal false - with a primitive value - should equal true - -Coercible::Coercer::Integer#datetime_format - with Rubinius - should == "%Q" - with other Ruby VMs - should == "%s" - -Coercible::Coercer::Time#coerced? - behaves like Coercible::Coercer#coerced? - with a non-primitive value - should equal false - with a primitive value - should equal true - -Coercible::Coercer::Integer.to_boolean - when the fixnum is 1 - should equal true - when the fixnum is 0 - should equal false - when the fixnum is not 1 or 0 + with "+1" + should be an instance of Float + should eql 1.0 + with "1.0E+1" + should eql 10.0 + should be an instance of Float + with "-1.0E-1" + should eql -0.1 + should be an instance of Float + with "+1.0e-1" + should eql 0.1 + should be an instance of Float + with ".1" + should be an instance of Float + should eql 0.1 + with "+1.0E+1" + should be an instance of Float + should eql 10.0 + with ".1E-1" + should be an instance of Float + should eql 0.01 + with "1.0E-1" + should be an instance of Float + should eql 0.1 + with ".1e-1" + should eql 0.01 + should be an instance of Float + with "1" + should be an instance of Float + should eql 1.0 + with "-1.0e+1" + should eql -10.0 + should be an instance of Float + with "+1e-1" + should be an instance of Float + should eql 0.1 + with "1.0e-1" + should be an instance of Float + should eql 0.1 + with "1.0" + should be an instance of Float + should eql 1.0 + with "-1E1" + should be an instance of Float + should eql -10.0 + with "1e1" + should eql 10.0 + should be an instance of Float + with ".1E+1" + should eql 1.0 + should be an instance of Float + with "-1.0e-1" + should be an instance of Float + should eql -0.1 + with ".1e+1" + should eql 1.0 + should be an instance of Float + with "1.0e+1" + should eql 10.0 + should be an instance of Float + with "+1.0" + should eql 1.0 + should be an instance of Float + with "+1.0E-1" + should eql 0.1 + should be an instance of Float + string starts with e should raise Coercible::UnsupportedCoercion - -Coercible::Coercer::TimeCoercions.to_time - when the value does not respond to #to_time - should be an instance of Time - should eql 0, 0, 0, 1, 1, 2011, 6, 1, false, and "UTC" - when the value responds to #to_time - should eql 0, 0, 0, 1, 1, 2011, 6, 1, false, and "UTC" - should be an instance of Time - -Coercible::Coercer::Date.to_datetime - when Date does not support #to_datetime - should be an instance of DateTime - should eql # - when Date supports #to_datetime - should equal # - -Coercible::Coercer::Object#coerced? - should equal true - -Coercible::Coercer::DateTime.to_datetime - should equal # - -Coercible::Coercer::TimeCoercions.to_string - should eql "2011-01-01" - should be an instance of String - -Coercible::Coercer::Integer#to_datetime - should eql "2013-02-16 17:44:32.000" - -Coercible::Coercer::Decimal.to_string - should eql "1.0" - should be an instance of String - -Coercible::Coercer::Date.to_string - should eql "2011-01-01" - should be an instance of String + with "-1.0" + should eql -1.0 + should be an instance of Float + with "-1" + should be an instance of Float + should eql -1.0 + with "+1.0e+1" + should eql 10.0 + should be an instance of Float + with "1E+1" + should eql 10.0 + should be an instance of Float + with "-1.0E+1" + should be an instance of Float + should eql -10.0 + with "-1e-1" + should eql -0.1 + should be an instance of Float Coercible::Coercer::String.to_decimal - with "+1.0E+1" - should eql 0.1e2 - should be an instance of BigDecimal - with "1.0E+1" - should be an instance of BigDecimal - should eql 0.1e2 - with "+1.0e-1" - should be an instance of BigDecimal - should eql 0.1e0 with "+1.0" - should be an instance of BigDecimal should eql 0.1e1 + should be an instance of BigDecimal with "1.0e+1" should eql 0.1e2 should be an instance of BigDecimal - with "1.0E-1" - should eql 0.1e0 - should be an instance of BigDecimal with "-1.0e-1" should eql -0.1e0 should be an instance of BigDecimal - with "-1.0e+1" - should eql -0.1e2 + with "-1.0" + should eql -0.1e1 should be an instance of BigDecimal - with ".1e-1" - should eql 0.1e-1 + with "-1" + should eql -0.1e1 should be an instance of BigDecimal - with ".1" - should eql 0.1e0 + with "-1.0e+1" should be an instance of BigDecimal + should eql -0.1e2 with "1.0" should eql 0.1e1 should be an instance of BigDecimal - with "+1.0e+1" + with "1.0E+1" should eql 0.1e2 should be an instance of BigDecimal - with an invalid decimal string - should raise Coercible::UnsupportedCoercion - with "+1.0E-1" - should eql 0.1e0 - should be an instance of BigDecimal - with "-1.0" - should eql -0.1e1 + with "+1.0e-1" should be an instance of BigDecimal - with ".1E-1" + should eql 0.1e0 + with "-1.0E+1" should be an instance of BigDecimal - should eql 0.1e-1 + should eql -0.1e2 with "1" should be an instance of BigDecimal should eql 0.1e1 + with "+1.0E+1" + should eql 0.1e2 + should be an instance of BigDecimal with ".1E+1" should be an instance of BigDecimal should eql 0.1e1 - with "1.0e-1" + with "+1.0e+1" should be an instance of BigDecimal - should eql 0.1e0 - with "-1" + should eql 0.1e2 + with ".1E-1" + should eql 0.1e-1 should be an instance of BigDecimal - should eql -0.1e1 - with ".1e+1" + with "+1" should eql 0.1e1 should be an instance of BigDecimal - with "+1" + with ".1e+1" should be an instance of BigDecimal should eql 0.1e1 + with ".1e-1" + should eql 0.1e-1 + should be an instance of BigDecimal + with ".1" + should eql 0.1e0 + should be an instance of BigDecimal + with "+1.0E-1" + should be an instance of BigDecimal + should eql 0.1e0 + with an invalid decimal string + should raise Coercible::UnsupportedCoercion with "-1.0E-1" + should be an instance of BigDecimal should eql -0.1e0 + with "1.0E-1" + should eql 0.1e0 should be an instance of BigDecimal - with "-1.0E+1" - should eql -0.1e2 + with "1.0e-1" + should eql 0.1e0 should be an instance of BigDecimal -Coercible::Coercer::Configurable.config_name - should equal :test - -Coercible::Coercer::Decimal#coerced? - behaves like Coercible::Coercer#coerced? - with a primitive value - should equal true - with a non-primitive value - should equal false - -Coercible::Coercer::String.config - boolean_map - should equal ["1", true], ["on", true], ["t", true], ["true", true], ["y", true], ["yes", true], ["0", false], ["off", false], ["f", false], ["false", false], ["n", false], and ["no", false] +Coercible::Coercer::String.to_date + with an invalid date string + should raise Coercible::UnsupportedCoercion + with a valid date string + should be an instance of Date + month + should == 7 + year + should == 2011 + day + should == 22 -Coercible::Coercer::Symbol.to_string - should eql "piotr" - should be an instance of String +Coercible::Coercer::Date.to_time + should eql 0, 0, 0, 1, 1, 2011, 6, 1, false, and "UTC" + should be an instance of Time -Coercible::Coercer::Integer.to_integer - should equal 1 +Coercible::Coercer::Numeric.to_string + should eql "1/1" -Coercible::Coercer::DateTime.to_time - when DateTime does not support #to_time - should be an instance of Time - should eql 0, 0, 0, 1, 1, 2011, 6, 1, false, and "UTC" - when DateTime supports #to_time - should equal 0, 0, 0, 1, 1, 2011, 6, 1, false, and "UTC" +Coercible::Coercer::Time.to_integer + should eql 1661450839 -Coercible::Coercer::TimeCoercions.to_date - when the value responds to #to_date - should be an instance of Date - should eql # - when the value does not respond to #to_date - should eql # - should be an instance of Date +Coercible::Coercer::Integer.to_float + should be an instance of Float + should eql 1.0 -Coercible::Coercer::DateTime.to_string - should eql "2011-01-01T00:00:00+00:00" - should be an instance of String +Coercible::Coercer::Integer.to_boolean + when the fixnum is 1 + should equal true + when the fixnum is not 1 or 0 + should raise Coercible::UnsupportedCoercion + when the fixnum is 0 + should equal false -Coercible::Coercer::FalseClass.to_string - should eql "false" - should be an instance of String +Coercible::Coercer::Numeric.to_float + should eql 1.0 -Coercible::Coercer::Decimal.to_integer - should eql 1 - should be a kind of Integer +Coercible::Coercer::Time.to_time + should equal 0, 0, 0, 1, 1, 2012, 0, 1, false, and "UTC" -Coercible::Coercer::Time.to_integer - should eql 1627040575 +Coercible::Coercer::String.to_datetime + with a valid date string + including time part + it should behave like a correct datetime object + should be an instance of DateTime + min + should == 44 + day + should == 22 + year + should == 2011 + sec + should == 50 + month + should == 7 + hour + should == 13 + not including time part + it should behave like a correct datetime object + should be an instance of DateTime + hour + should == 0 + min + should == 0 + month + should == 7 + day + should == 22 + sec + should == 0 + year + should == 2011 + with an invalid date time string + should raise Coercible::UnsupportedCoercion -Coercible::Coercer::Float#coerced? +Coercible::Coercer::Integer#coerced? behaves like Coercible::Coercer#coerced? with a primitive value should equal true with a non-primitive value should equal false +Coercible::Coercer::Integer + behaves like Configurable + .config + responds to configuration keys + should be an instance of Coercible::Configuration + .config_name + should equal :integer + .config_keys + should be an instance of Array + should not be empty + .config_name + should be an instance of Symbol + +Coercible::Coercer::Array#to_set + should be an instance of Set + should eql "a", 1, "b", and 2 + Coercible::Coercer::String.to_integer - with ".1e+1" - should eql 1 + with "1.0E+1" + should eql 10 should be a kind of Integer - with "-1.0" - should eql -1 + with ".1" + should eql 0 should be a kind of Integer - string starts with e - should raise Coercible::UnsupportedCoercion - with "-1.0e+1" - should eql -10 + with "-1.0E-1" should be a kind of Integer - when integer string is big - should == 334490140000101135 + should eql 0 with "-1" should be a kind of Integer should eql -1 - with "+1e-1" + with ".1E-1" should eql 0 should be a kind of Integer - with "-1e-1" - should eql 0 + with an invalid integer string + should raise Coercible::UnsupportedCoercion + with "-1.0e+1" + should eql -10 should be a kind of Integer - with "1.0e+1" + with "-1.0E+1" + should eql -10 + should be a kind of Integer + when integer string is big + should == 334490140000101135 + with "1e1" should eql 10 should be a kind of Integer - with "-1.0e-1" + with "1" should be a kind of Integer + should eql 1 + with "2.2250738585072014e-308" should eql 0 - with "-1.0E+1" - should eql -10 should be a kind of Integer with "1E+1" should eql 10 @@ -1527,290 +1515,346 @@ with "+1.0E-1" should eql 0 should be a kind of Integer - with ".1" - should eql 0 + with "-1.0" + should eql -1 should be a kind of Integer - with "1" + with ".1E+1" should be a kind of Integer should eql 1 - with "1e1" + with "1.0e-1" should be a kind of Integer - should eql 10 - with "-1.0E-1" should eql 0 - should be a kind of Integer - with "+1.0e+1" + with "+1.0E+1" should be a kind of Integer should eql 10 - with "1.7976931348623158e+307" + with "-1E1" + should eql -10 should be a kind of Integer - should eql 17976931348623157580412819756850388593900235011794141176754562789180111453639664485361928830517704263...0189893797509826303293149283469713429932049693599732425511693654044437030940398714664210204414967808 - with "+1.0" + with "-1.0e-1" should be a kind of Integer - should eql 1 - with "+1.0E+1" + should eql 0 + string starts with e + should raise Coercible::UnsupportedCoercion + with "1.0e+1" should eql 10 should be a kind of Integer with "+1.0e-1" - should be a kind of Integer should eql 0 - with "1.0" should be a kind of Integer + with ".1e+1" should eql 1 - with "-1E1" should be a kind of Integer - should eql -10 with "+1" - should be a kind of Integer should eql 1 - with "1.0E-1" - should eql 0 should be a kind of Integer - with ".1E+1" + with ".1e-1" + should eql 0 should be a kind of Integer + with "+1.0" should eql 1 - with ".1e-1" + should be a kind of Integer + with "1.0E-1" should be a kind of Integer should eql 0 - with "1.0e-1" - should eql 0 + with "+1.0e+1" should be a kind of Integer - with "1.0E+1" should eql 10 + with "1.0" + should eql 1 should be a kind of Integer - with "2.2250738585072014e-308" - should be a kind of Integer + with "-1e-1" should eql 0 - with an invalid integer string - should raise Coercible::UnsupportedCoercion - with ".1E-1" + should be a kind of Integer + with "+1e-1" + should be a kind of Integer should eql 0 + with "1.7976931348623158e+307" should be a kind of Integer + should eql 17976931348623157580412819756850388593900235011794141176754562789180111453639664485361928830517704263...0189893797509826303293149283469713429932049693599732425511693654044437030940398714664210204414967808 -Coercible::Coercer::Float#to_float - should eql "2013-02-16 17:44:32.120" +Coercible::Coercer::Numeric.to_decimal + with an object not responding to #to_d + should eql 0.1e1 + with an object responding to #to_d + should eql 0.1e1 + +Coercible::Coercer::Float.to_string + should be an instance of String + should eql "1.0" + +Coercible::Coercer::Float.to_decimal + should be an instance of BigDecimal + should eql 0.1e1 + +Coercible::Coercer::Date.to_date + should equal # + +Coercible::Coercer::DateTime.to_time + when DateTime supports #to_time + should equal 0, 0, 0, 1, 1, 2011, 6, 1, false, and "UTC" + when DateTime does not support #to_time + should eql 0, 0, 0, 1, 1, 2011, 6, 1, false, and "UTC" + should be an instance of Time + +Coercible::Coercer::FalseClass#coerced? + behaves like Coercible::Coercer#coerced? + with a primitive value + should equal true + with a non-primitive value + should equal false + +Coercible::Coercer::TrueClass.to_string + should eql "true" + should be an instance of String + +Coercible::Coercer::Symbol.to_string + should be an instance of String + should eql "piotr" + +Coercible::Coercer::Decimal.to_string + should be an instance of String + should eql "1.0" + +Coercible::Coercer::Object.to_hash + when the value responds to #to_hash + should equal # + when the value does not respond to #to_hash + should raise Coercible::UnsupportedCoercion + +Coercible::Coercer::Hash.to_time + when time segments are missing + should be an instance of Time + uses the Time now to populate the segments + when time segments are strings + should eql 1, 1, 1, 1, 1, 2011, 6, 1, false, and "UTC" + should be an instance of Time + when time segments are integers + should be an instance of Time + should eql 1, 1, 1, 1, 1, 2011, 6, 1, false, and "UTC" + +Coercible::Coercer.new + should be an instance of Coercible::Coercer + config + should respond to #string= + config + should respond to #string + config + should be an instance of Coercible::Configuration + +Coercible::Coercer::Decimal#coerced? + behaves like Coercible::Coercer#coerced? + with a non-primitive value + should equal false + with a primitive value + should equal true + +Coercible::Coercer::Hash.to_datetime + when time segments are missing + uses the Time now to populate the segments + should be an instance of DateTime + when time segments are integers + should eql # + should be an instance of DateTime + when time segments are strings + should be an instance of DateTime + should eql # + +Coercible::Coercer::FalseClass.to_string + should be an instance of String + should eql "false" + +Coercible::Coercer::String.config + boolean_map + should equal ["1", true], ["on", true], ["t", true], ["true", true], ["y", true], ["yes", true], ["0", false], ["off", false], ["f", false], ["false", false], ["n", false], and ["no", false] + +Coercible::Coercer::DateTime.to_datetime + should equal # + +Coercible::Coercer::Object#coerced? + should equal true + +Coercible::Coercer::Date.to_datetime + when Date does not support #to_datetime + should eql # + should be an instance of DateTime + when Date supports #to_datetime + should equal # + +Coercible::Coercer::Object.to_integer + when the value does not respond to #to_int + should raise Coercible::UnsupportedCoercion + when the value responds to #to_int + should equal # + +Coercible::Coercer::TimeCoercions.to_datetime + when the value does not respond to #to_datetime + should eql # + should be an instance of DateTime + when the value responds to #to_datetime + should be an instance of DateTime + should eql # + +Coercible::Coercer::TimeCoercions.to_date + when the value does not respond to #to_date + should be an instance of Date + should eql # + when the value responds to #to_date + should be an instance of Date + should eql # + +Coercible::Coercer::Integer.to_integer + should equal 1 + +Coercible::Coercer::Integer.to_decimal + should be an instance of BigDecimal + should eql 0.1e1 + +Coercible::Coercer::Date#coerced? + behaves like Coercible::Coercer#coerced? + with a non-primitive value + should equal false + with a primitive value + should equal true + +Coercible::Coercer::String.to_constant + with a namespaced qualified name + should equal Coercible::Coercer::String + with a non-namespaced qualified name + should equal String + with a namespaced name + should equal Coercible::Coercer::String + when the name is invalid + should raise NameError + with a name outside of the namespace + should raise NameError + with a non-namespaced name + should equal String + when the name is unknown + should raise NameError Coercible::Coercer::String.to_boolean + with "0" + should equal false + with "NO" + should equal false + with "n" + should equal false + with "yes" + should equal true + with "F" + should equal false + with "true" + should equal true + with "YES" + should equal true + with "TRUE" + should equal true + with "t" + should equal true + with "OFF" + should 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/ruby-coercible-1.0.0/spec/unit/coercible/coercer/string/to_boolean_spec.rb:28:in `block (3 levels) in '. should raise Exception - with "TRUE" + with "T" should equal true with "false" should equal false - with "0" + with "ON" + should equal true + with "off" should equal false - with "y" + with "Y" should equal true with "on" should equal true with "no" should equal false - with "yes" - should equal true - with "YES" - should equal true - with "1" - should equal true - with "n" - should equal false with "FALSE" should equal false - with "Y" + with "1" should equal true - with "OFF" - should equal false with "f" should equal false - with "true" - should equal true - with "off" - should equal false with "N" should equal false - with "F" - should equal false - with "T" - should equal true - with "t" - should equal true - with "ON" + with "y" should equal true - with "NO" - should equal false - -Coercible::Coercer::Integer - behaves like Configurable - .config_name - should be an instance of Symbol - .config_name - should equal :integer - .config_keys - should not be empty - should be an instance of Array - .config - should be an instance of Coercible::Configuration - responds to configuration keys - -Coercible::Coercer::Object.to_array - 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 - when the value responds to #to_a but not #to_ary - should equal # - when the value does not respond to #to_ary or #to_a - should == [#] - should be an instance of Array - when the value responds to #to_ary - does not call #to_a if #to_ary is available - should equal # - -Coercible::Coercer::Integer.to_float - should eql 1.0 - should be an instance of Float -Coercible::Coercer::Float.to_integer - should eql 1 - should be a kind of Integer - -Coercible::Coercer::TrueClass.to_string - should be an instance of String - should eql "true" +Coercible::Coercer::Hash#coerced? + behaves like Coercible::Coercer#coerced? + with a non-primitive value + should equal false + with a primitive value + should equal true -Coercible::Coercer::Time.to_time - should equal 0, 0, 0, 1, 1, 2012, 0, 1, false, and "UTC" +Coercible::Coercer::Object#inspect + should == "#" Coercible::Coercer::String.to_symbol should equal :value -Coercible::Coercer::Hash.to_date - when time segments are integers - should eql # - should be an instance of Date - when time segments are strings - should eql # - should be an instance of Date - when time segments are missing - should be an instance of Date - uses the Time now to populate the segments - -Coercible::Coercer::Date.to_time - should eql 0, 0, 0, 1, 1, 2011, 6, 1, false, and "UTC" - should be an instance of Time - -Coercible::Coercer::Object.to_string - when the value responds to #to_str - should equal # - when the value does not respond to #to_str - should raise Coercible::UnsupportedCoercion - -Coercible::Coercer::Float.to_float - should equal 1.0 - -Coercible::Coercer::Numeric.to_decimal - with an object responding to #to_d - should eql 0.1e1 - with an object not responding to #to_d - should eql 0.1e1 - -Coercible::Coercer::Object#inspect - should == "#" - Coercible::Coercer::String behaves like Configurable - .config_name - should be an instance of Symbol + .config + should be an instance of Coercible::Configuration + responds to configuration keys .config_keys - should be an instance of Array should not be empty + should be an instance of Array .config_name should equal :string - .config - should be an instance of Coercible::Configuration - responds to configuration keys - -Coercible::Coercer::Float.to_decimal - should be an instance of BigDecimal - should eql 0.1e1 + .config_name + should be an instance of Symbol -Coercible::Coercer::Symbol#coerced? - behaves like Coercible::Coercer#coerced? - with a non-primitive value - should equal false - with a primitive value - should equal true +Coercible::Coercer::DateTime.to_string + should eql "2011-01-01T00:00:00+00:00" + should be an instance of String -Coercible::Coercer::String.to_datetime - with a valid date string - including time part - it should behave like a correct datetime object - should be an instance of DateTime - year - should == 2011 - month - should == 7 - day - should == 22 - hour - should == 13 - sec - should == 50 - min - should == 44 - not including time part - it should behave like a correct datetime object - should be an instance of DateTime - month - should == 7 - min - should == 0 - hour - should == 0 - day - should == 22 - year - should == 2011 - sec - should == 0 - with an invalid date time string - should raise Coercible::UnsupportedCoercion +Coercible::Coercer#[] + with an unknown type + should be an instance of Coercible::Coercer::Object + with a known type + should be an instance of Coercible::Coercer::String -Coercible::Coercer::Numeric.to_float - should eql 1.0 +Coercible::Coercer::TimeCoercions.to_time + when the value does not respond to #to_time + should be an instance of Time + should eql 0, 0, 0, 1, 1, 2011, 6, 1, false, and "UTC" + when the value responds to #to_time + should eql 0, 0, 0, 1, 1, 2011, 6, 1, false, and "UTC" + should be an instance of Time -Coercible::Coercer::Date#coerced? +Coercible::Coercer::TrueClass#coerced? behaves like Coercible::Coercer#coerced? with a primitive value should equal true with a non-primitive value should equal false -Coercible::Coercer::Decimal.to_decimal - should equal 0.1e1 - -Coercible::Coercer::String#coerced? +Coercible::Coercer::Symbol#coerced? behaves like Coercible::Coercer#coerced? with a primitive value should equal true with a non-primitive value should equal false +Coercible::Coercer::Object#method_missing + when method matches coercion method regexp + should equal # + when method doesn't match coercion method regexp + should raise NoMethodError + +Coercible::Coercer::Float.to_integer + should be a kind of Integer + should eql 1 + Coercible::Coercer::Integer.to_string should be an instance of String should eql "1" -Coercible::Coercer::Hash#coerced? - behaves like Coercible::Coercer#coerced? - with a non-primitive value - should equal false - with a primitive value - should equal true - -Coercible::Coercer::Object.to_integer - when the value responds to #to_int - should equal # - when the value does not respond to #to_int - should raise Coercible::UnsupportedCoercion +Coercible::Coercer::Decimal.to_decimal + should equal 0.1e1 Coercible::Coercer::DateTime.to_date when DateTime supports #to_date @@ -1819,28 +1863,18 @@ should eql # should be an instance of Date -Coercible::Coercer::TrueClass#coerced? +Coercible::Coercer::Array#coerced? behaves like Coercible::Coercer#coerced? - with a non-primitive value - should equal false with a primitive value should equal true - -Coercible::Coercer::Integer.to_decimal - should eql 0.1e1 - should be an instance of BigDecimal - -Coercible::Coercer::Object.to_hash - when the value responds to #to_hash - should equal # - when the value does not respond to #to_hash - should raise Coercible::UnsupportedCoercion + with a non-primitive value + should equal false 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/ruby-coercible-1.0.0/spec/unit/coercible/coercer/time_coercions/to_datetime_spec.rb:31: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/ruby-coercible-1.0.0/spec/unit/coercible/coercer/integer/datetime_proc_spec.rb:11:in `block (3 levels) in '. If you need more of the backtrace for any of these deprecations to @@ -1850,54 +1884,54 @@ 2 deprecation warnings total -Top 10 slowest examples (0.13596 seconds, 9.6% of total time): - Coercible::Coercer::String.to_time with a valid time string not including time part it should behave like a correct time object month should == 7 - 0.01727 seconds ./spec/unit/coercible/coercer/string/to_time_spec.rb:7 - Coercible::Coercer::String.to_integer with ".1" should be a kind of Integer - 0.0134 seconds ./spec/unit/coercible/coercer/string/to_integer_spec.rb:44 - Coercible::Coercer::String.to_datetime with a valid date string including time part it should behave like a correct datetime object day should == 22 - 0.01337 seconds ./spec/unit/coercible/coercer/string/to_datetime_spec.rb:8 - Coercible::Coercer::Integer#coerced? behaves like Coercible::Coercer#coerced? with a primitive value should equal true - 0.01324 seconds ./spec/shared/unit/coerced_predicate.rb:5 - Coercible::Coercer::Integer.to_boolean when the fixnum is not 1 or 0 should raise Coercible::UnsupportedCoercion - 0.01322 seconds ./spec/unit/coercible/coercer/integer/to_boolean_spec.rb:23 - Coercible::Coercer::String.to_constant when the name is invalid should raise NameError - 0.01314 seconds ./spec/unit/coercible/coercer/string/to_constant_spec.rb:47 - Coercible::Coercer::String.to_float with "1.0e+1" should eql 10.0 - 0.01313 seconds ./spec/unit/coercible/coercer/string/to_float_spec.rb:41 - Coercible::Coercer::String.to_decimal with "+1.0" should eql 0.1e1 - 0.01309 seconds ./spec/unit/coercible/coercer/string/to_decimal_spec.rb:38 - Coercible::Coercer::String.to_integer with "2.2250738585072014e-308" should be a kind of Integer - 0.01306 seconds ./spec/unit/coercible/coercer/string/to_integer_spec.rb:44 - Coercible::Coercer::String.to_float with "-1" should eql -1.0 - 0.01305 seconds ./spec/unit/coercible/coercer/string/to_float_spec.rb:41 +Top 10 slowest examples (0.03841 seconds, 8.1% of total time): + Coercible::Coercer::Integer#datetime_format with Rubinius should == "%Q" + 0.0062 seconds ./spec/unit/coercible/coercer/integer/datetime_format_spec.rb:15 + Coercible::Coercer::Float#coerced? behaves like Coercible::Coercer#coerced? with a non-primitive value should equal false + 0.0052 seconds ./spec/shared/unit/coerced_predicate.rb:11 + Coercible::Coercer::Integer behaves like Configurable .config_keys should not be empty + 0.00453 seconds ./spec/shared/unit/configurable.rb:12 + Coercible::Coercer::String.to_integer with "-1.0" should be a kind of Integer + 0.00378 seconds ./spec/unit/coercible/coercer/string/to_integer_spec.rb:44 + Configuring coercers allows to configure coercers + 0.00348 seconds ./spec/integration/configuring_coercers_spec.rb:4 + Coercible::Coercer::String.to_float with "+1.0" should eql 1.0 + 0.00344 seconds ./spec/unit/coercible/coercer/string/to_float_spec.rb:41 + Coercible::Coercer::Date.to_time should eql 0, 0, 0, 1, 1, 2011, 6, 1, false, and "UTC" + 0.00333 seconds ./spec/unit/coercible/coercer/date/to_time_spec.rb:11 + Coercible::Coercer.new config should respond to #string + 0.00322 seconds ./spec/unit/coercible/coercer/class_methods/new_spec.rb:11 + Coercible::Coercer::Integer#datetime_proc with Rubinius should be an instance of Proc + 0.00296 seconds ./spec/unit/coercible/coercer/integer/datetime_proc_spec.rb:15 + Coercible::Coercer::DateTime#coerced? behaves like Coercible::Coercer#coerced? with a non-primitive value should equal false + 0.00226 seconds ./spec/shared/unit/coerced_predicate.rb:11 Top 10 slowest example groups: - Coercible::Coercer::Symbol.to_string - 0.00893 seconds average (0.01785 seconds / 2 examples) ./spec/unit/coercible/coercer/symbol/to_string_spec.rb:3 - Coercible::Coercer::Float.to_decimal - 0.00857 seconds average (0.01714 seconds / 2 examples) ./spec/unit/coercible/coercer/float/to_decimal_spec.rb:3 Coercible::Coercer::Integer#datetime_format - 0.00755 seconds average (0.0151 seconds / 2 examples) ./spec/unit/coercible/coercer/integer/datetime_format_spec.rb:3 + 0.00407 seconds average (0.00814 seconds / 2 examples) ./spec/unit/coercible/coercer/integer/datetime_format_spec.rb:3 + Configuring coercers + 0.0038 seconds average (0.0038 seconds / 1 example) ./spec/integration/configuring_coercers_spec.rb:3 + Coercible::Coercer::Float#coerced? + 0.00342 seconds average (0.00684 seconds / 2 examples) ./spec/unit/coercible/coercer/float/coerced_predicate_spec.rb:3 + Coercible::Coercer::Integer#datetime_proc + 0.00246 seconds average (0.00491 seconds / 2 examples) ./spec/unit/coercible/coercer/integer/datetime_proc_spec.rb:3 + Coercible::Coercer::Date.to_time + 0.0022 seconds average (0.0044 seconds / 2 examples) ./spec/unit/coercible/coercer/date/to_time_spec.rb:3 + Coercible::Coercer::DateTime#coerced? + 0.00202 seconds average (0.00405 seconds / 2 examples) ./spec/unit/coercible/coercer/date_time/coerced_predicate_spec.rb:3 + Coercible::Coercer.new + 0.00177 seconds average (0.00709 seconds / 4 examples) ./spec/unit/coercible/coercer/class_methods/new_spec.rb:3 Coercible::Coercer::Integer#coerced? - 0.00739 seconds average (0.01478 seconds / 2 examples) ./spec/unit/coercible/coercer/integer/coerced_predicate_spec.rb:3 - Coercible::Coercer::Date#coerced? - 0.00738 seconds average (0.01476 seconds / 2 examples) ./spec/unit/coercible/coercer/date/coerced_predicate_spec.rb:3 - Coercible::Coercer::Numeric.to_string - 0.00731 seconds average (0.00731 seconds / 1 example) ./spec/unit/coercible/coercer/numeric/to_string_spec.rb:3 - Coercible::Coercer#[] - 0.00726 seconds average (0.01452 seconds / 2 examples) ./spec/unit/coercible/coercer/element_reader_spec.rb:3 - Coercible::Coercer::Decimal#coerced? - 0.00722 seconds average (0.01444 seconds / 2 examples) ./spec/unit/coercible/coercer/decimal/coerced_predicate_spec.rb:3 - Coercible::Coercer::String.to_time - 0.00709 seconds average (0.10639 seconds / 15 examples) ./spec/unit/coercible/coercer/string/to_time_spec.rb:14 - Coercible::Coercer::Decimal.to_integer - 0.00623 seconds average (0.01246 seconds / 2 examples) ./spec/unit/coercible/coercer/decimal/to_integer_spec.rb:3 + 0.00165 seconds average (0.00331 seconds / 2 examples) ./spec/unit/coercible/coercer/integer/coerced_predicate_spec.rb:3 + Coercible::Coercer::Integer.to_boolean + 0.00164 seconds average (0.00491 seconds / 3 examples) ./spec/unit/coercible/coercer/integer/to_boolean_spec.rb:3 + Coercible::Coercer::Integer#to_datetime + 0.00162 seconds average (0.00162 seconds / 1 example) ./spec/unit/coercible/coercer/integer/to_datetime_spec.rb:3 -Finished in 1.41 seconds (files took 1.05 seconds to load) +Finished in 0.47528 seconds (files took 0.44198 seconds to load) 396 examples, 0 failures -Randomized with seed 23336 +Randomized with seed 54052 ┌──────────────────────────────────────────────────────────────────────────────┐ @@ -1934,12 +1968,14 @@ dpkg-source --after-build . dpkg-buildpackage: info: binary-only upload (no source included) I: copying local configuration +I: user script /srv/workspace/pbuilder/1879/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/1879/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/13387 and its subdirectories -I: Current time: Thu Jul 22 23:43:17 -12 2021 -I: pbuilder-time-stamp: 1627040597 +I: removing directory /srv/workspace/pbuilder/1879 and its subdirectories +I: Current time: Fri Aug 26 08:07:23 +14 2022 +I: pbuilder-time-stamp: 1661450843