me
/
guix
Archived
1
0
Fork 0

gnu: Add ruby-rubocop-capybara.

* gnu/packages/ruby.scm (ruby-rubocop-capybara): New variable.
master
Maxim Cournoyer 2023-03-01 22:07:38 -05:00
parent 59c1029300
commit 64a0337724
No known key found for this signature in database
GPG Key ID: 1260E46482E63562
1 changed files with 25 additions and 0 deletions

View File

@ -1557,6 +1557,31 @@ code style checking of Capybara test files (RSpec, Cucumber, Minitest).")
(home-page "https://github.com/rubocop/rubocop-capybara") (home-page "https://github.com/rubocop/rubocop-capybara")
(license license:expat))) (license license:expat)))
(define-public ruby-rubocop-capybara
(package
(inherit ruby-rubocop-capybara-minimal)
(arguments
(list #:tests? #t
#:test-target "spec"
#:phases #~(modify-phases %standard-phases
(add-after 'unpack 'relax-requirements
(lambda _
(substitute* "Gemfile"
(("gem 'rubocop-rspec', '~> 2.16.0'")
"gem 'rubocop-rspec', '>= 2.16.0'")))))))
(native-inputs
(list ruby-bump
ruby-rack
ruby-rake
ruby-rspec
ruby-rubocop
ruby-rubocop-performance-minimal
ruby-rubocop-rake-minimal
ruby-rubocop-rspec-minimal
ruby-simplecov
ruby-yard))))
;;; A minimal variant used to build ruby-rubocop itself.
(define ruby-rubocop-rake-minimal (define ruby-rubocop-rake-minimal
(package (package
(name "ruby-rubocop-rake") (name "ruby-rubocop-rake")