diff options
author | Hans de Graaff <graaff@gentoo.org> | 2015-11-04 07:57:37 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2015-11-05 07:25:55 +0100 |
commit | 0dc6045b778ab14131f607e9a6b331ec543099ab (patch) | |
tree | ce05de2c8fc57347e0b6c7f8d764f62ee39046e6 /dev-ruby | |
parent | dev-ruby/rbpdf: add 1.18.7 (diff) | |
download | gentoo-0dc6045b778ab14131f607e9a6b331ec543099ab.tar.gz gentoo-0dc6045b778ab14131f607e9a6b331ec543099ab.tar.bz2 gentoo-0dc6045b778ab14131f607e9a6b331ec543099ab.zip |
dev-ruby/webmock: add 1.22.3
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.3.ebuild | 53 |
2 files changed, 54 insertions, 0 deletions
diff --git a/dev-ruby/webmock/Manifest b/dev-ruby/webmock/Manifest index 4db768091e5e..f08f7c5c9793 100644 --- a/dev-ruby/webmock/Manifest +++ b/dev-ruby/webmock/Manifest @@ -1,3 +1,4 @@ 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 +DIST webmock-1.22.3.gem 106496 SHA256 5483cbb3f871107cf3a9ef8500b973ff3f7550a412498651b71bceb8fe3e4451 SHA512 268552bbbee8706d2e57dd8674335f42e8ed79ade29b7771eb5bc05b1f86288220359c0fae7e63dab11172c79317acf3331d2d2935e2e32060538a491d6f5b4f WHIRLPOOL 95ffe8a95a4d5ee0dd00ab06abb0e3a16cab7b768a6110fe767ee783a8a8a187684205ebc6613b437107492641ba3e868b0b9ca89fb4dc883c6fcfae02f8c830 diff --git a/dev-ruby/webmock/webmock-1.22.3.ebuild b/dev-ruby/webmock/webmock-1.22.3.ebuild new file mode 100644 index 000000000000..9dbacf4f6857 --- /dev/null +++ b/dev-ruby/webmock/webmock-1.22.3.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 ~ppc64" +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 +} |