|
|
|
@ -6,7 +6,7 @@
|
|
|
|
|
|
|
|
|
|
Summary: Scripting framework that replaces rake, sake and rubigen
|
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
|
Version: 0.17.0
|
|
|
|
|
Version: 0.18.1
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Group: Development/Languages
|
|
|
|
|
License: MIT
|
|
|
|
@ -65,11 +65,17 @@ pushd .%{gem_instdir}
|
|
|
|
|
sed -i "s/require 'bundler'//" Thorfile
|
|
|
|
|
|
|
|
|
|
# kill simplecov dependency
|
|
|
|
|
sed -i '3,7d' spec/spec_helper.rb
|
|
|
|
|
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 '178 i\content.force_encoding "UTF-8"' spec/shell/basic_spec.rb
|
|
|
|
|
sed -i '177 i\content.force_encoding "UTF-8"' spec/shell/basic_spec.rb
|
|
|
|
|
|
|
|
|
|
# Fix failing tests
|
|
|
|
|
# /components and .empty_directory are present in git under v0.18.1 tag,
|
|
|
|
|
# but missing in .gem so the tests are failing
|
|
|
|
|
mkdir spec/fixtures/doc/components
|
|
|
|
|
touch spec/fixtures/doc/components/.empty_directory
|
|
|
|
|
|
|
|
|
|
rspec spec
|
|
|
|
|
popd
|
|
|
|
@ -77,26 +83,26 @@ popd
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%{_bindir}/thor
|
|
|
|
|
%{_bindir}/rake2thor
|
|
|
|
|
%dir %{gem_instdir}
|
|
|
|
|
%doc %{gem_instdir}/CHANGELOG.rdoc
|
|
|
|
|
%doc %{gem_instdir}/LICENSE.md
|
|
|
|
|
%doc %{gem_instdir}/README.md
|
|
|
|
|
%exclude %{gem_instdir}/.*
|
|
|
|
|
%dir %{gem_instdir}
|
|
|
|
|
%{gem_instdir}/bin
|
|
|
|
|
%{gem_libdir}
|
|
|
|
|
%exclude %{gem_instdir}/.*
|
|
|
|
|
%exclude %{gem_cache}
|
|
|
|
|
%{gem_spec}
|
|
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
|
%{gem_instdir}/Gemfile
|
|
|
|
|
%doc %{gem_docdir}
|
|
|
|
|
%doc %{gem_instdir}/CHANGELOG.md
|
|
|
|
|
%doc %{gem_instdir}/README.md
|
|
|
|
|
%{gem_instdir}/Thorfile
|
|
|
|
|
%{gem_instdir}/spec
|
|
|
|
|
%{gem_instdir}/thor.gemspec
|
|
|
|
|
%{gem_instdir}/spec/
|
|
|
|
|
%exclude %{gem_instdir}/spec/fixtures/doc/components/.empty_directory
|
|
|
|
|
%doc %{gem_docdir}
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Thu Jul 25 2013 Josef Stribny <jstribny@redhat.com> - 0.18.1-1
|
|
|
|
|
- Update to Thor 0.18.1.
|
|
|
|
|
|
|
|
|
|
* Mon Mar 04 2013 Josef Stribny <jstribny@redhat.com> - 0.17.0-1
|
|
|
|
|
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
|
|
|
|
|
- Update to Thor 0.17.0
|
|
|
|
|