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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id CC1DD158094 for ; Tue, 12 Jul 2022 10:10:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D443FE0EC7; Tue, 12 Jul 2022 10:10:35 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id AF1BFE0EC7 for ; Tue, 12 Jul 2022 10:10:35 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A1735340CC3 for ; Tue, 12 Jul 2022 10:10:34 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C46AC50D for ; Tue, 12 Jul 2022 10:10:32 +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: <1657620629.0f28de9b7605a1d8541e2763030801f122ae3c38.graaff@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/arel/files/, dev-ruby/arel/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ruby/arel/arel-9.0.0-r1.ebuild dev-ruby/arel/files/arel-9.0.0-fix_BigDecimal.patch X-VCS-Directories: dev-ruby/arel/ dev-ruby/arel/files/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: 0f28de9b7605a1d8541e2763030801f122ae3c38 X-VCS-Branch: master Date: Tue, 12 Jul 2022 10:10:32 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 31a3be6d-cf70-4a11-8ae8-eb215da2fcf2 X-Archives-Hash: 3a5acd0b3d2bd8875ec03f28c007f6aa commit: 0f28de9b7605a1d8541e2763030801f122ae3c38 Author: Hans de Graaff gentoo org> AuthorDate: Tue Jul 12 10:09:15 2022 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Tue Jul 12 10:10:29 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f28de9b dev-ruby/arel: EAPI 6 -> 8, add ruby27 Thanks to Azamat H. Hackimov for finding and testing the patch for this in bug 857759. Signed-off-by: Hans de Graaff gentoo.org> dev-ruby/arel/arel-9.0.0-r1.ebuild | 36 ++++++++++++++++++++++ .../arel/files/arel-9.0.0-fix_BigDecimal.patch | 23 ++++++++++++++ 2 files changed, 59 insertions(+) diff --git a/dev-ruby/arel/arel-9.0.0-r1.ebuild b/dev-ruby/arel/arel-9.0.0-r1.ebuild new file mode 100644 index 000000000000..ee958f041122 --- /dev/null +++ b/dev-ruby/arel/arel-9.0.0-r1.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby26 ruby27" + +RUBY_FAKEGEM_DOCDIR="doc" +RUBY_FAKEGEM_EXTRADOC="History.txt README.md" + +RUBY_FAKEGEM_GEMSPEC="arel.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Arel is a Relational Algebra for Ruby" +HOMEPAGE="https://github.com/rails/arel" +SRC_URI="https://github.com/rails/arel/archive/v${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="MIT" +SLOT="$(ver_cut 1).0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="" + +PATCHES=( + "${FILESDIR}/${P}-fix_BigDecimal.patch" +) + +ruby_add_bdepend " + test? ( + dev-ruby/concurrent-ruby:1 + dev-ruby/test-unit:2 + >=dev-ruby/minitest-5.4:5 + )" + +all_ruby_prepare() { + sed -i -e "/[Bb]undler/d" \ + -e '/specname/,$ s:^:#:' Rakefile || die +} diff --git a/dev-ruby/arel/files/arel-9.0.0-fix_BigDecimal.patch b/dev-ruby/arel/files/arel-9.0.0-fix_BigDecimal.patch new file mode 100644 index 000000000000..fb4e4af77d10 --- /dev/null +++ b/dev-ruby/arel/files/arel-9.0.0-fix_BigDecimal.patch @@ -0,0 +1,23 @@ +From cbbe9ed392bfe146fc0871653aad9b619cef8509 Mon Sep 17 00:00:00 2001 +From: Yasuo Honda +Date: Sun, 7 Jan 2018 23:43:51 +0000 +Subject: [PATCH] BigDecimal.new is deprecated in Ruby 2.5 + +Refer https://github.com/ruby/bigdecimal/pull/86 +--- + test/visitors/test_to_sql.rb | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/test/visitors/test_to_sql.rb b/test/visitors/test_to_sql.rb +index 77756b9e..4416a11b 100644 +--- a/test/visitors/test_to_sql.rb ++++ b/test/visitors/test_to_sql.rb +@@ -233,7 +233,7 @@ def dispatch + end + + it "should visit_BigDecimal" do +- compile Nodes.build_quoted(BigDecimal.new('2.14')) ++ compile Nodes.build_quoted(BigDecimal('2.14')) + end + + it "should visit_Date" do