From patchwork Mon Feb 25 15:17:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierre Neidhardt X-Patchwork-Id: 1241 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 345BC16CAE; Mon, 25 Feb 2019 15:18:25 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NORMAL_HTTP_TO_IP, URIBL_BLOCKED,WEIRD_PORT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 912B216C5F for ; Mon, 25 Feb 2019 15:18:24 +0000 (GMT) Received: from localhost ([127.0.0.1]:38926 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gyI1Q-0006pC-13 for patchwork@mira.cbaines.net; Mon, 25 Feb 2019 10:18:24 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36155) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gyI1I-0006p2-6t for guix-patches@gnu.org; Mon, 25 Feb 2019 10:18:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gyI1A-0007Bc-FE for guix-patches@gnu.org; Mon, 25 Feb 2019 10:18:15 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:38105) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gyI14-00077O-MU for guix-patches@gnu.org; Mon, 25 Feb 2019 10:18:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gyI14-0004sR-DJ for guix-patches@gnu.org; Mon, 25 Feb 2019 10:18:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#34650] [PATCH] ruby-mailcatcher: Draft Resent-From: Pierre Neidhardt Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 25 Feb 2019 15:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 34650 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 34650@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.155110784318701 (code B ref -1); Mon, 25 Feb 2019 15:18:02 +0000 Received: (at submit) by debbugs.gnu.org; 25 Feb 2019 15:17:23 +0000 Received: from localhost ([127.0.0.1]:51649 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gyI0R-0004rZ-DB for submit@debbugs.gnu.org; Mon, 25 Feb 2019 10:17:23 -0500 Received: from eggs.gnu.org ([209.51.188.92]:49869) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gyI0P-0004rL-9p for submit@debbugs.gnu.org; Mon, 25 Feb 2019 10:17:21 -0500 Received: from lists.gnu.org ([209.51.188.17]:35947) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gyI0J-0006jh-3A for submit@debbugs.gnu.org; Mon, 25 Feb 2019 10:17:15 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36013) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gyI0H-0006mM-Oa for guix-patches@gnu.org; Mon, 25 Feb 2019 10:17:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gyI0F-0006iU-T9 for guix-patches@gnu.org; Mon, 25 Feb 2019 10:17:13 -0500 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:42873) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gyI0F-0006hb-Eu for guix-patches@gnu.org; Mon, 25 Feb 2019 10:17:11 -0500 X-Originating-IP: 90.92.41.33 Received: from localhost.localdomain (lfbn-1-12225-33.w90-92.abo.wanadoo.fr [90.92.41.33]) (Authenticated sender: mail@ambrevar.xyz) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id EFA7320013 for ; Mon, 25 Feb 2019 15:17:05 +0000 (UTC) From: Pierre Neidhardt Date: Mon, 25 Feb 2019 16:17:05 +0100 Message-Id: <20190225151705.17655-1-mail@ambrevar.xyz> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches --- gnu/packages/ruby.scm | 185 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 185 insertions(+) diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 6da7109d1..21a00c3ea 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -7683,3 +7683,188 @@ uniquely identify it.") serves JavaScript, CoffeeScript, CSS, LESS, Sass, and SCSS.") (home-page "https://github.com/rails/sprockets") (license license:expat))) + +(define-public ruby-eventmachine-mailcatcher + (package + (inherit ruby-eventmachine) + (version "1.0.9.1") + (source + (origin + (method url-fetch) + (uri (rubygems-uri "eventmachine" version)) + (sha256 + (base32 + "17jr1caa3ggg696dd02g2zqzdjqj9x9q2nl7va82l36f7c5v6k4z")))) + (synopsis "ruby-eventmachine for mailcatcher"))) + +(define-public ruby-rack-mailcatcher + (package + (inherit ruby-rack) + (name "ruby-rack") + (version "1.5.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url + "https://github.com/rack/rack/") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "09k24li8hp65ybpwmvvyy7ipxrbh62zd3n1qv1jh9kcrrhaihpya")))) + (arguments + ;; TODO: Fix tests. + `(#:tests? #f)))) + +(define-public ruby-tilt + (package + (name "ruby-tilt") + (version "2.0.9") + (source + (origin + (method url-fetch) + (uri (rubygems-uri "tilt" version)) + (sha256 + (base32 + "0ca4k0clwf0rkvy7726x4nxpjxkpv67w043i39saxgldxd97zmwz")))) + (build-system ruby-build-system) + (arguments + ;; TODO: Fix tests. + `(#:tests? #f)) + (synopsis + "Generic interface to multiple Ruby template engines") + (description + "Generic interface to multiple Ruby template engines") + (home-page "http://github.com/rtomayko/tilt/") + (license license:expat))) + +(define-public ruby-mustermann + (package + (name "ruby-mustermann") + (version "1.0.3") + (source + (origin + (method url-fetch) + (uri (rubygems-uri "mustermann" version)) + (sha256 + (base32 + "0lycgkmnyy0bf29nnd2zql5a6pcf8sp69g9v4xw0gcfcxgpwp7i1")))) + (build-system ruby-build-system) + (arguments + ;; TODO: Fix tests. + `(#:tests? #f)) + (synopsis + "A library implementing patterns that behave like regular expressions.") + (description + "This package provides a library implementing patterns that behave like regular expressions.") + (home-page + "https://github.com/sinatra/mustermann") + (license license:expat))) + +(define-public ruby-sinatra + (package + (name "ruby-sinatra") + (version "2.0.5") + (source + (origin + (method url-fetch) + (uri (rubygems-uri "sinatra" version)) + (sha256 + (base32 + "1gasgn5f15myv08k10i16p326pchxjsy37pgqfw0xm66kcc5d7ry")))) + (build-system ruby-build-system) + (propagated-inputs + `(("ruby-mustermann" ,ruby-mustermann) + ("ruby-rack" ,ruby-rack) + ("ruby-rack-protection" ,ruby-rack-protection) + ("ruby-tilt" ,ruby-tilt))) + (synopsis "DSL for quick web applications creation in Ruby") + (description + "Sinatra is a DSL for quickly creating web applications in Ruby with +minimal effort.") + (home-page "http://sinatrarb.com/") + (license license:expat))) + +(define-public ruby-thin + (package + (name "ruby-thin") + (version "1.7.2") + (source + (origin + (method url-fetch) + (uri (rubygems-uri "thin" version)) + (sha256 + (base32 + "0nagbf9pwy1vg09k6j4xqhbjjzrg5dwzvkn4ffvlj76fsn6vv61f")))) + (build-system ruby-build-system) + (arguments + ;; TODO: Fix tests. + `(#:tests? #f)) + (propagated-inputs + `(("ruby-daemons" ,ruby-daemons) + ("ruby-eventmachine" ,ruby-eventmachine) + ("ruby-rack" ,ruby-rack))) + (synopsis "A thin and fast web server") + (description + "This package provides a thin and fast web server") + (home-page "http://code.macournoyer.com/thin/") + ;; TODO: License? + (license (list #f #f)))) + +(define-public ruby-skinny + (package + (name "ruby-skinny") + (version "0.2.4") + (source + (origin + (method url-fetch) + (uri (rubygems-uri "skinny" version)) + (sha256 + (base32 + "1y3yvx88ylgz4d2s1wskjk5rkmrcr15q3ibzp1q88qwzr5y493a9")))) + (build-system ruby-build-system) + (arguments + ;; TODO: Fix tests. + `(#:tests? #f)) + (propagated-inputs + `(("ruby-eventmachine" ,ruby-eventmachine) + ("ruby-thin" ,ruby-thin))) + (synopsis + "Simple, upgradable WebSockets for Thin.") + (description + "Simple, upgradable WebSockets for Thin.") + (home-page "http://github.com/sj26/skinny") + (license license:expat))) + +(define-public ruby-mailcatcher + (package + (name "ruby-mailcatcher") + (version "0.6.5") + (source + (origin + (method url-fetch) + (uri (rubygems-uri "mailcatcher" version)) + (sha256 + (base32 + "0h6gk8n18i5f651f244al1hscjzl27fpma4vqw0qhszqqpd5p3bx")))) + (build-system ruby-build-system) + (propagated-inputs + `(("ruby-eventmachine" ,ruby-eventmachine) + ;; ("ruby-eventmachine" ,ruby-eventmachine-mailcatcher) + ("ruby-mail" ,ruby-mail) + ("ruby-rack" ,ruby-rack) + ;; ("ruby-rack" ,ruby-rack-mailcatcher) + ("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 "http://mailcatcher.me") + (license license:expat)))