From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 60B661381F3 for ; Mon, 7 Oct 2013 17:13:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E1444E0AB3; Mon, 7 Oct 2013 17:13:15 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6FF6FE0AB3 for ; Mon, 7 Oct 2013 17:13:15 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 73F9733ED66 for ; Mon, 7 Oct 2013 17:13:14 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 27CC8E5308 for ; Mon, 7 Oct 2013 17:13:13 +0000 (UTC) From: "Peter Wilmott" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Peter Wilmott" Message-ID: <1381165950.7587c41be2a256e3a5170c7814e1af53c24b0c55.p8952@gentoo> Subject: [gentoo-commits] proj/ruby-overlay:master commit in: dev-ruby/chronic/ X-VCS-Repository: proj/ruby-overlay X-VCS-Files: dev-ruby/chronic/ChangeLog dev-ruby/chronic/chronic-0.10.2.ebuild X-VCS-Directories: dev-ruby/chronic/ X-VCS-Committer: p8952 X-VCS-Committer-Name: Peter Wilmott X-VCS-Revision: 7587c41be2a256e3a5170c7814e1af53c24b0c55 X-VCS-Branch: master Date: Mon, 7 Oct 2013 17:13:13 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: c747fdaf-5b3a-46cd-b583-6ca8059e68f7 X-Archives-Hash: 0ec4cabd033ce6c6db9e234dc23a4b4f commit: 7587c41be2a256e3a5170c7814e1af53c24b0c55 Author: Peter Wilmott

p8952 info> AuthorDate: Mon Oct 7 17:12:30 2013 +0000 Commit: Peter Wilmott

p8952 info> CommitDate: Mon Oct 7 17:12:30 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/ruby-overlay.git;a=commit;h=7587c41b skip tests which error using ruby18 Package-Manager: portage-2.2.1 --- dev-ruby/chronic/ChangeLog | 3 +++ dev-ruby/chronic/chronic-0.10.2.ebuild | 13 +++++++++++++ 2 files changed, 16 insertions(+) diff --git a/dev-ruby/chronic/ChangeLog b/dev-ruby/chronic/ChangeLog index d08ec03..9e25ad9 100644 --- a/dev-ruby/chronic/ChangeLog +++ b/dev-ruby/chronic/ChangeLog @@ -2,6 +2,9 @@ # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/chronic/ChangeLog,v 1.13 2013/09/09 02:53:05 mrueg Exp $ + 07 Oct 2013; Peter Wilmott chronic-0.10.2.ebuild: + skip tests which error using ruby18 + *chronic-0.10.2 (07 Oct 2013) 07 Oct 2013; +chronic-0.10.2.ebuild: diff --git a/dev-ruby/chronic/chronic-0.10.2.ebuild b/dev-ruby/chronic/chronic-0.10.2.ebuild index 5fc2ad4..26c6f11 100644 --- a/dev-ruby/chronic/chronic-0.10.2.ebuild +++ b/dev-ruby/chronic/chronic-0.10.2.ebuild @@ -25,3 +25,16 @@ ruby_add_bdepend "test? ( >=dev-ruby/minitest-5 )" all_ruby_prepare() { sed -i -e '/git ls-files/d' chronic.gemspec || die } + +each_ruby_prepare() { + case ${RUBY} in + *ruby18) + # Two tests error when using ruby18, however the library still + # functions correctly: https://github.com/mojombo/chronic/issues/219 + sed -i -e '/def test_time/,+9d' test/test_chronic.rb || die + sed -i -e '/def test_handle_generic/,+29d' test/test_parsing.rb || die + ;; + *) + ;; + esac +}