#1 Update to excon 0.65.0
Closed 3 years ago by pvalena. Opened 4 years ago by pvalena.
rpms/ pvalena/rubygem-excon rebase  into  master

file modified
+2 -21
@@ -1,21 +1,2 @@ 

- /excon-0.6.3.gem

- /excon-0.7.6.gem

- /excon-0.7.8.gem

- /excon-0.7.12.gem

- /excon-0.9.5.gem

- /excon-0.14.1.gem

- /excon-0.14.3.gem

- /excon-0.16.7.gem

- /excon-0.21.0.gem

- /excon-0.25.3.gem

- /excon-0.33.0.gem

- /excon-0.38.0.gem

- /excon-0.39.6.gem

- /excon-0.45.1.gem

- /excon-0.45.4.gem

- /excon-0.52.0.gem

- /excon-0.54.0.gem

- /excon-0.60.0.gem

- /excon-0.62.0.gem

- /excon-0.73.0-tests.tar.gz

- /excon-0.73.0.gem

+ /excon-*.gem

+ /excon-*-tests.txz

file modified
+19 -5
@@ -1,18 +1,22 @@ 

  %global gem_name excon

  

+ # To build excon without running tests

+ %bcond_without tests

+ 

  Name: rubygem-%{gem_name}

- Version: 0.73.0

+ Version: 0.76.0

  Release: 2%{?dist}

  Summary: Speed, persistence, http(s)

  License: MIT

  URL: https://github.com/excon/excon

  Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem

- # git clone https://github.com/excon/excon.git && cd excon

- # git archive -v -o excon-0.73.0-tests.tar.gz v0.73.0 spec/ tests/

- Source1: %{gem_name}-%{version}-tests.tar.gz

+ # git clone https://github.com/excon/excon.git --no-checkout

+ # cd excon && git archive -v -o excon-0.76.0-tests.txz v0.76.0 tests/ spec/

+ Source1: %{gem_name}-%{version}-tests.txz

  BuildRequires: ruby(release)

  BuildRequires: rubygems-devel

  BuildRequires: ruby

+ %if %{with tests}

  BuildRequires: %{_bindir}/openssl

  BuildRequires: %{_bindir}/rackup

  BuildRequires: %{_bindir}/shindo
@@ -23,6 +27,7 @@ 

  BuildRequires: rubygem(puma)

  BuildRequires: rubygem(sinatra)

  BuildRequires: rubygem(rspec)

+ %endif

  BuildArch: noarch

  

  %description
@@ -60,6 +65,7 @@ 

  # Kill bundled cacert.pem

  rm -rf %{buildroot}%{gem_instdir}/data

  

+ %if %{with tests}

  %check

  pushd .%{gem_instdir}

  
@@ -84,8 +90,13 @@ 

  openssl req -subj '/CN=excon/O=excon' -new -newkey rsa:2048 -sha256 -days 365 -nodes -x509 -keyout tests/data/excon.cert.key -out tests/data/excon.cert.crt

  openssl req -subj '/CN=127.0.0.1/O=excon' -new -newkey rsa:2048 -sha256 -days 365 -nodes -x509 -keyout tests/data/127.0.0.1.cert.key -out tests/data/127.0.0.1.cert.crt

  

- shindo

+ # This test requires multiple IP addresses available

+ sed -i "/tests('local port can be re-bound')/,/^    end/ s/^/#/" \

+   tests/basic_tests.rb

+ 

+ shindont

  popd

+ %endif

  

  %files

  %dir %{gem_instdir}
@@ -101,6 +112,9 @@ 

  %{gem_instdir}/excon.gemspec

  

  %changelog

+ * Fri Aug 21 00:15:13 GMT 2020 Pavel Valena <pvalena@redhat.com> - 0.76.0-2

+ - Update to excon 0.76.0.

+ 

  * Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.73.0-2

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

  

file modified
+2 -2
@@ -1,2 +1,2 @@ 

- SHA512 (excon-0.73.0-tests.tar.gz) = bccea9e0c6d08e77e3bc3383a97277a54600e19308103439bdede72aa8b443a1edb175bd715bb4c7b567a53efa9e2d853cef3154b1e1472f2771c6a9f22bbb93

- SHA512 (excon-0.73.0.gem) = 654b62da8ad797b86bc255e359e52936289535a6573ac68f484ddd47049c28e424a7d7cd0d5affeea465e630118a34b15cf404b50715b7bf98eac37e7c602175

+ SHA512 (excon-0.76.0.gem) = d474debb61687c9a99de5dfa676e726f2e6776e212a3b5576d0f46ec2f65804b7dbb951c98373dd98d93312c1c1d3567c73137cd1fdc5cafa886969ee3697c5d

+ SHA512 (excon-0.76.0-tests.txz) = 7d29d21a420599c862db6c5b52271d0b84f63a4eecd6fa0aa9555ac714a3e213906d98de59595e1fbaabf740a80b085fed8f5331a98f09c448d0a900a723f16c

also enhance .spec and .gitignore files; and add bcond_with for tests.


Locally (mock) there's an issue:
Cannot assign requested address - connect(2) for 127.0.0.1:9292 (Errno::EADDRNOTAVAIL

What I've gathered is that the test requires multple IP adresses: CustomSocket.find_alternate_ip(response.local_address
Therefore I've disabled it.


To have latest excon gem in Fedora.

Up-to-date Koji scratch-build:
https://koji.fedoraproject.org/koji/taskinfo?taskID=37312416

Up-to-date Copr build:
https://copr.fedorainfracloud.org/coprs/pvalena/rubygems/build/1024501/

Checks:

  • Syntax check: ok
  • Tests: ok
  • Dependent packages: ok
  • Smoke test(require): ok
  • rpmlint: ok

add bcond_with for tests.

Can you elaborate please? What is the reason?

rebased onto 5ea27aa

3 years ago

rebased onto cac8f7e

3 years ago

Pull-Request has been closed by pvalena

3 years ago