[DRE-commits] [ruby-buff-extensions] 01/05: Add compatibility hack for ruby2.3
zeha at debian.org
zeha at debian.org
Thu Mar 3 15:41:15 UTC 2016
This is an automated email from the git hooks/post-receive script.
zeha pushed a commit to branch master
in repository ruby-buff-extensions.
commit 802b72b9d318d606fbadcee05c4aa91574e6c811
Author: Christian Hofstaedtler <zeha at debian.org>
Date: Thu Mar 3 16:35:17 2016 +0100
Add compatibility hack for ruby2.3
---
debian/patches/Ruby2.3-compat-hack.patch | 17 +++++++++++++++++
debian/patches/series | 1 +
2 files changed, 18 insertions(+)
diff --git a/debian/patches/Ruby2.3-compat-hack.patch b/debian/patches/Ruby2.3-compat-hack.patch
new file mode 100644
index 0000000..f1c1760
--- /dev/null
+++ b/debian/patches/Ruby2.3-compat-hack.patch
@@ -0,0 +1,17 @@
+Ruby 2.3 has added a Hash#dig method that is incompatible with the
+monkey-patched version this library provides. When you now load
+this library, the ruby builtin version goes away.
+I hope in a future version of this lib, this will no longer be
+necessary.
+
+diff --git a/lib/buff/extensions/hash/dotted_paths.rb b/lib/buff/extensions/hash/dotted_paths.rb
+index 239326c..89b6921 100644
+--- a/lib/buff/extensions/hash/dotted_paths.rb
++++ b/lib/buff/extensions/hash/dotted_paths.rb
+@@ -122,5 +123,6 @@ module Buff
+ end
+
+ class Hash
++ remove_method :dig
+ include Buff::Extensions::Hash::DottedPaths
+ end
diff --git a/debian/patches/series b/debian/patches/series
index 70b6fc0..ca6e283 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
0001-Don-t-change-LOAD_PATH-in-tests.patch
+Ruby2.3-compat-hack.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-buff-extensions.git
More information about the Pkg-ruby-extras-commits
mailing list