[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
36/100: gnu: Add ruby-http-accept.
From: |
guix-commits |
Subject: |
36/100: gnu: Add ruby-http-accept. |
Date: |
Mon, 10 Jul 2023 03:27:31 -0400 (EDT) |
cbaines pushed a commit to branch master
in repository guix.
commit de33bed5c4fc0c951030ed502e1985996f7561c6
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 8786e665b7..a775a97c46 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -11196,6 +11196,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")
- 23/100: gnu: ruby-sqlite3: Update to 1.6.3., (continued)
- 23/100: gnu: ruby-sqlite3: Update to 1.6.3., guix-commits, 2023/07/10
- 31/100: gnu: ruby-minitest-bonus-assertions: Fix build., guix-commits, 2023/07/10
- 40/100: gnu: ruby-delayed-job: Fix build., guix-commits, 2023/07/10
- 38/100: gnu: ruby-protobuf: Fix build., guix-commits, 2023/07/10
- 48/100: gnu: ruby-rdoc: Update to 6.5.0., guix-commits, 2023/07/10
- 07/100: gnu: ruby-ritex: Build with ruby-2.7., guix-commits, 2023/07/10
- 02/100: gnu: ruby-bindex: Update to 0.8.1 and rename to ruby-skiptrace., guix-commits, 2023/07/10
- 18/100: gnu: ruby-mocha: Update to 2.0.4., guix-commits, 2023/07/10
- 26/100: gnu: ruby-json-pure: Update to 2.6.3., guix-commits, 2023/07/10
- 27/100: gnu: ruby-markaby: Fix tests., guix-commits, 2023/07/10
- 36/100: gnu: Add ruby-http-accept.,
guix-commits <=
- 24/100: gnu: ruby-rack: Update to 2.2.7., guix-commits, 2023/07/10
- 41/100: gnu: ruby-oedipus-lex: Update to 2.6.1., guix-commits, 2023/07/10
- 43/100: gnu: ruby-rest-client: Update to 2.1.0., guix-commits, 2023/07/10
- 61/100: gnu: ronn-ng: Fix build., guix-commits, 2023/07/10
- 72/100: gnu: ruby-connection-pool: Update to 2.4.1., guix-commits, 2023/07/10
- 54/100: gnu: ruby-importmap-rails: Remove ruby-byebug dependency., guix-commits, 2023/07/10
- 86/100: gnu: ruby-heredoc-unindent: Fix build., guix-commits, 2023/07/10
- 75/100: gnu: ruby-sexp-processor: Update to 4.17.0., guix-commits, 2023/07/10
- 03/100: gnu: ruby-dep: Build with ruby-2.7., guix-commits, 2023/07/10
- 12/100: gnu: Add ruby-set., guix-commits, 2023/07/10