Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created July 25, 2020 10:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Whateverable/f87d82ff16289510a7fc74a88d21ba98 to your computer and use it in GitHub Desktop.
Save Whateverable/f87d82ff16289510a7fc74a88d21ba98 to your computer and use it in GitHub Desktop.
bisectable6
say Date.today.last-date-in-month
Bisecting: 196 revisions left to test after this (roughly 8 steps)
[945a4d8166891041a8d9a37d326912a60bed7ce3] [JVM] Use Ops.isnull instead of plain null check
»»»»» Testing 945a4d8166891041a8d9a37d326912a60bed7ce3
»»»»» Script output:
No such method 'last-date-in-month' for invocant of type 'Date'
in block <unit> at /tmp/IbnPzeZDvQ line 1
»»»»» Script exit code: 1
»»»»» Bisecting by exit code
»»»»» Current exit code is 1, exit code on “old” revision is 1
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 2e60552099023e57b6233937741e19a4ce699736
»»»»» Script output:
No such method 'last-date-in-month' for invocant of type 'Date'
in block <unit> at /tmp/IbnPzeZDvQ line 1
»»»»» Script exit code: 1
»»»»» Bisecting by exit code
»»»»» Current exit code is 1, exit code on “old” revision is 1
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 42a303ecf5c36bcbc0c3a5332fd4a0719c08a417
»»»»» Script output:
2020-07-31
»»»»» Script exit code: 0
»»»»» Bisecting by exit code
»»»»» Current exit code is 0, exit code on “old” revision is 1
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing c13faeefa86447193212cf50f59bb600b5f7cf25
»»»»» Script output:
No such method 'last-date-in-month' for invocant of type 'Date'
in block <unit> at /tmp/IbnPzeZDvQ line 1
»»»»» Script exit code: 1
»»»»» Bisecting by exit code
»»»»» Current exit code is 1, exit code on “old” revision is 1
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 92750571e48e8e04e382cc7e9e0f5aae25a5bc84
»»»»» Script output:
2020-07-31
»»»»» Script exit code: 0
»»»»» Bisecting by exit code
»»»»» Current exit code is 0, exit code on “old” revision is 1
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing a4906a713b75948ed4d35ebc94bc006ede3cb72f
»»»»» Script output:
No such method 'last-date-in-month' for invocant of type 'Date'
in block <unit> at /tmp/IbnPzeZDvQ line 1
»»»»» Script exit code: 1
»»»»» Bisecting by exit code
»»»»» Current exit code is 1, exit code on “old” revision is 1
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 77b7e0cde5dca4d5250c95ee31954522e9d19074
»»»»» Script output:
No such method 'last-date-in-month' for invocant of type 'Date'
in block <unit> at /tmp/IbnPzeZDvQ line 1
»»»»» Script exit code: 1
»»»»» Bisecting by exit code
»»»»» Current exit code is 1, exit code on “old” revision is 1
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 2fb7198f3da8ec0b76d1995ae0775378951717fe
»»»»» Script output:
2020-07-31
»»»»» Script exit code: 0
»»»»» Bisecting by exit code
»»»»» Current exit code is 0, exit code on “old” revision is 1
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “new”
2fb7198f3da8ec0b76d1995ae0775378951717fe is the first new commit
commit 2fb7198f3da8ec0b76d1995ae0775378951717fe
Author: Elizabeth Mattijsen <liz@wenzperl.nl>
Date: Thu Apr 16 20:30:25 2020 +0200
Add Date.last-date-in-month
This short-cut method gives you the last date in the month of the
Date object, or returns the invocant if the day value is already
the last day of the month.
This should allow for much easier ranges like
$date .. $date.last-date-in-month
for all remaining dates in the month.
:040000 040000 e81a1b488991c1a33139ed98a27665c984f08b8b 7ffbeade83386b686bae86c77a7e2feedb60abda M src
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment