diff --git a/.gitignore b/.gitignore index b7dc3d6..634393f 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /kramdown-1.3.2.gem /kramdown-1.3.3.gem /kramdown-1.4.0.gem +/kramdown-1.4.1.gem diff --git a/rubygem-kramdown.spec b/rubygem-kramdown.spec index 92493be..44fd87f 100644 --- a/rubygem-kramdown.spec +++ b/rubygem-kramdown.spec @@ -1,8 +1,13 @@ # Generated from kramdown-1.2.0.gem by gem2rpm -*- rpm-spec -*- %global gem_name kramdown +%if 0%{?fedora} >= 21 +%define gem_minitest rubygem(minitest4) +%else +%define gem_minitest rubygem(minitest) +%endif Name: rubygem-%{gem_name} -Version: 1.4.0 +Version: 1.4.1 Release: 1%{?dist} Summary: Fast, pure-Ruby Markdown-superset converter @@ -11,7 +16,7 @@ URL: http://kramdown.rubyforge.org Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel -BuildRequires: rubygem(minitest) +BuildRequires: %gem_minitest Requires: ruby(release) Requires: ruby(rubygems) BuildArch: noarch @@ -66,6 +71,13 @@ rm -rf \ LANG=en_US.utf8 pushd .%{gem_instdir} + +%if 0%{?fedora} >= 21 +sed -i.minitest \ + -e "\@require 'kramdown'@i gem 'minitest', '~> 4'" \ + test/run_tests.rb +%endif + # Some tests seem to be failing, need investigating ruby -Ilib:test:. --verbose test/run_tests.rb 2>&1 | tee test-result.log cat test-result.log | grep FAILED && echo "Please investigate this" || true @@ -90,6 +102,9 @@ popd %doc %{gem_instdir}/doc/ %changelog +* Wed Aug 13 2014 Mamoru TASAKA - 1.4.1-1 +- 1.4.1 + * Fri Jun 27 2014 Mamoru TASAKA - 1.4.0-1 - 1.4.0 diff --git a/sources b/sources index 0856768..ae10ea6 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -b2e55511575fe5b29e1a436a37e1c34a kramdown-1.4.0.gem +1a54b449b83bcd753e8c0768b993cf23 kramdown-1.4.1.gem