Sha256: 8e4f8307436eee436fddb2fdfa6fe9ce0cc8e75c2d7738763337fccafec28fbf

Contents?: true

Size: 468 Bytes

Versions: 1

Compression:

Stored size: 468 Bytes

Contents

#!/usr/bin/env ruby
rspec_i18n_dir = File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))

$:.unshift(rspec_i18n_dir) unless $:.include?(rspec_i18n_dir)

# The dup is to keep ARGV intact, so that tools like ruby-debug can respawn.

begin
  SpecI18n::CommandLine::Main.execute(ARGV.dup)
rescue SystemExit => e
  Kernel.exit(e.status)
rescue Exception => e
  STDERR.puts("#{e.message} (#{e.class})")
  STDERR.puts(e.backtrace.join("\n"))
  Kernel.exit(1)
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rspec-i18n-0.2.0 bin/rspec-i18n