[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
36/59: gnu: Add ruby-http-accept.
From: |
guix-commits |
Subject: |
36/59: gnu: Add ruby-http-accept. |
Date: |
Wed, 28 Jun 2023 05:55:16 -0400 (EDT) |
cbaines pushed a commit to branch ruby-team
in repository guix.
commit 2e92360a069c1c1a644582e4e0663ee8e0179cf5
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Tue Jun 27 12:37:42 2023 +0100
gnu: Add ruby-http-accept.
* gnu/packages/ruby.scm (ruby-http-accept): New variable.
---
gnu/packages/ruby.scm | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 97fcc01c2d..b7c18c9418 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -11195,6 +11195,44 @@ defined in a @file{.env} file.")
defined in a @file{.env} file. This is the Rails variant, adapted for use
with Ruby on Rails projects.")))
+(define-public ruby-http-accept
+ (package
+ (name "ruby-http-accept")
+ (version "2.2.0")
+ (source (origin
+ (method git-fetch) ;for the tests
+ (uri (git-reference
+ (url "https://github.com/socketry/http-accept")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1d69cy12hqbcqrhw4dibvdq5pqklxsa59kih6pzl479nxq79rgs7"))))
+ (build-system ruby-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'remove-missing-key-directive
+ ;; This seem to be a common problem in Ruby projects (see:
+ ;; https://github.com/prawnpdf/ttfunk/issues/99).
+ (lambda _
+ (substitute* "http-accept.gemspec"
+ ((".*spec.signing_key.*") ""))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "rspec")))))))
+ (native-inputs
+ (list ruby-rspec
+ ruby-covered))
+ (synopsis "Parse Accept and Accept-Language HTTP headers")
+ (description
+ "This package provides a set of parsers for Accept and Accept-Language
+HTTP headers.")
+ (home-page "https://github.com/socketry/http-accept")
+ (license license:expat)))
+
(define-public ruby-http-cookie
(package
(name "ruby-http-cookie")
- 33/59: gnu: ruby-listen: Update to 3.8.0., (continued)
- 33/59: gnu: ruby-listen: Update to 3.8.0., guix-commits, 2023/06/28
- 37/59: gnu: Add ruby-http-accept-1., guix-commits, 2023/06/28
- 49/59: gnu: %ruby-rails-version: Update to 7.0.5.1., guix-commits, 2023/06/28
- 18/59: gnu: ruby-mocha: Update to 2.0.4., guix-commits, 2023/06/28
- 23/59: gnu: ruby-sqlite3: Update to 1.6.3., guix-commits, 2023/06/28
- 24/59: gnu: ruby-rack: Update to 2.2.7., guix-commits, 2023/06/28
- 28/59: gnu: ruby-minitest: Update to 5.18.1., guix-commits, 2023/06/28
- 29/59: gnu: ruby-thor: Update to 1.2.2., guix-commits, 2023/06/28
- 31/59: gnu: ruby-minitest-bonus-assertions: Fix build., guix-commits, 2023/06/28
- 34/59: gnu: ruby-mime-types: Update to 3.4.1., guix-commits, 2023/06/28
- 36/59: gnu: Add ruby-http-accept.,
guix-commits <=
- 38/59: gnu: ruby-protobuf: Fix build., guix-commits, 2023/06/28
- 39/59: gnu: ruby-hoe: Fix build., guix-commits, 2023/06/28
- 43/59: gnu: ruby-rest-client: Update to 2.1.0., guix-commits, 2023/06/28
- 45/59: gnu: ruby-puma: Update to 6.3.0., guix-commits, 2023/06/28
- 46/59: gnu: ruby-timecop: Update to 0.9.6., guix-commits, 2023/06/28
- 50/59: gnu: ruby-bootsnap: Fix build., guix-commits, 2023/06/28
- 53/59: gnu: zsh-autosuggestions: Remove ruby-byebug dependency., guix-commits, 2023/06/28
- 54/59: gnu: ruby-importmap-rails: Remove ruby-byebug dependency., guix-commits, 2023/06/28
- 56/59: gnu: ruby-maxitest: Update to 5.1.0., guix-commits, 2023/06/28
- 57/59: gnu: ruby-wapiti: Update to 2.1.0., guix-commits, 2023/06/28