[rubygem-backports] Update to backports 3.6.0.
Vít Ondruch
vondruch at fedoraproject.org
Thu Jun 12 08:33:30 UTC 2014
commit 3264baf99f9caaf9680548c640a889a0da48b3fd
Author: Vít Ondruch <vondruch at redhat.com>
Date: Thu Jun 12 10:33:20 2014 +0200
Update to backports 3.6.0.
.gitignore | 1 +
rubygem-backports.spec | 29 +++++++++++++++++++++++------
sources | 2 +-
3 files changed, 25 insertions(+), 7 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index b071da3..0ee36e3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/backports-3.3.4.gem
+/backports-3.6.0.gem
diff --git a/rubygem-backports.spec b/rubygem-backports.spec
index 960fc7a..656a7de 100644
--- a/rubygem-backports.spec
+++ b/rubygem-backports.spec
@@ -2,22 +2,19 @@
%global gem_name backports
Name: rubygem-%{gem_name}
-Version: 3.3.4
-Release: 2%{?dist}
+Version: 3.6.0
+Release: 1%{?dist}
Summary: Backports of Ruby features for older Ruby
Group: Development/Languages
License: MIT
URL: http://github.com/marcandre/backports
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
-Requires: ruby(release)
-Requires: ruby(rubygems)
BuildRequires: ruby(release)
BuildRequires: rubygems-devel
BuildRequires: ruby
BuildRequires: rubygem(activesupport)
BuildRequires: rubygem(minitest)
BuildArch: noarch
-Provides: rubygem(%{gem_name}) = %{version}
%description
Essential backports that enable many of the nice features of Ruby 1.8.7 up to
@@ -54,7 +51,24 @@ cp -pa .%{gem_dir}/* \
pushd .%{gem_instdir}
# TODO: More test could be enabled, if MSpec and RubySpec are available
# in Fedora.
-testrb -Ilib test/*_test.rb
+
+# To run the tests using minitest 5
+ruby -rminitest/autorun -Ilib - << \EOF
+ module Kernel
+ alias orig_require require
+ remove_method :require
+
+ def require path
+ orig_require path unless path == 'test/unit'
+ end
+ end
+
+ Test = Minitest
+
+ module Minitest::Assertions; alias :assert_raise :assert_raises; end;
+
+ Dir.glob "./test/*_test.rb", &method(:require)
+EOF
popd
@@ -80,6 +94,9 @@ popd
%doc %{gem_instdir}/test/README
%changelog
+* Tue Jun 10 2014 Vít Ondruch <vondruch at redhat.com> - 3.6.0-1
+- Update to backports 3.6.0.
+
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 3.3.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
diff --git a/sources b/sources
index 8fdb0ae..331f70e 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-2c97d700b95f1e3efe68d7f8bc263f9e backports-3.3.4.gem
+ed35fa0768303d6ec558b4d492ab6338 backports-3.6.0.gem
More information about the scm-commits
mailing list