[DRE-commits] [ruby-gelf] 01/04: Fix mocha deprecation

David Suárez deiv-guest at alioth.debian.org
Sat Oct 12 19:13:58 UTC 2013


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

deiv-guest pushed a commit to branch master
in repository ruby-gelf.

commit bd607e7d436d3de9db8162f6a7d12edada23d8f3
Author: David Suárez <david.sephirot at gmail.com>
Date:   Sat Oct 12 20:59:17 2013 +0200

    Fix mocha deprecation
---
 debian/patches/001-fix-mocha-deprecation |   14 ++++++++++++++
 debian/patches/series                    |    1 +
 2 files changed, 15 insertions(+)

diff --git a/debian/patches/001-fix-mocha-deprecation b/debian/patches/001-fix-mocha-deprecation
new file mode 100644
index 0000000..9379209
--- /dev/null
+++ b/debian/patches/001-fix-mocha-deprecation
@@ -0,0 +1,14 @@
+Description: Fix mocha deprecation
+ Update the mocha require to fix a deprecation warning
+
+--- ruby-gelf-1.4.0.orig/test/helper.rb
++++ ruby-gelf-1.4.0/test/helper.rb
+@@ -1,7 +1,7 @@
+ require 'rubygems'
+ require 'test/unit'
+ require 'shoulda'
+-require 'mocha'
++require 'mocha/setup'
+ 
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..5c34213
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+001-fix-mocha-deprecation

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



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