From: Christopher Baines <mail@cbaines.net>
To: Pierre Neidhardt <mail@ambrevar.xyz>
Cc: 34650@debbugs.gnu.org
Subject: [bug#34650] [PATCH 7/7] gnu: Add mailcatcher.
Date: Mon, 04 Mar 2019 21:50:05 +0000 [thread overview]
Message-ID: <87fts2fgxe.fsf@cbaines.net> (raw)
In-Reply-To: <20190228174435.14499-7-mail@ambrevar.xyz>
[-- Attachment #1: Type: text/plain, Size: 3087 bytes --]
Pierre Neidhardt <mail@ambrevar.xyz> writes:
> * gnu/packages/ruby.scm (mailcatcher): New variable.
> ---
> gnu/packages/ruby.scm | 49 +++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 49 insertions(+)
>
> diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
> index 8cb170e17..854b4669b 100644
> --- a/gnu/packages/ruby.scm
> +++ b/gnu/packages/ruby.scm
> @@ -7814,3 +7814,52 @@ minimal effort.")
> (description "Simple, upgradable WebSockets for Ruby Thin.")
> (home-page "https://github.com/sj26/skinny")
> (license license:expat)))
> +
> +(define-public mailcatcher
> + (package
> + (name "mailcatcher")
> + (version "0.6.5")
> + (source
> + (origin
> + (method url-fetch)
> + (uri (rubygems-uri "mailcatcher" version))
> + (sha256
> + (base32
> + "0h6gk8n18i5f651f244al1hscjzl27fpma4vqw0qhszqqpd5p3bx"))))
> + (build-system ruby-build-system)
> + (arguments
> + ;; TODO: Grab from GitHub to get tests?
> + `(#:tests? #f
As with ruby-skinny, if there are no tests, I'd put:
'(#:tests? #f ; No included tests
> + #:phases
> + (modify-phases %standard-phases
> + (add-before 'build 'patch-gemspec
> + (lambda _
> + (substitute* ".gemspec"
> + (("<eventmachine>.freeze, \\[\\\"= 1.0.9.1") "<eventmachine>, [\">= 1.0.9.1")
> + (("<rack>.freeze, \\[\\\"~> 1.5") "<rack>, [\">= 1.5")
> + (("<thin>.freeze, \\[\\\"~> 1.5.0") "<thin>, [\">= 1.5.0")
> + (("<sinatra>.freeze, \\[\\\"~> 1.2") "<sinatra>, [\">= 1.2")
> + )))
> + (add-before 'build 'loosen-dependency-contraint
> + (lambda _
> + (substitute* "lib/mail_catcher.rb"
> + (("\"eventmachine\", \"1.0.9.1\"") "\"eventmachine\", \">= 1.0.9.1\"")
> + (("\"rack\", \"~> 1.5\"") "\"rack\", \">= 1.5\"")
> + (("\"thin\", \"~> 1.5.0\"") "\"thin\", \">= 1.5.0\"")
> + (("\"sinatra\", \"~> 1.2\"") "\"sinatra\", \">= 1.2\"")))))))
I'd add an explicit #t at the end of these phases.
Also, using wildcards in place of the versions in the mailcatcher gem
would probably make it easier to update this package if new versions are
released.
> + (inputs
> + `(("ruby-eventmachine" ,ruby-eventmachine)
> + ("ruby-mail" ,ruby-mail)
> + ("ruby-rack" ,ruby-rack)
> + ("ruby-sinatra" ,ruby-sinatra)
> + ("ruby-skinny" ,ruby-skinny)
> + ("ruby-sqlite3" ,ruby-sqlite3)
> + ("ruby-thin" ,ruby-thin)))
> + (synopsis "Run an SMTP server which catches any message sent to it to display in a browser")
> + (description
> + "MailCatcher runs a super simple SMTP server which catches any message
> +sent to it to display in a web interface. Run mailcatcher, set your favourite
> +app to deliver to smtp://127.0.0.1:1025 instead of your default SMTP server,
> +then check out http://127.0.0.1:1080 to see the mail.")
> + (home-page "https://mailcatcher.me")
> + (license license:expat)))
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 962 bytes --]
next prev parent reply other threads:[~2019-03-04 21:51 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-25 15:17 [bug#34650] [PATCH] ruby-mailcatcher: Draft Pierre Neidhardt
[not found] ` <handler.34650.B.155110784318701.ack@debbugs.gnu.org>
2019-02-25 15:21 ` [bug#34650] Acknowledgement ([PATCH] ruby-mailcatcher: Draft) Pierre Neidhardt
2019-02-25 19:10 ` Christopher Baines
2019-02-26 10:59 ` Pierre Neidhardt
2019-02-28 17:44 ` [bug#34650] [PATCH 1/7] gnu: ruby-rack-protection: Update to 2.0.5 Pierre Neidhardt
2019-02-28 17:44 ` [bug#34650] [PATCH 2/7] gnu: Add ruby-tilt Pierre Neidhardt
2019-02-28 17:44 ` [bug#34650] [PATCH 3/7] gnu: Add ruby-mustermann Pierre Neidhardt
2019-03-04 21:20 ` Christopher Baines
2019-02-28 17:44 ` [bug#34650] [PATCH 4/7] gnu: Add ruby-sinatra Pierre Neidhardt
2019-02-28 17:44 ` [bug#34650] [PATCH 5/7] gnu: Add ruby-thin Pierre Neidhardt
2019-03-04 21:33 ` Christopher Baines
2019-02-28 17:44 ` [bug#34650] [PATCH 6/7] gnu: Add ruby-skinny Pierre Neidhardt
2019-03-04 21:43 ` Christopher Baines
2019-02-28 17:44 ` [bug#34650] [PATCH 7/7] gnu: Add mailcatcher Pierre Neidhardt
2019-03-04 21:50 ` Christopher Baines [this message]
2019-03-05 9:09 ` Pierre Neidhardt
2019-03-05 10:27 ` Pierre Neidhardt
2019-03-05 18:51 ` Christopher Baines
2019-02-28 17:47 ` [bug#34650] Acknowledgement ([PATCH] ruby-mailcatcher: Draft) Pierre Neidhardt
2019-03-04 21:06 ` Christopher Baines
2019-03-05 9:18 ` Pierre Neidhardt
2019-03-05 18:51 ` Christopher Baines
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fts2fgxe.fsf@cbaines.net \
--to=mail@cbaines.net \
--cc=34650@debbugs.gnu.org \
--cc=mail@ambrevar.xyz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.