summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2017-07-18 07:31:06 +0200
committerHans de Graaff <graaff@gentoo.org>2017-07-18 08:45:04 +0200
commitae1485ad444f3435f1c05d9f618085ee4e91f20a (patch)
treeaff95bb5dd02dc3250c132c62d0691a26a47ab2e /dev-ruby/httparty
parentapp-admin/389-console: fix warnings and improve ebuild. (diff)
downloadgentoo-ae1485ad444f3435f1c05d9f618085ee4e91f20a.tar.gz
gentoo-ae1485ad444f3435f1c05d9f618085ee4e91f20a.tar.bz2
gentoo-ae1485ad444f3435f1c05d9f618085ee4e91f20a.zip
dev-ruby/httparty: add 0.15.5
Package-Manager: Portage-2.3.6, Repoman-2.3.2
Diffstat (limited to 'dev-ruby/httparty')
-rw-r--r--dev-ruby/httparty/Manifest1
-rw-r--r--dev-ruby/httparty/httparty-0.15.5.ebuild49
2 files changed, 50 insertions, 0 deletions
diff --git a/dev-ruby/httparty/Manifest b/dev-ruby/httparty/Manifest
index d7f8b72217e3..cbeb015e66ea 100644
--- a/dev-ruby/httparty/Manifest
+++ b/dev-ruby/httparty/Manifest
@@ -1 +1,2 @@
DIST httparty-0.14.0.gem 84992 SHA256 86bfb7688fce74992a2ab91329a4855b25f71e0f31112823095b530647104ad7 SHA512 db04caaeff3277c071a2d3914f782f9151597d601a2f8817e704c977b95b149144c47df73284f83396ce1099f75f7fdc3caaa17385a515878366e2b3fcb84b04 WHIRLPOOL b50a3cc72cf1cc271d3e61b677d3df0173f926a4d7e389ec5e53ae1ac128fe5a28ed39fa2678737b052d5af6de45ca3f96abf75d03b69c830b8c7abc4958e362
+DIST httparty-0.15.5.gem 87552 SHA256 1bb3dc5d1c9df9401f5eb3a41ed7f58647b203924ae17e57ed62458ec98b6dd1 SHA512 c325a1b927e2b472c17b0895f322399e14f4beafe21626b4221a4a37ceb68cd3e92d801675a559d18cebc299f6317096b58bddecc59f687546ed88f284789459 WHIRLPOOL a39e56185ef9e75eb79be94f7de7d6c2e99b657b2d4e77b017dbac11c452d84aaaa1deda8f904867accf0213c28c6677b5dce0c9e70bbe4c3837e0298b3d0edd
diff --git a/dev-ruby/httparty/httparty-0.15.5.ebuild b/dev-ruby/httparty/httparty-0.15.5.ebuild
new file mode 100644
index 000000000000..0dc694c51ef6
--- /dev/null
+++ b/dev-ruby/httparty/httparty-0.15.5.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+USE_RUBY="ruby21 ruby22 ruby23"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+
+RUBY_FAKEGEM_TASK_DOC=""
+RUBY_FAKEGEM_EXTRADOC="Changelog.md README.md"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Makes http fun! Also, makes consuming restful web services dead easy"
+HOMEPAGE="https://jnunemaker.github.com/httparty"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+ruby_add_rdepend '>=dev-ruby/multi_xml-0.5.2'
+
+ruby_add_bdepend 'test? ( dev-ruby/fakeweb )'
+
+all_ruby_prepare() {
+ # Remove bundler
+ rm Gemfile || die
+ sed -i -e '/[Bb]undler/ s:^:#:' Rakefile || die
+
+ # Avoid test dependency on cucumber. We can't run the features since
+ # they depend on mongrel which is no longer packaged.
+ sed -i -e '/cucumber/I s:^:#:' Rakefile || die
+
+ # Avoid test dependency on simplecov
+ sed -i -e '/simplecov/I s:^:#:' \
+ -e '1i require "cgi"; require "delegate"' spec/spec_helper.rb || die
+
+ # Avoid test that works standalone but fails in the suite
+ sed -i -e '/calls block given to perform with each redirect/,/^ end/ s:^:#:' spec/httparty/request_spec.rb
+}
+
+all_ruby_install() {
+ all_fakegem_install
+
+ docinto examples
+ dodoc examples/*
+}