diff options
author | Hans de Graaff <graaff@gentoo.org> | 2016-07-28 08:02:59 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2016-07-28 08:05:58 +0200 |
commit | 4e4dc32cc7312fb1b7c1b8424ed0e49822ad1ffa (patch) | |
tree | 0dadaf04c2883831f58e5d5a9538aacc6a34dfc7 /dev-ruby | |
parent | dev-ruby/rest-client: add ruby22 revision (diff) | |
download | gentoo-4e4dc32cc7312fb1b7c1b8424ed0e49822ad1ffa.tar.gz gentoo-4e4dc32cc7312fb1b7c1b8424ed0e49822ad1ffa.tar.bz2 gentoo-4e4dc32cc7312fb1b7c1b8424ed0e49822ad1ffa.zip |
dev-ruby/webmock: add 2.1.0
Package-Manager: portage-2.2.28
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/webmock/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/webmock/webmock-2.1.0.ebuild | 52 |
2 files changed, 53 insertions, 0 deletions
diff --git a/dev-ruby/webmock/Manifest b/dev-ruby/webmock/Manifest index c69ce0b384de..bf9c78e16d8d 100644 --- a/dev-ruby/webmock/Manifest +++ b/dev-ruby/webmock/Manifest @@ -4,3 +4,4 @@ DIST webmock-1.22.6.gem 108032 SHA256 a4ba0124c5e1890a1d9e4a47f44493f14abb2fe341 DIST webmock-1.24.3.gem 111104 SHA256 508b0b32a39cb404fffd3c5e81c842a86ca6979ad1ae1a26a9b8327cb4444fef SHA512 73ed05e5d86b916c9b4f01adaca4596b789007321bbb0428d12a30987d5c890a9f6f4010b51d2a615f1b44ae7103bcfaa3373945fc7307f414a614ba9a0d63b5 WHIRLPOOL dc66a0bbb0f418a5ba6b0a2cec45c750a478b47fcca45521876ea9a3e1aeb55710b9a4d001aa58386f64bfdea2a9d8130c2bea01798003725786734ad161a76a DIST webmock-1.24.5.gem 111104 SHA256 46f2faa7ab67847a57631b30abe90baa44e17bbbc437a893a06b3251a13f0621 SHA512 3bf4e7adfbe24e1d9cfaba8ab287a19d2a3f49d9dea75af4d456c11ae84fc9ba3a6309decc8e019a282661af4559231130797a8ff9eb479af02b9f8a29a6cf3a WHIRLPOOL 5670d2b4f6af79808d10034bcfdc2cbbe26bb97688a8f31098e17fb61ec1de85399cd4edec0554588dba1e78f1fe717375a9038f25a48d3c2815e2958840d978 DIST webmock-1.24.6.gem 111104 SHA256 c516e1b309697af303e647dc2f3c7222b13ef70c1c4c5afb61e64bd595c9740f SHA512 9319dcb3c29189403c79870dc8f91f27e099627a9fe5136a98193ee387a6dbcdf72eecb57ec4080faca9575461dfbf4ddecaaf5e1c75cfa60b08732a1d7248cc WHIRLPOOL b5962ed03bed0fce4f59c9275d58ca31a58ab3c14ac85532d78a88bfb0f2c3a06054d926ab2a72b48522cee19464672306c3f5e7c09d363e1e913dabb4b94c0a +DIST webmock-2.1.0.gem 111616 SHA256 e4ccb85d1483409533daf01f08b6af198cf8603fb2a71106207acb084f96cb58 SHA512 604318766d1a23e76c03e0f39bcdc28aa0a23cba14bd8b5a3b33894aa30ece1d5ac56456500143745a2751ddc7bd0424ef195c82b78d66b5e28e10d5059facfa WHIRLPOOL fd749dca7533e893c59f550e4bc7b96c7fada8674ff00d69b4f08946827ea95599209709bef40210a69e71612df52b11a265d4cf9eba0301343287cd27269164 diff --git a/dev-ruby/webmock/webmock-2.1.0.ebuild b/dev-ruby/webmock/webmock-2.1.0.ebuild new file mode 100644 index 000000000000..3b8049fd6264 --- /dev/null +++ b/dev-ruby/webmock/webmock-2.1.0.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 ruby22" + +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="2" +KEYWORDS="~amd64 ~arm ~ppc64 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris" +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 +} |