diff options
author | Hans de Graaff <graaff@gentoo.org> | 2016-01-10 08:04:11 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2016-01-10 08:04:11 +0100 |
commit | a09844e163aaf302bbd97ed61f28faa1893c3ce9 (patch) | |
tree | de46666f1af54c84e935e536d784082cd3c1de4d /dev-ruby | |
parent | dev-ruby/msgpack: add 0.7.4 (diff) | |
download | gentoo-a09844e163aaf302bbd97ed61f28faa1893c3ce9.tar.gz gentoo-a09844e163aaf302bbd97ed61f28faa1893c3ce9.tar.bz2 gentoo-a09844e163aaf302bbd97ed61f28faa1893c3ce9.zip |
dev-ruby/webmock: add 1.22.6
Package-Manager: portage-2.2.26
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/webmock/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/webmock/webmock-1.22.6.ebuild | 52 |
2 files changed, 53 insertions, 0 deletions
diff --git a/dev-ruby/webmock/Manifest b/dev-ruby/webmock/Manifest index 04567dc2f6fd..fb0bbc0dc638 100644 --- a/dev-ruby/webmock/Manifest +++ b/dev-ruby/webmock/Manifest @@ -3,3 +3,4 @@ DIST webmock-1.20.3.gem 99840 SHA256 c01692190af4a5f26f376bf5678af1ebaeb5ac6d6f4 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 DIST webmock-1.22.5.gem 107520 SHA256 76539e2697146ce7b188244d233b11818a05a6bec1d72702f740c638a9195658 SHA512 977fc73d7d9200f23977d5b94cd3d4c2cdd7125f77b4befffb8fb0d543fcaa5c8a3d7576d30d24607fba9e75fd865e4f4991309ceb18343b7fc6a50e505c7989 WHIRLPOOL 29d5934b3a975147bcde5d62e14070c952b4b789495f659f01800cad0c68de4d47343ea74bdadcda79fbee4f0494e72c8b4b1b8b23f2801f4370aeba1bff725f +DIST webmock-1.22.6.gem 108032 SHA256 a4ba0124c5e1890a1d9e4a47f44493f14abb2fe3415e82b64bc677670792debf SHA512 42dbec5e3c56f0cdce37a53b2f49f400e03601f1a62c02caf7c5c022e51ab5c8304b35a8edea6675347a39b1d2ce08dea24bf555bdecf9268308dcfa6ec1c302 WHIRLPOOL 2033d4634125669556bfad0bfe22881c9115478e175a015a5c22323e30195f135e757e46c44f27fde98109527d78ff4a25d4f4d56b7143db212d9e34056d4623 diff --git a/dev-ruby/webmock/webmock-1.22.6.ebuild b/dev-ruby/webmock/webmock-1.22.6.ebuild new file mode 100644 index 000000000000..0e61f36df31b --- /dev/null +++ b/dev-ruby/webmock/webmock-1.22.6.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +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.8.0:0.8 )" + +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 +} |