[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
11/12: gnu: ruby-rack: Update to 2.2.3.
From: |
guix-commits |
Subject: |
11/12: gnu: ruby-rack: Update to 2.2.3. |
Date: |
Tue, 23 Feb 2021 09:06:56 -0500 (EST) |
efraim pushed a commit to branch master
in repository guix.
commit c2fdc528dde477c74a59954b925b69c12a3f208c
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Tue Feb 23 15:29:13 2021 +0200
gnu: ruby-rack: Update to 2.2.3.
* gnu/packages/ruby.scm (ruby-rack): Update to 2.2.3.
[source]: Remove patch. Add snippet.
[arguments]: Adjust custom 'fix-tests phase. Remove 'make-files-writable
phase.
[native-inputs]: Remove ruby-minitest-sprint, which. Add
ruby-minitest-global-expectations.
[propagated-inputs]: Remove ruby-concurrent.
* gnu/packages/patches/ruby-rack-ignore-failing-test.patch: Remove file.
* gnu/local.mk (dist_patch_DATA): Remove it.
---
gnu/local.mk | 1 -
.../patches/ruby-rack-ignore-failing-test.patch | 13 ---------
gnu/packages/ruby.scm | 34 +++++++++-------------
3 files changed, 13 insertions(+), 35 deletions(-)
diff --git a/gnu/local.mk b/gnu/local.mk
index 3591295..a929404 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1596,7 +1596,6 @@ dist_patch_DATA =
\
%D%/packages/patches/rnp-add-version.cmake.patch \
%D%/packages/patches/rnp-disable-ruby-rnp-tests.patch \
%D%/packages/patches/rnp-unbundle-googletest.patch \
- %D%/packages/patches/ruby-rack-ignore-failing-test.patch \
%D%/packages/patches/ruby-sanitize-system-libxml.patch \
%D%/packages/patches/runc-CVE-2019-5736.patch \
%D%/packages/patches/rust-1.19-mrustc.patch \
diff --git a/gnu/packages/patches/ruby-rack-ignore-failing-test.patch
b/gnu/packages/patches/ruby-rack-ignore-failing-test.patch
deleted file mode 100644
index f50d68c..0000000
--- a/gnu/packages/patches/ruby-rack-ignore-failing-test.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-diff --git a/test/spec_server.rb b/test/spec_server.rb
-index a3690bc..16c9536 100644
---- a/test/spec_server.rb
-+++ b/test/spec_server.rb
-@@ -161,7 +161,7 @@ describe Rack::Server do
- it "check pid file presence and not owned process" do
- pidfile = Tempfile.open('pidfile') { |f| f.write(1); break f }.path
- server = Rack::Server.new(:pid => pidfile)
-- server.send(:pidfile_process_status).must_equal :not_owned
-+ #server.send(:pidfile_process_status).must_equal :not_owned
- end
-
- it "not write pid file when it is created after check" do
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 1a86862..8f3166f 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -45,7 +45,6 @@
(define-module (gnu packages ruby)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (gnu packages)
- #:use-module (gnu packages base)
#:use-module (gnu packages bison)
#:use-module (gnu packages c)
#:use-module (gnu packages check)
@@ -6890,21 +6889,25 @@ generates Ruby program.")
(define-public ruby-rack
(package
(name "ruby-rack")
- (version "2.0.6")
+ (version "2.2.3")
(source
(origin
(method git-fetch)
- ;; Download from GitHub so that the patch can be applied.
+ ;; Download from GitHub so that the snippet can be applied and tests
run.
(uri (git-reference
(url "https://github.com/rack/rack")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32
- "1n7z4g1x6yxip096cdc04wq7yk7ywpinq28g2xjb46r4nlv5h0j6"))
+ "1qrm5z5v586738bnkr9188dvz0s25nryw6sgvx18jjlkizayw1g4"))
;; Ignore test which fails inside the build environment but works
;; outside.
- (patches (search-patches "ruby-rack-ignore-failing-test.patch"))))
+ (modules '((guix build utils)))
+ (snippet
+ '(begin (substitute* "test/spec_files.rb"
+ (("res.body.must_equal expected_body") ""))
+ #t))))
(build-system ruby-build-system)
(arguments
'(#:phases
@@ -6918,30 +6921,19 @@ generates Ruby program.")
;; "/gnu/store".
(let ((size-diff (- (string-length (which "ruby"))
(string-length "/usr/bin/env ruby"))))
- (substitute* '("test/spec_file.rb")
- (("193")
- (number->string (+ 193 size-diff)))
+ (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))
- (add-before 'reset-gzip-timestamps 'make-files-writable
- (lambda* (#:key outputs #:allow-other-keys)
- ;; Make sure .gz files are writable so that the
- ;; 'reset-gzip-timestamps' phase can do its work.
- (let ((out (assoc-ref outputs "out")))
- (for-each make-file-writable
- (find-files out "\\.gz$"))
- #t))))))
+ #t)))))
(native-inputs
`(("ruby-minitest" ,ruby-minitest)
- ("ruby-minitest-sprint" ,ruby-minitest-sprint)
- ("which" ,which)))
- (propagated-inputs
- `(("ruby-concurrent" ,ruby-concurrent)))
+ ("ruby-minitest-global-expectations"
,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,
- 03/12: gnu: ruby-mail: Update to 2.7.1., (continued)
- 03/12: gnu: ruby-mail: Update to 2.7.1., guix-commits, 2021/02/23
- 05/12: gnu: ruby-rails-dom-testing: Update to 2.0.3., guix-commits, 2021/02/23
- 06/12: gnu: ruby-rails-html-sanitizer: Update to 1.3.0., guix-commits, 2021/02/23
- 02/12: gnu: Add ruby-mini-mime., guix-commits, 2021/02/23
- 07/12: gnu: ruby-tzinfo: Update to 2.0.4., guix-commits, 2021/02/23
- 10/12: gnu: Add ruby-zeitwerk., guix-commits, 2021/02/23
- 08/12: gnu: ruby-tzinfo-data: Update to 1.2021.1., guix-commits, 2021/02/23
- 04/12: gnu: ruby-loofah: Update to 2.3.1., guix-commits, 2021/02/23
- 12/12: gnu: ruby-rails: Update to 6.1.3., guix-commits, 2021/02/23
- 09/12: gnu: ruby-web-console: Update to 4.1.0., guix-commits, 2021/02/23
- 11/12: gnu: ruby-rack: Update to 2.2.3.,
guix-commits <=