Update to progressbar 0.21.0.
This commit is contained in:
parent
85b12cd5dc
commit
c82794b5c7
3 changed files with 27 additions and 11 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,3 +1,4 @@
|
|||
/progressbar-0.9.0.gem
|
||||
/rubygem-progressbar-test-load-path-fix.patch
|
||||
/progressbar-0.11.0.gem
|
||||
/progressbar-0.21.0.gem
|
||||
|
|
|
|||
|
|
@ -2,18 +2,15 @@
|
|||
|
||||
Summary: Ruby text progress bar generator library
|
||||
Name: rubygem-%{gem_name}
|
||||
Version: 0.11.0
|
||||
Release: 5%{?dist}
|
||||
Version: 0.21.0
|
||||
Release: 1%{?dist}
|
||||
Group: Development/Languages
|
||||
License: GPLv2 or Ruby
|
||||
License: BSD or Ruby
|
||||
URL: http://github.com/peleteiro/progressbar
|
||||
Source0: http://gems.rubyforge.org/gems/%{gem_name}-%{version}.gem
|
||||
Requires: ruby(release)
|
||||
Requires: ruby(rubygems)
|
||||
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
||||
BuildRequires: rubygems-devel
|
||||
BuildRequires: rubygem(minitest)
|
||||
BuildArch: noarch
|
||||
Provides: rubygem(%{gem_name}) = %{version}
|
||||
|
||||
%description
|
||||
ProgressBar is a text progress bar library for Ruby. It can indicate
|
||||
|
|
@ -25,7 +22,7 @@ Group: Documentation
|
|||
Requires:%{name} = %{version}-%{release}
|
||||
|
||||
%description doc
|
||||
Documentation for %{name}
|
||||
Documentation for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -c -T
|
||||
|
|
@ -40,7 +37,22 @@ cp -a ./%{gem_dir}/* %{buildroot}%{gem_dir}
|
|||
|
||||
%check
|
||||
pushd .%{gem_instdir}
|
||||
ruby -Ilib test/test.rb
|
||||
# Run the tests using minitest 5.
|
||||
ruby -Ilib -rminitest/autorun - << \EOF
|
||||
module Kernel
|
||||
alias orig_require require
|
||||
remove_method :require
|
||||
|
||||
def require path
|
||||
orig_require path unless path == 'test/unit'
|
||||
end
|
||||
end
|
||||
|
||||
Test = Minitest
|
||||
|
||||
Dir.glob "./test/test.rb", &method(:require)
|
||||
EOF
|
||||
|
||||
popd
|
||||
|
||||
%files
|
||||
|
|
@ -48,7 +60,7 @@ popd
|
|||
%exclude %{gem_instdir}/.*
|
||||
%{gem_libdir}
|
||||
%doc %{gem_instdir}/LICENSE
|
||||
%{gem_cache}
|
||||
%exclude %{gem_cache}
|
||||
%{gem_spec}
|
||||
|
||||
%files doc
|
||||
|
|
@ -61,6 +73,9 @@ popd
|
|||
%{gem_instdir}/test
|
||||
|
||||
%changelog
|
||||
* Wed Jul 16 2014 Vít Ondruch <vondruch@redhat.com> - 0.21.0-1
|
||||
- Update to progressbar 0.21.0.
|
||||
|
||||
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.0-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
b0aeb7f9bb4b6c5562582a009132c285 progressbar-0.11.0.gem
|
||||
d9f376cd8782e71c05a42bfda5b41a9f progressbar-0.21.0.gem
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue