summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2022-03-16 07:32:19 +0100
committerHans de Graaff <graaff@gentoo.org>2022-03-16 07:41:45 +0100
commit8a2483316f43cf9bfb60ede83ffffb1893065dcd (patch)
tree7b8d053a5a277fe5ae0063bc764a28984ec3ba2b /dev-ruby/letter_opener
parentdev-ruby/mini_mime: add ruby31 (diff)
downloadgentoo-8a2483316f43cf9bfb60ede83ffffb1893065dcd.tar.gz
gentoo-8a2483316f43cf9bfb60ede83ffffb1893065dcd.tar.bz2
gentoo-8a2483316f43cf9bfb60ede83ffffb1893065dcd.zip
dev-ruby/letter_opener: add 1.8.0
Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/letter_opener')
-rw-r--r--dev-ruby/letter_opener/Manifest1
-rw-r--r--dev-ruby/letter_opener/letter_opener-1.8.0.ebuild33
2 files changed, 34 insertions, 0 deletions
diff --git a/dev-ruby/letter_opener/Manifest b/dev-ruby/letter_opener/Manifest
index bd74e9c62dae..49beb6b78bf6 100644
--- a/dev-ruby/letter_opener/Manifest
+++ b/dev-ruby/letter_opener/Manifest
@@ -1 +1,2 @@
DIST letter_opener-1.7.0.tar.gz 10907 BLAKE2B 0ac93d28a1eb0198d5d5c34a40dd03ac6406093c40d978ef35640893ce6feab672799cd628d4a43520c14277b50201d181aebb18819c8e0e5a561d108b08d3dc SHA512 99a62e4720e1b18085546b5ce09c136da951921e0a6436a37b747d3d8ce6f83fd6e35be23f1da0d49e7859967f06a479530845663665ce4abbac3938d3a4eae0
+DIST letter_opener-1.8.0.tar.gz 12661 BLAKE2B 49e2998b0d94fd89ddb72ad75e497bef9fe5ce5876897ce05925e6b3b37732c61350d2228f9c33e6fce555af301142dddb35f49f1f215b240aba3495713fc6f4 SHA512 d1985d5b67c581c976db3fb9199e5207d2a12609f49011d91a20fd71bd8b6f8e5b35b0cdbe7592ad7df8effa7de14f70d378e1f9323f5b6113b397c1992b75c5
diff --git a/dev-ruby/letter_opener/letter_opener-1.8.0.ebuild b/dev-ruby/letter_opener/letter_opener-1.8.0.ebuild
new file mode 100644
index 000000000000..b5e49dfba9c7
--- /dev/null
+++ b/dev-ruby/letter_opener/letter_opener-1.8.0.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby26 ruby27 ruby30"
+
+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=""
+
+ruby_add_bdepend "test? ( >=dev-ruby/mail-2.6:* )"
+ruby_add_rdepend ">=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
+}