guix-devel
[Top][All Lists]
Advanced

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

[PATCHES] Add ruby-pry


From: David Thompson
Subject: [PATCHES] Add ruby-pry
Date: Sat, 29 Aug 2015 22:58:36 -0400
User-agent: Notmuch/0.20.2 (http://notmuchmail.org) Emacs/24.5.1 (x86_64-unknown-linux-gnu)

This small patch set adds the Pry, a powerful Ruby REPL (but not as
powerful as Geiser ;), and the missing prerequisites.

>From 2d1757d4b7b940fb0f2da007e6c616370b2b09ad Mon Sep 17 00:00:00 2001
From: David Thompson <address@hidden>
Date: Sat, 29 Aug 2015 22:53:34 -0400
Subject: [PATCH 1/3] gnu: Add ruby-method-source.

* gnu/packages/ruby.scm (ruby-method-source): New variable.
---
 gnu/packages/ruby.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 23b3178..a51972c 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -734,3 +734,25 @@ both CSS3 selector and XPath 1.0 support.")
 with PostgreSQL 8.4 and later.")
     (home-page "https://bitbucket.org/ged/ruby-pg";)
     (license license:ruby)))
+
+(define-public ruby-method-source
+  (package
+    (name "ruby-method-source")
+    (version "0.8.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (rubygems-uri "method_source" version))
+       (sha256
+        (base32
+         "1g5i4w0dmlhzd18dijlqw5gk27bv6dj2kziqzrzb7mpgxgsd1sf2"))))
+    (build-system ruby-build-system)
+    (native-inputs
+     `(("ruby-bacon" ,ruby-bacon)
+       ("git" ,git)))
+    (synopsis "Retrieve the sourcecode for Ruby methods")
+    (description "Method_source retrieves the source codefor Ruby methods.
+Additionally, it can extract source code from Proc and Lambda objects or just
+extract comments.")
+    (home-page "http://banisterfiend.wordpress.com";)
+    (license license:expat)))
-- 
2.5.0

>From 1f418e114ed2436caf35dc2aaaea9fa316a3075c Mon Sep 17 00:00:00 2001
From: David Thompson <address@hidden>
Date: Sat, 29 Aug 2015 22:54:05 -0400
Subject: [PATCH 2/3] gnu: Add ruby-coderay.

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

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index a51972c..ad31975 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -756,3 +756,23 @@ Additionally, it can extract source code from Proc and 
Lambda objects or just
 extract comments.")
     (home-page "http://banisterfiend.wordpress.com";)
     (license license:expat)))
+
+(define-public ruby-coderay
+  (package
+    (name "ruby-coderay")
+    (version "1.1.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (rubygems-uri "coderay" version))
+       (sha256
+        (base32
+         "059wkzlap2jlkhg460pkwc1ay4v4clsmg1bp4vfzjzkgwdckr52s"))))
+    (build-system ruby-build-system)
+    (arguments
+     '(#:tests? #f)) ; missing test files
+    (synopsis "Ruby syntax highlighting library")
+    (description "Coderay is a Ruby library that provides syntax highlighting
+for select languages.")
+    (home-page "http://coderay.rubychan.de";)
+    (license license:expat)))
-- 
2.5.0

>From 3d5c91be48d77e8de83bba225fd5af29b6cf4158 Mon Sep 17 00:00:00 2001
From: David Thompson <address@hidden>
Date: Sat, 29 Aug 2015 22:54:24 -0400
Subject: [PATCH 3/3] gnu: Add ruby-pry.

* gnu/packages/ruby.scm (ruby-pry): 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 ad31975..23e19f2 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -776,3 +776,28 @@ extract comments.")
 for select languages.")
     (home-page "http://coderay.rubychan.de";)
     (license license:expat)))
+
+(define-public ruby-pry
+  (package
+    (name "ruby-pry")
+    (version "0.10.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (rubygems-uri "pry" version))
+       (sha256
+        (base32
+         "1j0r5fm0wvdwzbh6d6apnp7c0n150hpm9zxpm5xvcgfqr36jaj8z"))))
+    (build-system ruby-build-system)
+    (arguments
+     '(#:tests? #f)) ; no tests
+    (propagated-inputs
+     `(("ruby-coderay" ,ruby-coderay)
+       ("ruby-method-source" ,ruby-method-source)
+       ("ruby-slop" ,ruby-slop)))
+    (synopsis "Ruby REPL")
+    (description "Pry is an IRB alternative and runtime developer console for
+Ruby.  It features syntax highlighting, a plugin architecture, runtime
+invocation, and source and documentation browsing.")
+    (home-page "http://pryrepl.org";)
+    (license license:expat)))
-- 
2.5.0

-- 
David Thompson
GPG Key: 0FF1D807

reply via email to

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