guix-commits
[Top][All Lists]
Advanced

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

17/38: gnu: Add ruby-binding-of-caller.


From: guix-commits
Subject: 17/38: gnu: Add ruby-binding-of-caller.
Date: Wed, 8 Jul 2020 23:42:30 -0400 (EDT)

apteryx pushed a commit to branch master
in repository guix.

commit 4d31fe6b6c5c3758ae93f3d1c599072f5df977c4
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Wed Jul 1 00:07:17 2020 -0400

    gnu: Add ruby-binding-of-caller.
    
    * gnu/packages/ruby.scm (ruby-binding-of-caller): New variable.
---
 gnu/packages/ruby.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index eeb3513..8fb4115 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -6273,6 +6273,30 @@ navigation capabilities to @code{pry}, using 
@code{byebug}.")
     (home-page "https://github.com/deivid-rodriguez/pry-byebug";)
     (license license:expat)))
 
+(define-public ruby-binding-of-caller
+  (package
+    (name "ruby-binding-of-caller")
+    (version "0.8.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (rubygems-uri "binding_of_caller" version))
+       (sha256
+        (base32
+         "05syqlks7463zsy1jdfbbdravdhj9hpj5pv2m74blqpv8bq4vv5g"))))
+    (build-system ruby-build-system)
+    ;; Attempting to run the test suite fails with a rake deprecation error
+    ;; (see: https://github.com/banister/binding_of_caller/issues/76).
+    (arguments '(#:tests? #f))
+    (propagated-inputs
+     `(("ruby-debug-inspector" ,ruby-debug-inspector)))
+    (synopsis "Retrieve the binding of a method's caller")
+    (description "The @code{binding_of_caller} module provides the
+@code{Binding#of_caller} method.  It allows accessing bindings from upper
+frames in the call stack and can evaluate code in that context.")
+    (home-page "https://github.com/banister/binding_of_caller";)
+    (license license:expat)))
+
 (define-public ruby-gherkin
   (package
     (name "ruby-gherkin")



reply via email to

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