[rubygem-ref] Update to ref 1.0.5.
Vít Ondruch
vondruch at fedoraproject.org
Thu Jun 19 06:20:59 UTC 2014
commit e2578553c8d8eba61ecc171a13df10dbbf9d5a3b
Author: Vít Ondruch <vondruch at redhat.com>
Date: Thu Jun 19 08:20:46 2014 +0200
Update to ref 1.0.5.
.gitignore | 1 +
rubygem-ref.spec | 28 ++++++++++++++++++++++------
sources | 2 +-
3 files changed, 24 insertions(+), 7 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 09fe12c..2e79982 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/ref-1.0.0.gem
+/ref-1.0.5.gem
diff --git a/rubygem-ref.spec b/rubygem-ref.spec
index ec7b909..fe4d93a 100644
--- a/rubygem-ref.spec
+++ b/rubygem-ref.spec
@@ -3,20 +3,17 @@
Summary: Library that implements weak, soft, and strong references in Ruby
Name: rubygem-%{gem_name}
-Version: 1.0.0
-Release: 6%{?dist}
+Version: 1.0.5
+Release: 1%{?dist}
Group: Development/Languages
License: MIT
URL: http://github.com/bdurand/ref
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
-Requires: ruby(release)
-Requires: ruby(rubygems)
BuildRequires: ruby(release)
BuildRequires: rubygems-devel
BuildRequires: ruby
BuildRequires: rubygem(minitest)
BuildArch: noarch
-Provides: rubygem(%{gem_name}) = %{version}
%description
Library that implements weak, soft, and strong references in Ruby that work
@@ -47,11 +44,27 @@ cp -a .%{gem_dir}/* \
%check
pushd .%{gem_instdir}
-testrb test/*_test.rb
+# To run the tests using minitest 5
+ruby -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
+%doc %{gem_instdir}/MIT_LICENSE
%dir %{gem_instdir}
%exclude %{gem_instdir}/ext
%{gem_libdir}
@@ -67,6 +80,9 @@ popd
%exclude %{gem_instdir}/test/*.rbc
%changelog
+* Thu Jun 19 2014 Vít Ondruch <vondruch at redhat.com> - 1.0.5-1
+- Update to ref 1.0.5.
+
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.0.0-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
diff --git a/sources b/sources
index 36fd2a4..29569c6 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-60dda373c4ea78cf41c35ed351cf2396 ref-1.0.0.gem
+33b07852bb5ea930c04cbb1be94e3c49 ref-1.0.5.gem
More information about the scm-commits
mailing list