summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2013-03-03 12:48:35 +0000
committerHans de Graaff <graaff@gentoo.org>2013-03-03 12:48:35 +0000
commit1d6cffd6e34b41299339ca2662bfae6fc0070fb3 (patch)
tree9265e9ae1d12925aba4d25a71dfff362e535804f /dev-ruby/rails_autolink
parentSet proxy maintainership (diff)
downloadgentoo-2-1d6cffd6e34b41299339ca2662bfae6fc0070fb3.tar.gz
gentoo-2-1d6cffd6e34b41299339ca2662bfae6fc0070fb3.tar.bz2
gentoo-2-1d6cffd6e34b41299339ca2662bfae6fc0070fb3.zip
Add back ruby18 support from my overlay and skip the few tests failing due to hash ordering.
(Portage version: 2.1.11.52/cvs/Linux x86_64, signed Manifest commit with key 0x8883FA56A308A8D7!)
Diffstat (limited to 'dev-ruby/rails_autolink')
-rw-r--r--dev-ruby/rails_autolink/ChangeLog6
-rw-r--r--dev-ruby/rails_autolink/rails_autolink-1.0.9.ebuild17
2 files changed, 20 insertions, 3 deletions
diff --git a/dev-ruby/rails_autolink/ChangeLog b/dev-ruby/rails_autolink/ChangeLog
index 491630368430..7dead94a0a4d 100644
--- a/dev-ruby/rails_autolink/ChangeLog
+++ b/dev-ruby/rails_autolink/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-ruby/rails_autolink
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rails_autolink/ChangeLog,v 1.1 2013/01/25 20:50:24 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rails_autolink/ChangeLog,v 1.2 2013/03/03 12:48:35 graaff Exp $
+
+ 03 Mar 2013; Hans de Graaff <graaff@gentoo.org> rails_autolink-1.0.9.ebuild:
+ Add back ruby18 support from my overlay and skip the few tests failing due to
+ hash ordering.
*rails_autolink-1.0.9 (25 Jan 2013)
diff --git a/dev-ruby/rails_autolink/rails_autolink-1.0.9.ebuild b/dev-ruby/rails_autolink/rails_autolink-1.0.9.ebuild
index 38fb3223f950..223359450556 100644
--- a/dev-ruby/rails_autolink/rails_autolink-1.0.9.ebuild
+++ b/dev-ruby/rails_autolink/rails_autolink-1.0.9.ebuild
@@ -1,9 +1,9 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rails_autolink/rails_autolink-1.0.9.ebuild,v 1.1 2013/01/25 20:50:24 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rails_autolink/rails_autolink-1.0.9.ebuild,v 1.2 2013/03/03 12:48:35 graaff Exp $
EAPI=5
-USE_RUBY="ruby19"
+USE_RUBY="ruby18 ruby19"
RUBY_FAKEGEM_RECIPE_TEST="none"
RUBY_FAKEGEM_RECIPE_DOC="rdoc"
@@ -24,6 +24,19 @@ ruby_add_bdepend "test? ( dev-ruby/minitest )"
ruby_add_rdepend ">=dev-ruby/rails-3.1"
+each_ruby_prepare() {
+ case ${RUBY} in
+ *ruby18)
+ sed -e '/auto_link_with_block_with_html/,/^ end/ s:^:#:' \
+ -e '/auto_link_should_sanitize_input_with_sanitize_options/,/^ end/ s:^:#:' \
+ -e '/auto_link_already_linked/,/^ end/ s:^:#:' \
+ -i test/test_rails_autolink.rb || die
+ ;;
+ *)
+ ;;
+ esac
+}
+
each_ruby_test() {
${RUBY} -Ilib test/test_*.rb || die "tests failed"
}