* [PATCH] 11 little Ruby gems.
@ 2015-09-16 9:12 Ricardo Wurmus
2015-09-19 12:54 ` Thompson, David
0 siblings, 1 reply; 11+ messages in thread
From: Ricardo Wurmus @ 2015-09-16 9:12 UTC (permalink / raw
To: guix-devel
[-- Attachment #1: Type: text/plain, Size: 510 bytes --]
Hi Guix,
attached are a couple of patches that resulted from a recent attempt to
traverse the dependency graph for a dependency of some tool I wanted to
package.
I’m not happy with ‘0007-gnu-Add-ruby-rb-fsevent.patch’ because it is to
be used on a Mac OSX, but unfortunately this is a required input for
a more general file system library that is in my pipeline.
I’m also not happy with disabling tests for ‘ruby-yard’, but I didn’t
find a way to make them pass.
~~ Ricardo
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-ruby-lumberjack.patch --]
[-- Type: text/x-patch, Size: 1517 bytes --]
From 9a148559d4d5475842bcee057b547adf16e55603 Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
Date: Wed, 16 Sep 2015 10:58:49 +0200
Subject: [PATCH 01/11] gnu: Add ruby-lumberjack.
* gnu/packages/ruby.scm (ruby-lumberjack): New variable.
---
gnu/packages/ruby.scm | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 7dc46b6..3f12e54 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -505,6 +505,27 @@ interfaces.")
(home-page "http://whatisthor.com/")
(license license:expat)))
+(define-public ruby-lumberjack
+ (package
+ (name "ruby-lumberjack")
+ (version "1.0.9")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "lumberjack" version))
+ (sha256
+ (base32
+ "162frm2bwy58pj8ccsdqa4a6i0csrhb9h5l3inhkl1ivgfc8814l"))))
+ (build-system ruby-build-system)
+ (native-inputs
+ `(("ruby-rspec" ,ruby-rspec)))
+ (synopsis "Logging utility library for Ruby")
+ (description "Lumberjack is a simple logging utility that can be a drop in
+replacement for Logger or ActiveSupport::BufferedLogger. It provides support
+for automatically rolling log files even with multiple processes writing the
+same log file.")
+ (home-page "http://github.com/bdurand/lumberjack")
+ (license license:expat)))
+
(define-public ruby-useragent
(package
(name "ruby-useragent")
--
2.1.0
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: 0002-gnu-Add-ruby-nenv.patch --]
[-- Type: text/x-patch, Size: 1450 bytes --]
From 6674440f1a05898e663816234b144bd683771ffc Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
Date: Wed, 16 Sep 2015 10:59:21 +0200
Subject: [PATCH 02/11] gnu: Add ruby-nenv.
* gnu/packages/ruby.scm (ruby-nenv): 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 3f12e54..343f597 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -526,6 +526,28 @@ same log file.")
(home-page "http://github.com/bdurand/lumberjack")
(license license:expat)))
+(define-public ruby-nenv
+ (package
+ (name "ruby-nenv")
+ (version "0.2.0")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "nenv" version))
+ (sha256
+ (base32
+ "152wxwri0afwgnxdf93gi6wjl9rr5z7vwp8ln0gpa3rddbfc27s6"))))
+ (build-system ruby-build-system)
+ (arguments
+ `(#:tests? #f)) ; no tests included
+ (native-inputs
+ `(("ruby-rspec" ,ruby-rspec)
+ ("bundler" ,bundler)))
+ (synopsis "Ruby interface for modifying the environment")
+ (description "Nenv provides a convenient wrapper for Ruby's ENV to modify
+and inspect the environment.")
+ (home-page "https://github.com/e2/nenv")
+ (license license:expat)))
+
(define-public ruby-useragent
(package
(name "ruby-useragent")
--
2.1.0
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #4: 0003-gnu-Add-ruby-shellany.patch --]
[-- Type: text/x-patch, Size: 1762 bytes --]
From 7cc11acf45b10cd6139cfd0611c925ecb621ab2a Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
Date: Wed, 16 Sep 2015 11:00:45 +0200
Subject: [PATCH 03/11] gnu: Add ruby-shellany.
* gnu/packages/ruby.scm (ruby-shellany): New variable.
---
gnu/packages/ruby.scm | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 343f597..81f5dc7 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -548,6 +548,36 @@ and inspect the environment.")
(home-page "https://github.com/e2/nenv")
(license license:expat)))
+(define-public ruby-shellany
+ (package
+ (name "ruby-shellany")
+ (version "0.0.1")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "shellany" version))
+ (sha256
+ (base32
+ "1ryyzrj1kxmnpdzhlv4ys3dnl2r5r3d2rs2jwzbnd1v96a8pl4hf"))))
+ (build-system ruby-build-system)
+ (arguments
+ `(#:test-target "default"
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'fix-version-test
+ (lambda _
+ (substitute* "spec/shellany_spec.rb"
+ (("^RSpec") "require \"shellany\"\nRSpec"))
+ #t)))))
+ (native-inputs
+ `(("ruby-rspec" ,ruby-rspec)
+ ("ruby-nenv" ,ruby-nenv)
+ ("bundler" ,bundler)))
+ (synopsis "Capture command output")
+ (description "Shellany is a Ruby library providing functions to capture
+the output produced by running shell commands.")
+ (home-page "https://rubygems.org/gems/shellany")
+ (license license:expat)))
+
(define-public ruby-useragent
(package
(name "ruby-useragent")
--
2.1.0
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #5: 0004-gnu-Add-ruby-notiffany.patch --]
[-- Type: text/x-patch, Size: 1618 bytes --]
From 2de2e983b4a3cd32eeec5bad66b97f032f4a34fd Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
Date: Wed, 16 Sep 2015 11:01:34 +0200
Subject: [PATCH 04/11] gnu: Add ruby-notiffany.
* gnu/packages/ruby.scm (ruby-notiffany): 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 81f5dc7..b476f6f 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -578,6 +578,30 @@ the output produced by running shell commands.")
(home-page "https://rubygems.org/gems/shellany")
(license license:expat)))
+(define-public ruby-notiffany
+ (package
+ (name "ruby-notiffany")
+ (version "0.0.7")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "notiffany" version))
+ (sha256
+ (base32
+ "1v5x1w59qq85r6dpv3y9ga34dfd7hka1qxyiykaw7gm0i6kggbhi"))))
+ (build-system ruby-build-system)
+ ;; Tests are not included in the gem.
+ (arguments `(#:tests? #f))
+ (propagated-inputs
+ `(("ruby-shellany" ,ruby-shellany)
+ ("ruby-nenv" ,ruby-nenv)))
+ (native-inputs
+ `(("bundler" ,bundler)))
+ (synopsis "Wrapper libray for notification libraries")
+ (description "Notiffany is a Ruby wrapper libray for most popular
+notification libraries such as Growl, Libnotify, and Notifu.")
+ (home-page "https://github.com/guard/notiffany")
+ (license license:expat)))
+
(define-public ruby-useragent
(package
(name "ruby-useragent")
--
2.1.0
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #6: 0005-gnu-Add-ruby-formatador.patch --]
[-- Type: text/x-patch, Size: 1483 bytes --]
From b34664fe0cf6bba4f3c7229f0805c291bf51fc4e Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
Date: Wed, 16 Sep 2015 11:02:32 +0200
Subject: [PATCH 05/11] gnu: Add ruby-formatador.
* gnu/packages/ruby.scm (ruby-formatador): New variable.
---
gnu/packages/ruby.scm | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index b476f6f..c6d0cf8 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -602,6 +602,25 @@ notification libraries such as Growl, Libnotify, and Notifu.")
(home-page "https://github.com/guard/notiffany")
(license license:expat)))
+(define-public ruby-formatador
+ (package
+ (name "ruby-formatador")
+ (version "0.2.5")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "formatador" version))
+ (sha256
+ (base32
+ "1gc26phrwlmlqrmz4bagq1wd5b7g64avpx0ghxr9xdxcvmlii0l0"))))
+ (build-system ruby-build-system)
+ ;; Tests require ruby-shindo, which requires ruby-formatador at runtime.
+ (arguments `(#:tests? #f))
+ (synopsis "Ruby library to format text on stdout")
+ (description "Formatador is a Ruby library to format text printed to the
+standard output stream.")
+ (home-page "http://github.com/geemus/formatador")
+ (license license:expat)))
+
(define-public ruby-useragent
(package
(name "ruby-useragent")
--
2.1.0
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #7: 0006-gnu-Add-ruby-shindo.patch --]
[-- Type: text/x-patch, Size: 1778 bytes --]
From f5f17ba6ce7c1894ef72e933e113f4260168ad7a Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
Date: Wed, 16 Sep 2015 11:03:10 +0200
Subject: [PATCH 06/11] gnu: Add ruby-shindo.
* gnu/packages/ruby.scm (ruby-shindo): New variable.
---
gnu/packages/ruby.scm | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index c6d0cf8..f2a1d65 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -621,6 +621,35 @@ standard output stream.")
(home-page "http://github.com/geemus/formatador")
(license license:expat)))
+(define-public ruby-shindo
+ (package
+ (name "ruby-shindo")
+ (version "0.3.8")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "shindo" version))
+ (sha256
+ (base32
+ "0s8v1jbz8i0jh92f2fgxb3p51l1azrpkc8nv4mhrqy4vndpvd7wq"))))
+ (build-system ruby-build-system)
+ (arguments
+ `(#:test-target "shindo_tests"
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'fix-tests
+ (lambda _
+ (substitute* "Rakefile"
+ (("system \"shindo") "system \"./bin/shindo")
+ ;; This test doesn't work, so we disable it.
+ (("fail \"The build_error test should fail") "#"))
+ #t)))))
+ (propagated-inputs
+ `(("ruby-formatador" ,ruby-formatador)))
+ (synopsis "Simple depth first Ruby testing")
+ (description "Shindo is a simple depth first testing library for Ruby.")
+ (home-page "https://github.com/geemus/shindo")
+ (license license:expat)))
+
(define-public ruby-useragent
(package
(name "ruby-useragent")
--
2.1.0
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #8: 0007-gnu-Add-ruby-rb-fsevent.patch --]
[-- Type: text/x-patch, Size: 1482 bytes --]
From 5d6ef488d342510b4d86300e4261b03ba9b1af04 Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
Date: Wed, 16 Sep 2015 11:03:47 +0200
Subject: [PATCH 07/11] gnu: Add ruby-rb-fsevent.
* gnu/packages/ruby.scm (ruby-rb-fsevent): 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 f2a1d65..9c8417a 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -650,6 +650,26 @@ standard output stream.")
(home-page "https://github.com/geemus/shindo")
(license license:expat)))
+(define-public ruby-rb-fsevent
+ (package
+ (name "ruby-rb-fsevent")
+ (version "0.9.6")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "rb-fsevent" version))
+ (sha256
+ (base32
+ "1hq57by28iv0ijz8pk9ynih0xdg7vnl1010xjcijfklrcv89a1j2"))))
+ (build-system ruby-build-system)
+ ;; Tests need "guard-rspec", which needs "guard". However, "guard" needs
+ ;; "listen", which needs "rb-fsevent" at runtime.
+ (arguments `(#:tests? #f))
+ (synopsis "FSEvents API with signals catching")
+ (description "This library provides Ruby bindings for the Mac OSX FSEvents
+API.")
+ (home-page "https://rubygems.org/gems/rb-fsevent")
+ (license license:expat)))
+
(define-public ruby-useragent
(package
(name "ruby-useragent")
--
2.1.0
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #9: 0008-gnu-Add-ruby-yard.patch --]
[-- Type: text/x-patch, Size: 1991 bytes --]
From 991724027e20dfdf34370414830995c2dddb838b Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
Date: Wed, 16 Sep 2015 11:04:40 +0200
Subject: [PATCH 08/11] gnu: Add ruby-yard.
* gnu/packages/ruby.scm (ruby-yard): New variable.
---
gnu/packages/ruby.scm | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 9c8417a..f6ab4c7 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -670,6 +670,37 @@ API.")
(home-page "https://rubygems.org/gems/rb-fsevent")
(license license:expat)))
+(define-public ruby-yard
+ (package
+ (name "ruby-yard")
+ (version "0.8.7.6")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "yard" version))
+ (sha256
+ (base32
+ "1dj6ibc0qqvmb5a5r5kk0vhr04mnrz9b26gnfrs5p8jgp620i89x"))))
+ (build-system ruby-build-system)
+ (arguments
+ `(;; The tests are a mess. Many fail because "mock" and "stub" are
+ ;; undefined. This is probably because of a missing "require"
+ ;; statement. But there are also many other tests that fail for other
+ ;; reasons. Does YARD need to be tested with a different version of
+ ;; rspec?
+ #:tests? #f
+ #:test-target "specs"))
+ (native-inputs
+ `(("ruby-rspec" ,ruby-rspec)
+ ("ruby-rspec-mocks" ,ruby-rspec-mocks)))
+ (synopsis "Documentation generation tool for Ruby")
+ (description "YARD is a documentation generation tool for the Ruby
+programming language. It enables the user to generate consistent, usable
+documentation that can be exported to a number of formats very easily, and
+also supports extending for custom Ruby constructs such as custom class level
+definitions.")
+ (home-page "http://yardoc.org/")
+ (license license:expat)))
+
(define-public ruby-useragent
(package
(name "ruby-useragent")
--
2.1.0
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #10: 0009-gnu-Add-ruby-rubygems-tasks.patch --]
[-- Type: text/x-patch, Size: 1498 bytes --]
From 4eebe583bf38530f7d6d3b528896d2d22f8b83e8 Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
Date: Wed, 16 Sep 2015 11:05:03 +0200
Subject: [PATCH 09/11] gnu: Add ruby-rubygems-tasks.
* gnu/packages/ruby.scm (ruby-rubygems-tasks): 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 f6ab4c7..348479c 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -701,6 +701,28 @@ definitions.")
(home-page "http://yardoc.org/")
(license license:expat)))
+(define-public ruby-rubygems-tasks
+ (package
+ (name "ruby-rubygems-tasks")
+ (version "0.2.4")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "rubygems-tasks" version))
+ (sha256
+ (base32
+ "16cp45qlbcglnqdm4f1vj3diywdz4v024saqpgrz6palf0wmgz2j"))))
+ (build-system ruby-build-system)
+ ;; Tests need Internet access.
+ (arguments `(#:tests? #f))
+ (native-inputs
+ `(("ruby-rspec" ,ruby-rspec)
+ ("ruby-yard" ,ruby-yard)))
+ (synopsis "Rake tasks for managing and releasing Ruby Gems")
+ (description "Rubygems-task provides Rake tasks for managing and releasing
+Ruby Gems.")
+ (home-page "https://github.com/postmodern/rubygems-tasks")
+ (license license:expat)))
+
(define-public ruby-useragent
(package
(name "ruby-useragent")
--
2.1.0
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #11: 0010-gnu-Add-ruby-ffi.patch --]
[-- Type: text/x-patch, Size: 1784 bytes --]
From a692ba88185a7ef72c5403661292244ce4a5bcbf Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
Date: Wed, 16 Sep 2015 11:05:50 +0200
Subject: [PATCH 10/11] gnu: Add ruby-ffi.
* gnu/packages/ruby.scm (ruby-ffi): New variable.
---
gnu/packages/ruby.scm | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 348479c..a5b39cd 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -723,6 +723,34 @@ Ruby Gems.")
(home-page "https://github.com/postmodern/rubygems-tasks")
(license license:expat)))
+(define-public ruby-ffi
+ (package
+ (name "ruby-ffi")
+ (version "1.9.10")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "ffi" version))
+ (sha256
+ (base32
+ "1m5mprppw0xcrv2mkim5zsk70v089ajzqiq5hpyb0xg96fcyzyxj"))))
+ (build-system ruby-build-system)
+ ;; FIXME: Before running tests the build system attempts to build libffi
+ ;; from sources.
+ (arguments `(#:tests? #f))
+ (native-inputs
+ `(("ruby-rake-compiler" ,ruby-rake-compiler)
+ ("ruby-rspec" ,ruby-rspec)
+ ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
+ (inputs
+ `(("libffi" ,libffi)))
+ (synopsis "Ruby foreign function interface library")
+ (description "Ruby-FFI is a Ruby extension for programmatically loading
+dynamic libraries, binding functions within them, and calling those functions
+from Ruby code. Moreover, a Ruby-FFI extension works without changes on Ruby
+and JRuby.")
+ (home-page "http://wiki.github.com/ffi/ffi")
+ (license license:bsd-3)))
+
(define-public ruby-useragent
(package
(name "ruby-useragent")
--
2.1.0
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #12: 0011-gnu-Add-ruby-simplecov-html.patch --]
[-- Type: text/x-patch, Size: 1452 bytes --]
From 59f184497b8d9db6e626b24333a26b2aa0507e36 Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
Date: Wed, 16 Sep 2015 11:06:25 +0200
Subject: [PATCH 11/11] gnu: Add ruby-simplecov-html.
* gnu/packages/ruby.scm (ruby-simplecov-html): New variable.
---
gnu/packages/ruby.scm | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index a5b39cd..343dcb9 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -751,6 +751,25 @@ and JRuby.")
(home-page "http://wiki.github.com/ffi/ffi")
(license license:bsd-3)))
+(define-public ruby-simplecov-html
+ (package
+ (name "ruby-simplecov-html")
+ (version "0.10.0")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "simplecov-html" version))
+ (sha256
+ (base32
+ "1m5mprppw0xcrv2mkim5zsk70v089ajzqiq5hpyb0xg96fcyzyxj"))))
+ (build-system ruby-build-system)
+ (native-inputs
+ `(("bundler" ,bundler)))
+ (synopsis "Default HTML formatter for SimpleCov code coverage tool")
+ (description "This package provides the default HTML formatter for
+the SimpleCov code coverage tool for Ruby version 1.9 and above.")
+ (home-page "https://github.com/colszowka/simplecov-html")
+ (license license:expat)))
+
(define-public ruby-useragent
(package
(name "ruby-useragent")
--
2.1.0
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH] 11 little Ruby gems.
2015-09-16 9:12 [PATCH] 11 little Ruby gems Ricardo Wurmus
@ 2015-09-19 12:54 ` Thompson, David
2015-09-19 20:15 ` Ricardo Wurmus
` (2 more replies)
0 siblings, 3 replies; 11+ messages in thread
From: Thompson, David @ 2015-09-19 12:54 UTC (permalink / raw
To: Ricardo Wurmus; +Cc: guix-devel
Hey Ricardo,
On Wed, Sep 16, 2015 at 5:12 AM, Ricardo Wurmus
<ricardo.wurmus@mdc-berlin.de> wrote:
> Hi Guix,
>
> attached are a couple of patches that resulted from a recent attempt to
> traverse the dependency graph for a dependency of some tool I wanted to
> package.
>
> I’m not happy with ‘0007-gnu-Add-ruby-rb-fsevent.patch’ because it is to
> be used on a Mac OSX, but unfortunately this is a required input for
> a more general file system library that is in my pipeline.
>
> I’m also not happy with disabling tests for ‘ruby-yard’, but I didn’t
> find a way to make them pass.
I pushed the first 6 patches with only a couple of minor
comment/description tweaks. Still need to look into what can be done
about patch 7 and the test suite for yard.
Thanks!
- Dave
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] 11 little Ruby gems.
2015-09-19 12:54 ` Thompson, David
@ 2015-09-19 20:15 ` Ricardo Wurmus
2015-10-06 14:35 ` Ricardo Wurmus
2015-10-30 16:22 ` Ricardo Wurmus
2 siblings, 0 replies; 11+ messages in thread
From: Ricardo Wurmus @ 2015-09-19 20:15 UTC (permalink / raw
To: Thompson, David; +Cc: guix-devel
Hi Dave,
> I pushed the first 6 patches with only a couple of minor
> comment/description tweaks. Still need to look into what can be done
> about patch 7 and the test suite for yard.
Thank you. I’m in no hurry and I’d be much happier if the tests for
yard could be enabled, so it’s totally okay to delay the other patches.
~~ Ricardo
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] 11 little Ruby gems.
2015-09-19 12:54 ` Thompson, David
2015-09-19 20:15 ` Ricardo Wurmus
@ 2015-10-06 14:35 ` Ricardo Wurmus
2015-10-06 14:55 ` Ben Woodcroft
2015-10-30 16:22 ` Ricardo Wurmus
2 siblings, 1 reply; 11+ messages in thread
From: Ricardo Wurmus @ 2015-10-06 14:35 UTC (permalink / raw
To: Thompson, David; +Cc: guix-devel
Thompson, David <dthompson2@worcester.edu> writes:
> Hey Ricardo,
>
> On Wed, Sep 16, 2015 at 5:12 AM, Ricardo Wurmus
> <ricardo.wurmus@mdc-berlin.de> wrote:
>> Hi Guix,
>>
>> attached are a couple of patches that resulted from a recent attempt to
>> traverse the dependency graph for a dependency of some tool I wanted to
>> package.
>>
>> I’m not happy with ‘0007-gnu-Add-ruby-rb-fsevent.patch’ because it is to
>> be used on a Mac OSX, but unfortunately this is a required input for
>> a more general file system library that is in my pipeline.
>>
>> I’m also not happy with disabling tests for ‘ruby-yard’, but I didn’t
>> find a way to make them pass.
>
> I pushed the first 6 patches with only a couple of minor
> comment/description tweaks. Still need to look into what can be done
> about patch 7 and the test suite for yard.
According to [1] the Yard tests can only be run with RSpec version 2.12.
Do you know of any compatibility layer that would allow us to run the
tests with our more recent version of RSpec? I’m not keen on packaging
a different version of RSpec (+ dependencies), to be honest.
~~ Ricardo
[1]: https://github.com/lsegal/yard/issues/687#issuecomment-21759075
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] 11 little Ruby gems.
2015-10-06 14:35 ` Ricardo Wurmus
@ 2015-10-06 14:55 ` Ben Woodcroft
2015-10-06 18:25 ` Thompson, David
0 siblings, 1 reply; 11+ messages in thread
From: Ben Woodcroft @ 2015-10-06 14:55 UTC (permalink / raw
To: Ricardo Wurmus, Thompson, David; +Cc: guix-devel
On 07/10/15 00:35, Ricardo Wurmus wrote:
> Thompson, David <dthompson2@worcester.edu> writes:
>
>> Hey Ricardo,
>>
>> On Wed, Sep 16, 2015 at 5:12 AM, Ricardo Wurmus
>> <ricardo.wurmus@mdc-berlin.de> wrote:
>>> Hi Guix,
>>>
>>> attached are a couple of patches that resulted from a recent attempt to
>>> traverse the dependency graph for a dependency of some tool I wanted to
>>> package.
>>>
>>> I’m not happy with ‘0007-gnu-Add-ruby-rb-fsevent.patch’ because it is to
>>> be used on a Mac OSX, but unfortunately this is a required input for
>>> a more general file system library that is in my pipeline.
>>>
>>> I’m also not happy with disabling tests for ‘ruby-yard’, but I didn’t
>>> find a way to make them pass.
>> I pushed the first 6 patches with only a couple of minor
>> comment/description tweaks. Still need to look into what can be done
>> about patch 7 and the test suite for yard.
> According to [1] the Yard tests can only be run with RSpec version 2.12.
> Do you know of any compatibility layer that would allow us to run the
> tests with our more recent version of RSpec? I’m not keen on packaging
> a different version of RSpec (+ dependencies), to be honest.
>
> ~~ Ricardo
>
> [1]: https://github.com/lsegal/yard/issues/687#issuecomment-21759075
Hi Ricardo,
Stupidly not being aware of this thread I believe I've got ruby-yard
packaged without disabling tests just now, by packaging rspec-2 (and
skipping the 2 remaining failing tests that write to /homeless-shelter).
I think that issue on github might be incorrect (there's no rspec 2.14.3
on rubygems only 2.14.1 which seems to work for me). It actually means 4
new rspec-2 packages in total, there's no dependency issues beyond rspec
I don't think. Would you like me to send patches? My suspicion is that
there might be other packages that rely on rspec-2 out there, but that's
just a hunch more than anything.
ben
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] 11 little Ruby gems.
2015-10-06 14:55 ` Ben Woodcroft
@ 2015-10-06 18:25 ` Thompson, David
2015-10-07 9:08 ` Ben Woodcroft
0 siblings, 1 reply; 11+ messages in thread
From: Thompson, David @ 2015-10-06 18:25 UTC (permalink / raw
To: Ben Woodcroft; +Cc: guix-devel
On Tue, Oct 6, 2015 at 10:55 AM, Ben Woodcroft <b.woodcroft@uq.edu.au> wrote:
>
> Stupidly not being aware of this thread I believe I've got ruby-yard
> packaged without disabling tests just now, by packaging rspec-2 (and
> skipping the 2 remaining failing tests that write to /homeless-shelter). I
> think that issue on github might be incorrect (there's no rspec 2.14.3 on
> rubygems only 2.14.1 which seems to work for me). It actually means 4 new
> rspec-2 packages in total, there's no dependency issues beyond rspec I don't
> think. Would you like me to send patches? My suspicion is that there might
> be other packages that rely on rspec-2 out there, but that's just a hunch
> more than anything.
Since you've already got it packaged, then I think we should do that.
The migration from Rspec 2 -> 3 is nontrivial so I won't be surprised
if we run into other gems that use Rspec 2. Regarding the
/homeless-shelter thing, you should be able to make those tests pass
by creating some directory in the source tree and set HOME to it.
In short, yes, your patches are very welcome. Thanks!
- Dave
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] 11 little Ruby gems.
2015-10-06 18:25 ` Thompson, David
@ 2015-10-07 9:08 ` Ben Woodcroft
2015-10-13 14:08 ` Ricardo Wurmus
0 siblings, 1 reply; 11+ messages in thread
From: Ben Woodcroft @ 2015-10-07 9:08 UTC (permalink / raw
To: Thompson, David; +Cc: guix-devel
[-- Attachment #1: Type: text/plain, Size: 427 bytes --]
On 07/10/15 04:25, Thompson, David wrote:
> In short, yes, your patches are very welcome. Thanks! - Dave
Here ya go then.
Can I ask, would it be helpful to alphabetize the packages in ruby.scm,
at least vaguely? Always adding new packages to the bottom of the file
causes git merge conflicts I would imagine. Of course, it would be even
more helpful if guix import put them in the right spot too, but that
seems harder.
[-- Attachment #2: 0001-gnu-Add-ruby-rspec-core-2.patch --]
[-- Type: text/x-patch, Size: 1050 bytes --]
From 5a9ae660aa19c3ddc1365e17bf30f3263422b698 Mon Sep 17 00:00:00 2001
From: Ben Woodcroft <donttrustben@gmail.com>
Date: Wed, 7 Oct 2015 18:41:03 +1000
Subject: [PATCH 1/5] gnu: Add ruby-rspec-core-2.
* gnu/packages/ruby.scm (ruby-rspec-core-2): New variable.
---
gnu/packages/ruby.scm | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index c906361..9ad3f81 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -258,6 +258,17 @@ groups.")
(home-page "https://github.com/rspec/rspec-core")
(license license:expat)))
+(define-public ruby-rspec-core-2
+ (package (inherit ruby-rspec-core)
+ (version "2.14.8")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "rspec-core" version))
+ (sha256
+ (base32
+ "0psjy5kdlz3ph39br0m01w65i1ikagnqlg39f8p65jh5q7dz8hwc"))))
+ (propagated-inputs `())))
+
(define-public ruby-diff-lcs
(package
(name "ruby-diff-lcs")
--
2.4.3
[-- Attachment #3: 0002-gnu-Add-ruby-rspec-expectations-2.patch --]
[-- Type: text/x-patch, Size: 1163 bytes --]
From ef34aa18531a98fc0bfcab496ae466c8ab70104d Mon Sep 17 00:00:00 2001
From: Ben Woodcroft <donttrustben@gmail.com>
Date: Wed, 7 Oct 2015 18:42:54 +1000
Subject: [PATCH 2/5] gnu: Add ruby-rspec-expectations-2.
* gnu/packages/ruby.scm (ruby-rspec-expectations-2): New variable.
---
gnu/packages/ruby.scm | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 9ad3f81..c8ee6d0 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -312,6 +312,18 @@ outcomes of a code example.")
(home-page "https://github.com/rspec/rspec-expectations")
(license license:expat)))
+(define-public ruby-rspec-expectations-2
+ (package (inherit ruby-rspec-expectations)
+ (version "2.14.5")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "rspec-expectations" version))
+ (sha256
+ (base32
+ "1ni8kw8kjv76jvwjzi4jba00k3qzj9f8wd94vm6inz0jz3gwjqf9"))))
+ (propagated-inputs
+ `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
+
(define-public ruby-rspec-mocks
(package
(name "ruby-rspec-mocks")
--
2.4.3
[-- Attachment #4: 0003-gnu-Add-ruby-rspec-mocks-2.patch --]
[-- Type: text/x-patch, Size: 1115 bytes --]
From c16de1f8961269ca796e897e7c97f2bdc2875d84 Mon Sep 17 00:00:00 2001
From: Ben Woodcroft <donttrustben@gmail.com>
Date: Wed, 7 Oct 2015 18:43:43 +1000
Subject: [PATCH 3/5] gnu: Add ruby-rspec-mocks-2.
* gnu/packages/ruby.scm (ruby-rspec-mocks-2): New variable.
---
gnu/packages/ruby.scm | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index c8ee6d0..7324f85 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -346,6 +346,18 @@ support for stubbing and mocking.")
(home-page "https://github.com/rspec/rspec-mocks")
(license license:expat)))
+(define-public ruby-rspec-mocks-2
+ (package (inherit ruby-rspec-mocks)
+ (version "2.14.6")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "rspec-mocks" version))
+ (sha256
+ (base32
+ "1fwsmijd6w6cmqyh4ky2nq89jrpzh56hzmndx9wgkmdgfhfakv30"))))
+ (propagated-inputs
+ `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
+
(define-public ruby-rspec
(package
(name "ruby-rspec")
--
2.4.3
[-- Attachment #5: 0004-gnu-Add-ruby-rspec-2.patch --]
[-- Type: text/x-patch, Size: 1255 bytes --]
From 4de0d42bc3453c5fd1f8aa19b1a69b24b67cf271 Mon Sep 17 00:00:00 2001
From: Ben Woodcroft <donttrustben@gmail.com>
Date: Wed, 7 Oct 2015 18:45:04 +1000
Subject: [PATCH 4/5] gnu: Add ruby-rspec-2.
* gnu/packages/ruby.scm (ruby-rspec-2): New variable.
---
gnu/packages/ruby.scm | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 7324f85..0d74cf4 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -382,6 +382,20 @@ expectations and mocks frameworks.")
(home-page "http://rspec.info/")
(license license:expat)))
+(define-public ruby-rspec-2
+ (package (inherit ruby-rspec)
+ (version "2.14.1")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "rspec" version))
+ (sha256
+ (base32
+ "134y4wzk1prninb5a0bhxgm30kqfzl8dg06af4js5ylnhv2wd7sg"))))
+ (propagated-inputs
+ `(("ruby-rspec-core" ,ruby-rspec-core-2)
+ ("ruby-rspec-mocks" ,ruby-rspec-mocks-2)
+ ("ruby-rspec-expectations" ,ruby-rspec-expectations-2)))))
+
;; Bundler is yet another source of circular dependencies, so we must disable
;; its test suite as well.
(define-public bundler
--
2.4.3
[-- Attachment #6: 0005-gnu-Add-ruby-yard.patch --]
[-- Type: text/x-patch, Size: 1841 bytes --]
From 31115f17b536f7c02f09347ea6f04275668b8d02 Mon Sep 17 00:00:00 2001
From: Ben Woodcroft <donttrustben@gmail.com>
Date: Wed, 7 Oct 2015 18:57:24 +1000
Subject: [PATCH 5/5] gnu: Add ruby-yard.
* gnu/packages/ruby.scm (ruby-yard): New variable.
---
gnu/packages/ruby.scm | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 0d74cf4..2703c9f 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -1464,3 +1464,34 @@ and trust on your team.")
features such as filtering and fine grained logging.")
(home-page "https://github.com/pjotrp/bioruby-logger-plugin")
(license license:expat)))
+
+(define-public ruby-yard
+ (package
+ (name "ruby-yard")
+ (version "0.8.7.6")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (rubygems-uri "yard" version))
+ (sha256
+ (base32
+ "1dj6ibc0qqvmb5a5r5kk0vhr04mnrz9b26gnfrs5p8jgp620i89x"))))
+ (build-system ruby-build-system)
+ (arguments
+ `(#:test-target "specs"
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'check 'set-HOME
+ ;; $HOME needs to be set to somewhere writeable for tests to run
+ (lambda _ (setenv "HOME" "/tmp") #t)))))
+ (native-inputs
+ `(("ruby-rspec" ,ruby-rspec-2)
+ ("ruby-rack" ,ruby-rack)))
+ (synopsis "Documentation generation tool for Ruby")
+ (description
+ "YARD is a documentation generation tool for the Ruby programming
+language. It enables the user to generate consistent, usable documentation
+that can be exported to a number of formats very easily, and also supports
+extending for custom Ruby constructs such as custom class level definitions.")
+ (home-page "http://yardoc.org")
+ (license license:expat)))
--
2.4.3
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH] 11 little Ruby gems.
2015-10-07 9:08 ` Ben Woodcroft
@ 2015-10-13 14:08 ` Ricardo Wurmus
2015-10-14 2:27 ` Ben Woodcroft
0 siblings, 1 reply; 11+ messages in thread
From: Ricardo Wurmus @ 2015-10-13 14:08 UTC (permalink / raw
To: Ben Woodcroft; +Cc: guix-devel
Ben Woodcroft <b.woodcroft@uq.edu.au> writes:
> On 07/10/15 04:25, Thompson, David wrote:
>> In short, yes, your patches are very welcome. Thanks! - Dave
>
> Here ya go then.
These are beautiful! The only thing that’s missing is adding an entry
for you to the copyright header at the top of the file. (I can amend
your first patch in this series to include this line.)
Since there haven’t been any objections so far I’ll push them soon.
> Can I ask, would it be helpful to alphabetize the packages in ruby.scm,
> at least vaguely? Always adding new packages to the bottom of the file
> causes git merge conflicts I would imagine. Of course, it would be even
> more helpful if guix import put them in the right spot too, but that
> seems harder.
I’m also fighting with merge conflicts somewhat regularly, e.g. when
editing some heavily edited file like the huge python.scm. I avoid much
of the problems by adding my packages somewhere to the middle in
alphabetic order. I do not do this when I have patch sequences where
the latter depend on the former.
Ordering package variables in ruby.scm doesn’t seem very useful to me.
More could be gained, I suppose, by using a sexp-aware diff algorithm.
~~ Ricardo
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] 11 little Ruby gems.
2015-10-13 14:08 ` Ricardo Wurmus
@ 2015-10-14 2:27 ` Ben Woodcroft
0 siblings, 0 replies; 11+ messages in thread
From: Ben Woodcroft @ 2015-10-14 2:27 UTC (permalink / raw
To: Ricardo Wurmus; +Cc: guix-devel
On 14/10/15 00:08, Ricardo Wurmus wrote:
> The only thing that’s missing is adding an entry
> for you to the copyright header at the top of the file. (I can amend
> your first patch in this series to include this line.)
>
> Since there haven’t been any objections so far I’ll push them soon.
Ta.
>> Can I ask, would it be helpful to alphabetize the packages in ruby.scm,
>> at least vaguely? Always adding new packages to the bottom of the file
>> causes git merge conflicts I would imagine. Of course, it would be even
>> more helpful if guix import put them in the right spot too, but that
>> seems harder.
> I’m also fighting with merge conflicts somewhat regularly, e.g. when
> editing some heavily edited file like the huge python.scm. I avoid much
> of the problems by adding my packages somewhere to the middle in
> alphabetic order. I do not do this when I have patch sequences where
> the latter depend on the former.
>
> Ordering package variables in ruby.scm doesn’t seem very useful to me.
> More could be gained, I suppose, by using a sexp-aware diff algorithm.
OK - merge conflicts don't seem to be much of a problem for me
personally as someone who is only submitting occasional patches.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] 11 little Ruby gems.
2015-09-19 12:54 ` Thompson, David
2015-09-19 20:15 ` Ricardo Wurmus
2015-10-06 14:35 ` Ricardo Wurmus
@ 2015-10-30 16:22 ` Ricardo Wurmus
2015-10-31 10:33 ` Ludovic Courtès
2 siblings, 1 reply; 11+ messages in thread
From: Ricardo Wurmus @ 2015-10-30 16:22 UTC (permalink / raw
To: Thompson, David; +Cc: guix-devel
Thompson, David <dthompson2@worcester.edu> writes:
> Hey Ricardo,
>
> On Wed, Sep 16, 2015 at 5:12 AM, Ricardo Wurmus
> <ricardo.wurmus@mdc-berlin.de> wrote:
>> Hi Guix,
>>
>> attached are a couple of patches that resulted from a recent attempt to
>> traverse the dependency graph for a dependency of some tool I wanted to
>> package.
>>
>> I’m not happy with ‘0007-gnu-Add-ruby-rb-fsevent.patch’ because it is to
>> be used on a Mac OSX, but unfortunately this is a required input for
>> a more general file system library that is in my pipeline.
>>
>> I’m also not happy with disabling tests for ‘ruby-yard’, but I didn’t
>> find a way to make them pass.
>
> I pushed the first 6 patches with only a couple of minor
> comment/description tweaks. Still need to look into what can be done
> about patch 7 and the test suite for yard.
Ping!
I think rb-fsevent may not be required after all. I packaged
ruby-listen and ruby-rb-inotify; “listen” probably only uses rb-fsevent
when on a Mac.
Since we already fixed the yard problem I would really like to push the
three or four (with “rb-fsevent”) Ruby packages and move on. These are
the remaining packages:
ruby-rb-fsevent
ruby-rubygems-tasks
ruby-ffi
ruby-simplecov-html
I have ruby-rb-inotify ready, but it depends on ruby-ffi; and
ruby-listen depends on ruby-rb-inotify.
~~ Ricardo
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] 11 little Ruby gems.
2015-10-30 16:22 ` Ricardo Wurmus
@ 2015-10-31 10:33 ` Ludovic Courtès
0 siblings, 0 replies; 11+ messages in thread
From: Ludovic Courtès @ 2015-10-31 10:33 UTC (permalink / raw
To: Ricardo Wurmus; +Cc: guix-devel
Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de> skribis:
> Since we already fixed the yard problem I would really like to push the
> three or four (with “rb-fsevent”) Ruby packages and move on. These are
> the remaining packages:
>
> ruby-rb-fsevent
> ruby-rubygems-tasks
> ruby-ffi
> ruby-simplecov-html
>
> I have ruby-rb-inotify ready, but it depends on ruby-ffi; and
> ruby-listen depends on ruby-rb-inotify.
If there are no additional comments, I would say that you can go ahead
and push them.
Thanks,
Ludo’.
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2015-10-31 10:33 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-16 9:12 [PATCH] 11 little Ruby gems Ricardo Wurmus
2015-09-19 12:54 ` Thompson, David
2015-09-19 20:15 ` Ricardo Wurmus
2015-10-06 14:35 ` Ricardo Wurmus
2015-10-06 14:55 ` Ben Woodcroft
2015-10-06 18:25 ` Thompson, David
2015-10-07 9:08 ` Ben Woodcroft
2015-10-13 14:08 ` Ricardo Wurmus
2015-10-14 2:27 ` Ben Woodcroft
2015-10-30 16:22 ` Ricardo Wurmus
2015-10-31 10:33 ` Ludovic Courtès
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.