examples/m17n/sjis.rb in prawn-0.11.1.pre vs examples/m17n/sjis.rb in prawn-0.11.1
- old
+ new
@@ -8,10 +8,11 @@
#
# NOTE: only works on ruby1.9 compatible VMs, and requires the current
# font to include japanese glyphs. On 1.8.x comaptible VMs, an exception
# will be raised.
-require "#{File.dirname(__FILE__)}/../example_helper.rb"
+require File.expand_path(File.join(File.dirname(__FILE__),
+ %w[.. example_helper]))
begin
ruby_19 do
datafile = File.join(File.dirname(__FILE__), "..", "..", "data",
"shift_jis_text.txt")