[DRE-commits] [ruby-dbf] 07/07: Set default encoding to UTF-8 in tests

Cédric Boutillier boutil at moszumanska.debian.org
Fri Jul 8 14:35:44 UTC 2016


This is an automated email from the git hooks/post-receive script.

boutil pushed a commit to branch master
in repository ruby-dbf.

commit 2227f169682c7b11cd417aecaa1818174bbbfb00
Author: Cédric Boutillier <boutil at debian.org>
Date:   Fri Jul 8 16:34:36 2016 +0200

    Set default encoding to UTF-8 in tests
---
 debian/changelog                                    |  1 +
 debian/patches/0001-default-external-encoding.patch | 16 ++++++++++++++++
 debian/patches/series                               |  1 +
 3 files changed, 18 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index cae60dc..e997c22 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -10,6 +10,7 @@ ruby-dbf (3.0.5-1) unstable; urgency=medium
   * Run wrap-and-sort on packaging files
   * Check gem dependencies in debian/rules
   * Remove hack to use the -s switch of the interpreter
+  * Set default encoding to UTF-8 in tests
 
  -- Cédric Boutillier <boutil at debian.org>  Fri, 08 Jul 2016 16:24:49 +0200
 
diff --git a/debian/patches/0001-default-external-encoding.patch b/debian/patches/0001-default-external-encoding.patch
new file mode 100644
index 0000000..0fe4f57
--- /dev/null
+++ b/debian/patches/0001-default-external-encoding.patch
@@ -0,0 +1,16 @@
+Description: set default external encoding to UTF-8
+Author: Cédric Boutillier <boutil at debian.org>
+Forwarded: https://github.com/infused/dbf/pull/77
+Last-Update: 2016-07-08
+
+--- ruby-dbf-3.0.5.orig/spec/spec_helper.rb
++++ ruby-dbf-3.0.5/spec/spec_helper.rb
+@@ -4,6 +4,8 @@ begin
+ rescue LoadError
+ end
+ 
++Encoding.default_external = "UTF-8"
++
+ require 'dbf'
+ require 'yaml'
+ require 'rspec'
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..cc00942
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-default-external-encoding.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-dbf.git



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