Update to thor 1.19.1.

epel9
Vít Ondruch 10 years ago
parent 008fd027aa
commit 3b9d4abf79

1
.gitignore vendored

@ -3,3 +3,4 @@ thor-0.13.6.gem
/thor-0.16.0.gem /thor-0.16.0.gem
/thor-0.17.0.gem /thor-0.17.0.gem
/thor-0.18.1.gem /thor-0.18.1.gem
/thor-0.19.1.gem

@ -4,28 +4,26 @@
# There are not all test dependencies are available in RHEL. # There are not all test dependencies are available in RHEL.
%global enable_test 0%{!?rhel:1} %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} Name: rubygem-%{gem_name}
Version: 0.18.1 Version: 0.19.1
Release: 2%{?dist} Release: 1%{?dist}
Group: Development/Languages Group: Development/Languages
License: MIT License: MIT
URL: http://whatisthor.com/ URL: http://whatisthor.com/
Source0: http://rubygems.org/downloads/%{gem_name}-%{version}.gem Source0: http://rubygems.org/downloads/%{gem_name}-%{version}.gem
Requires: ruby(rubygems)
Requires: ruby(release)
BuildRequires: rubygems-devel BuildRequires: rubygems-devel
BuildRequires: ruby(release) BuildRequires: ruby(release)
BuildRequires: ruby
%if %{enable_test} > 0 %if %{enable_test} > 0
BuildRequires: rubygem(rspec) BuildRequires: rubygem(rspec) < 3
BuildRequires: rubygem(fakeweb) BuildRequires: rubygem(fakeweb)
BuildRequires: git BuildRequires: git
%endif %endif
BuildArch: noarch BuildArch: noarch
Provides: rubygem(%{gem_name}) = %{version}
%description %description
Thor is a scripting framework that replaces rake, sake and rubigen. Thor is a toolkit for building powerful command-line interfaces.
%package doc %package doc
Summary: Documentation for %{name} Summary: Documentation for %{name}
@ -62,14 +60,10 @@ find %{buildroot}%{gem_instdir}/bin -type f | \
pushd .%{gem_instdir} pushd .%{gem_instdir}
# Drop bundler dependency # Drop bundler dependency
sed -i "s/require 'bundler'//" Thorfile sed -i '/require "bundler"/ s/^/#/' Thorfile
# kill simplecov dependency # kill simplecov dependency
sed -i '3,10d' spec/helper.rb sed -i '/simplecov/,/end/ s/^/#/' 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
# Fix failing tests # Fix failing tests
# /components and .empty_directory are present in git under v0.18.1 tag, # /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 mkdir spec/fixtures/doc/components
touch spec/fixtures/doc/components/.empty_directory touch spec/fixtures/doc/components/.empty_directory
rspec spec rspec2 spec
popd popd
%endif %endif
@ -100,6 +94,9 @@ popd
%{gem_instdir}/thor.gemspec %{gem_instdir}/thor.gemspec
%changelog %changelog
* Tue Dec 09 2014 Vít Ondruch <vondruch@redhat.com> - 0.19.1-1
- Update to thor 1.19.1.
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.18.1-2 * Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.18.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

@ -1 +1 @@
a1be884a982166054d1ac35c4a9bef55 thor-0.18.1.gem d775969c49fec36377b918725aa33019 thor-0.19.1.gem

Loading…
Cancel
Save