[DRE-commits] [ruby-rspec-expectations] 05/06: move encoding forcing to a patch

Cédric Boutillier boutil at alioth.debian.org
Thu Aug 15 19:58:44 UTC 2013


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

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

commit be8ec3953314e0c5a5665dfdfdd54a052d1cce09
Author: Cédric Boutillier <boutil at debian.org>
Date:   Thu Aug 15 20:35:11 2013 +0200

    move encoding forcing to a patch
---
 debian/patches/fix_encoding.patch |   18 ++++++++++++++++++
 debian/patches/series             |    1 +
 debian/ruby-tests.rake            |    2 --
 3 files changed, 19 insertions(+), 2 deletions(-)

diff --git a/debian/patches/fix_encoding.patch b/debian/patches/fix_encoding.patch
new file mode 100644
index 0000000..c12e409
--- /dev/null
+++ b/debian/patches/fix_encoding.patch
@@ -0,0 +1,18 @@
+Description: force default external encoding to UTF-8
+ This is required to make specs relying on Unicode characters to pass
+ in building environment with C locale.
+Origin: vendor
+Author: Cédric Boutillier <boutil at debian.org>
+Forwarded: not-needed
+Last-Update: 2013-08-15
+
+--- a/spec/rspec/expectations/differ_spec.rb
++++ b/spec/rspec/expectations/differ_spec.rb
+@@ -1,4 +1,7 @@
+ # encoding: utf-8
++
++Encoding.default_external="UTF-8" if defined? Encoding
++
+ require 'spec_helper'
+ require 'ostruct'
+ 
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..73b6ac8
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+fix_encoding.patch
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
index 3590e92..89a753d 100644
--- a/debian/ruby-tests.rake
+++ b/debian/ruby-tests.rake
@@ -1,7 +1,5 @@
 require 'rspec/core/rake_task'
 
-Encoding.default_external="UTF-8" if defined? Encoding
-
 RSpec::Core::RakeTask.new(:spec) do |spec|
   spec.pattern      = './spec/**/*_spec.rb'
 end

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



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