[DRE-commits] [SCM] ruby-mustache.git branch, tests, updated. upstream/0.99.4-11-g89b9191

Martin Ueding dev at martin-ueding.de
Sat Oct 8 23:11:54 UTC 2011


The following commit has been merged in the tests branch:
commit da6cd953582de0d6c580c5273dad9ba972c68521
Author: Martin Ueding <dev at martin-ueding.de>
Date:   Sat Oct 8 23:35:13 2011 +0200

    Add patch to fix encoding in test suite

diff --git a/debian/patches/version-1.9-encoding b/debian/patches/version-1.9-encoding
new file mode 100644
index 0000000..f967893
--- /dev/null
+++ b/debian/patches/version-1.9-encoding
@@ -0,0 +1,16 @@
+Description: Fix encoding error in test suite 1.9
+ Fixes a failing test with Ruby 1.9
+
+--- a/test/mustache_test.rb
++++ b/test/mustache_test.rb
+@@ -1,5 +1,10 @@
+ # -*- coding: utf-8 -*-
+ $LOAD_PATH.unshift File.dirname(__FILE__)
++
++if RUBY_VERSION =~ /1.9/
++      Encoding.default_external = Encoding::UTF_8
++end
++
+ require 'helper'
+ 
+ class MustacheTest < Test::Unit::TestCase

-- 
ruby-mustache.git



More information about the Pkg-ruby-extras-commits mailing list