Sha256: 501ab987bb36fa60b74d2227183fae50aa69c5f2124de146331660f9cc1eff56

Contents?: true

Size: 562 Bytes

Versions: 45

Compression:

Stored size: 562 Bytes

Contents

#!/usr/bin/ruby -ws

require 'rubygems'
require 'ruby2ruby'
require 'ruby_parser'

$h ||= false
$s ||= false

if $h then
  puts "usage: #{File.basename $0} [options] [file...]"
  puts "options:"
  puts "-h     : display usage"
  puts "-s     : print the sexp before displaying the translated ruby"

  exit 1
end

ARGV.push "-" if ARGV.empty?

parser    = Ruby18Parser.new
ruby2ruby = Ruby2Ruby.new

ARGV.each do |file|
  ruby = file == "-" ? $stdin.read : File.read(file)

  sexp = parser.process(ruby, file)

  p sexp if $s

  puts ruby2ruby.process(sexp)
end

Version data entries

45 entries across 45 versions & 2 rubygems

Version Path
brakeman-4.3.1 bundle/ruby/2.5.0/gems/ruby2ruby-2.4.1/bin/r2r_show
brakeman-4.3.0 bundle/ruby/2.5.0/gems/ruby2ruby-2.4.1/bin/r2r_show
brakeman-4.2.1 bundle/ruby/2.5.0/gems/ruby2ruby-2.4.1/bin/r2r_show
brakeman-4.2.0 bundle/ruby/2.3.0/gems/ruby2ruby-2.4.1/bin/r2r_show
ruby2ruby-2.4.1 bin/r2r_show
brakeman-4.1.1 bundle/ruby/2.3.0/gems/ruby2ruby-2.4.0/bin/r2r_show
brakeman-4.1.0 bundle/ruby/2.3.0/gems/ruby2ruby-2.4.0/bin/r2r_show
brakeman-4.0.1 bundle/ruby/2.3.0/gems/ruby2ruby-2.4.0/bin/r2r_show
brakeman-4.0.1.pre1 bundle/ruby/2.3.0/gems/ruby2ruby-2.4.0/bin/r2r_show
brakeman-4.0.0 bundle/ruby/2.3.0/gems/ruby2ruby-2.4.0/bin/r2r_show
brakeman-3.7.2 bundle/ruby/2.3.0/gems/ruby2ruby-2.4.0/bin/r2r_show
brakeman-3.7.1 bundle/ruby/2.3.0/gems/ruby2ruby-2.4.0/bin/r2r_show
ruby2ruby-2.4.0 bin/r2r_show
brakeman-3.7.0 bundle/ruby/2.3.0/gems/ruby2ruby-2.3.2/bin/r2r_show
brakeman-3.6.2 bundle/ruby/2.3.0/gems/ruby2ruby-2.3.2/bin/r2r_show
brakeman-3.6.1 bundle/ruby/2.3.0/gems/ruby2ruby-2.3.2/bin/r2r_show
brakeman-3.6.0 bundle/ruby/2.3.0/gems/ruby2ruby-2.3.2/bin/r2r_show
brakeman-3.5.0 bundle/ruby/2.3.0/gems/ruby2ruby-2.3.2/bin/r2r_show
ruby2ruby-2.3.2 bin/r2r_show
brakeman-3.4.1 bundle/ruby/2.3.0/gems/ruby2ruby-2.3.1/bin/r2r_show