[DRE-commits] [ruby-bio] 01/01: check on the definition of Encoding instead of Ruby version. Closes: #720240

Cédric Boutillier boutil at alioth.debian.org
Sun Oct 6 09:30:55 UTC 2013


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

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

commit 23c7e7c8b48a629529b5cc330d74c315742f0016
Author: Cédric Boutillier <boutil at debian.org>
Date:   Sun Oct 6 11:30:37 2013 +0200

    check on the definition of Encoding instead of Ruby version. Closes: #720240
---
 debian/changelog     |    8 ++++++++
 debian/ruby-tests.rb |    4 +---
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index a877663..9a04769 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+ruby-bio (1.4.3.0001-2) UNRELEASED; urgency=low
+
+  * debian/ruby-tests.rb: choose to define external encoding if Encoding is
+    defined instead of checking version of Ruby, which was too strict.
+    (Closes: #720240)
+
+ -- Cédric Boutillier <boutil at debian.org>  Sun, 06 Oct 2013 11:15:33 +0200
+
 ruby-bio (1.4.3.0001-1) unstable; urgency=low
 
   * Imported Upstream version 1.4.3.0001
diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
index a5de32e..11d18f4 100644
--- a/debian/ruby-tests.rb
+++ b/debian/ruby-tests.rb
@@ -1,5 +1,3 @@
-if RUBY_VERSION >= '1.9.1'
-  Encoding.default_external = "UTF-8"
-end
+Encoding.default_external = "UTF-8" if defined? Encoding
 
 Dir['test/{unit,functional}/**/test_*.rb'].each { |f| require f }

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



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