[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#62196] [PATCH 075/223] gnu: ruby-rack: Update to 2.2.6.3.
From: |
Maxim Cournoyer |
Subject: |
[bug#62196] [PATCH 075/223] gnu: ruby-rack: Update to 2.2.6.3. |
Date: |
Mon, 20 Mar 2023 13:14:07 -0400 |
* 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 7cf4d34ebf..29c4ae8bf8 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -7115,50 +7115,46 @@ (define-public ruby-racc
(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,
--
2.39.1
- [bug#62196] [PATCH 046/223] gnu: ruby-cucumber-html-formatter: Update to 20.2.1., (continued)
- [bug#62196] [PATCH 046/223] gnu: ruby-cucumber-html-formatter: Update to 20.2.1., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 045/223] gnu: ruby-cucumber-wire: Update to 6.2.1., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 052/223] gnu: ruby-cucumber: Update to 8.0.0., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 051/223] gnu: ruby-gherkin: Rename to ruby-cucumber-gherkin., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 047/223] gnu: ruby-cucumber-html-formatter: Honor #:tests? argument., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 061/223] gnu: Add ruby-simplecov-lcov., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 060/223] gnu: ruby-activerecord: Update to 7.0.4.3 and enable tests., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 049/223] gnu: ruby-cucumber-expressions: Update to 16.1.2., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 058/223] gnu: Add ruby-bcrypt., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 066/223] gnu: Add ruby-queue-classic., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 075/223] gnu: ruby-rack: Update to 2.2.6.3.,
Maxim Cournoyer <=
- [bug#62196] [PATCH 070/223] gnu: Add ruby-launchy., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 072/223] gnu: Add ruby-selenium-webdriver., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 064/223] gnu: Add ruby-minitest-proveit., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 071/223] gnu: Add ruby-websocket., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 079/223] gnu: ruby-rack-test: Update to 2.1.0., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 054/223] gnu: Add ruby-rake-manifest., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 056/223] gnu: ruby-activesupport: Update to 7.0.4.3., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 059/223] gnu: ruby-activemodel: Update to 7.0.4.3 and enable tests., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 068/223] gnu: Add ruby-xpath., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 074/223] gnu: Add ruby-minitest-stub-const., Maxim Cournoyer, 2023/03/20