1 |
commit: a44e7a89ea2a0978256ec0ec93169ba7025dae5c |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Dec 9 07:51:56 2018 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 9 07:51:56 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a44e7a89 |
7 |
|
8 |
dev-ruby/faraday: add 0.15.4 |
9 |
|
10 |
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
12 |
|
13 |
dev-ruby/faraday/Manifest | 1 + |
14 |
dev-ruby/faraday/faraday-0.15.4.ebuild | 71 ++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 72 insertions(+) |
16 |
|
17 |
diff --git a/dev-ruby/faraday/Manifest b/dev-ruby/faraday/Manifest |
18 |
index 45c45d960f2..aadaf6a2adc 100644 |
19 |
--- a/dev-ruby/faraday/Manifest |
20 |
+++ b/dev-ruby/faraday/Manifest |
21 |
@@ -1,3 +1,4 @@ |
22 |
DIST faraday-0.12.2.tar.gz 62809 BLAKE2B 4dcd60192df36e1b9766eab3bcbacd729239b0e09d9e82a73d825c750fdbcfae8161cf803f078b841236a5e18b1849b4cdc34e6adebb9eaea0f0442cd65b2e74 SHA512 966fc419d529a8bba5caa6d3932ee94f7b248110edc880b532860c24abd70cb50182e40b94b4143e26575c6db7ce046fa71ac0d25010385d7f0c3dda87f39439 |
23 |
DIST faraday-0.14.0.tar.gz 65105 BLAKE2B bf5101083bd828e2ea98dcd487c7c082f8b2d2eb4d03ac7ad04e1873666db9e2cec1e6eb9887364874ea5f32d0313019d1eada5e05e25e0415bdd5aa2bcfca97 SHA512 25bba07e76a2a8bf02b0c81c045329e72d5911a2aacae56611db33dc25c89bd48bb1b4de9b20c6edc1514d3ceae8b06fca6076c85580533047c222cb30ef8dc7 |
24 |
DIST faraday-0.15.3.tar.gz 67065 BLAKE2B 7425fb885cb26394ee91098264b5e4e3038a68855b9a55b03a39faca18d4e0cd516fe447b2312538692229bb15df091317ee36aad762937b46c72e16bb19cc8a SHA512 cfc59c44481e4be27504d02bfcbdc3a3783d15940487e72aaba136f5c456d74be6cad5a686e74eed1ad216fbb58db197d04015c2d168abbbaf899c4f855acdbd |
25 |
+DIST faraday-0.15.4.tar.gz 67196 BLAKE2B 4e64e834639a6e59c028ee19d72f51ea72fd6b3be5fc63b6fbbec25716dbd735e97d8a05a210dd1a57b740a1dcd76d30a39b59c7034cab8a531f8856dc132b14 SHA512 6d1a8c66bd6e2ce417ce504bf20ea89cf24c46c2b48491aba110d04f273448e0e8f0cf94a0dd5356a13876aa030d41bbfb80b95365ea4b212fd79d8db624128f |
26 |
|
27 |
diff --git a/dev-ruby/faraday/faraday-0.15.4.ebuild b/dev-ruby/faraday/faraday-0.15.4.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..6ea5115a095 |
30 |
--- /dev/null |
31 |
+++ b/dev-ruby/faraday/faraday-0.15.4.ebuild |
32 |
@@ -0,0 +1,71 @@ |
33 |
+# Copyright 1999-2018 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=6 |
37 |
+ |
38 |
+USE_RUBY="ruby23 ruby24 ruby25" |
39 |
+ |
40 |
+RUBY_FAKEGEM_TASK_TEST="test" |
41 |
+RUBY_FAKEGEM_TASK_DOC="" |
42 |
+ |
43 |
+RUBY_FAKEGEM_EXTRADOC="README.md" |
44 |
+ |
45 |
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" |
46 |
+ |
47 |
+inherit ruby-fakegem eutils |
48 |
+ |
49 |
+DESCRIPTION="HTTP/REST API client library with pluggable components" |
50 |
+HOMEPAGE="https://github.com/lostisland/faraday" |
51 |
+SRC_URI="https://github.com/lostisland/faraday/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
52 |
+ |
53 |
+LICENSE="MIT" |
54 |
+SLOT="0" |
55 |
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" |
56 |
+IUSE="" |
57 |
+ |
58 |
+DEPEND+=" test? ( sys-process/lsof )" |
59 |
+ |
60 |
+ruby_add_rdepend ">=dev-ruby/multipart-post-1.2.0 <dev-ruby/multipart-post-3" |
61 |
+ruby_add_bdepend "test? ( |
62 |
+ >=dev-ruby/test-unit-2.4 |
63 |
+ dev-ruby/httpclient |
64 |
+ dev-ruby/rack-test |
65 |
+ dev-ruby/sinatra |
66 |
+ dev-ruby/net-http-persistent >=dev-ruby/connection_pool-2.2.2 |
67 |
+ dev-ruby/patron |
68 |
+ )" |
69 |
+ |
70 |
+all_ruby_prepare() { |
71 |
+ # Remove bundler support. |
72 |
+ rm Gemfile || die |
73 |
+ sed -i -e '/[Bb]undler/d ; 1irequire "yaml"' Rakefile test/helper.rb || die |
74 |
+ sed -i -e '/bundler/,/^fi/ s:^:#:' script/test || die |
75 |
+ |
76 |
+ # Remove simplecov and coveralls support, not needed to run tests. |
77 |
+ sed -i -e '/simplecov/,/^end/ s:^:#:' \ |
78 |
+ test/helper.rb || die |
79 |
+ |
80 |
+ # Remove tests for adapters that are not packaged for Gentoo. |
81 |
+ rm test/adapters/em_http_test.rb test/adapters/em_synchrony_test.rb test/adapters/excon_test.rb test/adapters/typhoeus_test.rb || die |
82 |
+ |
83 |
+ # Remove tests against live services |
84 |
+ sed -i -e '/test_dynamic_no_proxy/askip "live network test"' test/connection_test.rb || die |
85 |
+ |
86 |
+ # The proxy server is already killed, may be OS X vs Linux issue. |
87 |
+ sed -i -e '138 s/^/#/' script/test || die |
88 |
+ |
89 |
+ sed -i -e '/git ls-files/ s:^:#:' ${RUBY_FAKEGEM_GEMSPEC} || die |
90 |
+} |
91 |
+ |
92 |
+each_ruby_prepare() { |
93 |
+ # Make sure the test scripts use the right ruby interpreter |
94 |
+ sed -i -e 's:ruby:'${RUBY}':' script/* || die |
95 |
+} |
96 |
+ |
97 |
+each_ruby_test() { |
98 |
+ MT_NO_PLUGINS=true each_fakegem_test |
99 |
+ |
100 |
+ # Sleep some time to allow the sinatra test server to die |
101 |
+ einfo "Waiting for test server to stop" |
102 |
+ sleep 10 |
103 |
+} |