diff options
author | Hans de Graaff <graaff@gentoo.org> | 2015-10-23 11:26:36 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2015-10-23 11:26:54 +0200 |
commit | b499987a7db15c0318828764f47c48c3307b6fa8 (patch) | |
tree | 10e25cafb212713d7556791fe83d63a8c68e42bd /dev-ruby | |
parent | dev-ruby/crack: add ruby22 (diff) | |
download | gentoo-b499987a7db15c0318828764f47c48c3307b6fa8.tar.gz gentoo-b499987a7db15c0318828764f47c48c3307b6fa8.tar.bz2 gentoo-b499987a7db15c0318828764f47c48c3307b6fa8.zip |
dev-ruby/webmock: add 1.22.1, bug 563698
Drop ppc, ppc64, x86 keywords due to new dependency on
dev-ruby/hashdiff, bug 563858.
Package-Manager: portage-2.2.20.1
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/webmock/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/webmock/webmock-1.22.1.ebuild | 53 |
2 files changed, 54 insertions, 0 deletions
diff --git a/dev-ruby/webmock/Manifest b/dev-ruby/webmock/Manifest index 3a2ee451c60d..4db768091e5e 100644 --- a/dev-ruby/webmock/Manifest +++ b/dev-ruby/webmock/Manifest @@ -1,2 +1,3 @@ DIST webmock-1.19.0.gem 97792 SHA256 af78155d46cfe293b052d08403932d994d366857a794908e462683e387830988 SHA512 a647045ecc5ec2fd0d8ca9872b260cde745e351e96be347b54cd1554fef20c773a579284c14dcb8c6332de4901ea77f37042b0a2af2ae0314142f293d52d4e2e WHIRLPOOL e5715841d5d8b1403e347f711e42023d7e8717151fb351094656cca915a662fd5233da91a3b1b7f924a4222a306789586eb1c2f329f8370804e47fd37cdb3859 DIST webmock-1.20.3.gem 99840 SHA256 c01692190af4a5f26f376bf5678af1ebaeb5ac6d6f43d7a388c84f13d1f01025 SHA512 db9d770636dabf95b3a03a6589a259c1d66d875dba0cbcd493acf6bb35649c885139528aa5a8976d7ef438bca761e1063ae0fcf1da5b799e8d45abf1986c000c WHIRLPOOL bb0c4007bdd8f32e7cc6e8311d349b54be4f9dff81a88e6ab3f2df949008fce7dbd0de4127a202ca2677e1e6875759b5b683136d15d24dbfcc26f8e8e2e9f8cd +DIST webmock-1.22.1.gem 106496 SHA256 99ef5ebda396770ffe44380428845038d02bd8d5e398a633d16675a32ec637a8 SHA512 c7cd02d0f9dc37e54027497d37f7b2a2a83748357b96d3b721b0fcb56f502bf5d3897f95d0b7e2a5f6a99916881e618ee747107c657fc8fd966c61d7cd2834b7 WHIRLPOOL 16697be31f35d49a40202ae1711a4aa2327bd1838129e33c2b7964810acab4364315245fd1e18c27cc60611aaea60abe75241dce93b020b932e690b29450dace diff --git a/dev-ruby/webmock/webmock-1.22.1.ebuild b/dev-ruby/webmock/webmock-1.22.1.ebuild new file mode 100644 index 000000000000..d6ce0a96f137 --- /dev/null +++ b/dev-ruby/webmock/webmock-1.22.1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +# ruby22 → spec failures +USE_RUBY="ruby20 ruby21" + +RUBY_FAKEGEM_TASK_TEST="test spec NO_CONNECTION=true" + +RUBY_FAKEGEM_RECIPE_DOC="rdoc" +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md" + +inherit ruby-fakegem + +DESCRIPTION="Allows stubbing HTTP requests and setting expectations on HTTP requests" +HOMEPAGE="https://github.com/bblimke/webmock" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +ruby_add_rdepend ">=dev-ruby/addressable-2.3.6 >=dev-ruby/crack-0.3.2 dev-ruby/hashdiff" + +ruby_add_bdepend "test? ( + dev-ruby/minitest:5 + dev-ruby/rspec:3 + dev-ruby/rack + >=dev-ruby/httpclient-2.2.4 + >=dev-ruby/patron-0.4.18 + >=dev-ruby/http-0.6.0:0.6 )" + +all_ruby_prepare() { + # Remove bundler support + rm Gemfile || die + sed -i -e '/[Bb]undler/d' Rakefile || die + + # There is now optional support for curb and typhoeus which we don't + # have in Gentoo yet. em_http_request is available in Gentoo but its + # version is too old. + sed -i -e '/\(curb\|typhoeus\|em-http\)/d' spec/spec_helper.rb || die + rm spec/acceptance/{typhoeus,curb,excon,em_http_request}/* || die +} + +each_ruby_test() { + ${RUBY} -S rake test NO_CONNECTION=true || die + ${RUBY} -S rspec-3 spec || die + + einfo "Delay to allow the test server to stop" + sleep 10 +} |