Fix test error caused by rubygem-concurrent-ruby.

epel9
Vít Ondruch 8 years ago
parent 2039517362
commit 81ad13d609

@ -0,0 +1,20 @@
From db45a93daab59ddee520890d104701bf089ccd2b Mon Sep 17 00:00:00 2001
From: Carl Zulauf <carl@linkleaf.com>
Date: Thu, 29 Dec 2016 11:10:16 -0600
Subject: [PATCH] Resolve undefined constant test failure by loading constant
---
test/spec_webrick.rb | 1 +
1 file changed, 1 insertion(+)
diff --git a/test/spec_webrick.rb b/test/spec_webrick.rb
index 469ae62..eff6411 100644
--- a/test/spec_webrick.rb
+++ b/test/spec_webrick.rb
@@ -1,5 +1,6 @@
require 'minitest/autorun'
require 'rack/mock'
+require 'concurrent/utility/native_integer'
require 'concurrent/atomic/count_down_latch'
require File.expand_path('../testrequest', __FILE__)

@ -8,13 +8,17 @@ Name: rubygem-%{gem_name}
Version: 2.0.1
# Introduce Epoch (related to bug 552972)
Epoch: 1
Release: 1%{?dist}
Release: 2%{?dist}
Summary: A modular Ruby webserver interface
Group: Development/Languages
# lib/rack/show{status,exceptions}.rb contains snippets from Django under BSD license.
License: MIT and BSD
URL: http://rack.github.io/
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
# Fix "uninitialized constant Concurrent::Utility::NativeInteger" error caused
# by updated rubygem-concurrent-ruby.
# https://github.com/rack/rack/commit/db45a93daab59ddee520890d104701bf089ccd2b
Patch0: rack-2.0.1-Resolve-undefined-constant-test-failure-by-loading-constant.patch
BuildRequires: ruby(release)
BuildRequires: rubygems-devel
BuildRequires: ruby >= 2.2.2
@ -48,6 +52,10 @@ Documentation for %{name}.
%setup -q -c -T
%gem_install -n %{SOURCE0}
pushd .%{gem_instdir}
%patch0 -p1
popd
%build
%install
@ -107,6 +115,9 @@ popd
%doc %{gem_instdir}/contrib
%changelog
* Mon Jan 09 2017 Vít Ondruch <vondruch@redhat.com> - 1:2.0.1-2
- Fix test error caused by rubygem-concurrent-ruby.
* Fri Jul 01 2016 Vít Ondruch <vondruch@redhat.com> - 1:2.0.1-1
- Update to Rack 2.0.1.

@ -1 +1 @@
ef209944508b4b1901840682b835c573 rack-2.0.1.gem
SHA512 (rack-2.0.1.gem) = 6ad5060ce56e279eb01029a699e86ee3f3cd6fe15b282f4c38ecc095d8bdf359dee0ff3fbe699bcac0e4765da7758fa5161f3c939da71a77eaf3fe3bc79bea1d

Loading…
Cancel
Save