summaryrefslogtreecommitdiff
blob: c338094394178476fb3ef76b2d376461a73b0d90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/spork/spork-0.8.5.ebuild,v 1.2 2012/06/12 11:45:00 iksaif Exp $

EAPI=2

USE_RUBY="ruby18 ree18"

RUBY_FAKEGEM_TASK_DOC=""
RUBY_FAKEGEM_EXTRADOC="README.rdoc"
RUBY_FAKEGEM_EXTRAINSTALL="assets"

inherit ruby-fakegem

DESCRIPTION="Spork is Tim Harper's implementation of test server."
HOMEPAGE="https://github.com/sporkrb/spork"
LICENSE="MIT"

KEYWORDS="~amd64 ~x86"
SLOT="0"
IUSE=""

ruby_add_bdepend "dev-util/cucumber
	>=dev-ruby/rspec-1.2.9:0
	>=dev-ruby/rspec-rails-1.2.9
	dev-util/cucumber-rails
	>=dev-ruby/rails-2.3
	>=dev-ruby/ruby-debug-0.10.3"

all_ruby_prepare() {
	# Don't use deprecated name in feature file.
	sed -i -e 's/Fonction/Fonctionnalité/' features/cucumber_rails_integration.feature || die

	# Remove failing features when newer Rails versions are
	# installed. This is fixed upstream, but only for the new beta
	# versions and in a way that is too invasive to backport.
	rm features/cucumber_rails_integration.feature \
		features/rspec_rails_integration.feature   \
		features/rails_delayed_loading_workarounds.feature || die
}

each_ruby_test() {
	${RUBY} -S spec spec || die
	${RUBY} -Ilib -S cucumber features || die
}