lib/jitai.rb in jitai-0.2.31 vs lib/jitai.rb in jitai-0.2.32

- old
+ new

@@ -23,11 +23,11 @@ # TODO edit ttf2eot so that it's actually installed in the system if !File.exists?(other_file) puts "===== #{conversion_type.upcase} format not found for #{font_file}. Attempting to convert... =====" # TODO fix incredibly bad hack - curr_dir = Dir.getwd - ttf2eot_dir = "/usr/lib/ruby/gems/1.8/gems/jitai-0.2.31/lib/ttf2eot/" + curr_dir = Dir.getwd + "/" + ttf2eot_dir = "/usr/lib/ruby/gems/1.8/gems/jitai-0.2.32/lib/ttf2eot/" %x{cd #{ttf2eot_dir} && ./ttf2eot < #{curr_dir + @cwd + font_file} > #{curr_dir + @cwd + font_file.split(".")[0] + conversion_type} && cd #{curr_dir}} end # Rename files, account for conventions. %x{mv #{other_file} #{other_file.downcase}} if !(File.exists?(other_file.downcase))