summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2021-12-07 07:39:09 +0100
committerHans de Graaff <graaff@gentoo.org>2021-12-07 07:39:09 +0100
commitd1422886e1631bafe8582b482c28b3ee0d4a53f9 (patch)
treecca66e44b717c2c53cff8a5ddf3e834b5deb6ed3 /dev-ruby
parentnet-firewall/ipset: x86 stable wrt bug #828257 (diff)
downloadgentoo-d1422886e1631bafe8582b482c28b3ee0d4a53f9.tar.gz
gentoo-d1422886e1631bafe8582b482c28b3ee0d4a53f9.tar.bz2
gentoo-d1422886e1631bafe8582b482c28b3ee0d4a53f9.zip
dev-ruby/arel-helpers: add 2.13.0
Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/arel-helpers/Manifest1
-rw-r--r--dev-ruby/arel-helpers/arel-helpers-2.13.0.ebuild38
2 files changed, 39 insertions, 0 deletions
diff --git a/dev-ruby/arel-helpers/Manifest b/dev-ruby/arel-helpers/Manifest
index 8527aea2ac5c..6930f764388e 100644
--- a/dev-ruby/arel-helpers/Manifest
+++ b/dev-ruby/arel-helpers/Manifest
@@ -1,2 +1,3 @@
DIST arel-helpers-2.12.0.gem 21504 BLAKE2B f2897b70e679df8a58ace7b88204a3345a2f22bedcaf13ef27f4176a5f02a716e9c7a0b09c3d242c8bef96cc6423a513820d20b15999415d99eb3d61b3b93889 SHA512 6da9d69b49d18f70dd911a5f1cf6edb29055423b6179858ae65f8f826f9c98fae7b9d4a7d6f1365c5efe382adbaeb42f30898c2329b721941428b0a6f58b3aef
DIST arel-helpers-2.12.1.gem 16896 BLAKE2B 32809d895c630d8c5d3d1bfadb70d4b37fdeebe41dd3be303abd20295cb06e210ad48db8996673d5ca851e247420bf65ccbe0a7b3da352943e56094b38937911 SHA512 6d10bd57d74ccf1780927aa1fdccb4697a2e9cdbdf93bcc392b9453890043a8a6a4b57bef25d43f1f7d1597ef92d938afa9c67c54140b9e0b36b7b23c2de1837
+DIST arel-helpers-2.13.0.gem 16896 BLAKE2B 3cdf4164b20dcc3511e058666486ea0d5a5eb50a7825d56338715f5bdba2dc5124ba030ea0e27480225be9d715a86016ff0eb85d0e60f07bdd5f3f214c3f5bcc SHA512 31e88e136a85f49e6b8b6d7c244bf98744cdf0546f0916ff1b403904330a1d2acc4a4d97ba5eb59190b9c0592176e4872d0463b4d4662b63a99f9d3bbcc29c15
diff --git a/dev-ruby/arel-helpers/arel-helpers-2.13.0.ebuild b/dev-ruby/arel-helpers/arel-helpers-2.13.0.ebuild
new file mode 100644
index 000000000000..2ce0bc2f3056
--- /dev/null
+++ b/dev-ruby/arel-helpers/arel-helpers-2.13.0.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby26 ruby27"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Tools to help construct database queries"
+HOMEPAGE="https://github.com/camertron/arel-helpers"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE=""
+
+ruby_add_rdepend "|| (
+ dev-ruby/activerecord:6.1
+ dev-ruby/activerecord:6.0
+ dev-ruby/activerecord:5.2
+ )"
+
+ruby_add_bdepend "test? (
+ dev-ruby/rr
+ dev-ruby/activerecord[sqlite]
+ dev-ruby/bundler
+)"
+
+all_ruby_prepare() {
+ 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/' -i arel-helpers.gemspec || die
+}
+
+each_ruby_test() {
+ bundle exec rspec spec || die
+}