From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:36687) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gwQT1-0006YY-6W for guix-patches@gnu.org; Wed, 20 Feb 2019 06:55:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gwQSw-0001fe-6s for guix-patches@gnu.org; Wed, 20 Feb 2019 06:55:10 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:56467) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gwQSu-0001Pe-00 for guix-patches@gnu.org; Wed, 20 Feb 2019 06:55:06 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gwQSr-0003Xh-Q2 for guix-patches@gnu.org; Wed, 20 Feb 2019 06:55:01 -0500 Subject: [bug#34514] [PATCH 06/34] gnu: Add ruby-jwt. Resent-Message-ID: References: <87sgwm44a9.fsf@cbaines.net> <20190217192314.5666-1-mail@cbaines.net> <20190217192314.5666-6-mail@cbaines.net> From: Ricardo Wurmus In-reply-to: <20190217192314.5666-6-mail@cbaines.net> Date: Wed, 20 Feb 2019 12:54:00 +0100 Message-ID: <87sgwiu147.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Christopher Baines Cc: 34514@debbugs.gnu.org Christopher Baines writes: > * gnu/packages/ruby.scm (ruby-jwt): New variable. > --- > gnu/packages/ruby.scm | 37 +++++++++++++++++++++++++++++++++++++ > 1 file changed, 37 insertions(+) > > diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm > index b17a03e7cc..5b4d52ac4a 100644 > --- a/gnu/packages/ruby.scm > +++ b/gnu/packages/ruby.scm > @@ -3952,6 +3952,43 @@ a native C extension.") > (home-page "https://flori.github.com/json") > (license license:ruby))) > > +(define-public ruby-jwt > + (package > + (name "ruby-jwt") > + (version "2.1.0") > + (source > + (origin > + (method url-fetch) > + (uri (rubygems-uri "jwt" version)) > + (sha256 > + (base32 > + "1w0kaqrbl71cq9sbnixc20x5lqah3hs2i93xmhlfdg2y3by7yzky")))) > + (build-system ruby-build-system) > + (arguments > + '(#:test-target "test" > + #:phases > + (modify-phases %standard-phases > + (add-after 'unpack 'remove-unnecessary-dependencies > + (lambda _ > + (substitute* "spec/spec_helper.rb" > + (("require 'simplecov.*") "\n") > + ;; Use [].each to disable running the SimpleCov configura= tion > + ;; block > + (("SimpleCov\\.configure") "[].each") > + (("require 'codeclimate-test-reporter'") "") > + (("require 'codacy-coverage'") "") > + (("Codacy::Reporter\\.start") ""))))))) Please end this lambda with #T. > + "This package provides a pure Ruby implementation of the RFC 7519 O= Auth > +@acronym{JWT, JSON Web Token} standard.") If =E2=80=99guix lint=E2=80=99 doesn=E2=80=99t complain about the use of @a= cronym (I=E2=80=99ve never used it in a description) it=E2=80=99s all good. -- Ricardo