diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-07-12 13:33:15 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-07-12 13:33:15 +0100 |
commit | e4b9f141e31db1e069e3bcf5b1fb81af77b0cace (patch) | |
tree | d1879c44ce14e7b9450b0f9c711f653779584754 /dev-ruby/arel | |
parent | bd3c6f11646b7601637fa3245cf8a363e9fa0034 (diff) |
gentoo auto-resync : 12:07:2022 - 13:33:15
Diffstat (limited to 'dev-ruby/arel')
-rw-r--r-- | dev-ruby/arel/Manifest | 2 | ||||
-rw-r--r-- | dev-ruby/arel/arel-9.0.0-r1.ebuild | 36 | ||||
-rw-r--r-- | dev-ruby/arel/files/arel-9.0.0-fix_BigDecimal.patch | 23 |
3 files changed, 61 insertions, 0 deletions
diff --git a/dev-ruby/arel/Manifest b/dev-ruby/arel/Manifest index 48b11a3dfa69..28ace5615858 100644 --- a/dev-ruby/arel/Manifest +++ b/dev-ruby/arel/Manifest @@ -1,3 +1,5 @@ +AUX arel-9.0.0-fix_BigDecimal.patch 769 BLAKE2B 4b0024058725a87aa5718b1699bfa26363b41cbf6cd34b76cc9de5fdcee9858c4bcc8044ee9066a461bb228f9c372805da1e8bee02645342ca389fd55156cb74 SHA512 1322c6b8f3e4f1fc66baf21a6edc7b4f7f91381c38e40d711fc517dba6e1bcd690cb91ff90e00c71740077a20d57dba3373e50049126cb05c04b53d72ef5f221 DIST arel-9.0.0.tar.gz 59065 BLAKE2B c464c8c52d0fa7c5626fdc9254c74db00e4b43f68f38b75972623f28961565cd6764db967158c48e938620636343b15c4be9bb3237f9c7422730b4702450eb6d SHA512 9d2958765058fa8a4f6a8d7d4c9671d92054748eabe5b94796ff5611cdcd6bb24906cc5e813fb21396aaa681e5703d2d4bce8cc9884f2d057042d1b06bf6f0f5 +EBUILD arel-9.0.0-r1.ebuild 904 BLAKE2B 1b8b8ed07854d195a1f236476da66c2347e9075871cccce0f6759b71a60f10d08da806a9ae5e85d7dcd2b20e0451473129528c8e9991b298e01a18be1cf6090a SHA512 73c05332f754059372fdee6752261de2cf1b104bb2b917c34a805dd218f1afd4c850dfcac5e0db5d1ea910c4dc34b3a341be432456b500fe63404081f19731c2 EBUILD arel-9.0.0.ebuild 927 BLAKE2B 4d4b9739cf65d4b45fa7a45c3ba5b73f56287d499bc13509ae8209058836c448a5711a06d5bd0eda6eeb09f80afb8234128c94b60f2be2960adea9fa3302d6cf SHA512 42cf9a61ae91acd8b798ce8006df0f665fd670c8de121d89ef1e613c2d0f0f388bffa107f18c012710fd7f9e187ef8aed557f8338b0ea28980c04a0428427178 MISC metadata.xml 337 BLAKE2B 8eea382759223458a8520950cee0540695703cd9b48251a809729fee1452049e45b7591a4f0fef3d7164333c4af127264af825fed87b8e3334b626b38bd29c28 SHA512 2869b75f091f3651e1f45253693208ef51c832e219b335452fca5d1b129904220a5a1f54ee9ef516e2edf5410c03bce5b9525016834d4c71c9f4e9e5011c72ce 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 <yasuo.honda@gmail.com> +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 |