[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
210/229: gnu: ruby-single-cov: Update to 1.9.1.
From: |
guix-commits |
Subject: |
210/229: gnu: ruby-single-cov: Update to 1.9.1. |
Date: |
Tue, 28 Mar 2023 22:29:25 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit 22eeb2d86bc1c57392d882c679d4183dde091545
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Thu Mar 16 14:16:44 2023 -0400
gnu: ruby-single-cov: Update to 1.9.1.
* gnu/packages/ruby.scm (ruby-single-cov): Update to 1.9.1.
[arguments]: Use "spec" as #:test-target.
Strip trailing #t in phases. Adjust replacement in replace-git-ls-files
phase. Remove make-files-writable phase. Add relax-requirements phase.
[native-inputs]: Remove ruby-bump.
---
gnu/packages/ruby.scm | 33 ++++++++++++++++-----------------
1 file changed, 16 insertions(+), 17 deletions(-)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index f193bfbec6..e078e278af 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -6722,7 +6722,7 @@ classes implemented in C.")
(define-public ruby-single-cov
(package
(name "ruby-single-cov")
- (version "1.3.2")
+ (version "1.9.1")
(home-page "https://github.com/grosser/single_cov")
(source (origin
(method git-fetch)
@@ -6731,28 +6731,29 @@ classes implemented in C.")
(file-name (git-file-name name version))
(sha256
(base32
- "05qdzpcai1p23a120gb9bxkfl4y73k9hicx34ch2lsk31lgi9bl7"))))
+ "1w4k81f2mdg620m6pwkrqayddnz9mr8qx0myqn33mw8k6imfip05"))))
(build-system ruby-build-system)
(arguments
- '(#:test-target "default"
+ '(#:test-target "spec" ;to avoid rubocop requirement
#:phases (modify-phases %standard-phases
(replace 'replace-git-ls-files
(lambda _
(substitute* "single_cov.gemspec"
(("`git ls-files lib/ bin/ MIT-LICENSE`")
- "`find lib/ bin/ MIT-LICENSE -type f | sort`"))
- #t))
+ ;; There no longer appear to be a 'bin'
+ ;; sub-directory.
+ "`find lib/ MIT-LICENSE -type f | sort`"))))
(add-before 'check 'remove-version-constraints
(lambda _
- (delete-file "Gemfile.lock")
- #t))
- (add-before 'check 'make-files-writable
+ (delete-file "Gemfile.lock")))
+ (add-before 'check 'relax-requirements
(lambda _
- ;; Tests need to create local directories and open files
- ;; with write permissions.
- (for-each make-file-writable
- (find-files "specs" #:directories? #t))
- #t))
+ ;; Remove extraneous requirements.
+ (substitute* "Rakefile"
+ ((".*require.*bump.*") ""))
+ (substitute* "Gemfile"
+ ((".*gem \"bump\".*") "")
+ ((".*gem \"rubocop\".*") ""))))
(add-before 'check 'disable-failing-test
(lambda _
;; XXX: This test copies assets from minitest, but can
@@ -6760,10 +6761,8 @@ classes implemented in C.")
;; it for now.
(substitute* "specs/single_cov_spec.rb"
(("it \"complains when coverage is bad\"")
- "xit \"complains when coverage is bad\""))
- #t)))))
- (native-inputs
- (list ruby-bump ruby-minitest ruby-rspec ruby-simplecov))
+ "xit \"complains when coverage is bad\"")))))))
+ (native-inputs (list ruby-minitest ruby-rspec ruby-simplecov))
(synopsis "Code coverage reporting tool")
(description
"This package provides actionable code coverage reports for Ruby
- 183/229: gnu: ruby-slim: Update to 5.1.0., (continued)
- 183/229: gnu: ruby-slim: Update to 5.1.0., guix-commits, 2023/03/28
- 192/229: gnu: ruby-shoulda-matchers: Honor #:tests?., guix-commits, 2023/03/28
- 198/229: gnu: Add ruby-rspec-stubbed-env., guix-commits, 2023/03/28
- 204/229: gnu: ruby-hashie: Update to 5.0.0 and enable tests., guix-commits, 2023/03/28
- 208/229: gnu: ruby-omniauth-oauth2: Update to 1.8.0., guix-commits, 2023/03/28
- 217/229: gnu: Add ruby-truthy., guix-commits, 2023/03/28
- 218/229: gnu: ruby-coveralls: Propagate ruby-simplecov and enable tests., guix-commits, 2023/03/28
- 224/229: Revert "lint: Append "/info/refs" to git-reference-url.", guix-commits, 2023/03/28
- 227/229: services: fstrim: Fix schedule ungexp., guix-commits, 2023/03/28
- 228/229: gnu: geeqie: Update to 2.0.1., guix-commits, 2023/03/28
- 210/229: gnu: ruby-single-cov: Update to 1.9.1.,
guix-commits <=
- 168/229: gnu: Add ruby-turbo-rails., guix-commits, 2023/03/28
- 181/229: gnu: ruby-protobuf: Update to 3.10.3., guix-commits, 2023/03/28
- 185/229: gnu: ruby-web-console: Update to 4.2.0., guix-commits, 2023/03/28
- 186/229: gnu: Add ruby-minitest-profile., guix-commits, 2023/03/28
- 197/229: gnu: jekyll: Update to 4.3.2 and enable tests., guix-commits, 2023/03/28
- 199/229: gnu: Add ruby-silent-stream., guix-commits, 2023/03/28
- 202/229: gnu: Add ruby-rspec-block-is-expected., guix-commits, 2023/03/28
- 212/229: gnu: Add ruby-sassc-rails., guix-commits, 2023/03/28
- 216/229: gnu: ruby-autoprefixer-rails: Update to 10.4.13.0., guix-commits, 2023/03/28
- 225/229: gnu: ruby-mustermann: Update to 3.0.0., guix-commits, 2023/03/28