1 |
commit: e5723b8f7259e028fdf71989148ca1c8086fec2e |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Nov 15 06:16:11 2018 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Nov 15 07:23:59 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5723b8f |
7 |
|
8 |
dev-ruby/httparty: add 0.16.3 |
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/httparty/Manifest | 1 + |
14 |
dev-ruby/httparty/httparty-0.16.3.ebuild | 52 ++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 53 insertions(+) |
16 |
|
17 |
diff --git a/dev-ruby/httparty/Manifest b/dev-ruby/httparty/Manifest |
18 |
index c11e7ed56b2..aaca75ffd64 100644 |
19 |
--- a/dev-ruby/httparty/Manifest |
20 |
+++ b/dev-ruby/httparty/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST httparty-0.16.2.gem 89600 BLAKE2B 581b5fcadf59bb50864b2fa6d1aae220ff9881bba53363601c6e70c3291dc2cee351a8f42b1946ad516cdcab5a85b832e4260f04394e54255e0cd76bc6860d5e SHA512 13efbacb9ee0325fbb185279ca9f7ffcc0131189ccf98d9889c6a1b6bcfa04fd7cbc6d1393bffe69a5a813a2f54f70b5926e176305fa70480dd0902968c894d0 |
23 |
+DIST httparty-0.16.3.gem 92672 BLAKE2B d32f0da8eb2c5e9f2e094c1c8971c53a8e6eab4b0a7b98014d04b27a644d1c2142cf6c97f4db5cd1274f35c8e80ce332f86cae8ee4adba2d0636aabb7f40bea5 SHA512 26916c635fe4cc01a38132ab5970487aef4529239e922d196f5922187eb466d24ead0e2e15889d721a37f6358b65570ca022b78e166bd49ed08c7150acec816a |
24 |
|
25 |
diff --git a/dev-ruby/httparty/httparty-0.16.3.ebuild b/dev-ruby/httparty/httparty-0.16.3.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..4b5fde1500a |
28 |
--- /dev/null |
29 |
+++ b/dev-ruby/httparty/httparty-0.16.3.ebuild |
30 |
@@ -0,0 +1,52 @@ |
31 |
+# Copyright 1999-2018 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=6 |
35 |
+ |
36 |
+USE_RUBY="ruby23 ruby24 ruby25" |
37 |
+ |
38 |
+RUBY_FAKEGEM_RECIPE_TEST="rspec3" |
39 |
+ |
40 |
+RUBY_FAKEGEM_TASK_DOC="" |
41 |
+RUBY_FAKEGEM_EXTRADOC="Changelog.md README.md" |
42 |
+ |
43 |
+inherit ruby-fakegem |
44 |
+ |
45 |
+DESCRIPTION="Makes http fun! Also, makes consuming restful web services dead easy" |
46 |
+HOMEPAGE="https://jnunemaker.github.com/httparty" |
47 |
+ |
48 |
+LICENSE="MIT" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~amd64 ~x86" |
51 |
+IUSE="" |
52 |
+ |
53 |
+ruby_add_rdepend 'dev-ruby/mime-types:3 >=dev-ruby/multi_xml-0.5.2' |
54 |
+ |
55 |
+ruby_add_bdepend 'test? ( dev-ruby/webmock )' |
56 |
+ |
57 |
+all_ruby_prepare() { |
58 |
+ # Remove bundler |
59 |
+ rm Gemfile || die |
60 |
+ sed -i -e '/[Bb]undler/ s:^:#:' Rakefile || die |
61 |
+ |
62 |
+ # Avoid test dependency on cucumber. We can't run the features since |
63 |
+ # they depend on mongrel which is no longer packaged. |
64 |
+ sed -i -e '/cucumber/I s:^:#:' Rakefile || die |
65 |
+ |
66 |
+ # Avoid test dependency on simplecov |
67 |
+ sed -i -e '/simplecov/I s:^:#:' \ |
68 |
+ -e '1i require "cgi"; require "delegate"' spec/spec_helper.rb || die |
69 |
+ |
70 |
+ # Avoid test that works standalone but fails in the suite |
71 |
+ sed -i -e '/calls block given to perform with each redirect/,/^ end/ s:^:#:' spec/httparty/request_spec.rb |
72 |
+ |
73 |
+ # Avoid test that is not fully compatible with newer multi_xml |
74 |
+ sed -i -e '/should be able parse response type xml automatically/askip "multi_xml"' spec/httparty_spec.rb || die |
75 |
+} |
76 |
+ |
77 |
+all_ruby_install() { |
78 |
+ all_fakegem_install |
79 |
+ |
80 |
+ docinto examples |
81 |
+ dodoc examples/* |
82 |
+} |