[rubygem-wikicloth] Patch for Minitest 5 (RHBZ #1107264)

Ken Dreyer ktdreyer at fedoraproject.org
Thu Jul 10 23:46:08 UTC 2014


commit 922fbe0f348e603a3e99c8aa083fc4b62b341812
Author: Ken Dreyer <ktdreyer at ktdreyer.com>
Date:   Thu Jul 10 17:46:17 2014 -0600

    Patch for Minitest 5 (RHBZ #1107264)

 rubygem-wikicloth-0.8.0-minitest.patch |   27 +++++++++++++++++++++++++++
 rubygem-wikicloth.spec                 |   13 ++++++++++---
 2 files changed, 37 insertions(+), 3 deletions(-)
---
diff --git a/rubygem-wikicloth-0.8.0-minitest.patch b/rubygem-wikicloth-0.8.0-minitest.patch
new file mode 100644
index 0000000..c439cd5
--- /dev/null
+++ b/rubygem-wikicloth-0.8.0-minitest.patch
@@ -0,0 +1,27 @@
+From 68aecc6c01addbb03086c55c6e35c7baaca678f6 Mon Sep 17 00:00:00 2001
+From: Ken Dreyer <ktdreyer at ktdreyer.com>
+Date: Thu, 10 Jul 2014 17:17:34 -0600
+Subject: [PATCH] tests: switch to minitest
+
+Switch from Test::Unit to Minitest.
+---
+ test/test_helper.rb | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/test/test_helper.rb b/test/test_helper.rb
+index 17e95cc..e096773 100644
+--- a/test/test_helper.rb
++++ b/test/test_helper.rb
+@@ -1,8 +1,7 @@
+ 
+ require 'rubygems'
+-gem "test-unit", ">= 2.0.5"
++require 'minitest/autorun'
+ require 'active_support'
+ require 'active_support/test_case'
+-require 'test/unit'
+ I18n.load_path << File.join(File.dirname(__FILE__),'locales.yml')
+ require File.join(File.dirname(__FILE__),'../init')
+-- 
+1.9.0
+
diff --git a/rubygem-wikicloth.spec b/rubygem-wikicloth.spec
index 768ca68..9868aa0 100644
--- a/rubygem-wikicloth.spec
+++ b/rubygem-wikicloth.spec
@@ -2,12 +2,15 @@
 
 Name: rubygem-%{gem_name}
 Version: 0.8.0
-Release: 2%{?dist}
+Release: 3%{?dist}
 Summary: Mediawiki parser
 Group: Development/Languages
 License: MIT
 URL: https://github.com/nricciar/wikicloth
 Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
+# Minitest 5 support
+# https://github.com/nricciar/wikicloth/pull/69
+Patch0: rubygem-wikicloth-0.8.0-minitest.patch
 Requires: ruby(release)
 Requires: ruby(rubygems)
 Requires: rubygem(builder)
@@ -40,8 +43,9 @@ gem unpack %{SOURCE0}
 
 gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
 
-# Remove the old-style loading for test-unit
-sed -i -e '/gem "test-unit"/d' test/test_helper.rb
+# Minitest 5 support
+# https://github.com/nricciar/wikicloth/pull/69
+%patch0 -p1
 
 # Remove developer-only files.
 for f in .gitignore .travis.yml Gemfile Rakefile run_tests.rb tasks/wikicloth_tasks.rake; do
@@ -87,6 +91,9 @@ popd
 %{gem_instdir}/sample_documents
 
 %changelog
+* Thu Jul 10 2014 Ken Dreyer <ktdreyer at ktdreyer.com> - 0.8.0-3
+- Patch for Minitest 5 (RHBZ #1107264)
+
 * Sun Jun 08 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.8.0-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 


More information about the scm-commits mailing list