mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
get rid of newer syntax for old versions
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64751 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
893949167b
commit
0d7facee42
1 changed files with 5 additions and 4 deletions
|
@ -189,10 +189,11 @@ class MSpecScript
|
|||
end
|
||||
|
||||
patterns.each do |pattern|
|
||||
expanded = File.realpath(pattern)
|
||||
rescue Errno::ENOENT
|
||||
next
|
||||
else
|
||||
begin
|
||||
expanded = File.realpath(pattern)
|
||||
rescue Errno::ENOENT
|
||||
next
|
||||
end
|
||||
if File.file?(expanded) && expanded.end_with?('.rb')
|
||||
return [expanded]
|
||||
elsif File.directory?(expanded)
|
||||
|
|
Loading…
Reference in a new issue