Skip to content

Commit

Permalink
dev-ruby/will_paginate: fix tests, add ruby23 revision
Browse files Browse the repository at this point in the history
Package-Manager: portage-2.2.28
  • Loading branch information
graaff committed Sep 1, 2016
1 parent 95f170f commit 700a91c
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
34 changes: 34 additions & 0 deletions dev-ruby/will_paginate/will_paginate-3.1.0-r1.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5
USE_RUBY="ruby20 ruby21 ruby22 ruby23"

RUBY_FAKEGEM_RECIPE_TEST="rspec"

RUBY_FAKEGEM_TASK_DOC=""
RUBY_FAKEGEM_EXTRADOC="README.md"

inherit ruby-fakegem

DESCRIPTION="Most awesome pagination solution for Ruby"
HOMEPAGE="https://github.com/mislav/will_paginate/"

LICENSE="MIT"
SLOT="3"
KEYWORDS="~amd64 ~x86-macos"
IUSE=""

all_ruby_prepare() {
sed -i -e '1igem "rails", "<5"' spec/spec_helper.rb || die

# Remove tests for unpackaged ORMs
rm -f spec/finders/{sequel,mongoid,data_mapper}* || die
}

ruby_add_bdepend "
test? (
<dev-ruby/rails-5
dev-ruby/mocha
)"
9 changes: 8 additions & 1 deletion dev-ruby/will_paginate/will_paginate-3.1.0.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,15 @@ SLOT="3"
KEYWORDS="~amd64 ~x86 ~x86-macos"
IUSE=""

all_ruby_prepare() {
sed -i -e '1igem "rails", "<5"' spec/spec_helper.rb || die

# Remove tests for unpackaged ORMs
rm -f spec/finders/{sequel,mongoid,data_mapper}* || die
}

ruby_add_bdepend "
test? (
dev-ruby/rails
<dev-ruby/rails-5
dev-ruby/mocha
)"

0 comments on commit 700a91c

Please sign in to comment.