guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

24/229: gnu: Add ruby-rubocop-capybara.


From: guix-commits
Subject: 24/229: gnu: Add ruby-rubocop-capybara.
Date: Tue, 28 Mar 2023 22:28:56 -0400 (EDT)

apteryx pushed a commit to branch master
in repository guix.

commit 64a03377241bf19410ab468989575c4c3da85378
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Wed Mar 1 22:07:38 2023 -0500

    gnu: Add ruby-rubocop-capybara.
    
    * gnu/packages/ruby.scm (ruby-rubocop-capybara): New variable.
---
 gnu/packages/ruby.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index bad0301ea3..b588b434dc 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -1557,6 +1557,31 @@ code style checking of Capybara test files (RSpec, 
Cucumber, Minitest).")
     (home-page "https://github.com/rubocop/rubocop-capybara";)
     (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
   (package
     (name "ruby-rubocop-rake")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]