Diff of the two buildlogs: -- --- b1/build.log 2021-07-17 05:46:39.625747429 +0000 +++ b2/build.log 2021-07-17 05:52:27.876626808 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Fri Jul 16 17:43:27 -12 2021 -I: pbuilder-time-stamp: 1626500607 +I: Current time: Sat Jul 17 19:46:51 +14 2021 +I: pbuilder-time-stamp: 1626500811 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/bullseye-reproducible-base.tgz] I: copying local configuration @@ -16,8 +16,8 @@ I: copying [./ruby-coercible_1.0.0-2.1.debian.tar.xz] I: Extracting source gpgv: unknown type of key resource 'trustedkeys.kbx' -gpgv: keyblock resource '/tmp/dpkg-verify-sig.8r0bAyKM/trustedkeys.kbx': General error -gpgv: Signature made Mon Jan 4 22:30:32 2021 -12 +gpgv: keyblock resource '/tmp/dpkg-verify-sig.fUxTDTZx/trustedkeys.kbx': General error +gpgv: Signature made Wed Jan 6 00:30:32 2021 +14 gpgv: using RSA key B8BF54137B09D35CF026FE9D091AB856069AAA1C gpgv: Can't check signature: No public key dpkg-source: warning: failed to verify signature on ./ruby-coercible_1.0.0-2.1.dsc @@ -30,135 +30,169 @@ dpkg-source: info: applying rspec3.patch I: using fakeroot in build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/6553/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/2924/tmp/hooks/D01_modify_environment starting +debug: Running on ff64a. +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/2924/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/2924/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='armhf' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all,-fixfilepath parallel=3' - DISTRIBUTION='' - HOME='/root' - HOST_ARCH='armhf' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="1" [2]="4" [3]="1" [4]="release" [5]="arm-unknown-linux-gnueabihf") + BASH_VERSION='5.1.4(1)-release' + BUILDDIR=/build + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=armhf + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all,-fixfilepath parallel=6' + DIRSTACK=() + DISTRIBUTION= + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=arm + HOST_ARCH=armhf IFS=' ' - INVOCATION_ID='cd3f0257e0974860a9a6d1e70e0285b8' - 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='6553' - PS1='# ' - PS2='> ' + INVOCATION_ID=b7c9bf4760b7427da1ed9399da54ed1c + LANG=C + LANGUAGE=it_CH:it + LC_ALL=C + MACHTYPE=arm-unknown-linux-gnueabihf + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnueabihf + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=2924 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.OhtvKMK4P2/pbuilderrc_ou9u --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bullseye-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.OhtvKMK4P2/b1 --logfile b1/build.log ruby-coercible_1.0.0-2.1.dsc' - SUDO_GID='116' - SUDO_UID='112' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://10.0.0.15:8000/' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/tmp.OhtvKMK4P2/pbuilderrc_wois --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bullseye-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.OhtvKMK4P2/b2 --logfile b2/build.log --extrapackages usrmerge ruby-coercible_1.0.0-2.1.dsc' + SUDO_GID=114 + SUDO_UID=109 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://10.0.0.15:8000/ I: uname -a - Linux cbxi4b 5.10.0-7-armmp #1 SMP Debian 5.10.40-1 (2021-05-28) armv7l GNU/Linux + Linux i-capture-the-hostname 5.10.0-7-arm64 #1 SMP Debian 5.10.40-1 (2021-05-28) aarch64 GNU/Linux I: ls -l /bin total 3580 - -rwxr-xr-x 1 root root 816764 Jun 21 14:26 bash - -rwxr-xr-x 3 root root 26052 Jul 20 2020 bunzip2 - -rwxr-xr-x 3 root root 26052 Jul 20 2020 bzcat - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzcmp -> bzdiff - -rwxr-xr-x 1 root root 2225 Jul 20 2020 bzdiff - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzegrep -> bzgrep - -rwxr-xr-x 1 root root 4877 Sep 4 2019 bzexe - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzfgrep -> bzgrep - -rwxr-xr-x 1 root root 3775 Jul 20 2020 bzgrep - -rwxr-xr-x 3 root root 26052 Jul 20 2020 bzip2 - -rwxr-xr-x 1 root root 9636 Jul 20 2020 bzip2recover - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzless -> bzmore - -rwxr-xr-x 1 root root 1297 Jul 20 2020 bzmore - -rwxr-xr-x 1 root root 26668 Sep 22 2020 cat - -rwxr-xr-x 1 root root 43104 Sep 22 2020 chgrp - -rwxr-xr-x 1 root root 38984 Sep 22 2020 chmod - -rwxr-xr-x 1 root root 43112 Sep 22 2020 chown - -rwxr-xr-x 1 root root 92616 Sep 22 2020 cp - -rwxr-xr-x 1 root root 75524 Dec 10 2020 dash - -rwxr-xr-x 1 root root 75880 Sep 22 2020 date - -rwxr-xr-x 1 root root 55436 Sep 22 2020 dd - -rwxr-xr-x 1 root root 59912 Sep 22 2020 df - -rwxr-xr-x 1 root root 96764 Sep 22 2020 dir - -rwxr-xr-x 1 root root 55012 Feb 7 02:38 dmesg - lrwxrwxrwx 1 root root 8 Nov 6 2019 dnsdomainname -> hostname - lrwxrwxrwx 1 root root 8 Nov 6 2019 domainname -> hostname - -rwxr-xr-x 1 root root 22508 Sep 22 2020 echo - -rwxr-xr-x 1 root root 28 Nov 9 2020 egrep - -rwxr-xr-x 1 root root 22496 Sep 22 2020 false - -rwxr-xr-x 1 root root 28 Nov 9 2020 fgrep - -rwxr-xr-x 1 root root 47492 Feb 7 02:38 findmnt - -rwsr-xr-x 1 root root 26076 Feb 26 04:12 fusermount - -rwxr-xr-x 1 root root 124508 Nov 9 2020 grep - -rwxr-xr-x 2 root root 2346 Mar 2 11:30 gunzip - -rwxr-xr-x 1 root root 6376 Mar 2 11:30 gzexe - -rwxr-xr-x 1 root root 64212 Mar 2 11:30 gzip - -rwxr-xr-x 1 root root 13784 Nov 6 2019 hostname - -rwxr-xr-x 1 root root 43180 Sep 22 2020 ln - -rwxr-xr-x 1 root root 35068 Feb 7 2020 login - -rwxr-xr-x 1 root root 96764 Sep 22 2020 ls - -rwxr-xr-x 1 root root 99940 Feb 7 02:38 lsblk - -rwxr-xr-x 1 root root 51408 Sep 22 2020 mkdir - -rwxr-xr-x 1 root root 43184 Sep 22 2020 mknod - -rwxr-xr-x 1 root root 30780 Sep 22 2020 mktemp - -rwxr-xr-x 1 root root 34408 Feb 7 02:38 more - -rwsr-xr-x 1 root root 34400 Feb 7 02:38 mount - -rwxr-xr-x 1 root root 9824 Feb 7 02:38 mountpoint - -rwxr-xr-x 1 root root 88524 Sep 22 2020 mv - lrwxrwxrwx 1 root root 8 Nov 6 2019 nisdomainname -> hostname - lrwxrwxrwx 1 root root 14 Apr 18 03:38 pidof -> /sbin/killall5 - -rwxr-xr-x 1 root root 26652 Sep 22 2020 pwd - lrwxrwxrwx 1 root root 4 Jun 21 14:26 rbash -> bash - -rwxr-xr-x 1 root root 30740 Sep 22 2020 readlink - -rwxr-xr-x 1 root root 43104 Sep 22 2020 rm - -rwxr-xr-x 1 root root 30732 Sep 22 2020 rmdir - -rwxr-xr-x 1 root root 14144 Sep 27 2020 run-parts - -rwxr-xr-x 1 root root 76012 Dec 22 2018 sed - lrwxrwxrwx 1 root root 4 Jul 12 21:28 sh -> dash - -rwxr-xr-x 1 root root 22532 Sep 22 2020 sleep - -rwxr-xr-x 1 root root 55360 Sep 22 2020 stty - -rwsr-xr-x 1 root root 46704 Feb 7 02:38 su - -rwxr-xr-x 1 root root 22532 Sep 22 2020 sync - -rwxr-xr-x 1 root root 340872 Feb 16 21:55 tar - -rwxr-xr-x 1 root root 9808 Sep 27 2020 tempfile - -rwxr-xr-x 1 root root 67696 Sep 22 2020 touch - -rwxr-xr-x 1 root root 22496 Sep 22 2020 true - -rwxr-xr-x 1 root root 9636 Feb 26 04:12 ulockmgr_server - -rwsr-xr-x 1 root root 22108 Feb 7 02:38 umount - -rwxr-xr-x 1 root root 22520 Sep 22 2020 uname - -rwxr-xr-x 2 root root 2346 Mar 2 11:30 uncompress - -rwxr-xr-x 1 root root 96764 Sep 22 2020 vdir - -rwxr-xr-x 1 root root 38512 Feb 7 02:38 wdctl - lrwxrwxrwx 1 root root 8 Nov 6 2019 ypdomainname -> hostname - -rwxr-xr-x 1 root root 1984 Mar 2 11:30 zcat - -rwxr-xr-x 1 root root 1678 Mar 2 11:30 zcmp - -rwxr-xr-x 1 root root 5880 Mar 2 11:30 zdiff - -rwxr-xr-x 1 root root 29 Mar 2 11:30 zegrep - -rwxr-xr-x 1 root root 29 Mar 2 11:30 zfgrep - -rwxr-xr-x 1 root root 2081 Mar 2 11:30 zforce - -rwxr-xr-x 1 root root 7585 Mar 2 11:30 zgrep - -rwxr-xr-x 1 root root 2206 Mar 2 11:30 zless - -rwxr-xr-x 1 root root 1842 Mar 2 11:30 zmore - -rwxr-xr-x 1 root root 4553 Mar 2 11:30 znew -I: user script /srv/workspace/pbuilder/6553/tmp/hooks/D02_print_environment finished + -rwxr-xr-x 1 root root 816764 Jun 22 16:26 bash + -rwxr-xr-x 3 root root 26052 Jul 21 2020 bunzip2 + -rwxr-xr-x 3 root root 26052 Jul 21 2020 bzcat + lrwxrwxrwx 1 root root 6 Jul 21 2020 bzcmp -> bzdiff + -rwxr-xr-x 1 root root 2225 Jul 21 2020 bzdiff + lrwxrwxrwx 1 root root 6 Jul 21 2020 bzegrep -> bzgrep + -rwxr-xr-x 1 root root 4877 Sep 5 2019 bzexe + lrwxrwxrwx 1 root root 6 Jul 21 2020 bzfgrep -> bzgrep + -rwxr-xr-x 1 root root 3775 Jul 21 2020 bzgrep + -rwxr-xr-x 3 root root 26052 Jul 21 2020 bzip2 + -rwxr-xr-x 1 root root 9636 Jul 21 2020 bzip2recover + lrwxrwxrwx 1 root root 6 Jul 21 2020 bzless -> bzmore + -rwxr-xr-x 1 root root 1297 Jul 21 2020 bzmore + -rwxr-xr-x 1 root root 26668 Sep 23 2020 cat + -rwxr-xr-x 1 root root 43104 Sep 23 2020 chgrp + -rwxr-xr-x 1 root root 38984 Sep 23 2020 chmod + -rwxr-xr-x 1 root root 43112 Sep 23 2020 chown + -rwxr-xr-x 1 root root 92616 Sep 23 2020 cp + -rwxr-xr-x 1 root root 75524 Dec 11 2020 dash + -rwxr-xr-x 1 root root 75880 Sep 23 2020 date + -rwxr-xr-x 1 root root 55436 Sep 23 2020 dd + -rwxr-xr-x 1 root root 59912 Sep 23 2020 df + -rwxr-xr-x 1 root root 96764 Sep 23 2020 dir + -rwxr-xr-x 1 root root 55012 Feb 8 04:38 dmesg + lrwxrwxrwx 1 root root 8 Nov 8 2019 dnsdomainname -> hostname + lrwxrwxrwx 1 root root 8 Nov 8 2019 domainname -> hostname + -rwxr-xr-x 1 root root 22508 Sep 23 2020 echo + -rwxr-xr-x 1 root root 28 Nov 10 2020 egrep + -rwxr-xr-x 1 root root 22496 Sep 23 2020 false + -rwxr-xr-x 1 root root 28 Nov 10 2020 fgrep + -rwxr-xr-x 1 root root 47492 Feb 8 04:38 findmnt + -rwsr-xr-x 1 root root 26076 Feb 27 06:12 fusermount + -rwxr-xr-x 1 root root 124508 Nov 10 2020 grep + -rwxr-xr-x 2 root root 2346 Mar 3 13:30 gunzip + -rwxr-xr-x 1 root root 6376 Mar 3 13:30 gzexe + -rwxr-xr-x 1 root root 64212 Mar 3 13:30 gzip + -rwxr-xr-x 1 root root 13784 Nov 8 2019 hostname + -rwxr-xr-x 1 root root 43180 Sep 23 2020 ln + -rwxr-xr-x 1 root root 35068 Feb 8 2020 login + -rwxr-xr-x 1 root root 96764 Sep 23 2020 ls + -rwxr-xr-x 1 root root 99940 Feb 8 04:38 lsblk + -rwxr-xr-x 1 root root 51408 Sep 23 2020 mkdir + -rwxr-xr-x 1 root root 43184 Sep 23 2020 mknod + -rwxr-xr-x 1 root root 30780 Sep 23 2020 mktemp + -rwxr-xr-x 1 root root 34408 Feb 8 04:38 more + -rwsr-xr-x 1 root root 34400 Feb 8 04:38 mount + -rwxr-xr-x 1 root root 9824 Feb 8 04:38 mountpoint + -rwxr-xr-x 1 root root 88524 Sep 23 2020 mv + lrwxrwxrwx 1 root root 8 Nov 8 2019 nisdomainname -> hostname + lrwxrwxrwx 1 root root 14 Apr 19 05:38 pidof -> /sbin/killall5 + -rwxr-xr-x 1 root root 26652 Sep 23 2020 pwd + lrwxrwxrwx 1 root root 4 Jun 22 16:26 rbash -> bash + -rwxr-xr-x 1 root root 30740 Sep 23 2020 readlink + -rwxr-xr-x 1 root root 43104 Sep 23 2020 rm + -rwxr-xr-x 1 root root 30732 Sep 23 2020 rmdir + -rwxr-xr-x 1 root root 14144 Sep 28 2020 run-parts + -rwxr-xr-x 1 root root 76012 Dec 23 2018 sed + lrwxrwxrwx 1 root root 4 Jul 17 19:47 sh -> bash + lrwxrwxrwx 1 root root 4 Jul 16 23:26 sh.distrib -> dash + -rwxr-xr-x 1 root root 22532 Sep 23 2020 sleep + -rwxr-xr-x 1 root root 55360 Sep 23 2020 stty + -rwsr-xr-x 1 root root 46704 Feb 8 04:38 su + -rwxr-xr-x 1 root root 22532 Sep 23 2020 sync + -rwxr-xr-x 1 root root 340872 Feb 17 23:55 tar + -rwxr-xr-x 1 root root 9808 Sep 28 2020 tempfile + -rwxr-xr-x 1 root root 67696 Sep 23 2020 touch + -rwxr-xr-x 1 root root 22496 Sep 23 2020 true + -rwxr-xr-x 1 root root 9636 Feb 27 06:12 ulockmgr_server + -rwsr-xr-x 1 root root 22108 Feb 8 04:38 umount + -rwxr-xr-x 1 root root 22520 Sep 23 2020 uname + -rwxr-xr-x 2 root root 2346 Mar 3 13:30 uncompress + -rwxr-xr-x 1 root root 96764 Sep 23 2020 vdir + -rwxr-xr-x 1 root root 38512 Feb 8 04:38 wdctl + lrwxrwxrwx 1 root root 8 Nov 8 2019 ypdomainname -> hostname + -rwxr-xr-x 1 root root 1984 Mar 3 13:30 zcat + -rwxr-xr-x 1 root root 1678 Mar 3 13:30 zcmp + -rwxr-xr-x 1 root root 5880 Mar 3 13:30 zdiff + -rwxr-xr-x 1 root root 29 Mar 3 13:30 zegrep + -rwxr-xr-x 1 root root 29 Mar 3 13:30 zfgrep + -rwxr-xr-x 1 root root 2081 Mar 3 13:30 zforce + -rwxr-xr-x 1 root root 7585 Mar 3 13:30 zgrep + -rwxr-xr-x 1 root root 2206 Mar 3 13:30 zless + -rwxr-xr-x 1 root root 1842 Mar 3 13:30 zmore + -rwxr-xr-x 1 root root 4553 Mar 3 13:30 znew +I: user script /srv/workspace/pbuilder/2924/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -339,7 +373,7 @@ Get: 133 http://deb.debian.org/debian bullseye/main armhf ruby-rspec-mocks all 3.9.0c2e2m1s3-2 [81.4 kB] Get: 134 http://deb.debian.org/debian bullseye/main armhf ruby-rspec all 3.9.0c2e2m1s3-2 [8348 B] Get: 135 http://deb.debian.org/debian bullseye/main armhf ruby-rspec-its all 1.3.0-1 [6864 B] -Fetched 42.4 MB in 6s (7014 kB/s) +Fetched 42.4 MB in 8s (5452 kB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package bsdextrautils. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19398 files and directories currently installed.) @@ -907,9 +941,42 @@ Building dependency tree... Reading state information... fakeroot is already the newest version (1.25.3-1.1). -0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. +The following additional packages will be installed: + libfile-find-rule-perl libnumber-compare-perl libtext-glob-perl +The following NEW packages will be installed: + libfile-find-rule-perl libnumber-compare-perl libtext-glob-perl usrmerge +0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. +Need to get 59.5 kB of archives. +After this operation, 157 kB of additional disk space will be used. +Get:1 http://deb.debian.org/debian bullseye/main armhf libnumber-compare-perl all 0.03-1.1 [6956 B] +Get:2 http://deb.debian.org/debian bullseye/main armhf libtext-glob-perl all 0.11-1 [8888 B] +Get:3 http://deb.debian.org/debian bullseye/main armhf libfile-find-rule-perl all 0.34-1 [30.6 kB] +Get:4 http://deb.debian.org/debian bullseye/main armhf usrmerge all 25 [13.0 kB] +debconf: delaying package configuration, since apt-utils is not installed +Fetched 59.5 kB in 0s (551 kB/s) +Selecting previously unselected package libnumber-compare-perl. +(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 ... 26633 files and directories currently installed.) +Preparing to unpack .../libnumber-compare-perl_0.03-1.1_all.deb ... +Unpacking libnumber-compare-perl (0.03-1.1) ... +Selecting previously unselected package libtext-glob-perl. +Preparing to unpack .../libtext-glob-perl_0.11-1_all.deb ... +Unpacking libtext-glob-perl (0.11-1) ... +Selecting previously unselected package libfile-find-rule-perl. +Preparing to unpack .../libfile-find-rule-perl_0.34-1_all.deb ... +Unpacking libfile-find-rule-perl (0.34-1) ... +Selecting previously unselected package usrmerge. +Preparing to unpack .../archives/usrmerge_25_all.deb ... +Unpacking usrmerge (25) ... +Setting up libtext-glob-perl (0.11-1) ... +Setting up libnumber-compare-perl (0.03-1.1) ... +Setting up libfile-find-rule-perl (0.34-1) ... +Setting up usrmerge (25) ... +The system has been successfully converted. +Processing triggers for man-db (2.9.4-2) ... +Not building database; man-db/auto-update is not 'true'. 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 && 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 +hostname: Name or service not known +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 && 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 @@ -961,29 +1028,29 @@ └──────────────────────────────────────────────────────────────────────────────┘ install -d /build/ruby-coercible-1.0.0/debian/ruby-coercible/usr/lib/ruby/vendor_ruby -install -D -m644 /build/ruby-coercible-1.0.0/lib/coercible/version.rb /build/ruby-coercible-1.0.0/debian/ruby-coercible/usr/lib/ruby/vendor_ruby/coercible/version.rb -install -D -m644 /build/ruby-coercible-1.0.0/lib/coercible/support/options.rb /build/ruby-coercible-1.0.0/debian/ruby-coercible/usr/lib/ruby/vendor_ruby/coercible/support/options.rb +install -D -m644 /build/ruby-coercible-1.0.0/lib/support/type_lookup.rb /build/ruby-coercible-1.0.0/debian/ruby-coercible/usr/lib/ruby/vendor_ruby/support/type_lookup.rb +install -D -m644 /build/ruby-coercible-1.0.0/lib/support/options.rb /build/ruby-coercible-1.0.0/debian/ruby-coercible/usr/lib/ruby/vendor_ruby/support/options.rb install -D -m644 /build/ruby-coercible-1.0.0/lib/coercible/support/type_lookup.rb /build/ruby-coercible-1.0.0/debian/ruby-coercible/usr/lib/ruby/vendor_ruby/coercible/support/type_lookup.rb -install -D -m644 /build/ruby-coercible-1.0.0/lib/coercible/coercer.rb /build/ruby-coercible-1.0.0/debian/ruby-coercible/usr/lib/ruby/vendor_ruby/coercible/coercer.rb +install -D -m644 /build/ruby-coercible-1.0.0/lib/coercible/support/options.rb /build/ruby-coercible-1.0.0/debian/ruby-coercible/usr/lib/ruby/vendor_ruby/coercible/support/options.rb install -D -m644 /build/ruby-coercible-1.0.0/lib/coercible/configuration.rb /build/ruby-coercible-1.0.0/debian/ruby-coercible/usr/lib/ruby/vendor_ruby/coercible/configuration.rb -install -D -m644 /build/ruby-coercible-1.0.0/lib/coercible/coercer/string.rb /build/ruby-coercible-1.0.0/debian/ruby-coercible/usr/lib/ruby/vendor_ruby/coercible/coercer/string.rb -install -D -m644 /build/ruby-coercible-1.0.0/lib/coercible/coercer/array.rb /build/ruby-coercible-1.0.0/debian/ruby-coercible/usr/lib/ruby/vendor_ruby/coercible/coercer/array.rb install -D -m644 /build/ruby-coercible-1.0.0/lib/coercible/coercer/hash.rb /build/ruby-coercible-1.0.0/debian/ruby-coercible/usr/lib/ruby/vendor_ruby/coercible/coercer/hash.rb -install -D -m644 /build/ruby-coercible-1.0.0/lib/coercible/coercer/date.rb /build/ruby-coercible-1.0.0/debian/ruby-coercible/usr/lib/ruby/vendor_ruby/coercible/coercer/date.rb -install -D -m644 /build/ruby-coercible-1.0.0/lib/coercible/coercer/decimal.rb /build/ruby-coercible-1.0.0/debian/ruby-coercible/usr/lib/ruby/vendor_ruby/coercible/coercer/decimal.rb -install -D -m644 /build/ruby-coercible-1.0.0/lib/coercible/coercer/symbol.rb /build/ruby-coercible-1.0.0/debian/ruby-coercible/usr/lib/ruby/vendor_ruby/coercible/coercer/symbol.rb -install -D -m644 /build/ruby-coercible-1.0.0/lib/coercible/coercer/float.rb /build/ruby-coercible-1.0.0/debian/ruby-coercible/usr/lib/ruby/vendor_ruby/coercible/coercer/float.rb install -D -m644 /build/ruby-coercible-1.0.0/lib/coercible/coercer/numeric.rb /build/ruby-coercible-1.0.0/debian/ruby-coercible/usr/lib/ruby/vendor_ruby/coercible/coercer/numeric.rb +install -D -m644 /build/ruby-coercible-1.0.0/lib/coercible/coercer/time.rb /build/ruby-coercible-1.0.0/debian/ruby-coercible/usr/lib/ruby/vendor_ruby/coercible/coercer/time.rb install -D -m644 /build/ruby-coercible-1.0.0/lib/coercible/coercer/integer.rb /build/ruby-coercible-1.0.0/debian/ruby-coercible/usr/lib/ruby/vendor_ruby/coercible/coercer/integer.rb +install -D -m644 /build/ruby-coercible-1.0.0/lib/coercible/coercer/string.rb /build/ruby-coercible-1.0.0/debian/ruby-coercible/usr/lib/ruby/vendor_ruby/coercible/coercer/string.rb +install -D -m644 /build/ruby-coercible-1.0.0/lib/coercible/coercer/float.rb /build/ruby-coercible-1.0.0/debian/ruby-coercible/usr/lib/ruby/vendor_ruby/coercible/coercer/float.rb +install -D -m644 /build/ruby-coercible-1.0.0/lib/coercible/coercer/symbol.rb /build/ruby-coercible-1.0.0/debian/ruby-coercible/usr/lib/ruby/vendor_ruby/coercible/coercer/symbol.rb +install -D -m644 /build/ruby-coercible-1.0.0/lib/coercible/coercer/configurable.rb /build/ruby-coercible-1.0.0/debian/ruby-coercible/usr/lib/ruby/vendor_ruby/coercible/coercer/configurable.rb install -D -m644 /build/ruby-coercible-1.0.0/lib/coercible/coercer/date_time.rb /build/ruby-coercible-1.0.0/debian/ruby-coercible/usr/lib/ruby/vendor_ruby/coercible/coercer/date_time.rb install -D -m644 /build/ruby-coercible-1.0.0/lib/coercible/coercer/object.rb /build/ruby-coercible-1.0.0/debian/ruby-coercible/usr/lib/ruby/vendor_ruby/coercible/coercer/object.rb -install -D -m644 /build/ruby-coercible-1.0.0/lib/coercible/coercer/time.rb /build/ruby-coercible-1.0.0/debian/ruby-coercible/usr/lib/ruby/vendor_ruby/coercible/coercer/time.rb -install -D -m644 /build/ruby-coercible-1.0.0/lib/coercible/coercer/configurable.rb /build/ruby-coercible-1.0.0/debian/ruby-coercible/usr/lib/ruby/vendor_ruby/coercible/coercer/configurable.rb +install -D -m644 /build/ruby-coercible-1.0.0/lib/coercible/coercer/array.rb /build/ruby-coercible-1.0.0/debian/ruby-coercible/usr/lib/ruby/vendor_ruby/coercible/coercer/array.rb install -D -m644 /build/ruby-coercible-1.0.0/lib/coercible/coercer/false_class.rb /build/ruby-coercible-1.0.0/debian/ruby-coercible/usr/lib/ruby/vendor_ruby/coercible/coercer/false_class.rb -install -D -m644 /build/ruby-coercible-1.0.0/lib/coercible/coercer/time_coercions.rb /build/ruby-coercible-1.0.0/debian/ruby-coercible/usr/lib/ruby/vendor_ruby/coercible/coercer/time_coercions.rb +install -D -m644 /build/ruby-coercible-1.0.0/lib/coercible/coercer/date.rb /build/ruby-coercible-1.0.0/debian/ruby-coercible/usr/lib/ruby/vendor_ruby/coercible/coercer/date.rb install -D -m644 /build/ruby-coercible-1.0.0/lib/coercible/coercer/true_class.rb /build/ruby-coercible-1.0.0/debian/ruby-coercible/usr/lib/ruby/vendor_ruby/coercible/coercer/true_class.rb -install -D -m644 /build/ruby-coercible-1.0.0/lib/support/options.rb /build/ruby-coercible-1.0.0/debian/ruby-coercible/usr/lib/ruby/vendor_ruby/support/options.rb -install -D -m644 /build/ruby-coercible-1.0.0/lib/support/type_lookup.rb /build/ruby-coercible-1.0.0/debian/ruby-coercible/usr/lib/ruby/vendor_ruby/support/type_lookup.rb +install -D -m644 /build/ruby-coercible-1.0.0/lib/coercible/coercer/time_coercions.rb /build/ruby-coercible-1.0.0/debian/ruby-coercible/usr/lib/ruby/vendor_ruby/coercible/coercer/time_coercions.rb +install -D -m644 /build/ruby-coercible-1.0.0/lib/coercible/coercer/decimal.rb /build/ruby-coercible-1.0.0/debian/ruby-coercible/usr/lib/ruby/vendor_ruby/coercible/coercer/decimal.rb +install -D -m644 /build/ruby-coercible-1.0.0/lib/coercible/coercer.rb /build/ruby-coercible-1.0.0/debian/ruby-coercible/usr/lib/ruby/vendor_ruby/coercible/coercer.rb +install -D -m644 /build/ruby-coercible-1.0.0/lib/coercible/version.rb /build/ruby-coercible-1.0.0/debian/ruby-coercible/usr/lib/ruby/vendor_ruby/coercible/version.rb install -D -m644 /build/ruby-coercible-1.0.0/lib/coercible.rb /build/ruby-coercible-1.0.0/debian/ruby-coercible/usr/lib/ruby/vendor_ruby/coercible.rb ┌──────────────────────────────────────────────────────────────────────────────┐ @@ -1003,547 +1070,307 @@ All examples were filtered out; ignoring {:focus=>true} -Randomized with seed 18270 +Randomized with seed 57999 -Coercible::Coercer::String.config - boolean_map - is expected to 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::Float.to_float + is expected to equal 1.0 -Coercible::Coercer::String.to_float - with ".1e-1" - is expected to be an instance of Float - is expected to eql 0.01 - string starts with e +Coercible::Coercer::String.to_integer + with an invalid integer 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" - is expected to eql 1.0 - is expected to be an instance of Float + when integer string is big + is expected to == 334490140000101135 + with "1.7976931348623158e+307" + is expected to be a kind of Integer + is expected to eql 17976931348623157580412819756850388593900235011794141176754562789180111453639664485361928830517704263...0189893797509826303293149283469713429932049693599732425511693654044437030940398714664210204414967808 + with "-1.0e+1" + is expected to eql -10 + is expected to be a kind of Integer 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 be an instance of Float - is expected to eql 10.0 - with "+1.0" - is expected to be an instance of Float - is expected to eql 1.0 + is expected to eql 10 + is expected to be a kind of Integer + string starts with e + is expected to raise Coercible::UnsupportedCoercion + with "-1e-1" + is expected to eql 0 + is expected to be a kind of Integer with "1.0E+1" - is expected to be an instance of Float - is expected to eql 10.0 + is expected to eql 10 + is expected to be a kind of Integer with "-1.0E+1" - is expected to eql -10.0 - is expected to be an instance of Float + is expected to be a kind of Integer + 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 0 + with ".1e+1" + is expected to eql 1 + is expected to be a kind of Integer + with "1e1" + 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 "-1E1" + is expected to be a kind of Integer + is expected to eql -10 + with "+1.0E-1" + is expected to eql 0 + is expected to be a kind of Integer + with ".1E+1" + is expected to eql 1 + is expected to be a kind of Integer + with "1.0" + is expected to be a kind of Integer + is expected to eql 1 + with "+1" + is expected to be a kind of Integer + is expected to eql 1 + with "-1.0" + is expected to eql -1 + is expected to be a kind of Integer + with "+1e-1" + is expected to eql 0 + is expected to be a kind of Integer 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 + is expected to be a kind of Integer + is expected to eql 0 with ".1" - is expected to eql 0.1 - is expected to be an instance of Float + 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 "1E+1" + is expected to eql 10 + is expected to be a kind of Integer with "-1.0e-1" - is expected to be an instance of Float - is expected to eql -0.1 + is expected to eql 0 + is expected to be a kind of Integer with "+1.0e-1" - is expected to eql 0.1 - is expected to be an instance of Float + 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 "2.2250738585072014e-308" + is expected to be a kind of Integer + is expected to eql 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 + is expected to eql 0 + is expected to be a kind of Integer + with "+1.0" + is expected to be a kind of Integer + is expected to eql 1 with "1.0E-1" - is expected to eql 0.1 - 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 1.0 - with "1.0" - is expected to be an instance of Float - is expected to eql 1.0 - with "+1" - 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 "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 ".1e+1" - is expected to be an instance of Float - is expected to eql 1.0 - with "1E+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" - is expected to be an instance of Float - is expected to eql -1.0 - with "-1E1" - is expected to be an instance of Float - is expected to eql -10.0 - -Coercible::Coercer::Float#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::Integer.to_boolean - when the fixnum is 0 - is expected to equal false - when the fixnum is 1 - is expected to equal true - when the fixnum is not 1 or 0 - is expected to raise Coercible::UnsupportedCoercion - -Coercible::Coercer::Object#coerced? - is expected to equal true - -Coercible::Coercer::TrueClass.to_string - is expected to eql "true" - is expected to be an instance of 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 be an instance of Time - is expected to eql 0, 0, 0, 1, 1, 2011, 6, 1, false, and "UTC" - -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::String#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 + is expected to be a kind of Integer + is expected to eql 0 + with "1" + is expected to be a kind of Integer + is expected to eql 1 -Coercible::Coercer::Array#coerced? +Coercible::Coercer::Integer#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::Decimal#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::Integer.to_float - is expected to eql 1.0 - is expected to be an instance of Float - -Coercible::Coercer::String.to_constant - with a name outside of the namespace - is expected to raise NameError - when the name is invalid - is expected to raise NameError - with a non-namespaced name - is expected to equal String - with a non-namespaced qualified name - is expected to equal String - when the name is unknown - is expected to raise NameError - with a namespaced name - is expected to equal Coercible::Coercer::String - with a namespaced qualified name - is expected to equal Coercible::Coercer::String - -Coercible::Coercer::Date.to_date - is expected to 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::String.to_symbol - is expected to equal :value - -Coercible::Coercer::Integer.to_integer - is expected to equal 1 - -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 integers - is expected to be an instance of DateTime - is expected to eql # - when time segments are missing - uses the Time now to populate the segments - is expected to be an instance of DateTime +Coercible::Coercer::Decimal.to_decimal + is expected to equal 0.1e1 Coercible::Configuration.build - is expected to respond to #bar - is expected to be an instance of Coercible::Configuration is expected to respond to #bar= - is expected to respond to #foo= is expected to respond to #foo + is expected to be an instance of Coercible::Configuration + is expected to respond to #bar + is expected to respond to #foo= -Coercible::Coercer::TimeCoercions.to_time - when the value responds 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 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::Object.to_array + when the value returns nil from #to_ary + wraps the value in an Array if #to_a is not available + calls #to_a as a fallback + 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_a but not #to_ary + is expected to equal # + when the value responds to #to_ary + is expected to equal # + does not call #to_a if #to_ary is available -Coercible::Coercer::String.to_datetime - with an invalid date time string - is expected to raise Coercible::UnsupportedCoercion - with a valid date string +Coercible::Coercer::Time.to_integer + is expected to eql 1626501110 + +Coercible::Coercer::String.to_time + with a valid time string not including time part - it should behave like a correct datetime object - is expected to be an instance of DateTime - sec - is expected to == 0 - min - is expected to == 0 + it should behave like a correct time object + is expected to be an instance of Time year is expected to == 2011 + day + is expected to == 22 month is expected to == 7 + sec + is expected to == 0 + min + is expected to == 0 hour is expected to == 0 - day - is expected to == 22 including time part - it should behave like a correct datetime object - is expected to be an instance of DateTime + it should behave like a correct time object + is expected to be an instance of Time min is expected to == 44 - month - is expected to == 7 - hour - is expected to == 13 sec is expected to == 50 day is expected to == 22 + hour + is expected to == 13 year is expected to == 2011 + month + is expected to == 7 + with an invalid date time string + is expected to raise Coercible::UnsupportedCoercion -Coercible::Coercer::Numeric.to_integer - is expected to eql 1 - -Coercible::Coercer::Float.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 + is expected to be an instance of Date + uses the Time now to populate the segments + when time segments are strings + is expected to eql # + is expected to be an instance of Date + when time segments are integers + is expected to eql # + is expected to be an instance of Date -Coercible::Coercer::FalseClass#coerced? +Coercible::Coercer::Date#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::Integer#coerced? +Coercible::Coercer::String#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::Configurable.config - is expected to equal # - -Coercible::Coercer::Time#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::Hash.to_date - when time segments are integers - is expected to be an instance of Date - is expected to eql # - when time segments are strings - is expected to eql # - is expected to be an instance of Date - when time segments are missing - is expected to be an instance of Date - uses the Time now to populate the segments - Coercible::Coercer::Date.to_string - is expected to be an instance of String is expected to eql "2011-01-01" - -Coercible::Coercer::Integer#datetime_format - with Rubinius - is expected to == "%Q" - with other Ruby VMs - is expected to == "%s" - -Coercible::Coercer::TimeCoercions.to_datetime - when the value responds to #to_datetime - is expected to be an instance of DateTime - is expected to eql # - when the value does not respond to #to_datetime - is expected to be an instance of DateTime - is expected to eql # - -Coercible::Coercer::Integer#to_datetime - is expected to eql "2013-02-16 17:44:32.000" - -Coercible::Coercer::Object.to_string - when the value responds to #to_str - is expected to equal # - when the value does not respond to #to_str - is expected to raise Coercible::UnsupportedCoercion - -Coercible::Coercer::Object#inspect - is expected to == "#" - -Coercible::Coercer::Object.to_integer - when the value does not respond to #to_int - is expected to raise Coercible::UnsupportedCoercion - when the value responds to #to_int - is expected to equal # - -Coercible::Coercer::Decimal.to_decimal - is expected to equal 0.1e1 + is expected to be an instance of String Coercible::Coercer::Object#method_missing when method doesn't match coercion method regexp is expected to raise NoMethodError when method matches coercion method regexp - 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::DateTime.to_string - is expected to eql "2011-01-01T00:00:00+00:00" - is expected to be an instance of String + is expected to equal # -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_a but not #to_ary - is expected to equal # - when the value responds to #to_ary - is expected to 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 +Coercible::Coercer::Numeric.to_string + is expected to eql "1/1" -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::Decimal.to_float + is expected to be an instance of Float + is expected to eql 1.0 -Coercible::Coercer::TimeCoercions.to_string - is expected to eql "2011-01-01" - is expected to be an instance of String +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::Float.to_float - is expected to equal 1.0 +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#[] - 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 + with a known type + is expected to be an instance of Coercible::Coercer::String -Coercible::Coercer::Integer#datetime_proc - with other Ruby VMs - is expected to be an instance of Proc - with Rubinius - is expected to be an instance of Proc +Coercible::Coercer::Float.to_integer + is expected to be a kind of Integer + is expected to eql 1 Coercible::Coercer::Hash#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::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::FalseClass.to_string + is expected to be an instance of String + is expected to eql "false" -Coercible::Coercer::Float.to_integer +Coercible::Coercer::Numeric.to_integer is expected to eql 1 - is expected to be a kind of Integer -Coercible::Coercer::Numeric.to_string - is expected to eql "1/1" - -Coercible::Coercer::String - behaves like Configurable - .config_name - is expected to be an instance of Symbol - .config - responds to configuration keys - is expected to be an instance of Coercible::Configuration - .config_name - is expected to equal :string - .config_keys - is expected not to be empty - is expected to be an instance of Array +Coercible::Coercer::TimeCoercions.to_datetime + when the value does not respond to #to_datetime + is expected to be an instance of DateTime + is expected to eql # + when the value responds to #to_datetime + is expected to be an instance of DateTime + is expected to eql # -Coercible::Coercer::Array#to_set - is expected to eql "a", 1, "b", and 2 - is expected to be an instance of Set +Coercible::Coercer::Time.to_time + is expected to equal 0, 0, 0, 1, 1, 2012, 0, 1, false, and "UTC" -Coercible::Coercer::Time.to_integer - is expected to eql 1626500771 +Coercible::Coercer::String.config + boolean_map + is expected to 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 - is expected to equal # +Coercible::Coercer::Decimal.to_integer + is expected to be a kind of Integer + is expected to eql 1 -Coercible::Coercer::Numeric.to_float - is expected to eql 1.0 +Coercible::Coercer::Integer#datetime_proc + with other Ruby VMs + is expected to be an instance of Proc + with Rubinius + is expected to be an instance of Proc -Coercible::Coercer::Hash.to_time - 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 be an instance of Time - is expected to eql 1, 1, 1, 1, 1, 2011, 6, 1, false, and "UTC" - when time segments are strings - 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::Object.to_integer + when the value does not respond to #to_int + is expected to raise Coercible::UnsupportedCoercion + when the value responds to #to_int + is expected to equal # -Coercible::Coercer::Configurable.config_name - is expected to equal :test +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_integer - with "+1" - is expected to eql 1 - is expected to be a kind of Integer - with "-1.0" - 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 ".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 10 - with "-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 1 - with "-1.0E-1" - is expected to eql 0 - is expected to be a kind of Integer - string starts with e - is expected to raise Coercible::UnsupportedCoercion - with ".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.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 "+1e-1" - is expected to eql 0 - is expected to be a kind of Integer - with "-1e-1" - 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 an invalid integer string - is expected to raise Coercible::UnsupportedCoercion - with "-1.0E+1" - is expected to eql -10 - is expected to be a kind of Integer - with "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 10 - with "-1E1" - is expected to be a kind of Integer - is expected to eql -10 - when integer string is big - is expected to == 334490140000101135 - with "-1.0e+1" - is expected to eql -10 - 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 "1e1" - is expected to eql 10 - 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.0" - is expected to eql 1 - is expected to be a kind of Integer - with "1.7976931348623158e+307" - is expected to eql 17976931348623157580412819756850388593900235011794141176754562789180111453639664485361928830517704263...0189893797509826303293149283469713429932049693599732425511693654044437030940398714664210204414967808 - is expected to be a kind of Integer - 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 0 - with "1.0E+1" - is expected to eql 10 - 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.0E-1" - is expected to eql 0 - is expected to be a kind of Integer +Coercible::Coercer::String.to_constant + with a namespaced qualified name + is expected to equal Coercible::Coercer::String + with a non-namespaced qualified name + is expected to equal String + with a non-namespaced name + is expected to equal String + when the name is invalid + is expected to raise NameError + with a namespaced name + is expected to equal Coercible::Coercer::String + when the name is unknown + is expected to raise NameError + with a name outside of the namespace + is expected to raise NameError Coercible::Coercer::DateTime#coerced? behaves like Coercible::Coercer#coerced? @@ -1552,272 +1379,512 @@ with a primitive value is expected to equal true -Coercible::Coercer::Decimal.to_float - is expected to eql 1.0 - is expected to be an instance of Float - -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 - hour - is expected to == 13 - day - is expected to == 22 - month - is expected to == 7 - year - is expected to == 2011 - sec - is expected to == 50 - min - is expected to == 44 - not including time part - it should behave like a correct time object - is expected to be an instance of Time - hour - is expected to == 0 - sec - is expected to == 0 - day - is expected to == 22 - year - is expected to == 2011 - month - is expected to == 7 - min - is expected to == 0 - with an invalid date time string +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 + day + is expected to == 22 + year + is expected to == 2011 + month + is expected to == 7 -Coercible::Coercer::Decimal.to_string - is expected to eql "1.0" - is expected to be an instance of String +Coercible::Coercer::Hash.to_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 + when time segments are missing + is expected to be an instance of Time + uses the Time now to populate the segments + when time segments are strings + 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::Integer.to_string - is expected to eql "1" - is expected to be an instance of String +Coercible::Coercer::Object#coerced? + is expected to equal true + +Coercible::Coercer::TimeCoercions.to_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 + when the value responds 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" Coercible::Coercer.new is expected to be an instance of Coercible::Coercer config - is expected to respond to #string + is expected to be an instance of Coercible::Configuration config is expected to respond to #string= config - is expected to be an instance of Coercible::Configuration + is expected to respond to #string -Coercible::Coercer::Date#coerced? +Coercible::Coercer::Integer#datetime_format + with Rubinius + is expected to == "%Q" + with other Ruby VMs + is expected to == "%s" + +Coercible::Coercer::Configurable.config + is expected to equal # + +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::Time.to_time - is expected to equal 0, 0, 0, 1, 1, 2012, 0, 1, false, and "UTC" - -Coercible::Coercer::Float#to_float - is expected to eql "2013-02-16 17:44:32.120" +Coercible::Coercer::Integer.to_float + is expected to eql 1.0 + is expected to be an instance of Float -Coercible::Coercer::Integer.to_decimal - is expected to be an instance of BigDecimal - is expected to eql 0.1e1 +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::String.to_boolean - with "yes" - is expected to equal true - with "true" - is expected to equal true - with "TRUE" - is expected to equal true - with "off" - is expected to equal false - with "Y" - is expected to equal true - with "F" - is expected to equal false - with "ON" - is expected to equal true - with "0" - is expected to equal false - with "OFF" - is expected to equal false - with "f" - is expected to equal false - with "t" - is expected to equal true - with "N" - is expected to equal false - with "on" - is expected to equal true - with "n" - is expected to equal false - with "NO" - 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/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 "YES" - is expected to equal true - with "no" - is expected to equal false - with "y" - is expected to equal true - with "false" - is expected to equal false - with "FALSE" - is expected to equal false - with "1" - is expected to equal true - with "T" - is expected to equal true +Coercible::Coercer::Float.to_string + is expected to eql "1.0" + is expected to be an instance of String Coercible::Coercer::String.to_decimal - with "-1.0e+1" + with "1.0e-1" is expected to be an instance of BigDecimal - is expected to eql -0.1e2 - with ".1" + is expected to eql 0.1e0 + with "1" + is expected to eql 0.1e1 + 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 ".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 - 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 + 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.0E+1" + with "-1.0e-1" + is expected to eql -0.1e0 is expected to be an instance of BigDecimal - is expected to eql -0.1e2 - with "1.0e+1" - 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.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 ".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.1e0 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" + 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.1e0 with "1.0" is expected to be an instance of BigDecimal is expected to eql 0.1e1 - with ".1e-1" - is expected to eql 0.1e-1 + 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 + 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 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" is expected to eql 0.1e1 is expected to be an instance of BigDecimal - with "1.0e-1" + 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.1e2 + with "-1.0e+1" + is expected to eql -0.1e2 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" + 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.1e0 + with "+1.0" + is expected to eql 0.1e1 + is expected to be an instance of BigDecimal -Coercible::Coercer::String.to_date - with a valid date string - is expected to be an instance of Date - day - is expected to == 22 - year - is expected to == 2011 - month - is expected to == 7 - with an invalid date string +Coercible::Coercer::TrueClass.to_string + is expected to eql "true" + is expected to be an instance of String + +Coercible::Coercer::String.to_float + with "+1" + is expected to be an instance of Float + is expected to eql 1.0 + with "1e1" + is expected to be an instance of Float + is expected to eql 10.0 + with "-1e-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 "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.0E-1" + is expected to eql 0.1 + 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 + string starts with e + is expected to raise Coercible::UnsupportedCoercion + with "-1" + is expected to be an instance of Float + is expected to eql -1.0 + with "1" + is expected to eql 1.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 -0.1 + 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 "-1E1" + 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 10.0 + with "1E+1" + is expected to eql 10.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 "+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 -10.0 + with ".1" + is expected to eql 0.1 + 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 an invalid float string is expected to raise Coercible::UnsupportedCoercion + with "+1e-1" + is expected to eql 0.1 + 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 1.0 + with ".1E-1" + is expected to eql 0.01 + 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 be an instance of Float + is expected to eql -1.0 -Coercible::Coercer::Float.to_string - is expected to eql "1.0" - is expected to be an instance of String +Coercible::Coercer::Configurable.config_name + is expected to equal :test -Coercible::Coercer::Date.to_datetime - when Date supports #to_datetime - is expected to equal # - when Date does not support #to_datetime - is expected to be an instance of DateTime - is expected to eql # +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_hash + is expected to equal # -Coercible::Coercer::FalseClass.to_string +Coercible::Coercer::Symbol.to_string + is expected to eql "piotr" is expected to be an instance of String - is expected to eql "false" + +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::Integer.to_decimal + is expected to be an instance of BigDecimal + is expected to eql 0.1e1 + +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::Decimal#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::Date.to_date + is expected to equal # + +Coercible::Coercer::String.to_symbol + is expected to equal :value + +Coercible::Coercer::Symbol#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_integer + is expected to equal 1 + +Coercible::Coercer::Numeric.to_float + is expected to eql 1.0 + +Coercible::Coercer::DateTime.to_datetime + is expected to equal # + +Coercible::Coercer::String + behaves like Configurable + .config_keys + is expected not to be empty + is expected to be an instance of Array + .config + is expected to be an instance of Coercible::Configuration + responds to configuration keys + .config_name + is expected to be an instance of Symbol + .config_name + is expected to equal :string + +Coercible::Coercer::Time#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 + +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::Integer behaves like Configurable .config_name is expected to equal :integer + .config + is expected to be an instance of Coercible::Configuration + responds to configuration keys .config_name is expected to be an instance of Symbol .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 + is expected not to be empty Coercible::Coercer::TimeCoercions.to_date - when the value does not respond to #to_date - is expected to eql # - is expected to be an instance of 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 eql # + is expected to be an instance of Date -Coercible::Coercer::Decimal.to_integer - is expected to eql 1 - is expected to be a kind of Integer +Coercible::Coercer::String.to_boolean + 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 '. + is expected to raise Exception + with "f" + is expected to equal false + with "y" + is expected to equal true + with "FALSE" + is expected to equal false + with "OFF" + is expected to equal false + with "TRUE" + is expected to equal true + with "F" + is expected to equal false + with "NO" + is expected to equal false + with "Y" + is expected to equal true + with "yes" + is expected to equal true + with "T" + is expected to equal true + with "t" + is expected to equal true + with "N" + is expected to equal false + with "0" + is expected to equal false + with "on" + is expected to equal true + with "no" + is expected to equal false + with "ON" + is expected to equal true + with "off" + is expected to equal false + with "1" + is expected to equal true + with "YES" + is expected to equal true + with "true" + is expected to equal true + with "n" + is expected to equal false + with "false" + is expected to equal false -Coercible::Coercer::Symbol#coerced? +Coercible::Coercer::Float.to_decimal + is expected to eql 0.1e1 + is expected to be an instance of BigDecimal + +Coercible::Coercer::Integer#to_datetime + is expected to eql "2013-02-16 17:44:32.000" + +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::DateTime.to_string + is expected to eql "2011-01-01T00:00:00+00:00" + is expected to be an instance of String + +Coercible::Coercer::TimeCoercions.to_string + is expected to be an instance of String + is expected to eql "2011-01-01" + +Coercible::Coercer::Decimal.to_string + is expected to eql "1.0" + is expected to be an instance of String + +Coercible::Coercer::Object#inspect + is expected to == "#" + +Coercible::Coercer::Float#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::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::Array#to_set + is expected to be an instance of Set + is expected to eql "a", 1, "b", and 2 + +Coercible::Coercer::String.to_datetime + with a valid date string + not including time part + it should behave like a correct datetime object + is expected to be an instance of DateTime + min + is expected to == 0 + hour + is expected to == 0 + month + is expected to == 7 + day + is expected to == 22 + sec + is expected to == 0 + year + is expected to == 2011 + including time part + it should behave like a correct datetime object + is expected to be an instance of DateTime + sec + is expected to == 50 + month + is expected to == 7 + day + is expected to == 22 + year + is expected to == 2011 + hour + is expected to == 13 + min + is expected to == 44 + with an invalid date time string + is expected to raise Coercible::UnsupportedCoercion + +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::Hash.to_datetime + when time segments are integers + is expected to be an instance of DateTime + is expected to eql # + when time segments are missing + uses the Time now to populate the segments + is expected to be an instance of DateTime + when time segments are strings + is expected to eql # + is expected to be an instance of DateTime + +Coercible::Coercer::Float#to_float + is expected to eql "2013-02-16 17:44:32.120" + +Coercible::Coercer::Integer.to_string + is expected to eql "1" + is expected to be an instance of String + +Coercible::Coercer::DateTime.to_time + 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 + when DateTime supports #to_time + is expected to equal 0, 0, 0, 1, 1, 2011, 6, 1, false, and "UTC" 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 `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/date_time/to_time_spec.rb:25:in `block (3 levels) in '. +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/object/to_array_spec.rb:39:in `block (3 levels) in '. If you need more of the backtrace for any of these deprecations to @@ -1827,54 +1894,54 @@ 2 deprecation warnings total -Top 10 slowest examples (0.11113 seconds, 4.3% of total time): - Coercible::Coercer::String.to_datetime with a valid date string not including time part it should behave like a correct datetime object sec is expected to == 0 - 0.02404 seconds ./spec/unit/coercible/coercer/string/to_datetime_spec.rb:11 - Coercible::Coercer::String.to_float string starts with e is expected to raise Coercible::UnsupportedCoercion - 0.01232 seconds ./spec/unit/coercible/coercer/string/to_float_spec.rb:54 +Top 10 slowest examples (0.36184 seconds, 7.4% of total time): + Coercible::Coercer::String.to_integer when integer string is big is expected to == 334490140000101135 + 0.0813 seconds ./spec/unit/coercible/coercer/string/to_integer_spec.rb:59 + Coercible::Coercer::String.to_integer with an invalid integer string is expected to raise Coercible::UnsupportedCoercion + 0.05443 seconds ./spec/unit/coercible/coercer/string/to_integer_spec.rb:53 + Coercible::Coercer::String.to_integer with "1.0e-1" is expected to eql 0 + 0.03105 seconds ./spec/unit/coercible/coercer/string/to_integer_spec.rb:46 + Coercible::Coercer::String.to_integer with "1.7976931348623158e+307" is expected to be a kind of Integer + 0.03094 seconds ./spec/unit/coercible/coercer/string/to_integer_spec.rb:44 + Coercible::Coercer::String.to_integer with "1.7976931348623158e+307" is expected to eql 17976931348623157580412819756850388593900235011794141176754562789180111453639664485361928830517704263...0189893797509826303293149283469713429932049693599732425511693654044437030940398714664210204414967808 + 0.03041 seconds ./spec/unit/coercible/coercer/string/to_integer_spec.rb:46 Coercible::Coercer::String behaves like Configurable .config_keys is expected not to be empty - 0.01099 seconds ./spec/shared/unit/configurable.rb:12 - Coercible::Configuration.build is expected to respond to #bar - 0.01097 seconds ./spec/unit/coercible/configuration/class_methods/build_spec.rb:13 - Coercible::Coercer::String.to_integer with ".1e-1" is expected to eql 0 - 0.01044 seconds ./spec/unit/coercible/coercer/string/to_integer_spec.rb:46 - Coercible::Coercer::String.to_decimal with "-1.0e-1" is expected to eql -0.1e0 - 0.00909 seconds ./spec/unit/coercible/coercer/string/to_decimal_spec.rb:38 - Coercible::Coercer::String.to_float with "1.0E-1" is expected to eql 0.1 - 0.00895 seconds ./spec/unit/coercible/coercer/string/to_float_spec.rb:41 - Coercible::Coercer::String.to_decimal with "-1" is expected to be an instance of BigDecimal - 0.00863 seconds ./spec/unit/coercible/coercer/string/to_decimal_spec.rb:36 - Coercible::Coercer::Numeric.to_decimal with an object responding to #to_d is expected to eql 0.1e1 - 0.00792 seconds ./spec/unit/coercible/coercer/numeric/to_decimal_spec.rb:11 - Coercible::Coercer::String.config boolean_map is expected to 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] - 0.00777 seconds ./spec/unit/coercible/coercer/string/class_methods/config_spec.rb:6 + 0.03039 seconds ./spec/shared/unit/configurable.rb:12 + Coercible::Coercer::String.to_integer with ".1E+1" is expected to eql 1 + 0.02706 seconds ./spec/unit/coercible/coercer/string/to_integer_spec.rb:46 + 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 + 0.02631 seconds ./spec/unit/coercible/coercer/string/to_time_spec.rb:4 + Coercible::Coercer::Float.to_float is expected to equal 1.0 + 0.02537 seconds ./spec/unit/coercible/coercer/float/to_float_spec.rb:8 + Coercible::Configuration.build is expected to be an instance of Coercible::Configuration + 0.02456 seconds ./spec/unit/coercible/configuration/class_methods/build_spec.rb:8 Top 10 slowest example groups: - Coercible::Coercer::String.config - 0.0114 seconds average (0.0114 seconds / 1 example) ./spec/unit/coercible/coercer/string/class_methods/config_spec.rb:3 + Coercible::Coercer::Float.to_float + 0.03164 seconds average (0.03164 seconds / 1 example) ./spec/unit/coercible/coercer/float/to_float_spec.rb:3 + Coercible::Coercer::Integer.to_string + 0.02454 seconds average (0.04909 seconds / 2 examples) ./spec/unit/coercible/coercer/integer/to_string_spec.rb:3 + Coercible::Coercer::Float#coerced? + 0.02179 seconds average (0.04358 seconds / 2 examples) ./spec/unit/coercible/coercer/float/coerced_predicate_spec.rb:3 + Coercible::Coercer::String.to_integer + 0.02093 seconds average (1.32 seconds / 63 examples) ./spec/unit/coercible/coercer/string/to_integer_spec.rb:3 + Coercible::Coercer::Integer#datetime_proc + 0.02024 seconds average (0.04048 seconds / 2 examples) ./spec/unit/coercible/coercer/integer/datetime_proc_spec.rb:3 + Coercible::Coercer::Object.to_integer + 0.01986 seconds average (0.03972 seconds / 2 examples) ./spec/unit/coercible/coercer/object/to_integer_spec.rb:3 + Coercible::Coercer::Object#inspect + 0.01918 seconds average (0.01918 seconds / 1 example) ./spec/unit/coercible/coercer/object/inspect_spec.rb:3 Coercible::Coercer::Integer#coerced? - 0.01065 seconds average (0.02129 seconds / 2 examples) ./spec/unit/coercible/coercer/integer/coerced_predicate_spec.rb:3 - Coercible::Coercer::TrueClass#coerced? - 0.0102 seconds average (0.02039 seconds / 2 examples) ./spec/unit/coercible/coercer/true_class/coerced_predicate_spec.rb:3 - Coercible::Coercer::Integer#datetime_format - 0.00924 seconds average (0.01848 seconds / 2 examples) ./spec/unit/coercible/coercer/integer/datetime_format_spec.rb:3 - Coercible::Coercer::TimeCoercions.to_time - 0.00909 seconds average (0.03637 seconds / 4 examples) ./spec/unit/coercible/coercer/time_coercions/to_time_spec.rb:3 - Coercible::Coercer::String.to_datetime - 0.00853 seconds average (0.12801 seconds / 15 examples) ./spec/unit/coercible/coercer/string/to_datetime_spec.rb:14 - Coercible::Coercer::Object.to_hash - 0.00839 seconds average (0.01679 seconds / 2 examples) ./spec/unit/coercible/coercer/object/to_hash_spec.rb:3 - Coercible::Coercer::Numeric.to_decimal - 0.00835 seconds average (0.0167 seconds / 2 examples) ./spec/unit/coercible/coercer/numeric/to_decimal_spec.rb:3 - Coercible::Coercer::FalseClass#coerced? - 0.00834 seconds average (0.01667 seconds / 2 examples) ./spec/unit/coercible/coercer/false_class/coerced_predicate_spec.rb:3 - Coercible::Coercer::Configurable.config - 0.00833 seconds average (0.00833 seconds / 1 example) ./spec/unit/coercible/coercer/configurable/config_spec.rb:3 + 0.01729 seconds average (0.03459 seconds / 2 examples) ./spec/unit/coercible/coercer/integer/coerced_predicate_spec.rb:3 + Coercible::Coercer::String.to_time + 0.01656 seconds average (0.24841 seconds / 15 examples) ./spec/unit/coercible/coercer/string/to_time_spec.rb:14 + Coercible::Coercer::Date.to_datetime + 0.01554 seconds average (0.04662 seconds / 3 examples) ./spec/unit/coercible/coercer/date/to_datetime_spec.rb:3 -Finished in 2.56 seconds (files took 2.06 seconds to load) +Finished in 4.92 seconds (files took 6.47 seconds to load) 396 examples, 0 failures -Randomized with seed 18270 +Randomized with seed 57999 ┌──────────────────────────────────────────────────────────────────────────────┐ @@ -1913,12 +1980,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/2924/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/2924/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/6553 and its subdirectories -I: Current time: Fri Jul 16 17:46:33 -12 2021 -I: pbuilder-time-stamp: 1626500793 +I: removing directory /srv/workspace/pbuilder/2924 and its subdirectories +I: Current time: Sat Jul 17 19:52:21 +14 2021 +I: pbuilder-time-stamp: 1626501141