mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
Added explicitly begin-end block for Ruby 2.4.
strscan, ipaddr and some default gems still support Ruby 2.4. After this, I extract this CoreAssertions to their repositories.
This commit is contained in:
parent
ebd44ef570
commit
af17a34c88
1 changed files with 7 additions and 5 deletions
|
@ -732,6 +732,7 @@ eom
|
|||
].find do |c|
|
||||
if Process.const_defined?(c)
|
||||
[c.to_sym, Process.const_get(c)].find do |clk|
|
||||
begin
|
||||
Process.clock_gettime(clk)
|
||||
rescue
|
||||
# Constants may be defined but not implemented, e.g., mingw.
|
||||
|
@ -740,6 +741,7 @@ eom
|
|||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# Expect +seq+ to respond to +first+ and +each+ methods, e.g.,
|
||||
# Array, Range, Enumerator::ArithmeticSequence and other
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue