diff options
author | Hans de Graaff <graaff@gentoo.org> | 2024-04-01 14:47:19 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2024-04-01 16:25:27 +0200 |
commit | 0b4acfd039f2e5d24b5ae3750301c2c662c372d8 (patch) | |
tree | e4925e5adc9471bf4c1b670d8af602e660d46b7f /dev-ruby/letter_opener | |
parent | dev-ruby/net-smtp: add 0.5.0 (diff) | |
download | gentoo-0b4acfd039f2e5d24b5ae3750301c2c662c372d8.tar.gz gentoo-0b4acfd039f2e5d24b5ae3750301c2c662c372d8.tar.bz2 gentoo-0b4acfd039f2e5d24b5ae3750301c2c662c372d8.zip |
dev-ruby/letter_opener: add 1.10.0
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/letter_opener')
-rw-r--r-- | dev-ruby/letter_opener/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/letter_opener/letter_opener-1.10.0.ebuild | 33 |
2 files changed, 34 insertions, 0 deletions
diff --git a/dev-ruby/letter_opener/Manifest b/dev-ruby/letter_opener/Manifest index d03815100bad..5e946ade9bc7 100644 --- a/dev-ruby/letter_opener/Manifest +++ b/dev-ruby/letter_opener/Manifest @@ -1,2 +1,3 @@ +DIST letter_opener-1.10.0.tar.gz 12789 BLAKE2B e9c5294f4bce2998b431d5547bf3e52ca219ad8da189f3d36c447465e6730ed5647dacde50e825f67dcb2376256698ec2d571f6470f35d9acec6612859d72ddf SHA512 5675150164c144273d73524c1c4acf62fecaf1495bbdfe5825497080569a2a51d8846c99d7270017c9f540da23fdc6e401626f30c368c8e57c40ee384363db15 DIST letter_opener-1.8.1.tar.gz 12680 BLAKE2B 3204a5f6a33f722f255f126597655f6209d87764ff9b92ac770a35342906b9d192a62aade992709aaa55baa03046a342f48c4671d3a47a5fd5350bc2e7e7d0e1 SHA512 ce360bcb9f8c07e1319f74187ff85ef799d0a3387f0081ffe3cff2e8b52a9445c22b39fed4b729aee23fb67121c5e47b280ef502f95940aacbb6be31533185be DIST letter_opener-1.9.0.tar.gz 12776 BLAKE2B f9ad3358d65e4943f4bfa7d19ab870277d17cbe0ed99f203a262b5070b27386ce709d02e99b9f65ec61715791a599e93c020cfe06033081a2a16e742059b21e2 SHA512 55bed88be20280757347e38cfacc031b178f65a490f26caab5a981b186df8cff1a68dc154bddf091817e415a4760ed2d6487c3453d0df93c406e13924a5715eb diff --git a/dev-ruby/letter_opener/letter_opener-1.10.0.ebuild b/dev-ruby/letter_opener/letter_opener-1.10.0.ebuild new file mode 100644 index 000000000000..7e076a2e7904 --- /dev/null +++ b/dev-ruby/letter_opener/letter_opener-1.10.0.ebuild @@ -0,0 +1,33 @@ +# 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_EXTRADOC="CHANGELOG.md README.md" +RUBY_FAKEGEM_TASK_DOC="" +RUBY_FAKEGEM_RECIPE_TEST="rspec3" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Preview mail in the browser instead of sending" +HOMEPAGE="https://github.com/ryanb/letter_opener" +SRC_URI="https://github.com/ryanb/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" + +ruby_add_bdepend "test? ( >=dev-ruby/mail-2.6:* )" +ruby_add_rdepend "|| ( dev-ruby/launchy:3 >=dev-ruby/launchy-2.2:0 )" + +all_ruby_prepare() { + sed -i -e "/[Bb]undler/d" Rakefile spec/spec_helper.rb || die + sed -i -e '4irequire "letter_opener"' spec/spec_helper.rb || die + + # Avoid tests that require some kind of browser + sed -i -e '/opens email/askip "requires installed browser"' spec/letter_opener/delivery_method_spec.rb || die +} |