guix-patches
[Top][All Lists]
Advanced

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

[bug#50537] [PATCH v2 27/27] gnu: Add ruby-pry-rescue.


From: Stephen Paul Weber
Subject: [bug#50537] [PATCH v2 27/27] gnu: Add ruby-pry-rescue.
Date: Wed, 27 Apr 2022 13:46:33 -0500

* gnu/packages/ruby.scm (ruby-pry-rescue): New variable.
---
 gnu/packages/ruby.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 6afc07875b..5a5665f027 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -12931,3 +12931,38 @@ exceptions as they are raised.")
     (home-page
       "https://github.com/ConradIrwin/interception";)
     (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"))
+             #t)))))
+    (propagated-inputs
+      `(("ruby-interception" ,ruby-interception)
+        ("ruby-pry" ,ruby-pry)))
+    (native-inputs
+     `(("ruby-rspec" ,ruby-rspec)
+       ("ruby-pry-stack-explorer" ,ruby-pry-stack-explorer)))
+    (synopsis
+      "Allows you to wrap code to open a pry session at any unhandled 
exceptions")
+    (description
+      "Allows you to wrap code in Pry::rescue{ } to open a pry session at any
+unhandled exceptions")
+    (home-page
+      "https://github.com/ConradIrwin/pry-rescue";)
+    (license license:expat)))
-- 
2.30.2





reply via email to

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