Sha256: a427947f3b8dd51eeffc3bea04345e37b3d4f1483d02b4c687295bcf8d5cf093

Contents?: true

Size: 525 Bytes

Versions: 3

Compression:

Stored size: 525 Bytes

Contents

#!/usr/bin/env ruby

require 'rio'
require 'rio/argv'

re = ARGV.shift

is_ruby_exe = proc{ |f| f.executable? and f[0][0] =~ /^#!.+ruby/ }

RIO.ARGV.each do |rpath|
  rpath.norecurse('.svn','pkg').files('*.rb',is_ruby_exe) do |f|
    print f.lines[/#{re}/].map{ |line| "#{f}: #{line}" }
  end

end
__END__

ARGV.each do |path|
  rio(path).norecurse('.svn','pkg').files('*.rb',proc{ |f| f.executable? and f[0] =~ /^#!.+ruby/ }) do |f|
    print f.lines[/#{re}/].map{ |line| "#{f}: #{line}" }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rio-0.3.2 ex/findinruby
rio-0.3.4 ex/findinruby
rio-0.3.3 ex/findinruby