[DRE-commits] [SCM] ruby-ogginfo.git branch, master, updated. upstream/0.6.5-3-g6128065

Gunnar Wolf gwolf at gwolf.org
Thu Aug 11 21:32:47 UTC 2011


The following commit has been merged in the master branch:
commit 6128065530f56b7a7ca720a61628d2605a62cb79
Author: Gunnar Wolf <gwolf at gwolf.org>
Date:   Thu Aug 11 16:32:42 2011 -0500

    Fix compatibility issue with Ruby 1.9.1

diff --git a/debian/patches/class_eval_requires_strings_under_1.9.1 b/debian/patches/class_eval_requires_strings_under_1.9.1
new file mode 100644
index 0000000..337575c
--- /dev/null
+++ b/debian/patches/class_eval_requires_strings_under_1.9.1
@@ -0,0 +1,20 @@
+Author: Gunnar Wolf <gwolf at debian.org>
+Last-Update: 2011-08-11
+Forwarded: https://github.com/gwolf/ruby-ogginfo/commit/558f420f1d2b5870d74241354669c0ca3d57b7b9 (pull request on github)
+Description: When running under Ruby 1.9.1, all tests fail (and quite
+ probably any module usage as well) because class_eval no longer
+ accepts symbols (strings are required).
+
+Index: ruby-ogginfo/lib/ogg.rb
+===================================================================
+--- ruby-ogginfo.orig/lib/ogg.rb	2011-08-11 16:27:52.000000000 -0500
++++ ruby-ogginfo/lib/ogg.rb	2011-08-11 16:27:54.000000000 -0500
+@@ -86,7 +86,7 @@
+         input.rewind
+       end
+       
+-      codecs = Ogg::Codecs.constants.map { |module_name| Ogg::Codecs.class_eval(module_name) }.select { |c| c.is_a?(Class) }
++      codecs = Ogg::Codecs.constants.map { |module_name| Ogg::Codecs.class_eval(module_name.to_s) }.select { |c| c.is_a?(Class) }
+       codec = codecs.detect { |c| c.match?(first_page.segments.first) }
+       unless codec
+         raise(StreamError,"unknown codec")
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..a1fe824
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+class_eval_requires_strings_under_1.9.1

-- 
ruby-ogginfo.git



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