mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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.
This commit is contained in:
parent
e58e1e6370
commit
22eeb2d86b
1 changed files with 16 additions and 17 deletions
|
@ -6722,7 +6722,7 @@ classes implemented in C.")
|
||||||
(define-public ruby-single-cov
|
(define-public ruby-single-cov
|
||||||
(package
|
(package
|
||||||
(name "ruby-single-cov")
|
(name "ruby-single-cov")
|
||||||
(version "1.3.2")
|
(version "1.9.1")
|
||||||
(home-page "https://github.com/grosser/single_cov")
|
(home-page "https://github.com/grosser/single_cov")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
|
@ -6731,28 +6731,29 @@ classes implemented in C.")
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"05qdzpcai1p23a120gb9bxkfl4y73k9hicx34ch2lsk31lgi9bl7"))))
|
"1w4k81f2mdg620m6pwkrqayddnz9mr8qx0myqn33mw8k6imfip05"))))
|
||||||
(build-system ruby-build-system)
|
(build-system ruby-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:test-target "default"
|
'(#:test-target "spec" ;to avoid rubocop requirement
|
||||||
#:phases (modify-phases %standard-phases
|
#:phases (modify-phases %standard-phases
|
||||||
(replace 'replace-git-ls-files
|
(replace 'replace-git-ls-files
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* "single_cov.gemspec"
|
(substitute* "single_cov.gemspec"
|
||||||
(("`git ls-files lib/ bin/ MIT-LICENSE`")
|
(("`git ls-files lib/ bin/ MIT-LICENSE`")
|
||||||
"`find lib/ bin/ MIT-LICENSE -type f | sort`"))
|
;; There no longer appear to be a 'bin'
|
||||||
#t))
|
;; sub-directory.
|
||||||
|
"`find lib/ MIT-LICENSE -type f | sort`"))))
|
||||||
(add-before 'check 'remove-version-constraints
|
(add-before 'check 'remove-version-constraints
|
||||||
(lambda _
|
(lambda _
|
||||||
(delete-file "Gemfile.lock")
|
(delete-file "Gemfile.lock")))
|
||||||
#t))
|
(add-before 'check 'relax-requirements
|
||||||
(add-before 'check 'make-files-writable
|
|
||||||
(lambda _
|
(lambda _
|
||||||
;; Tests need to create local directories and open files
|
;; Remove extraneous requirements.
|
||||||
;; with write permissions.
|
(substitute* "Rakefile"
|
||||||
(for-each make-file-writable
|
((".*require.*bump.*") ""))
|
||||||
(find-files "specs" #:directories? #t))
|
(substitute* "Gemfile"
|
||||||
#t))
|
((".*gem \"bump\".*") "")
|
||||||
|
((".*gem \"rubocop\".*") ""))))
|
||||||
(add-before 'check 'disable-failing-test
|
(add-before 'check 'disable-failing-test
|
||||||
(lambda _
|
(lambda _
|
||||||
;; XXX: This test copies assets from minitest, but can
|
;; XXX: This test copies assets from minitest, but can
|
||||||
|
@ -6760,10 +6761,8 @@ classes implemented in C.")
|
||||||
;; it for now.
|
;; it for now.
|
||||||
(substitute* "specs/single_cov_spec.rb"
|
(substitute* "specs/single_cov_spec.rb"
|
||||||
(("it \"complains when coverage is bad\"")
|
(("it \"complains when coverage is bad\"")
|
||||||
"xit \"complains when coverage is bad\""))
|
"xit \"complains when coverage is bad\"")))))))
|
||||||
#t)))))
|
(native-inputs (list ruby-minitest ruby-rspec ruby-simplecov))
|
||||||
(native-inputs
|
|
||||||
(list ruby-bump ruby-minitest ruby-rspec ruby-simplecov))
|
|
||||||
(synopsis "Code coverage reporting tool")
|
(synopsis "Code coverage reporting tool")
|
||||||
(description
|
(description
|
||||||
"This package provides actionable code coverage reports for Ruby
|
"This package provides actionable code coverage reports for Ruby
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue