aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Paul Weber <singpolyma@singpolyma.net>2022-06-30 06:50:16 -0400
committerRaghav Gururajan <rg@raghavgururajan.name>2022-06-30 06:51:34 -0400
commitd769b7e124d76fe1f642671dbfd42fd0e6b3aefd (patch)
tree2625fabb2284417719e8c9665df94c91e9992189
parent7cd6ac428af72ad93384ee34cbe6facf672fecb4 (diff)
downloadguix-d769b7e124d76fe1f642671dbfd42fd0e6b3aefd.tar.gz
guix-d769b7e124d76fe1f642671dbfd42fd0e6b3aefd.zip
gnu: Add ruby-pry-rescue.
* gnu/packages/ruby.scm (ruby-pry-rescue): New variable. Signed-off-by: Raghav Gururajan <rg@raghavgururajan.name>
-rw-r--r--gnu/packages/ruby.scm31
1 files changed, 31 insertions, 0 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 3bf4cf1edc..7c55357e10 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -12845,3 +12845,34 @@ HTTPS server, a proxy server, and a virtual-host server.")
(description "Interception provides a cross-platform ability to intercept all
exceptions as they are raised.")
(license license:expat)))
+
+(define-public ruby-pry-rescue
+ (package
+ (name "ruby-pry-rescue")
+ (version "1.5.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (rubygems-uri "pry-rescue" version))
+ (sha256
+ (base32 "1wn72y8y3d3g0ng350ld92nyjln012432q2z2iy9lhwzjc4dwi65"))))
+ (build-system ruby-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'nuke-bad-test
+ (lambda _
+ (substitute* "spec/source_location_spec.rb"
+ (("time = Time.now") "skip")))))))
+ (native-inputs
+ (list ruby-rspec
+ ruby-pry-stack-explorer))
+ (propagated-inputs
+ (list ruby-interception
+ ruby-pry))
+ (home-page
+ "https://github.com/ConradIrwin/pry-rescue")
+ (synopsis "Start Pry session for rescue")
+ (description "Pry-Rescue allows you to wrap code, to open a pry session at
+any unhandled exceptions.")
+ (license license:expat)))