diff options
author | Azamat H. Hackimov <azamat.hackimov@gmail.com> | 2021-05-04 23:12:14 +0300 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-09-28 01:30:53 +0100 |
commit | 85da06614ec58425f14de9cc16d852f7f4335903 (patch) | |
tree | 1ecaf2d1538709f28c1e1b0683934b7e7bb9ce05 /dev-ruby/roadie-rails | |
parent | x11-misc/i3lock: keyword 2.13 for ~riscv (diff) | |
download | gentoo-85da06614ec58425f14de9cc16d852f7f4335903.tar.gz gentoo-85da06614ec58425f14de9cc16d852f7f4335903.tar.bz2 gentoo-85da06614ec58425f14de9cc16d852f7f4335903.zip |
dev-ruby/roadie-rails: update to 2.2.0
Closes: https://bugs.gentoo.org/787533
Package-Manager: Portage-3.0.18, Repoman-3.0.2
Signed-off-by: Azamat H. Hackimov <azamat.hackimov@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/20683
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-ruby/roadie-rails')
-rw-r--r-- | dev-ruby/roadie-rails/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/roadie-rails/roadie-rails-2.2.0.ebuild | 45 |
2 files changed, 46 insertions, 0 deletions
diff --git a/dev-ruby/roadie-rails/Manifest b/dev-ruby/roadie-rails/Manifest index bf054ffa2fcc..3aaa01f90ea7 100644 --- a/dev-ruby/roadie-rails/Manifest +++ b/dev-ruby/roadie-rails/Manifest @@ -1 +1,2 @@ DIST roadie-rails-2.1.1.tar.gz 56419 BLAKE2B 6a54797c77267a61ab63d72743fbd3f98d4137d917ddebf0335c30d03e5efb9e2907679237eea168384b54ea93bbe9be3aad4dcbf6364d411ebaa6e2ba7638fb SHA512 ceffe9746cded4f5dca83c614dc6ffb65203455775df9f56a402837018c0a322c7edad37ca05c72bc70fa8d19cfb4f9eba5b2fde1cbff7f8b28312e95140f353 +DIST roadie-rails-2.2.0.tar.gz 56005 BLAKE2B b3251d095074dcbaf6879f8344a9f6d1426abd2824a667f8ddb1d6be186c1c89bc3425972abc62495038b263780339840b792a961809e80d181c043e8f558012 SHA512 4042d549f19adb48144306d7f646d7462b72c3775b41e6ad68ffc75aad8704c28f828bd2928fc9cb3a97d0a2ebee86446b17d2ba31d3b1b163e668cb4d85bb0f diff --git a/dev-ruby/roadie-rails/roadie-rails-2.2.0.ebuild b/dev-ruby/roadie-rails/roadie-rails-2.2.0.ebuild new file mode 100644 index 000000000000..d939b3c7c113 --- /dev/null +++ b/dev-ruby/roadie-rails/roadie-rails-2.2.0.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +USE_RUBY="ruby26" +RUBY_FAKEGEM_EXTRADOC="README.md" +RUBY_FAKEGEM_RECIPE_TEST="rspec3" +RUBY_FAKEGEM_RECIPE_DOC="yard" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Hooks Roadie into your Rails application to help with email generation" +HOMEPAGE="https://github.com/Mange/roadie-rails" +SRC_URI="https://github.com/Mange/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="$(ver_cut 1)" +KEYWORDS="~amd64" +IUSE="" + +#RESTRICT="test" + +ruby_add_rdepend ">=dev-ruby/roadie-3.1 + || ( dev-ruby/railties:6.1 dev-ruby/railties:6.0 dev-ruby/railties:5.2 )" +ruby_add_bdepend " + test? ( + dev-ruby/bundler + || ( dev-ruby/rails:6.1 dev-ruby/rails:6.0 dev-ruby/rails:5.2 ) + dev-ruby/rspec-rails + dev-ruby/rspec-collection_matchers )" + +all_ruby_prepare() { + sed -i -e '/codecov/ s:^:#:' Gemfile || die + sed -i -e 's/git ls-files/find . -print/' ${RUBY_FAKEGEM_GEMSPEC} || die + + # Avoid already removed rails version + sed -i -e '/rails_51/ s:^:#:' spec/integration_spec.rb || die +} + +each_ruby_test() { + ${RUBY} -S bundle exec rspec-3 spec || die +} |