Archived
1
0
Fork 0

gnu: ruby-rubocop-rspec: Update to 2.19.0 and inverse inheritance relationship.

* gnu/packages/ruby.scm (ruby-rubocop-rspec): Update to 2.18.1.
[arguments]: Delete trailing #t.  Change TEST-TARGET to "spec".  Remove phases.
[native-inputs]: Replace ruby-rubocop-performance with
ruby-rubocop-performance-minimal.  Add ruby-bump and
ruby-rubocop-rake-minimal.
(ruby-rubocop-rspec-minimal): Reverse inheritance relationship; this package
is now the base package.
This commit is contained in:
Maxim Cournoyer 2023-03-01 22:10:02 -05:00
parent 64a0337724
commit 538e1dfaf7
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -1602,49 +1602,45 @@ code style checking of Capybara test files (RSpec, Cucumber, Minitest).")
(home-page "https://github.com/rubocop/rubocop-rake") (home-page "https://github.com/rubocop/rubocop-rake")
(license license:expat))) (license license:expat)))
(define-public ruby-rubocop-rspec ;;; A minimal variant used to build ruby-rubocop itself.
(define ruby-rubocop-rspec-minimal
(package (package
(name "ruby-rubocop-rspec") (name "ruby-rubocop-rspec")
(version "2.2.0") (version "2.19.0")
(source (source
(origin (origin
(method git-fetch) (method git-fetch)
(uri (git-reference (uri (git-reference
(url "https://github.com/rubocop-hq/rubocop-rspec") (url "https://github.com/rubocop-hq/rubocop-rspec")
(commit (string-append "v" version)))) (commit (string-append "v" version))))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"0gdpjpympb6qc77bang759z7z6lckf14ghkx8v6614agxg8l3g5y")))) "0mgjyrzi8r44v3gb8xscdwspirz9kqkaf7zlsjhhlxr0di0rlj2r"))))
(build-system ruby-build-system) (build-system ruby-build-system)
(arguments (arguments (list #:tests? #f)) ;avoid extra dependencies
'(#:test-target "internal_investigation"
#:phases
(modify-phases %standard-phases
(add-before 'check 'set-HOME
(lambda _
(setenv "HOME" "/tmp")
#t)))))
(propagated-inputs
(list ruby-rubocop ruby-rubocop-ast))
(native-inputs
(list ruby-rack ruby-rspec ruby-rubocop-performance ruby-simplecov
ruby-yard))
(synopsis "Code style checking for RSpec files") (synopsis "Code style checking for RSpec files")
(description "This package provides a plugin for the RuboCop code style (description "This package provides a plugin for the RuboCop code style
enforcing & linting tool.") enforcing & linting tool.")
(home-page "https://github.com/rubocop-hq/rubocop-rspec") (home-page "https://github.com/rubocop-hq/rubocop-rspec")
(license license:expat))) (license license:expat)))
(define-public ruby-rubocop-rspec-minimal (define-public ruby-rubocop-rspec
(hidden-package (package
(package (inherit ruby-rubocop-rspec-minimal)
(inherit ruby-rubocop-rspec) (arguments '(#:test-target "spec"))
(arguments (native-inputs
(substitute-keyword-arguments (package-arguments ruby-rubocop-rspec) (list ruby-bump
((#:tests? _ #f) #f))) ruby-rack
(propagated-inputs '()) ruby-rspec
(native-inputs '())))) ruby-rubocop-performance-minimal
ruby-rubocop-rake-minimal
ruby-simplecov
ruby-yard))
(propagated-inputs
(list ruby-rubocop
ruby-rubocop-ast
ruby-rubocop-capybara))))
(define-public ruby-rubocop-performance (define-public ruby-rubocop-performance
(package (package