[rubygem-literati] Patch for mocha invocation
Ken Dreyer
ktdreyer at fedoraproject.org
Wed Jul 9 18:01:31 UTC 2014
commit dbddd9ff92649bfff9b4495b4d5e0d94c524195c
Author: Ken Dreyer <ktdreyer at ktdreyer.com>
Date: Wed Jul 9 12:01:19 2014 -0600
Patch for mocha invocation
rubygem-literati-0.0.4-mocha.patch | 25 +++++++++++++++++++++++++
rubygem-literati.spec | 11 ++++++++++-
2 files changed, 35 insertions(+), 1 deletions(-)
---
diff --git a/rubygem-literati-0.0.4-mocha.patch b/rubygem-literati-0.0.4-mocha.patch
new file mode 100644
index 0000000..e8a015f
--- /dev/null
+++ b/rubygem-literati-0.0.4-mocha.patch
@@ -0,0 +1,25 @@
+From c5a5014c0035a905e064525b10805a55ff624ac4 Mon Sep 17 00:00:00 2001
+From: Ken Dreyer <ktdreyer at ktdreyer.com>
+Date: Wed, 9 Jul 2014 11:41:06 -0600
+Subject: [PATCH] tests: fix mocha invocation
+
+---
+ test/test_literati.rb | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/test/test_literati.rb b/test/test_literati.rb
+index 8035f2d..b8a03a9 100644
+--- a/test/test_literati.rb
++++ b/test/test_literati.rb
+@@ -1,7 +1,7 @@
+ require 'rubygems'
+ require 'fileutils'
+ require 'minitest/autorun'
+-require 'mocha'
++require 'mocha/mini_test'
+
+ require "#{File.expand_path(File.dirname(__FILE__))}/../lib/literati.rb"
+
+--
+1.9.0
+
diff --git a/rubygem-literati.spec b/rubygem-literati.spec
index 2f78275..8fe141b 100644
--- a/rubygem-literati.spec
+++ b/rubygem-literati.spec
@@ -2,7 +2,7 @@
Name: rubygem-%{gem_name}
Version: 0.0.4
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Render literate Haskell with Ruby
Group: Development/Languages
License: MIT
@@ -12,6 +12,9 @@ Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
# support as Patch0.
# This is proposed upstream as a part of https://github.com/jm/literati/pull/12
Patch0: rubygem-literati-0.0.4-minitest.patch
+# Fix mocha.
+# https://github.com/jm/literati/pull/13
+Patch1: rubygem-literati-0.0.4-mocha.patch
%if 0%{?fc19} || 0%{?fc20} || 0%{?el7}
Requires: ruby(release)
Requires: ruby(rubygems)
@@ -53,6 +56,9 @@ sed -i "s/\"Rakefile\",//g" %{gem_name}.gemspec
# https://github.com/jm/literati/pull/12
%patch0 -p1
sed -i "s/contest/minitest/g" %{gem_name}.gemspec
+# Fix mocha.
+# https://github.com/jm/literati/pull/13
+%patch1 -p1
%build
# Create the gem as gem install only works on a gem file
@@ -94,6 +100,9 @@ popd
%exclude %{gem_instdir}/test
%changelog
+* Wed Jul 09 2014 Ken Dreyer <ktdreyer at ktdreyer.com> - 0.0.4-3
+- Patch for mocha invocation
+
* Wed May 28 2014 Ken Dreyer <ktdreyer at ktdreyer.com> - 0.0.4-2
- Use HTTPS URL
- Adjustments for https://fedoraproject.org/wiki/Changes/Ruby_2.1
More information about the scm-commits
mailing list