From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C9420138334 for ; Fri, 1 Jun 2018 17:11:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 67935E081B; Fri, 1 Jun 2018 17:11:21 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3531FE081B for ; Fri, 1 Jun 2018 17:11:20 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 81648335C60 for ; Fri, 1 Jun 2018 17:11:19 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 51D022AD for ; Fri, 1 Jun 2018 17:11:17 +0000 (UTC) From: "Hans de Graaff" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Hans de Graaff" Message-ID: <1527873070.4620539045ef40ae5c70e5196784517f01937700.graaff@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/crack/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ruby/crack/crack-0.4.3-r2.ebuild X-VCS-Directories: dev-ruby/crack/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: 4620539045ef40ae5c70e5196784517f01937700 X-VCS-Branch: master Date: Fri, 1 Jun 2018 17:11:17 +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: 8435f4dc-673f-4321-b105-05f8138a99ec X-Archives-Hash: dbbcc15b09638fe6b54231e4db216ead commit: 4620539045ef40ae5c70e5196784517f01937700 Author: Hans de Graaff gentoo org> AuthorDate: Fri Jun 1 07:48:15 2018 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Fri Jun 1 17:11:10 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46205390 dev-ruby/crack: add ruby25 revision with new enough safe_yaml Package-Manager: Portage-2.3.36, Repoman-2.3.9 dev-ruby/crack/crack-0.4.3-r2.ebuild | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/dev-ruby/crack/crack-0.4.3-r2.ebuild b/dev-ruby/crack/crack-0.4.3-r2.ebuild new file mode 100644 index 00000000000..e74082f18a4 --- /dev/null +++ b/dev-ruby/crack/crack-0.4.3-r2.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +USE_RUBY="ruby23 ruby24 ruby25" + +RUBY_FAKEGEM_RECIPE_DOC="rdoc" +RUBY_FAKEGEM_EXTRADOC="README.md History" + +inherit ruby-fakegem + +DESCRIPTION="Really simple JSON and XML parsing, ripped from Merb and Rails" +HOMEPAGE="https://github.com/jnunemaker/crack" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="" + +ruby_add_bdepend "test? ( dev-ruby/minitest )" +ruby_add_rdepend ">=dev-ruby/safe_yaml-1.0.4-r4" + +each_ruby_prepare() { + # Remove tests which fail when run by portage but pass when run by hand + sed -i -e '/{"regex": \/foo.*\/}/d' test/json_test.rb || die + sed -i -e '/{"regex": \/foo.*\/i}/d' test/json_test.rb || die + sed -i -e '/{"regex": \/foo.*\/mix}/d' test/json_test.rb || die +} + +each_ruby_test() { + ${RUBY} -Itest -Ilib -e 'Dir["test/*_test.rb"].each { |f| load f }' || die +}