diff --git a/.gitignore b/.gitignore index 9f39485..2d5c424 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ thor-0.13.6.gem /thor-0.16.0.gem /thor-0.17.0.gem /thor-0.18.1.gem +/thor-0.19.1.gem diff --git a/rubygem-thor.spec b/rubygem-thor.spec index aa405d4..6276b7c 100644 --- a/rubygem-thor.spec +++ b/rubygem-thor.spec @@ -4,28 +4,26 @@ # There are not all test dependencies are available in RHEL. %global enable_test 0%{!?rhel:1} -Summary: Scripting framework that replaces rake, sake and rubigen +Summary: Thor is a toolkit for building powerful command-line interfaces Name: rubygem-%{gem_name} -Version: 0.18.1 -Release: 2%{?dist} +Version: 0.19.1 +Release: 1%{?dist} Group: Development/Languages License: MIT URL: http://whatisthor.com/ Source0: http://rubygems.org/downloads/%{gem_name}-%{version}.gem -Requires: ruby(rubygems) -Requires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby(release) +BuildRequires: ruby %if %{enable_test} > 0 -BuildRequires: rubygem(rspec) +BuildRequires: rubygem(rspec) < 3 BuildRequires: rubygem(fakeweb) BuildRequires: git %endif BuildArch: noarch -Provides: rubygem(%{gem_name}) = %{version} %description -Thor is a scripting framework that replaces rake, sake and rubigen. +Thor is a toolkit for building powerful command-line interfaces. %package doc Summary: Documentation for %{name} @@ -62,14 +60,10 @@ find %{buildroot}%{gem_instdir}/bin -type f | \ pushd .%{gem_instdir} # Drop bundler dependency -sed -i "s/require 'bundler'//" Thorfile +sed -i '/require "bundler"/ s/^/#/' Thorfile # kill simplecov dependency -sed -i '3,10d' spec/helper.rb - -# This fixes on test failure due to encoding issues. -# https://github.com/wycats/thor/issues/278 -sed -i '177 i\content.force_encoding "UTF-8"' spec/shell/basic_spec.rb +sed -i '/simplecov/,/end/ s/^/#/' spec/helper.rb # Fix failing tests # /components and .empty_directory are present in git under v0.18.1 tag, @@ -77,7 +71,7 @@ sed -i '177 i\content.force_encoding "UTF-8"' spec/shell/basic_spec.rb mkdir spec/fixtures/doc/components touch spec/fixtures/doc/components/.empty_directory -rspec spec +rspec2 spec popd %endif @@ -100,6 +94,9 @@ popd %{gem_instdir}/thor.gemspec %changelog +* Tue Dec 09 2014 Vít Ondruch - 0.19.1-1 +- Update to thor 1.19.1. + * Sun Jun 08 2014 Fedora Release Engineering - 0.18.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild diff --git a/sources b/sources index 8c2fa1e..a5c7231 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -a1be884a982166054d1ac35c4a9bef55 thor-0.18.1.gem +d775969c49fec36377b918725aa33019 thor-0.19.1.gem