all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [PATCHES] Add ruby-pry
@ 2015-08-30  2:58 David Thompson
  2015-08-30  4:12 ` Ricardo Wurmus
  2015-09-06 13:12 ` Thompson, David
  0 siblings, 2 replies; 4+ messages in thread
From: David Thompson @ 2015-08-30  2:58 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 123 bytes --]

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


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-ruby-method-source.patch --]
[-- Type: text/x-patch, Size: 1446 bytes --]

From 2d1757d4b7b940fb0f2da007e6c616370b2b09ad Mon Sep 17 00:00:00 2001
From: David Thompson <dthompson2@worcester.edu>
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


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: 0002-gnu-Add-ruby-coderay.patch --]
[-- Type: text/x-patch, Size: 1330 bytes --]

From 1f418e114ed2436caf35dc2aaaea9fa316a3075c Mon Sep 17 00:00:00 2001
From: David Thompson <dthompson2@worcester.edu>
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


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #4: 0003-gnu-Add-ruby-pry.patch --]
[-- Type: text/x-patch, Size: 1463 bytes --]

From 3d5c91be48d77e8de83bba225fd5af29b6cf4158 Mon Sep 17 00:00:00 2001
From: David Thompson <dthompson2@worcester.edu>
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


[-- Attachment #5: Type: text/plain, Size: 38 bytes --]


-- 
David Thompson
GPG Key: 0FF1D807

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCHES] Add ruby-pry
  2015-08-30  2:58 [PATCHES] Add ruby-pry David Thompson
@ 2015-08-30  4:12 ` Ricardo Wurmus
  2015-08-30 14:34   ` Thompson, David
  2015-09-06 13:12 ` Thompson, David
  1 sibling, 1 reply; 4+ messages in thread
From: Ricardo Wurmus @ 2015-08-30  4:12 UTC (permalink / raw)
  To: David Thompson; +Cc: guix-devel

Hi Dave,

> +(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")

Replace “sourcecode” with “source code”?

> +    (description "Method_source retrieves the source codefor Ruby methods.
> +Additionally, it can extract source code from Proc and Lambda objects or just
> +extract comments.")

“codefor” —> “code for”

> +    (home-page "http://banisterfiend.wordpress.com")

This seems to be just a blog, not a project page.  Is there a better
page to use for the ‘home-page’ field?

~~ Ricardo

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCHES] Add ruby-pry
  2015-08-30  4:12 ` Ricardo Wurmus
@ 2015-08-30 14:34   ` Thompson, David
  0 siblings, 0 replies; 4+ messages in thread
From: Thompson, David @ 2015-08-30 14:34 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: guix-devel

On Sun, Aug 30, 2015 at 12:12 AM, Ricardo Wurmus
<ricardo.wurmus@mdc-berlin.de> wrote:
> Hi Dave,
>
>> +(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")
>
> Replace “sourcecode” with “source code”?

Fixed.

>> +    (description "Method_source retrieves the source codefor Ruby methods.
>> +Additionally, it can extract source code from Proc and Lambda objects or just
>> +extract comments.")
>
> “codefor” —> “code for”

Fixed.

>> +    (home-page "http://banisterfiend.wordpress.com")
>
> This seems to be just a blog, not a project page.  Is there a better
> page to use for the ‘home-page’ field?

This is what was in the gem's metadata, but I'll link to the GitHub
page instead.

Thanks!

- Dave

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCHES] Add ruby-pry
  2015-08-30  2:58 [PATCHES] Add ruby-pry David Thompson
  2015-08-30  4:12 ` Ricardo Wurmus
@ 2015-09-06 13:12 ` Thompson, David
  1 sibling, 0 replies; 4+ messages in thread
From: Thompson, David @ 2015-09-06 13:12 UTC (permalink / raw)
  To: guix-devel

On Sat, Aug 29, 2015 at 10:58 PM, David Thompson
<dthompson2@worcester.edu> wrote:
> This small patch set adds the Pry, a powerful Ruby REPL (but not as
> powerful as Geiser ;), and the missing prerequisites.

I pushed these + an additional small patch that uses ruby-slop 3.x
instead of 4.x because Pry is incompatible with 4.x.

- Dave

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-09-06 13:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-30  2:58 [PATCHES] Add ruby-pry David Thompson
2015-08-30  4:12 ` Ricardo Wurmus
2015-08-30 14:34   ` Thompson, David
2015-09-06 13:12 ` Thompson, David

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.