lib/ruby-progressbar/time.rb in ruby-progressbar-1.10.0 vs lib/ruby-progressbar/time.rb in ruby-progressbar-1.10.1

- old
+ new

@@ -1,20 +1,20 @@ # rubocop:disable Style/InlineComment class ProgressBar class Time TIME_MOCKING_LIBRARY_METHODS = [ - :__simple_stub__now, # ActiveSupport - :now_without_mock_time, # Timecop - :now_without_delorean, # Delorean - :now # Actual + :__simple_stub__now, # ActiveSupport + :now_without_mock_time, # Timecop + :now_without_delorean, # Delorean + :now # Unmocked ].freeze def initialize(time = ::Time) self.time = time end def now - time.__send__ unmocked_time_method + time.__send__(unmocked_time_method) end def unmocked_time_method @unmocked_time_method ||= begin TIME_MOCKING_LIBRARY_METHODS.find do |method|