From fa4ff70a17c77bb8d45c60187233891f0c31c01f Mon Sep 17 00:00:00 2001 From: Vít Ondruch Date: Sep 26 2018 16:30:05 +0000 Subject: Update to Capybara 3.8.1. --- 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 deleted file mode 100644 index 788ce65..0000000 --- a/rubygem-capybara-2.17.0-Fix-compatability-with-rack-test-0.7.1.patch +++ /dev/null @@ -1,22 +0,0 @@ -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 d189c69..b18b588 100644 --- a/rubygem-capybara.spec +++ b/rubygem-capybara.spec @@ -1,16 +1,19 @@ %global gem_name capybara Name: rubygem-%{gem_name} -Version: 3.1.1 -Release: 2%{?dist} +Version: 3.8.1 +Release: 1%{?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 # git clone https://github.com/teamcapybara/capybara.git && cd capybara -# git checkout 3.1.1 && tar czvf capybara-3.1.1-tests.tgz features/ +# git checkout 3.8.1 && tar czvf capybara-3.8.1-tests.tgz features/ Source1: %{gem_name}-%{version}-tests.tgz +BuildRequires: ruby(release) +BuildRequires: rubygems-devel +BuildRequires: ruby BuildRequires: rubygem(selenium-webdriver) BuildRequires: rubygem(sinatra) BuildRequires: rubygem(rspec) @@ -22,9 +25,6 @@ BuildRequires: rubygem(xpath) BuildRequires: rubygem(rack-test) BuildRequires: rubygem(mini_mime) BuildRequires: rubygem(cucumber) -BuildRequires: ruby(release) -BuildRequires: rubygems-devel -BuildRequires: ruby BuildArch: noarch %description @@ -41,23 +41,28 @@ BuildArch: noarch Documentation for %{name}. %prep -%setup -q -c -T -%gem_install -n %{SOURCE0} - -pushd .%{gem_instdir} -popd +%setup -q -n %{gem_name}-%{version} -b 1 %build +# Create the gem as gem install only works on a gem file +gem build ../%{gem_name}-%{version}.gemspec + +# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir +# by default, so that we can move it into the buildroot in %%install +%gem_install %install mkdir -p %{buildroot}%{gem_dir} -cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/ +cp -a .%{gem_dir}/* \ + %{buildroot}%{gem_dir}/ + + # Run the test suite %check pushd .%{gem_instdir} # Move the tests into place -tar xzvf %{SOURCE1} +ln -s %{_builddir}/features features # it "should support SSL": Puma Timeouts, instead of EOFing on http connection sed -i '/end.to raise_error(EOFError)/ s/EOFError/Net::ReadTimeout/' \ @@ -75,18 +80,20 @@ popd %files %dir %{gem_instdir} %license %{gem_instdir}/License.txt -%exclude %{gem_instdir}/.yard* %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc -%doc %{gem_instdir}/README.md -%doc %{gem_instdir}/History.md %doc %{gem_docdir} +%doc %{gem_instdir}/History.md +%doc %{gem_instdir}/README.md %{gem_instdir}/spec %changelog +* Tue Sep 25 2018 Vít Ondruch - 3.8.1-1 +- Update to Capybara 3.8.1. + * Sat Jul 14 2018 Fedora Release Engineering - 3.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild diff --git a/sources b/sources index 2a71450..6b9228c 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (capybara-3.1.1.gem) = 955918a004f11af93caecf964738108edd31ebfb239d6af752bc48ac74b754320014b997d01b8cd12bec5aeef27c88b6737cf7d0ba7dfdb4ce983939ae534546 -SHA512 (capybara-3.1.1-tests.tgz) = 9e2135d748e177d284478ca1cb2dc66047253e431fb7e40dcc36d289d882ffc3e1f20dc05a67d980ce40db2ebede43da446746151c754c364bf2e6ca4c13eaf4 +SHA512 (capybara-3.8.1-tests.tgz) = 2114876f9f595a51472a21936570a8ed4756a8a7e9da7598d23c1e5ad428abf10be8562b6c0e4f7a8ca56805c47bbf761cac8155c5d46f4bd69364173ce904af +SHA512 (capybara-3.8.1.gem) = ee4d2b3226e5233a092d163b4323f02ba84ad682682dc9e17a4343380e4480774eac1bba28e12a83000438c7bc1d2698fe1aabe6162ff729a243fb863f06fffb