[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
75/229: gnu: ruby-rack: Update to 2.2.6.3.
From: |
guix-commits |
Subject: |
75/229: gnu: ruby-rack: Update to 2.2.6.3. |
Date: |
Tue, 28 Mar 2023 22:29:04 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit e5dbe4cc0094008734b8c78349e54f67400fd03b
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Wed Mar 8 16:58:15 2023 -0500
gnu: ruby-rack: Update to 2.2.6.3.
* gnu/packages/ruby.scm (ruby-rack): Update to 2.2.6.3.
[source]: Move snippet to...
[arguments]: ... the fix-test phase. Use gexps and delete trailing #t.
---
gnu/packages/ruby.scm | 68 ++++++++++++++++++++++++---------------------------
1 file changed, 32 insertions(+), 36 deletions(-)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 751c698699..c6db3615be 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -7115,50 +7115,46 @@ generates Ruby program.")
(define-public ruby-rack
(package
(name "ruby-rack")
- (version "2.2.3")
+ ;; Do not upgrade to version 3, as Rails doesn't support it yet.
+ (version "2.2.6.3")
(source
(origin
- (method git-fetch)
- ;; Download from GitHub so that the snippet can be applied and tests
run.
+ (method git-fetch) ;for tests
(uri (git-reference
- (url "https://github.com/rack/rack")
- (commit version)))
+ (url "https://github.com/rack/rack")
+ (commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
- "1qrm5z5v586738bnkr9188dvz0s25nryw6sgvx18jjlkizayw1g4"))
- ;; Ignore test which fails inside the build environment but works
- ;; outside.
- (modules '((guix build utils)))
- (snippet
- '(begin (substitute* "test/spec_files.rb"
- (("res.body.must_equal expected_body") ""))
- #t))))
+ "19n33q0v15qjh7kbp2painyzyqg16kkf0mp68vcnlswghmmjcyzq"))))
(build-system ruby-build-system)
(arguments
- '(#:phases
- (modify-phases %standard-phases
- (add-before 'check 'fix-tests
- (lambda _
- ;; A few of the tests use the length of a file on disk for
- ;; Content-Length and Content-Range headers. However, this file
- ;; has a shebang in it which an earlier phase patches, growing
- ;; the file size from 193 to 239 bytes when the store prefix is
- ;; "/gnu/store".
- (let ((size-diff (- (string-length (which "ruby"))
- (string-length "/usr/bin/env ruby"))))
- (substitute* '("test/spec_files.rb")
- (("208" bytes)
- (number->string (+ (string->number bytes) size-diff)))
- (("bytes(.)22-33" all delimiter)
- (string-append "bytes"
- delimiter
- (number->string (+ 22 size-diff))
- "-"
- (number->string (+ 33 size-diff))))))
- #t)))))
- (native-inputs
- (list ruby-minitest ruby-minitest-global-expectations))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'fix-tests
+ (lambda _
+ ;; This test fails in the build environment (and passes outside
+ ;; of it).
+ (substitute* "test/spec_files.rb"
+ (("res.body.must_equal expected_body") ""))
+ ;; A few of the tests use the length of a file on disk for
+ ;; Content-Length and Content-Range headers. However, this file
+ ;; has a shebang in it which an earlier phase patches, growing
+ ;; the file size from 193 to 239 bytes when the store prefix is
+ ;; "/gnu/store".
+ (let ((size-diff (- (string-length (which "ruby"))
+ (string-length "/usr/bin/env ruby"))))
+ (substitute* '("test/spec_files.rb")
+ (("208" bytes)
+ (number->string (+ (string->number bytes) size-diff)))
+ (("bytes(.)22-33" all delimiter)
+ (string-append "bytes"
+ delimiter
+ (number->string (+ 22 size-diff))
+ "-"
+ (number->string (+ 33 size-diff)))))))))))
+ (native-inputs (list ruby-minitest ruby-minitest-global-expectations))
(synopsis "Unified web application interface for Ruby")
(description "Rack provides a minimal, modular and adaptable interface for
developing web applications in Ruby. By wrapping HTTP requests and responses,
- 38/229: gnu: ruby-minitest-5.14: Update to 5.15.0., (continued)
- 38/229: gnu: ruby-minitest-5.14: Update to 5.15.0., guix-commits, 2023/03/28
- 40/229: gnu: Add ruby-cucumber-compatibility-kit., guix-commits, 2023/03/28
- 45/229: gnu: ruby-cucumber-wire: Update to 6.2.1., guix-commits, 2023/03/28
- 50/229: gnu: ruby-gherkin: Update to 26.1.0, fixing build., guix-commits, 2023/03/28
- 55/229: gnu: ruby-aruba: Update to 2.1.0., guix-commits, 2023/03/28
- 62/229: gnu: ruby-actionview: Update to 7.0.4.3., guix-commits, 2023/03/28
- 64/229: gnu: Add ruby-minitest-proveit., guix-commits, 2023/03/28
- 67/229: gnu: ruby-activejob: Update to 7.0.4.3 and enable tests., guix-commits, 2023/03/28
- 69/229: gnu: ruby-addressable: Update to 2.8.1., guix-commits, 2023/03/28
- 73/229: gnu: ruby-puma: Build with SSL support., guix-commits, 2023/03/28
- 75/229: gnu: ruby-rack: Update to 2.2.6.3.,
guix-commits <=
- 77/229: gnu: Add ruby-rack-next., guix-commits, 2023/03/28
- 79/229: gnu: ruby-rack-test: Update to 2.1.0., guix-commits, 2023/03/28
- 16/229: gnu: ruby-given-core: Update to 3.8.2., guix-commits, 2023/03/28
- 23/229: gnu: ruby-simplecov: Update to 0.22.0., guix-commits, 2023/03/28
- 25/229: gnu: ruby-rubocop-rspec: Update to 2.19.0 and inverse inheritance relationship., guix-commits, 2023/03/28
- 32/229: gnu: ruby-standard: Enable test suite., guix-commits, 2023/03/28
- 42/229: gnu: Remove ruby-protobuf-cucumber., guix-commits, 2023/03/28
- 17/229: gnu: ruby-rspec-mocks: Update to 3.12.4., guix-commits, 2023/03/28
- 21/229: gnu: Add ruby-simplecov-json-formatter., guix-commits, 2023/03/28
- 37/229: gnu: Add ruby-hiredis., guix-commits, 2023/03/28