summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2024-11-23 08:39:35 +0100
committerHans de Graaff <graaff@gentoo.org>2024-11-23 09:11:27 +0100
commit80ef0e7a788e56754b6052a9f745abdd8001f7e8 (patch)
tree927a8001fd49be7f2bce3d765ed6d414741afe0e /dev-ruby
parentnet-libs/libupnp: Stabilize 1.14.20 x86, #944515 (diff)
downloadgentoo-80ef0e7a788e56754b6052a9f745abdd8001f7e8.tar.gz
gentoo-80ef0e7a788e56754b6052a9f745abdd8001f7e8.tar.bz2
gentoo-80ef0e7a788e56754b6052a9f745abdd8001f7e8.zip
dev-ruby/acts_as_list: add 1.2.4
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/acts_as_list/Manifest1
-rw-r--r--dev-ruby/acts_as_list/acts_as_list-1.2.4.ebuild49
2 files changed, 50 insertions, 0 deletions
diff --git a/dev-ruby/acts_as_list/Manifest b/dev-ruby/acts_as_list/Manifest
index 4ba67505c0cf..3938938e71af 100644
--- a/dev-ruby/acts_as_list/Manifest
+++ b/dev-ruby/acts_as_list/Manifest
@@ -1,2 +1,3 @@
DIST acts_as_list-1.2.2.tar.gz 38316 BLAKE2B 8fca217bab42ec45f8860323347e0d5282c99b494588f84f623cbb395bbf1cbeaa8cd8c7fd5344a7c1900a65a3a5f263ffd11fc340e2a0533dc8cbddc297d2a8 SHA512 1e985593b849cb4da5749bce72d09354454b06e40eeefbba161b0e8ceeccf08702761793692213bce013848151de373f0407d7794e7d1745e60646070e4946d7
DIST acts_as_list-1.2.3.tar.gz 38545 BLAKE2B d154f52d45ba5eb2d11351a28e9173eb2d32bac54e88de304240395834aa058fd283e27947fa220b2f92bd02c2bbf75166acf8d37735532da67bb09eab0cf98e SHA512 5f099d7018d608b10c35f790497bf2a4f4c9f86765cfa7b9e340e54db7eb15b91b67afcc9b3d633e6e3373e2265c5860750eaebc082b7e1734e74ef415cdf31f
+DIST acts_as_list-1.2.4.tar.gz 38582 BLAKE2B 85b2a246c878df8c7f14b5976a28e00fda3a672f5dd423baf92bafedcb839a731c683d0f9e376a9f0b4b5a2493883ad268fbbd6023da7bc062d483d08bfddf2a SHA512 66be0ff06818adbd688b6e3ce2b30e79c7fc7bfad5abfbe6343fb4bbade0c0abe7c480f1a905aa3f17696fd873f072dc736677035e05623ce9d2ff337080cf42
diff --git a/dev-ruby/acts_as_list/acts_as_list-1.2.4.ebuild b/dev-ruby/acts_as_list/acts_as_list-1.2.4.ebuild
new file mode 100644
index 000000000000..4d018a923b1f
--- /dev/null
+++ b/dev-ruby/acts_as_list/acts_as_list-1.2.4.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby31 ruby32 ruby33"
+
+inherit ruby-fakegem
+
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
+RUBY_FAKEGEM_EXTRAINSTALL="init.rb"
+
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+
+DESCRIPTION="Capabilities for sorting and reordering a number of objects in a list"
+HOMEPAGE="https://github.com/brendon/acts_as_list"
+SRC_URI="https://github.com/brendon/acts_as_list/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="3"
+KEYWORDS="~amd64"
+IUSE="test"
+
+ruby_add_rdepend ">=dev-ruby/activerecord-6.1:* >=dev-ruby/activesupport-6.1:*"
+
+ruby_add_bdepend "
+ test? (
+ >=dev-ruby/minitest-hooks-1.5.1:1
+ >=dev-ruby/mocha-2.1.0:2
+ dev-ruby/test-unit:2
+ >=dev-ruby/timecop-0.9.8
+ <dev-ruby/activerecord-8[sqlite]
+ )"
+
+all_ruby_prepare() {
+ rm Gemfile || die
+ sed -i -e '/[Bb]undler/d' Rakefile || die
+ sed -e '/bundler/,/^end/ s:^:#:' \
+ -e '2igem "activerecord", "<8"' \
+ -i test/helper.rb || die
+ sed -e 's/git ls-files -z/find lib CHANGELOG.md README.md init.rb -print0/' \
+ -e '/executables/ s:^:#:' \
+ -e 's/__dir__/"."/' \
+ -i ${RUBY_FAKEGEM_GEMSPEC} || die
+ sed -i -e '/github_changelog/,$ s:^:#:' Rakefile || die
+}
+
+each_ruby_test() {
+ DB=sqlite each_fakegem_test
+}