[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
125/229: gnu: Add ruby-rspec-debug.
From: |
guix-commits |
Subject: |
125/229: gnu: Add ruby-rspec-debug. |
Date: |
Tue, 28 Mar 2023 22:29:12 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit 62247577bd301b066ccbce11d9a570397841e1bd
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Mon Jan 9 14:39:25 2023 -0500
gnu: Add ruby-rspec-debug.
* gnu/packages/ruby.scm (ruby-rspec-debug): New variable.
---
gnu/packages/ruby.scm | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 6141a69429..c6cabf313a 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -993,6 +993,37 @@ expectations and mocks frameworks.")
(propagated-inputs
(list ruby-rspec-core-2 ruby-rspec-mocks-2 ruby-rspec-expectations-2))))
+(define-public ruby-rspec-debug
+ (package
+ (name "ruby-rspec-debug")
+ (version "0.2.0")
+ (source (origin
+ (method git-fetch) ;for tests
+ (uri (git-reference
+ (url "https://github.com/ko1/rspec-debug")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "125p1zxjznkk765nyqvkksw8x1nbm7xk4sjc1wza2fyp5hvyiddn"))))
+ (build-system ruby-build-system)
+ (arguments
+ (list #:test-target "spec"
+ #:phases #~(modify-phases %standard-phases
+ (add-after 'extract-gemspec 'relax-dependencies
+ (lambda _
+ (substitute* "Gemfile"
+ (("~>") ">=")))))))
+ (native-inputs (list ruby-rspec))
+ (propagated-inputs (list ruby-debug))
+ (synopsis "Invoke Ruby debugger when spec fails")
+ (description "This package can be used to have the execution stopped for
+inspection in the Ruby debugger upon encountering a failure. To use it, set
+the @env{RSPEC_DEBUG} environment variable to @samp{true} then invoke the
+@command{rspec} command as usual.")
+ (home-page "https://github.com/ko1/rspec-debug")
+ (license license:expat)))
+
;; Bundler is yet another source of circular dependencies, so we must disable
;; its test suite as well.
(define-public bundler
- 89/229: gnu: Add ruby-rake-compiler-dock., (continued)
- 89/229: gnu: Add ruby-rake-compiler-dock., guix-commits, 2023/03/28
- 91/229: gnu: ruby-concurrent: Replace with ruby-concurrent-ruby., guix-commits, 2023/03/28
- 92/229: gnu: Add ruby-concurrent-ruby-ext., guix-commits, 2023/03/28
- 95/229: gnu: Add ruby-rdiscount., guix-commits, 2023/03/28
- 98/229: gnu: ruby-faraday: Update to 2.7.4 and enable test suite., guix-commits, 2023/03/28
- 100/229: gnu: ruby-faraday: Propagate ruby-faraday-net-http., guix-commits, 2023/03/28
- 104/229: gnu: ruby-byebug: Do not depend on ruby-chandler., guix-commits, 2023/03/28
- 106/229: gnu: Add ruby-multipart-parser., guix-commits, 2023/03/28
- 110/229: gnu: ruby-faraday-middleware: Add a deprecation comment and re-indent., guix-commits, 2023/03/28
- 121/229: gnu: Add ruby-io-console., guix-commits, 2023/03/28
- 125/229: gnu: Add ruby-rspec-debug.,
guix-commits <=
- 128/229: gnu: Add ruby-bake-test-external., guix-commits, 2023/03/28
- 129/229: gnu: Add ruby-sus., guix-commits, 2023/03/28
- 130/229: gnu: Add ruby-timers., guix-commits, 2023/03/28
- 137/229: gnu: ruby-actionpack: Update to 7.0.4.3 and enable test suite., guix-commits, 2023/03/28
- 138/229: gnu: Add ruby-event-emitter., guix-commits, 2023/03/28
- 140/229: gnu: Add ruby-websocket-eventmachine-base., guix-commits, 2023/03/28
- 143/229: gnu: ruby-actioncable: Update to 7.0.4.3 and enable tests., guix-commits, 2023/03/28
- 146/229: gnu: ruby-marcel: Relocate to (gnu packages rails)., guix-commits, 2023/03/28
- 147/229: gnu: ruby-marcel: Enable tests., guix-commits, 2023/03/28
- 150/229: gnu: Add ruby-timeout., guix-commits, 2023/03/28