diff options
Diffstat (limited to 'dev-ruby/activerecord-session_store/activerecord-session_store-2.1.0.ebuild')
-rw-r--r-- | dev-ruby/activerecord-session_store/activerecord-session_store-2.1.0.ebuild | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/dev-ruby/activerecord-session_store/activerecord-session_store-2.1.0.ebuild b/dev-ruby/activerecord-session_store/activerecord-session_store-2.1.0.ebuild new file mode 100644 index 00000000..126946e2 --- /dev/null +++ b/dev-ruby/activerecord-session_store/activerecord-session_store-2.1.0.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby31 ruby32" + +RUBY_FAKEGEM_EXTRADOC="README.md" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="An Action Dispatch session store backed by an Active Record class" +HOMEPAGE="https://github.com/rails/activerecord-session_store" +SRC_URI="https://github.com/rails/activerecord-session_store/archive/v${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="MIT" + +KEYWORDS="~amd64" +SLOT="$(ver_cut 1)" +IUSE="" + +ruby_add_bdepend "test? ( dev-ruby/bundler dev-ruby/sqlite3 )" + +ruby_add_rdepend " + >=dev-ruby/actionpack-6.1:* + >=dev-ruby/activerecord-6.1:* + >=dev-ruby/cgi-0.3.6 + >=dev-ruby/multi_json-1.11.2:0 + || ( dev-ruby/rack:3.0 dev-ruby/rack:2.2 ) + >=dev-ruby/railties-6.1:* +" + +all_ruby_prepare() { + sed -i -e '/appraisal/ s:^:#:' ${RUBY_FAKEGEM_GEMSPEC} || die +} + +each_ruby_test() { + ${RUBY} -S bundle exec rake test || die +} |