lib/jitai.rb in jitai-0.2.28 vs lib/jitai.rb in jitai-0.2.29

- old
+ new

@@ -20,14 +20,14 @@ other_file = "./#{@cwd}#{other_basename}" file = "./#{@cwd}#{font_file}" # TODO edit ttf2eot so that it's actually installed in the system if !File.exists?(other_file) - puts "===== #{conversion_type.upcase} format not found. Attempting to convert... =====" + puts "===== #{conversion_type.upcase} format not found for #{font_file}. Attempting to convert... =====" # TODO fix incredibly bad hack - curr_dir = Dir.getcwd - ttf2eot_dir = "/usr/lib/ruby/gems/1.8/gems/jitai-0.2.28/lib/ttf2eot/" + curr_dir = Dir.getwd + ttf2eot_dir = "/usr/lib/ruby/gems/1.8/gems/jitai-0.2.29/lib/ttf2eot/" %x{cd #{ttf2eot_dir} && ./ttf2eot < #{'../' + @cwd + font_file} > #{'../' + @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))