summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2024-07-08 07:37:10 +0200
committerHans de Graaff <graaff@gentoo.org>2024-07-08 07:37:10 +0200
commitb3b5739439e64f4c339486dc11b395ed788894db (patch)
treebbbafcbe3262196ad752cd772457228f2b624be6 /dev-ruby/combustion
parentdev-python/django-timezone-field: Bump to 7.0 (diff)
downloadgentoo-b3b5739439e64f4c339486dc11b395ed788894db.tar.gz
gentoo-b3b5739439e64f4c339486dc11b395ed788894db.tar.bz2
gentoo-b3b5739439e64f4c339486dc11b395ed788894db.zip
dev-ruby/combustion: add 1.5.0
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/combustion')
-rw-r--r--dev-ruby/combustion/Manifest1
-rw-r--r--dev-ruby/combustion/combustion-1.5.0.ebuild58
2 files changed, 59 insertions, 0 deletions
diff --git a/dev-ruby/combustion/Manifest b/dev-ruby/combustion/Manifest
index beff78fd18fd..32a723f81018 100644
--- a/dev-ruby/combustion/Manifest
+++ b/dev-ruby/combustion/Manifest
@@ -1,2 +1,3 @@
DIST combustion-1.3.7.tar.gz 16922 BLAKE2B 7edb6d68751bdae2c14f564d99bd5e4815aeb0ac5cbf9f86bf265bcf1cc02f39b36c2f439d1a79930f7fee5670451dee87821150b11b765cf3a251272b6bfb46 SHA512 2aedf160b099f16b2225dacbb8198fbdca6a00196bfaf4f869d651309e36976b3a14383c9b38b4361a5174726117200e0fc9da56f2cf08ec9ea99a5f5dbecf7e
DIST combustion-1.4.0.tar.gz 16955 BLAKE2B fa2d55b6e84316b07221c938b053869f44b23363e69b51cefadc7400f7743c5cfe4d4c36cc01b0a463c64b6c5f59736f1bfef50e3438bb3feecc3be22ac717ef SHA512 24cee50f5a05e782d228cf1987de07610a077bd85a3e46c611b6f5c4f2a7202dcb0576ccb337f8c03f7d7a5e446e05524e5686cf5fdde9e510672b722403c13c
+DIST combustion-1.5.0.tar.gz 17080 BLAKE2B 31a3caf861d8915bd701f4b2d08eb2879f2e9ec0fc2a1c997b20de4962967ac96a328f00a9b563d8120256ab433bee6001d9ce60d06777f457237ecf8d9fa7aa SHA512 6259d0f523f4c0eea10c72498ccb7e90c95b2ee2b2d3ba8dbaf104309d2eaf30472b2e4882854fb3ac0a87ec07255d89deeb7da33700576c9aa62adefe4f2056
diff --git a/dev-ruby/combustion/combustion-1.5.0.ebuild b/dev-ruby/combustion/combustion-1.5.0.ebuild
new file mode 100644
index 000000000000..445916d77ac4
--- /dev/null
+++ b/dev-ruby/combustion/combustion-1.5.0.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby31 ruby32 ruby33"
+RUBY_FAKEGEM_BINWRAP=""
+RUBY_FAKEGEM_EXTRADOC="README.md"
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+inherit ruby-fakegem
+
+DESCRIPTION="Elegant Rails Engine Testing"
+HOMEPAGE="https://github.com/pat/combustion"
+SRC_URI="https://github.com/pat/combustion/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm"
+
+ruby_add_rdepend "
+ >=dev-ruby/activesupport-3.0.0:*
+ >=dev-ruby/railties-3.0.0:*
+ >=dev-ruby/thor-0.14.6:*
+"
+# Needed for e.g. cannot load such file -- action_mailer/railtie
+ruby_add_bdepend "
+ test? (
+ >=dev-ruby/activemodel-3.0.0:*
+ >=dev-ruby/activerecord-3.0.0:*
+ dev-ruby/bundler
+ dev-ruby/net-smtp
+ >=dev-ruby/rails-3.0.0:*
+ dev-ruby/rspec:3
+ >=dev-ruby/sqlite3-1.4
+ )
+"
+
+each_ruby_prepare() {
+ sed -i \
+ -e '/rubocop/d' \
+ Gemfile || die
+
+ # appraisal, rubocop: useless for us test deps
+ # mysql2, pg,: optional runtime deps
+ sed -i \
+ -e '/appraisal/d' \
+ -e '/mysql2/d' \
+ -e '/pg/d' \
+ -e '/rubocop/d' \
+ ${PN}.gemspec || die
+
+ sed -i -e '/rubocop/d' Rakefile || die
+}
+
+each_ruby_test() {
+ local -x DB_ADAPTER=sqlite3
+ ${RUBY} -S bundle exec rake spec || die
+}