Ruby 2.7.2 still have the same bug

This commit is contained in:
Rafael Mendonça França 2020-10-30 21:31:38 +00:00
parent 0b72dd37c1
commit 36fe7b8d8f
No known key found for this signature in database
GPG Key ID: FC23B6D0F1EEE948
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ class Time
# Restricted Ruby version due to a bug in `Time#ceil`
# See https://bugs.ruby-lang.org/issues/17025 for more details
if RUBY_VERSION <= "2.7.1"
if RUBY_VERSION <= "2.8"
remove_possible_method :ceil
def ceil(precision = 0)
change(nsec: 0) + subsec.ceil(precision)