diff options
author | Sam James <sam@gentoo.org> | 2023-03-20 09:21:46 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-03-26 04:02:43 +0100 |
commit | 8c2d6373e220b4a3c2a1c9e95b5f6b40363e6fd9 (patch) | |
tree | 6122c0ef1786d6e6d17a79337979bc6dc19f82d5 /dev-ruby | |
parent | dev-python/trimesh: Bump to 3.21.2 (diff) | |
download | gentoo-8c2d6373e220b4a3c2a1c9e95b5f6b40363e6fd9.tar.gz gentoo-8c2d6373e220b4a3c2a1c9e95b5f6b40363e6fd9.tar.bz2 gentoo-8c2d6373e220b4a3c2a1c9e95b5f6b40363e6fd9.zip |
dev-ruby/arel-helpers: add 2.14.0
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/arel-helpers/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/arel-helpers/arel-helpers-2.14.0.ebuild | 56 |
2 files changed, 57 insertions, 0 deletions
diff --git a/dev-ruby/arel-helpers/Manifest b/dev-ruby/arel-helpers/Manifest index 8dff23e42253..4c3b7b0275b9 100644 --- a/dev-ruby/arel-helpers/Manifest +++ b/dev-ruby/arel-helpers/Manifest @@ -1 +1,2 @@ DIST arel-helpers-2.13.0.gem 16896 BLAKE2B 3cdf4164b20dcc3511e058666486ea0d5a5eb50a7825d56338715f5bdba2dc5124ba030ea0e27480225be9d715a86016ff0eb85d0e60f07bdd5f3f214c3f5bcc SHA512 31e88e136a85f49e6b8b6d7c244bf98744cdf0546f0916ff1b403904330a1d2acc4a4d97ba5eb59190b9c0592176e4872d0463b4d4662b63a99f9d3bbcc29c15 +DIST arel-helpers-2.14.0.tar.gz 11711 BLAKE2B 75182a17ae741b2fe62189bccf008ca9958a69d69b5c2aced227e1b77f7278565f2c6261f56e567e4534c1e0229ce00e630bb1dc77ce8e49d03267784f8f8dc2 SHA512 47edec1aaa5be14de4ee695b13096dcf3f0c30804b20dfdc84421e1a779d3faa6241c022003f4752da911d1ea71a49de6e1e3339e6a3e452ca7fa8116ff751ca diff --git a/dev-ruby/arel-helpers/arel-helpers-2.14.0.ebuild b/dev-ruby/arel-helpers/arel-helpers-2.14.0.ebuild new file mode 100644 index 000000000000..42b6dcf3cc1f --- /dev/null +++ b/dev-ruby/arel-helpers/arel-helpers-2.14.0.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby27 ruby30" +RUBY_FAKEGEM_RECIPE_TEST="rspec3" +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" +RUBY_S=${PN}-* +RUBY_FAKEGEM_VERSION="$(ver_cut 1-3)" +inherit ruby-fakegem + +DESCRIPTION="Tools to help construct database queries" +HOMEPAGE="https://github.com/camertron/arel-helpers" +# No test data in gems +SRC_URI="https://github.com/camertron/arel-helpers/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +ruby_add_rdepend " + || ( + dev-ruby/activerecord:7.0 + dev-ruby/activerecord:6.1 + dev-ruby/activerecord:6.0 + ) +" + +ruby_add_bdepend " + test? ( + dev-ruby/rr + dev-ruby/activerecord[sqlite] + dev-ruby/bundler + dev-ruby/combustion + >=dev-ruby/database_cleaner-1.8 + =dev-ruby/sqlite3-1.4* + ) +" + +all_ruby_prepare() { + # pry is for debugging, not useful here + sed -i -e '/pry-/ s:^:#:' spec/spec_helper.rb || die + + sed \ + -e '/rake/ s/~>/>=/' \ + -e '/appraisal/ s:^:#:' \ + -e '/database_cleaner/ s/1.8/1.7/' \ + -e '/database_cleaner/ s/~>/>=/' \ + -e '/sqlite3/ s/~>/>=/' \ + -i arel-helpers.gemspec || die +} + +each_ruby_test() { + ${RUBY} -S bundle exec rake spec || die +} |