1 |
commit: 95e06f38e243b101ebba008e390f716e91bd1dc6 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Dec 25 07:12:46 2020 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 25 07:12:56 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95e06f38 |
7 |
|
8 |
dev-ruby/http: add 4.4.1 |
9 |
|
10 |
Package-Manager: Portage-3.0.9, Repoman-3.0.2 |
11 |
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> |
12 |
|
13 |
dev-ruby/http/Manifest | 1 + |
14 |
dev-ruby/http/http-4.4.1.ebuild | 49 +++++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 50 insertions(+) |
16 |
|
17 |
diff --git a/dev-ruby/http/Manifest b/dev-ruby/http/Manifest |
18 |
index 05168d07615..43bdbc36262 100644 |
19 |
--- a/dev-ruby/http/Manifest |
20 |
+++ b/dev-ruby/http/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST http-3.3.0.gem 70656 BLAKE2B 5c52864168663640389a0f107e1bf8a202654a8b479c92bf5126354d360adcae45a9b4596da7cff2e412fee88ed3622870c4e2bb18eca97466b4ede28baa2a08 SHA512 fcb2549c22974712e129306b472c1a32466c50add85eee9a558582697c7ece26cb7a1db6da6aaceedb8bfd134d1213090c158db510fe53ddbe201bba6bd22c68 |
23 |
DIST http-4.1.1.gem 74240 BLAKE2B 350d4a2eb966f8dae05a206e20a92d8ce0601df36673cae8c969b8849d6715c5d0ab0e24c4b6cc4f117e4788e535296f86d5193198df4a8229572817c9cd3f75 SHA512 89e088521212293db692b66a7058327c215bba119b3f01d4120fd32f0754294d4cbada88ed9cffb6f182f6d712a0923dadfc645c1618e25a802fcc3d467356de |
24 |
+DIST http-4.4.1.gem 75776 BLAKE2B ab34a6a567842d52f9b7cbe3fc3fb8e4757f5cf1303deacdf2f2130a44e82fde64f0db561c3f8fc28100faea277a9c4a9352f95e6cb1359730b34e83a7b36d72 SHA512 6e43a8ae379d7c8a807a9a03c87bfb5ad1719f9838e26ac7a695220ee2bc50344accc2db268d30da175328fd5468b87ec8532d17ce42a5b74d6c2c4c281d1bc9 |
25 |
|
26 |
diff --git a/dev-ruby/http/http-4.4.1.ebuild b/dev-ruby/http/http-4.4.1.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..1b3a4d07704 |
29 |
--- /dev/null |
30 |
+++ b/dev-ruby/http/http-4.4.1.ebuild |
31 |
@@ -0,0 +1,49 @@ |
32 |
+# Copyright 1999-2020 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+USE_RUBY="ruby25 ruby26 ruby27" |
37 |
+ |
38 |
+RUBY_FAKEGEM_RECIPE_TEST="rspec3" |
39 |
+ |
40 |
+RUBY_FAKEGEM_EXTRADOC="CHANGES.md README.md" |
41 |
+ |
42 |
+inherit ruby-fakegem |
43 |
+ |
44 |
+DESCRIPTION="An easy-to-use client library for making requests from Ruby" |
45 |
+HOMEPAGE="https://github.com/tarcieri/http" |
46 |
+ |
47 |
+LICENSE="MIT" |
48 |
+SLOT="4" |
49 |
+KEYWORDS="~amd64" |
50 |
+IUSE="" |
51 |
+ |
52 |
+ruby_add_rdepend " |
53 |
+ >=dev-ruby/addressable-2.3:0 |
54 |
+ >=dev-ruby/http-cookie-1.0:0 |
55 |
+ >=dev-ruby/http-form_data-2.2:2 |
56 |
+ =dev-ruby/http-parser-1.2*" |
57 |
+ |
58 |
+ruby_add_bdepend " |
59 |
+ test? ( dev-ruby/certificate_authority dev-ruby/rspec-its )" |
60 |
+ |
61 |
+all_ruby_prepare() { |
62 |
+ sed -i -e '/simplecov/,/end/ s:^:#:' \ |
63 |
+ -e '1irequire "cgi"' spec/spec_helper.rb || die |
64 |
+ |
65 |
+ # Avoid specs that require network access |
66 |
+ sed -i -e '/.persistent/,/^ end/ s:^:#:' \ |
67 |
+ spec/lib/http_spec.rb || die |
68 |
+ sed -i -e '/with non-ASCII URLs/,/^ end/ s:^:#:' \ |
69 |
+ spec/lib/http/client_spec.rb || die |
70 |
+ |
71 |
+ # Avoid spec that may fail with a running web server |
72 |
+ sed -i -e '/unifies socket errors into HTTP::ConnectionError/,/^ end/ s:^:#:' spec/lib/http_spec.rb || die |
73 |
+ |
74 |
+ # Fix spec for production release |
75 |
+ sed -i -e '/User-Agent:/ s/.dev//' spec/lib/http/features/logging_spec.rb || die |
76 |
+ |
77 |
+ # Avoid specs also failing upstream due to some certificate issue |
78 |
+ sed -i -e '/context "ssl"/,/^ end/ s:^:#:' spec/lib/http_spec.rb || die |
79 |
+ sed -i -e '/describe "working with SSL"/,/^ end/ s:^:#:' spec/lib/http/client_spec.rb || die |
80 |
+} |