Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions package_manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -219,13 +219,15 @@ ruby_core_packages_tier1:
rubygem-excon: {}
rubygem-facter: {}
rubygem-faraday: {}
rubygem-faraday2: {}
rubygem-faraday-em_http: {}
rubygem-faraday-em_synchrony: {}
rubygem-faraday-excon: {}
rubygem-faraday-httpclient: {}
rubygem-faraday-multipart: {}
rubygem-faraday-net_http: {}
rubygem-faraday-net_http_persistent: {}
rubygem-faraday-net_http_persistent2: {}
rubygem-faraday-patron: {}
rubygem-faraday-rack: {}
rubygem-faraday-retry: {}
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# template: default
%global gem_name faraday-net_http_persistent

Name: rubygem-%{gem_name}2
Version: 2.3.0
Release: 1%{?dist}
Summary: Faraday adapter for NetHttpPersistent
License: MIT
URL: https://github.com/lostisland/faraday-net_http_persistent
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem

# start specfile generated dependencies
Requires: ruby >= 3.0
Requires: rubygem(faraday) >= 2.0
Requires: rubygem(net-http-persistent) >= 4.0
BuildRequires: ruby >= 3.0
BuildRequires: rubygems-devel
BuildArch: noarch
# end specfile generated dependencies

Conflicts: rubygem-%{gem_name} > 2

%description
Faraday adapter for NetHttpPersistent.
This package provides the 2.x adapter, compatible with Faraday 2.x
and net-http-persistent 4.x.


%package doc
Summary: Documentation for %{name}
Requires: %{name} = %{version}-%{release}
BuildArch: noarch

%description doc
Documentation for %{name}.

%prep
%setup -q -n %{gem_name}-%{version}

%build
gem build ../%{gem_name}-%{version}.gemspec
%gem_install

%install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/

%files
%dir %{gem_instdir}
%license %{gem_instdir}/LICENSE.md
%{gem_libdir}
%exclude %{gem_cache}
%{gem_spec}

%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/README.md

%changelog
* Wed May 27 2026 Pablo Mendez Hernandez <pablomh@redhat.com> 2.3.0-1
- Add faraday-net_http_persistent 2.x as co-installable package alongside 1.x
- Needed by smart-proxy for persistent HTTP connections (theforeman/smart-proxy#944)
Binary file not shown.
63 changes: 63 additions & 0 deletions packages/foreman/rubygem-faraday2/rubygem-faraday2.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# template: default
%global gem_name faraday

Name: rubygem-%{gem_name}2
Version: 2.12.2
Release: 1%{?dist}
Summary: HTTP/REST API client library
License: MIT
URL: https://lostisland.github.io/faraday
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem

# start specfile generated dependencies
Requires: ruby >= 3.0
BuildRequires: ruby >= 3.0
BuildRequires: rubygems-devel
BuildArch: noarch
# end specfile generated dependencies

# Co-installable with rubygem-faraday 1.x
Conflicts: rubygem-%{gem_name} > 2

%description
HTTP/REST API client library.
This package provides Faraday 2.x, installable alongside Faraday 1.x
for consumers that require the newer major version.


%package doc
Summary: Documentation for %{name}
Requires: %{name} = %{version}-%{release}
BuildArch: noarch

%description doc
Documentation for %{name}.

%prep
%setup -q -n %{gem_name}-%{version}

%build
gem build ../%{gem_name}-%{version}.gemspec
%gem_install

%install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/

%files
%dir %{gem_instdir}
%license %{gem_instdir}/LICENSE.md
%{gem_libdir}
%exclude %{gem_cache}
%{gem_spec}

%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/CHANGELOG.md
%doc %{gem_instdir}/README.md

%changelog
* Wed May 27 2026 Pablo Mendez Hernandez <pablomh@redhat.com> 2.12.2-1
- Add Faraday 2.x as co-installable package alongside 1.x
- Needed by smart-proxy for persistent HTTP connections (theforeman/smart-proxy#944)