lib/language_pack/ruby.rb
# RUBYOPT line that requires syck_hack file
# @return [String] require string if needed or else an empty string
RUBYOPT line that requires syck_hack file
RUBYOPT line that requires syck_hack file
def syck_hack
    syck_hack_file = File.expand_path(File.join(File.dirname(__FILE__), "../../vendor/syck_hack"))
    ruby_version   = run('ruby -e "puts RUBY_VERSION"').chomp
    if Gem::Version.new(ruby_version) < Gem::Version.new("1.9.3")
      "-r#{syck_hack_file}"
    else
      ""
    end
  end
def syck_hack syck_hack_file = File . expand_path ( File . join ( File . dirname ( __FILE__ ) , "../../vendor/syck_hack" ) ) ruby_version = run ( 'ruby -e "puts RUBY_VERSION"' ) . chomp if Gem :: Version . new ( ruby_version ) < Gem :: Version . new ( "1.9.3" ) "-r#{syck_hack_file}" else "" end end
RUBYOPT line that requires syck_hack file
RUBYOPT line that requires syck_hack file
# < 1.9.3 includes syck, so we need to use the syck hack
require string if needed or else an empty string
require string if needed or else an empty string
String