[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
21/100: gnu: ruby-stackprof: Update to 0.2.25.
From: |
guix-commits |
Subject: |
21/100: gnu: ruby-stackprof: Update to 0.2.25. |
Date: |
Mon, 10 Jul 2023 03:27:27 -0400 (EDT) |
cbaines pushed a commit to branch master
in repository guix.
commit 2857b99e0dd3c1f11f74ac4b613d7a1a902d8906
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Mon Jun 26 20:38:19 2023 +0100
gnu: ruby-stackprof: Update to 0.2.25.
* gnu/packages/ruby.scm (ruby-stackprof): Update to 0.2.25.
[arguments]: Update style, add patch-gemspec phase and use bundle in check
phase.
[native-inputs]: Add bundler and use ruby-mocha-1.
---
gnu/packages/ruby.scm | 50 +++++++++++++++++++++++++++++++-------------------
1 file changed, 31 insertions(+), 19 deletions(-)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index d9b513186a..ccc36ce3d4 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -9100,33 +9100,45 @@ navigation capabilities to @code{pry}, using
@code{byebug}.")
(define-public ruby-stackprof
(package
(name "ruby-stackprof")
- (version "0.2.17")
+ (version "0.2.25")
(source
(origin
(method url-fetch)
(uri (rubygems-uri "stackprof" version))
(sha256
- (base32 "06lz70k8c0r7fyxk1nc3idh14x7nvsr21ydm1bsmbj00jyhmfzsn"))))
+ (base32 "0bhdgfb0pmw9mav1kw9fn0ka012sa0i3h5ppvqssw5xq48nhxnr8"))))
(build-system ruby-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-before 'check 'skip-dubious-test
- (lambda _
- ,@(if (or (target-riscv64?)
- (target-ppc32?))
- ;; This unreliable test can fail with "Expected 32 to be <=
25."
- '((substitute* "test/test_stackprof.rb"
- ((".*assert_operator profile\\[:missed_samples.*") "")))
- ;; This unreliable test can fail with "Expected 0 to be >= 1."
- '((substitute* "test/test_stackprof.rb"
- (("def test_(cputime)" _ name)
- (string-append "def skip_" name)))))))
- (add-before 'check 'build-tests
- (lambda _
- (invoke "rake" "compile"))))))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'patch-gemspec
+ (lambda _
+ (substitute* "stackprof.gemspec"
+ (("rake-compiler.*")
+ "rake-compiler>.freeze, [\"> 0.9\"])\n")
+ (("mocha.*")
+ "mocha>.freeze, [\"> 0.14\"])\n"))))
+ (add-before 'check 'skip-dubious-test
+ (lambda _
+ #$(if (or (target-riscv64?)
+ (target-ppc32?))
+ ;; This unreliable test can fail with "Expected 32 to be
<= 25."
+ #~(substitute* "test/test_stackprof.rb"
+ ((".*assert_operator profile\\[:missed_samples.*") ""))
+ ;; This unreliable test can fail with "Expected 0 to be >=
1."
+ #~(substitute* "test/test_stackprof.rb"
+ (("def test_(cputime)" _ name)
+ (string-append "def skip_" name))))))
+ (add-before 'check 'build-tests
+ (lambda _
+ (invoke "rake" "compile")))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "bundle" "exec" "rake" "default")))))))
(native-inputs
- (list ruby-mocha ruby-rake-compiler))
+ (list bundler ruby-mocha-1 ruby-rake-compiler))
(synopsis "Sampling profiler for Ruby code")
(description
"@code{stackprof} is a fast sampling profiler for Ruby code, with cpu,
- 45/100: gnu: ruby-puma: Update to 6.3.0., (continued)
- 45/100: gnu: ruby-puma: Update to 6.3.0., guix-commits, 2023/07/10
- 52/100: gnu: ruby-railties: Fix build., guix-commits, 2023/07/10
- 49/100: gnu: %ruby-rails-version: Update to 7.0.5.1., guix-commits, 2023/07/10
- 50/100: gnu: ruby-bootsnap: Fix build., guix-commits, 2023/07/10
- 56/100: gnu: ruby-maxitest: Update to 5.1.0., guix-commits, 2023/07/10
- 66/100: gnu: ruby-jwt: Update to 2.7.1., guix-commits, 2023/07/10
- 90/100: gnu: ruby-fast-gettext: Update to 2.3.0., guix-commits, 2023/07/10
- 94/100: gnu: ruby-yard: Refactor package and some dependencies., guix-commits, 2023/07/10
- 85/100: gnu: Add ruby-hoe-3., guix-commits, 2023/07/10
- 08/100: gnu: ruby-contracts: Update to 0.17., guix-commits, 2023/07/10
- 21/100: gnu: ruby-stackprof: Update to 0.2.25.,
guix-commits <=
- 16/100: gnu: Remove ruby-instantiator., guix-commits, 2023/07/10
- 17/100: gnu: Add ruby-psych., guix-commits, 2023/07/10
- 97/100: gnu: ruby-sass-spec: Remove ruby-terminfo input., guix-commits, 2023/07/10
- 33/100: gnu: ruby-listen: Update to 3.8.0., guix-commits, 2023/07/10
- 30/100: gnu: ruby-minitest-focus: Update to 1.3.1., guix-commits, 2023/07/10
- 51/100: gnu: ruby-marcel: Fix build., guix-commits, 2023/07/10
- 46/100: gnu: ruby-timecop: Update to 0.9.6., guix-commits, 2023/07/10
- 58/100: gnu: ruby-bibtex-ruby: Remove ruby-byebug dependency., guix-commits, 2023/07/10
- 64/100: gnu: ruby-braintree: Update to 4.12.0., guix-commits, 2023/07/10
- 65/100: gnu: ruby-multi-json: Fix build., guix-commits, 2023/07/10