Sha256: 05b8f5dd6698433a359eb1d3d31bd98fecb1801f2b63e9e710097bf95d18872d
Contents?: true
Size: 505 Bytes
Versions: 6
Compression:
Stored size: 505 Bytes
Contents
ORIG_ARGV = ARGV.dup curr = File.expand_path(File.dirname(__FILE__)) $:.unshift(curr) unless $:.include?('curr') || $:.include?(curr) lib = File.expand_path("#{File.dirname(__FILE__)}/../lib") $:.unshift(lib) unless $:.include?('lib') || $:.include?(lib) require 'test/unit' def with_kcode(code) if RUBY_VERSION < '1.9' begin old_kcode, $KCODE = $KCODE, code yield ensure $KCODE = old_kcode end else yield end end if RUBY_VERSION < '1.9' $KCODE = 'UTF8' end
Version data entries
6 entries across 6 versions & 1 rubygems