1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/spec/mspec/tool/find.rb
eregon c13aa27e52 Update to ruby/mspec@353605f
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-07-27 12:10:23 +00:00

10 lines
202 B
Ruby
Executable file

#!/usr/bin/env ruby
Dir.chdir('../rubyspec') do
regexp = Regexp.new(ARGV[0])
Dir.glob('**/*.rb') do |file|
contents = File.read(file)
if regexp =~ contents
puts file
end
end
end