Skip to content

Commit 8f60da7

Browse files
dallasd1Dallas Delaney
andauthored
rubygem-async-http: remove version dependency of rubygem-protocol-http1 (#10682)
Co-authored-by: Dallas Delaney <[email protected]>
1 parent 9cc3b99 commit 8f60da7

File tree

2 files changed

+31
-2
lines changed

2 files changed

+31
-2
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
From 058c72f0bdc5daa6078de96674aa68d8895ae921 Mon Sep 17 00:00:00 2001
2+
From: Dallas Delaney <[email protected]>
3+
Date: Tue, 8 Oct 2024 12:59:09 -0700
4+
Subject: [PATCH] remove version dependency on protocol-http1
5+
6+
---
7+
async-http.gemspec | 2 +-
8+
1 file changed, 1 insertion(+), 1 deletion(-)
9+
10+
diff --git a/async-http.gemspec b/async-http.gemspec
11+
index 5078ab0..44c8035 100644
12+
--- a/async-http.gemspec
13+
+++ b/async-http.gemspec
14+
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
15+
spec.add_dependency "async-io", ">= 1.28"
16+
spec.add_dependency "async-pool", ">= 0.2"
17+
spec.add_dependency "protocol-http", "~> 0.22.0"
18+
- spec.add_dependency "protocol-http1", "~> 0.14.0"
19+
+ spec.add_dependency "protocol-http1"
20+
spec.add_dependency "protocol-http2", "~> 0.14.0"
21+
22+
spec.add_development_dependency "async-container", "~> 0.14"
23+
--
24+
2.34.1
25+

SPECS/rubygem-async-http/rubygem-async-http.spec

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33
Summary: A HTTP client and server library
44
Name: rubygem-%{gem_name}
55
Version: 0.56.5
6-
Release: 1%{?dist}
6+
Release: 2%{?dist}
77
License: MIT
88
Vendor: Microsoft Corporation
99
Distribution: Mariner
1010
Group: Development/Languages
1111
URL: https://github.com/socketry/async-http
1212
Source0: https://github.com/socketry/async-http/archive/refs/tags/v%{version}.tar.gz#/%{gem_name}-%{version}.tar.gz
13+
Patch0: remove-http-protocol1-dep.patch
1314
BuildRequires: ruby
1415
Requires: rubygem-async
1516
Requires: rubygem-async-io
@@ -25,7 +26,7 @@ HTTP/1.1 and HTTP/2 including TLS. Support for streaming requests
2526
and responses.
2627

2728
%prep
28-
%setup -q -n %{gem_name}-%{version}
29+
%autosetup -p1 -n %{gem_name}-%{version}
2930

3031
%build
3132
gem build %{gem_name}
@@ -38,6 +39,9 @@ gem install -V --local --force --install-dir %{buildroot}/%{gemdir} %{gem_name}-
3839
%{gemdir}
3940

4041
%changelog
42+
* Thu Oct 03 2024 Dallas Delaney <[email protected]> - 0.56.5-2
43+
- Add patch to remove dependency on pinned version of rubygem-protocol-http1
44+
4145
* Wed Jun 22 2022 Neha Agarwal <[email protected]> - 0.56.5-1
4246
- Update to v0.56.5.
4347
- Build from .tar.gz source.

0 commit comments

Comments
 (0)