From 9442fd7d8c9705981f07a2f5ade5225f7ac8ea0c Mon Sep 17 00:00:00 2001 From: Vít Ondruch Date: Mar 02 2018 15:23:33 +0000 Subject: Fix compatibility with recent rack-test. --- diff --git a/rubygem-capybara-2.17.0-Fix-compatability-with-rack-test-0.7.1.patch b/rubygem-capybara-2.17.0-Fix-compatability-with-rack-test-0.7.1.patch new file mode 100644 index 0000000..788ce65 --- /dev/null +++ b/rubygem-capybara-2.17.0-Fix-compatability-with-rack-test-0.7.1.patch @@ -0,0 +1,22 @@ +From 95a297ebef9899887ecf396a381e586ba9f611c3 Mon Sep 17 00:00:00 2001 +From: Thomas Walpole +Date: Sun, 19 Nov 2017 12:52:03 -0800 +Subject: [PATCH] Fix compatability with rack-test 0.7.1 + +--- + lib/capybara/rack_test/form.rb | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/lib/capybara/rack_test/form.rb b/lib/capybara/rack_test/form.rb +index 43ce2e60d..91455dd7b 100644 +--- a/lib/capybara/rack_test/form.rb ++++ b/lib/capybara/rack_test/form.rb +@@ -13,6 +13,8 @@ def initialize + def original_filename; ""; end + def content_type; "application/octet-stream"; end + def path; @empty_file.path; end ++ def size; 0; end ++ def read; ""; end + end + + def params(button) diff --git a/rubygem-capybara.spec b/rubygem-capybara.spec index 59d762b..cb0220c 100644 --- a/rubygem-capybara.spec +++ b/rubygem-capybara.spec @@ -2,11 +2,14 @@ Name: rubygem-%{gem_name} Version: 2.14.3 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Capybara aims to simplify the process of integration testing Rack applications License: MIT URL: https://github.com/teamcapybara/capybara Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem +# Fix compatibility with recent rack-test. +# https://github.com/teamcapybara/capybara/commit/95a297ebef9899887ecf396a381e586ba9f611c3 +Patch0: rubygem-capybara-2.17.0-Fix-compatability-with-rack-test-0.7.1.patch BuildRequires: rubygem(selenium-webdriver) BuildRequires: rubygem(sinatra) BuildRequires: rubygem(rspec) @@ -40,6 +43,10 @@ Documentation for %{name}. %setup -q -c -T %gem_install -n %{SOURCE0} +pushd .%{gem_instdir} +%patch0 -p1 +popd + %build %install @@ -74,6 +81,9 @@ popd %{gem_instdir}/spec %changelog +* Fri Mar 02 2018 Vít Ondruch - 2.14.3-4 +- Fix compatibility with recent rack-test. + * Fri Feb 09 2018 Fedora Release Engineering - 2.14.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild