Sha256: ff3aa84c896071ee9b2a1a8134f43046fed13d7b0c22e6302e1f876a18703f3b

Contents?: true

Size: 925 Bytes

Versions: 9

Compression:

Stored size: 925 Bytes

Contents

test $RUBY || export RUBY=ruby
export PWD=`pwd`
export RUBYLEXERVSRUBY="$RUBY -Ilib test/code/rubylexervsruby.rb"

if $RUBY --version|grep '^ruby 1\.6'; then
  echo 'error: need ruby 1.8'; exit
fi

mkdir test/results

ruby <<END > test/results/rubyscripts.txt
require 'open3'
binfiles=ENV['PATH'].split(':').map{|dir| Dir[dir+'/*']}.compact
rubyscripts=[]
Open3.popen3('file -f -'){|cin,cout,cerr|
  cin.puts *binfiles
  cin.flush
  cin.close
  cout.each{|line|
    name=line[/\A([^:]+):.*ruby.*text/i,1] and rubyscripts<<name and p name
  }
}
puts rubyscripts
END

#cd `dirname -- $0`

for i in test/data/p.rb `(locate tk.rb;locate examples/examples_test.rb ron.rb /generator.rb ipaddr.rb date/format.rb /optparse.rb ferret/browser.rb;locate .rb; locate rakefile; locate Rakefile; locate RAKEFILE)|egrep -v '/test/results/'; cat test/results/rubyscripts.txt; find test/data/gems -name "*.rb"`; do
  $RUBYLEXERVSRUBY $i
done

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rubylexer-0.8.0 test/code/locatetest
rubylexer-0.7.7 test/code/locatetest
rubylexer-0.7.6 test/code/locatetest
rubylexer-0.7.1 test/code/locatetest
rubylexer-0.7.0 test/code/locatetest
rubylexer-0.7.2 test/code/locatetest
rubylexer-0.7.5 test/code/locatetest
rubylexer-0.7.4 test/code/locatetest
rubylexer-0.7.3 test/code/locatetest