!4 [sync] PR-3: Update to 1.0.1
From: @openeuler-sync-bot Reviewed-by: @small_leek Signed-off-by: @small_leek
This commit is contained in:
commit
18a9cc9146
BIN
curb-0.9.7.gem
BIN
curb-0.9.7.gem
Binary file not shown.
BIN
curb-1.0.1.gem
Normal file
BIN
curb-1.0.1.gem
Normal file
Binary file not shown.
@ -1,16 +0,0 @@
|
||||
diff -uNr curb-0.8.6.ORIG/tests/tc_curl_easy.rb curb-0.8.6/tests/tc_curl_easy.rb
|
||||
--- curb-0.8.6.ORIG/tests/tc_curl_easy.rb 2014-08-04 09:29:20.903000000 +0000
|
||||
+++ curb-0.8.6/tests/tc_curl_easy.rb 2014-08-04 09:29:59.193000000 +0000
|
||||
@@ -948,9 +948,9 @@
|
||||
|
||||
def test_easy_http_verbs_must_respond_to_str
|
||||
# issue http://github.com/taf2/curb/issues#issue/45
|
||||
- assert_nothing_raised do
|
||||
- c = Curl::Easy.new ; c.url = 'http://example.com' ; c.http(:get)
|
||||
- end
|
||||
+ #assert_nothing_raised do
|
||||
+ #c = Curl::Easy.new ; c.url = 'http://example.com' ; c.http(:get)
|
||||
+ #end
|
||||
|
||||
assert_raise RuntimeError do
|
||||
c = Curl::Easy.new ; c.url = 'http://example.com' ; c.http(FooNoToS.new)
|
||||
@ -1,55 +0,0 @@
|
||||
From 55c7f485672465461bb8b8a4589601c208a3d82c Mon Sep 17 00:00:00 2001
|
||||
From: Todd Fisher <todd.fisher@gmail.com>
|
||||
Date: Mon, 26 Nov 2018 13:54:47 -0500
|
||||
Subject: [PATCH] libcurl 7.62 seems to have changed file:// slightly to
|
||||
include headers when reading files?
|
||||
|
||||
---
|
||||
tests/tc_curl_easy.rb | 6 ------
|
||||
1 file changed, 6 deletions(-)
|
||||
|
||||
diff --git a/tests/tc_curl_easy.rb b/tests/tc_curl_easy.rb
|
||||
index 63b43df..954d837 100644
|
||||
--- a/tests/tc_curl_easy.rb
|
||||
+++ b/tests/tc_curl_easy.rb
|
||||
@@ -28,8 +28,6 @@ def test_threads
|
||||
c = Curl.get($TEST_URL)
|
||||
assert_match(/^# DO NOT REMOVE THIS COMMENT/, c.body_str)
|
||||
assert_match(/^# DO NOT REMOVE THIS COMMENT/, c.body)
|
||||
- assert_equal "", c.header_str
|
||||
- assert_equal "", c.head
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -41,7 +39,6 @@ def test_class_perform_01
|
||||
assert_instance_of Curl::Easy, c = Curl::Easy.perform($TEST_URL)
|
||||
assert_match(/^# DO NOT REMOVE THIS COMMENT/, c.body_str)
|
||||
assert_match(/^# DO NOT REMOVE THIS COMMENT/, c.body)
|
||||
- assert_equal "", c.header_str
|
||||
end
|
||||
|
||||
def test_class_perform_02
|
||||
@@ -49,7 +46,6 @@ def test_class_perform_02
|
||||
assert_instance_of Curl::Easy, c = Curl::Easy.perform($TEST_URL) { |curl| curl.on_body { |d| data << d; d.length } }
|
||||
|
||||
assert_nil c.body_str
|
||||
- assert_equal "", c.header_str
|
||||
assert_match(/^# DO NOT REMOVE THIS COMMENT/, data)
|
||||
end
|
||||
|
||||
@@ -144,7 +140,6 @@ def test_get_01
|
||||
c = Curl::Easy.new($TEST_URL)
|
||||
assert_equal true, c.http_get
|
||||
assert_match(/^# DO NOT REMOVE THIS COMMENT/, c.body_str)
|
||||
- assert_equal "", c.header_str
|
||||
end
|
||||
|
||||
def test_get_02
|
||||
@@ -156,7 +151,6 @@ def test_get_02
|
||||
assert_equal true, c.http_get
|
||||
|
||||
assert_nil c.body_str
|
||||
- assert_equal "", c.header_str
|
||||
assert_match(/^# DO NOT REMOVE THIS COMMENT/, data)
|
||||
end
|
||||
|
||||
@ -1,14 +1,12 @@
|
||||
%bcond_with bootstrap
|
||||
%global gem_name curb
|
||||
Name: rubygem-%{gem_name}
|
||||
Version: 0.9.7
|
||||
Release: 2
|
||||
Version: 1.0.1
|
||||
Release: 1
|
||||
Summary: Ruby libcurl bindings
|
||||
License: Ruby
|
||||
URL: https://github.com/taf2/curb
|
||||
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
||||
Patch0: curb-disable-network-lookup-test.patch
|
||||
Patch1: rubygem-curb-0.9.7-libcurl-762-seems-to-have-changed-file-slightly.patch
|
||||
BuildRequires: ruby(release) rubygems-devel ruby-devel rubygem(test-unit) libcurl-devel gcc
|
||||
%description
|
||||
Curb (probably CUrl-RuBy or something) provides Ruby-language bindings for the
|
||||
@ -23,10 +21,8 @@ BuildArch: noarch
|
||||
Documentation for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{gem_name}-%{version}
|
||||
%autosetup -n %{gem_name}-%{version} -p1
|
||||
gem unpack %{SOURCE0}
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
|
||||
%build
|
||||
gem build ../%{gem_name}-%{version}.gemspec
|
||||
@ -63,6 +59,9 @@ popd
|
||||
%{gem_instdir}/tests
|
||||
|
||||
%changelog
|
||||
* Tue Jun 28 2022 baizhonggui <baizhonggui@h-partners.com> - 1.0.1-1
|
||||
- update to 1.0.1
|
||||
|
||||
* Sat Sep 5 2020 liyanan <liyanan32@huawei.com> - 0.9.7-2
|
||||
- fix build fail
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user