2016-04-01 11:05:21 +03:00
|
|
|
# Copyright 1999-2016 Gentoo Foundation
|
2015-03-29 17:21:37 +03:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2015-08-11 00:17:55 +03:00
|
|
|
# $Id$
|
2015-03-29 17:21:37 +03:00
|
|
|
|
|
|
|
EAPI=5
|
|
|
|
|
2016-04-01 11:05:21 +03:00
|
|
|
USE_RUBY="ruby20 ruby21"
|
2015-03-29 17:21:37 +03:00
|
|
|
|
|
|
|
RUBY_FAKEGEM_TASK_DOC=""
|
|
|
|
|
|
|
|
inherit ruby-fakegem
|
|
|
|
|
|
|
|
DESCRIPTION="An automatic logger for HTTP requests in Ruby"
|
2015-07-03 08:42:17 +03:00
|
|
|
HOMEPAGE="https://github.com/chrisk/samuel"
|
2015-03-29 17:21:37 +03:00
|
|
|
|
|
|
|
LICENSE="MIT"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~x86-fbsd"
|
|
|
|
IUSE=""
|
|
|
|
|
|
|
|
ruby_add_bdepend "
|
|
|
|
test? (
|
|
|
|
>=dev-ruby/shoulda-2.11.3
|
|
|
|
>=dev-ruby/fakeweb-1.3
|
|
|
|
>=dev-ruby/httpclient-2.2.3
|
2015-07-03 08:42:17 +03:00
|
|
|
dev-ruby/mocha:0.14
|
2015-03-29 17:21:37 +03:00
|
|
|
dev-ruby/test-unit:2
|
|
|
|
)"
|
|
|
|
|
|
|
|
all_ruby_prepare() {
|
|
|
|
# Remove references to bundler
|
|
|
|
sed -i -e '/[Bb]undler/d' test/test_helper.rb || die
|
|
|
|
rm Gemfile*
|
|
|
|
|
|
|
|
# Change the default port from 8000 to 64888 to sidestep Issue #10.
|
|
|
|
# https://github.com/chrisk/samuel/issues/10
|
|
|
|
sed -i -e 's:8000:64888:g' test/*.rb || die
|
|
|
|
|
|
|
|
# Require an old enough version of mocha.
|
2015-07-03 08:42:17 +03:00
|
|
|
sed -i -e '1igem "mocha", "~> 0.14.0"' test/test_helper.rb || die
|
2015-03-29 17:21:37 +03:00
|
|
|
|
2016-09-02 13:59:34 +03:00
|
|
|
# Use the test-unit gem for consistency accross ruby versions
|
|
|
|
sed -i -e '1igem "test-unit"; require "test/unit"' test/test_helper.rb || die
|
2015-03-29 17:21:37 +03:00
|
|
|
}
|