unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#34222] [PATCH 00/15] Add ruby-rubocop and dependencies.
@ 2019-01-27 17:01 Christopher Baines
  2019-01-27 17:08 ` [bug#34222] [PATCH 01/15] gnu: ruby-rspec-its: Enable tests Christopher Baines
  0 siblings, 1 reply; 41+ messages in thread
From: Christopher Baines @ 2019-01-27 17:01 UTC (permalink / raw)
  To: 34222

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

Following on from #34217 [1], these patches add ruby-rubocop and some
dependencies. This is part of packaging Rails (Ruby web framework) for
Guix [2].

1: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=34217
2: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=30689


Christopher Baines (15):
  gnu: ruby-rspec-its: Enable tests.
  gnu: Add ruby-powerpack.
  gnu: Add ruby-rainbow.
  gnu: Add ruby-racc.
  gnu: Add ruby-hashdiff.
  gnu: Add ruby-crack.
  gnu: Add ruby-webmock.
  gnu: Add ruby-rest-client.
  gnu: Add ruby-bacon-colored-output.
  gnu: Add ruby-ast.
  gnu: Add ruby-cliver.
  gnu: Add ruby-parser.
  gnu: Add ruby-unicode-display-width.
  gnu: Add ruby-jaro-winkler.
  gnu: Add ruby-rubocop.

 gnu/packages/ruby.scm | 463 +++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 456 insertions(+), 7 deletions(-)

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 962 bytes --]

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

* [bug#34222] [PATCH 01/15] gnu: ruby-rspec-its: Enable tests.
  2019-01-27 17:01 [bug#34222] [PATCH 00/15] Add ruby-rubocop and dependencies Christopher Baines
@ 2019-01-27 17:08 ` Christopher Baines
  2019-01-27 17:08   ` [bug#34222] [PATCH 02/15] gnu: Add ruby-powerpack Christopher Baines
                     ` (14 more replies)
  0 siblings, 15 replies; 41+ messages in thread
From: Christopher Baines @ 2019-01-27 17:08 UTC (permalink / raw)
  To: 34222

Enable the tests, and also tweak the synopsis and description to hopefully be
more descriptive.

* gnu/packages/ruby.scm (ruby-rspec-its)[source]: Change to GitHub, and add
patch.
[arguments]: Enabled tests, set the #:test-target to "spec", and add the
phases to tweak the Gemfile and rspec-its.gemspec.
[native-inputs]: Add bundler, ruby-cucumber and ruby-aruba.
[synopsis,description]: Make more explicit and descriptive.
---
 gnu/packages/ruby.scm | 49 ++++++++++++++++++++++++++++++++++++-------
 1 file changed, 42 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 59895240f8..b0cf9feb02 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -392,20 +392,55 @@ outcomes of a code example.")
     (version "1.2.0")
     (source
      (origin
-       (method url-fetch)
-       (uri (rubygems-uri "rspec-its" version))
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/rspec/rspec-its.git")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
        (sha256
         (base32
-         "1pwphny5jawcm1hda3vs9pjv1cybaxy17dc1s75qd7drrvx697p3"))))
+         "190rz7v4q4wk80fzhr5hknvxx4vb2pywmqr8wc41w2blj9ylzi0f"))
+       (patches
+        (list
+         (origin (method url-fetch)
+                 (uri (string-append
+                       "https://github.com/rspec/rspec-its/commit/"
+                       "bfaab439c7c879f5ef25552f41827891f6308373.patch"))
+                 (file-name "ruby-rspec-its-fix-specs-for-ruby-2.4.patch")
+                 (sha256
+                  (base32
+                   "0lnik0kvrpgkakvdb2fmzg22pdlraf6kiidr9sv6rnfyviiqwxgh")))))))
     (build-system ruby-build-system)
     (arguments
-     `(#:tests? #f)) ; needs cucumber.
+     `(#:test-target "spec"
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'dont-install-gems-from-gemfile
+           (lambda _
+             (substitute* "Gemfile"
+               (("rspec rspec-core rspec-expectations rspec-mocks rspec-support")
+                ""))
+             #t))
+         (add-before 'build 'remove-unnecessary-dependency-versions-from-gemfile
+           (lambda _
+             (substitute* "rspec-its.gemspec"
+               (("rake.*") "rake'\n")
+               (("cucumber.*") "cucumber'\n")
+               (("bundler.*") "bundler'\n")
+               (("aruba.*") "aruba'\n"))
+             #t)))))
     (propagated-inputs
      `(("ruby-rspec-core" ,ruby-rspec-core)
        ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
-    (synopsis "RSpec extension gem for attribute matching")
-    (description "@code{rspec-its} is an RSpec extension gem for attribute
-matching.")
+    (native-inputs
+     `(("bundler" ,bundler)
+       ("ruby-cucumber" ,ruby-cucumber)
+       ("ruby-aruba" ,ruby-aruba)))
+    (synopsis "RSpec extension that provides the @code{its} method")
+    (description
+     "RSpec::Its provides the its method as a short-hand to specify the expected
+value of an attribute.  For example, one can use @code{its(:size)\\{should
+eq(1)\\}}.")
     (home-page "https://github.com/rspec/rspec-its")
     (license license:expat)))
 
-- 
2.20.1

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

* [bug#34222] [PATCH 02/15] gnu: Add ruby-powerpack.
  2019-01-27 17:08 ` [bug#34222] [PATCH 01/15] gnu: ruby-rspec-its: Enable tests Christopher Baines
@ 2019-01-27 17:08   ` Christopher Baines
  2019-01-27 17:44     ` Ricardo Wurmus
  2019-01-27 17:08   ` [bug#34222] [PATCH 03/15] gnu: Add ruby-rainbow Christopher Baines
                     ` (13 subsequent siblings)
  14 siblings, 1 reply; 41+ messages in thread
From: Christopher Baines @ 2019-01-27 17:08 UTC (permalink / raw)
  To: 34222

Required for ruby-rubocop.

* gnu/packages/ruby.scm (ruby-powerpack): 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 b0cf9feb02..223ff30ba8 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -1510,6 +1510,30 @@ assertion messages for tests.")
     (home-page "https://github.com/k-tsj/power_assert")
     (license (list license:bsd-2 license:ruby))))
 
+(define-public ruby-powerpack
+  (package
+    (name "ruby-powerpack")
+    (version "0.1.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (rubygems-uri "powerpack" version))
+       (sha256
+        (base32
+         "1r51d67wd467rpdfl6x43y84vwm8f5ql9l9m85ak1s2sp3nc5hyv"))))
+    (build-system ruby-build-system)
+    (arguments
+     '(#:test-target "spec"))
+    (native-inputs
+     `(("bundler" ,bundler)
+       ("ruby-rspec" ,ruby-rspec)
+       ("ruby-yard" ,ruby-yard)))
+    (synopsis "Useful extensions to core Ruby classes")
+    (description
+     "This package provides a few useful extensions to core Ruby classes.")
+    (home-page "https://github.com/bbatsov/powerpack")
+    (license license:expat)))
+
 (define-public ruby-locale
   (package
     (name "ruby-locale")
-- 
2.20.1

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

* [bug#34222] [PATCH 03/15] gnu: Add ruby-rainbow.
  2019-01-27 17:08 ` [bug#34222] [PATCH 01/15] gnu: ruby-rspec-its: Enable tests Christopher Baines
  2019-01-27 17:08   ` [bug#34222] [PATCH 02/15] gnu: Add ruby-powerpack Christopher Baines
@ 2019-01-27 17:08   ` Christopher Baines
  2019-01-27 17:25     ` Ricardo Wurmus
  2019-01-27 17:08   ` [bug#34222] [PATCH 04/15] gnu: Add ruby-racc Christopher Baines
                     ` (12 subsequent siblings)
  14 siblings, 1 reply; 41+ messages in thread
From: Christopher Baines @ 2019-01-27 17:08 UTC (permalink / raw)
  To: 34222

Required for ruby-rubocop.

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

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 223ff30ba8..cd756a8b9a 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -3771,6 +3771,38 @@ clickjacking, directory traversal, session hijacking and IP spoofing.")
     (home-page "https://github.com/sinatra/sinatra/tree/master/rack-protection")
     (license license:expat)))
 
+(define-public ruby-rainbow
+  (package
+    (name "ruby-rainbow")
+    (version "3.0.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (rubygems-uri "rainbow" version))
+       (sha256
+        (base32
+         "0bb2fpjspydr6x0s8pn1pqkzmxszvkfapv0p4627mywl7ky4zkhk"))))
+    (build-system ruby-build-system)
+    (arguments
+     '(#:phases
+       (modify-phases %standard-phases
+         ;; Run rspec directly, to avoid requiring Rubocop which is used from
+         ;; the Rakefile.
+         (replace 'check
+           (lambda* (#:key tests? #:allow-other-keys)
+             (when tests?
+               (invoke "rspec"))
+             #t)))))
+    (native-inputs
+     `(("bundler" ,bundler)
+       ("ruby-rspec" ,ruby-rspec)))
+    (synopsis "Colorize printed text on ANSI terminals")
+    (description
+     "@code{rainbow} provides a string presenter object to colorize strings by
+wrapping them in ANSI escape codes.")
+    (home-page "https://github.com/sickill/rainbow")
+    (license license:expat)))
+
 (define-public ruby-contest
   (package
     (name "ruby-contest")
-- 
2.20.1

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

* [bug#34222] [PATCH 04/15] gnu: Add ruby-racc.
  2019-01-27 17:08 ` [bug#34222] [PATCH 01/15] gnu: ruby-rspec-its: Enable tests Christopher Baines
  2019-01-27 17:08   ` [bug#34222] [PATCH 02/15] gnu: Add ruby-powerpack Christopher Baines
  2019-01-27 17:08   ` [bug#34222] [PATCH 03/15] gnu: Add ruby-rainbow Christopher Baines
@ 2019-01-27 17:08   ` Christopher Baines
  2019-01-27 17:27     ` Ricardo Wurmus
  2019-01-27 17:08   ` [bug#34222] [PATCH 05/15] gnu: Add ruby-hashdiff Christopher Baines
                     ` (11 subsequent siblings)
  14 siblings, 1 reply; 41+ messages in thread
From: Christopher Baines @ 2019-01-27 17:08 UTC (permalink / raw)
  To: 34222

Required for ruby-ast and ruby-parser.

* gnu/packages/ruby.scm (ruby-racc): 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 cd756a8b9a..7c2b9d9762 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -3655,6 +3655,28 @@ differences (added or removed nodes) between two XML/HTML documents.")
       (home-page "https://github.com/postmodern/nokogiri-diff")
       (license license:expat))))
 
+(define-public ruby-racc
+  (package
+    (name "ruby-racc")
+    (version "1.4.14")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (rubygems-uri "racc" version))
+       (sha256
+        (base32
+         "00yhs2ag7yy5v83mqvkbnhk9bvsh6mx3808k53n61ddzx446v1zl"))))
+    (build-system ruby-build-system)
+    (native-inputs
+     `(("ruby-hoe" ,ruby-hoe)
+       ("ruby-rake-compiler" ,ruby-rake-compiler)))
+    (synopsis "LALR(1) parser generator for Ruby")
+    (description
+     "Racc is a LALR(1) parser generator.  It is written in Ruby itself, and
+generates Ruby program.")
+    (home-page "http://i.loveruby.net/en/projects/racc/")
+    (license license:expat)))
+
 (define-public ruby-rack
   (package
     (name "ruby-rack")
-- 
2.20.1

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

* [bug#34222] [PATCH 05/15] gnu: Add ruby-hashdiff.
  2019-01-27 17:08 ` [bug#34222] [PATCH 01/15] gnu: ruby-rspec-its: Enable tests Christopher Baines
                     ` (2 preceding siblings ...)
  2019-01-27 17:08   ` [bug#34222] [PATCH 04/15] gnu: Add ruby-racc Christopher Baines
@ 2019-01-27 17:08   ` Christopher Baines
  2019-01-27 17:45     ` Ricardo Wurmus
  2019-01-27 17:08   ` [bug#34222] [PATCH 06/15] gnu: Add ruby-crack Christopher Baines
                     ` (10 subsequent siblings)
  14 siblings, 1 reply; 41+ messages in thread
From: Christopher Baines @ 2019-01-27 17:08 UTC (permalink / raw)
  To: 34222

Required for ruby-webmock.

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

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 7c2b9d9762..3d1dfee47f 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -1231,6 +1231,38 @@ failure.")
     (home-page "https://github.com/thekompanee/fuubar")
     (license license:expat)))
 
+(define-public ruby-hashdiff
+  (package
+    (name "ruby-hashdiff")
+    (version "0.3.8")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (rubygems-uri "hashdiff" version))
+       (sha256
+        (base32
+         "19ykg5pax8798nh1yv71adkx0zzs7gn2rxjj86v7nsw0jba5lask"))))
+    (build-system ruby-build-system)
+    (arguments
+     '(#:phases
+       (modify-phases %standard-phases
+         ;; Run tests directly via rspec to avoid Rake issue:
+         ;; NoMethodError: undefined method `last_comment'
+         (replace 'check
+           (lambda* (#:key tests? #:allow-other-keys)
+             (when tests?
+               (invoke "rspec"))
+             #t)))))
+    (native-inputs
+     `(("bundler" ,bundler)
+       ("ruby-rspec" ,ruby-rspec-2)))
+    (synopsis "HashDiff computes the smallest difference between two hashes")
+    (description
+     "HashDiff is a Ruby library to compute the smallest difference between
+two hashes.")
+    (home-page "https://github.com/liufengyun/hashdiff")
+    (license license:expat)))
+
 (define-public ruby-shindo
   (package
     (name "ruby-shindo")
-- 
2.20.1

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

* [bug#34222] [PATCH 06/15] gnu: Add ruby-crack.
  2019-01-27 17:08 ` [bug#34222] [PATCH 01/15] gnu: ruby-rspec-its: Enable tests Christopher Baines
                     ` (3 preceding siblings ...)
  2019-01-27 17:08   ` [bug#34222] [PATCH 05/15] gnu: Add ruby-hashdiff Christopher Baines
@ 2019-01-27 17:08   ` Christopher Baines
  2019-01-27 17:29     ` Ricardo Wurmus
  2019-01-27 17:08   ` [bug#34222] [PATCH 07/15] gnu: Add ruby-webmock Christopher Baines
                     ` (9 subsequent siblings)
  14 siblings, 1 reply; 41+ messages in thread
From: Christopher Baines @ 2019-01-27 17:08 UTC (permalink / raw)
  To: 34222

Required for ruby-webmock.

* gnu/packages/ruby.scm (ruby-crack): 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 3d1dfee47f..e11900b835 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -791,6 +791,37 @@ value is found.")
     (home-page "https://github.com/egonSchiele/contracts.ruby")
     (license license:bsd-2)))
 
+(define-public ruby-crack
+  (package
+    (name "ruby-crack")
+    (version "0.4.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (rubygems-uri "crack" version))
+       (sha256
+        (base32
+         "0abb0fvgw00akyik1zxnq7yv391va148151qxdghnzngv66bl62k"))))
+    (build-system ruby-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (replace 'check
+           (lambda _
+             (for-each (lambda (file)
+                         (display file)(display "\n")
+                         (invoke "ruby" file))
+                       (find-files "spec" ".*rb$"))
+             #t)))))
+    (propagated-inputs
+     `(("ruby-safe-yaml" ,ruby-safe-yaml)))
+    (synopsis "Simple JSON and XML parsing for Ruby")
+    (description
+     "@code{crack} provides really simple JSON and XML parsing, extracted from
+code in Merb and Rails.")
+    (home-page "https://github.com/jnunemaker/crack")
+    (license license:expat)))
+
 (define-public ruby-czmq-ffi-gen
   (package
     (name "ruby-czmq-ffi-gen")
-- 
2.20.1

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

* [bug#34222] [PATCH 07/15] gnu: Add ruby-webmock.
  2019-01-27 17:08 ` [bug#34222] [PATCH 01/15] gnu: ruby-rspec-its: Enable tests Christopher Baines
                     ` (4 preceding siblings ...)
  2019-01-27 17:08   ` [bug#34222] [PATCH 06/15] gnu: Add ruby-crack Christopher Baines
@ 2019-01-27 17:08   ` Christopher Baines
  2019-01-27 17:32     ` Ricardo Wurmus
  2019-01-27 17:08   ` [bug#34222] [PATCH 08/15] gnu: Add ruby-rest-client Christopher Baines
                     ` (8 subsequent siblings)
  14 siblings, 1 reply; 41+ messages in thread
From: Christopher Baines @ 2019-01-27 17:08 UTC (permalink / raw)
  To: 34222

Required by ruby-rest-client. Also at version ~> 2, so don't package 3 just
yet.

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

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index e11900b835..5eb08d9929 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -4781,6 +4781,32 @@ support to both Ruby and JRuby.  It uses @code{unf_ext} on CRuby and
     (home-page "https://github.com/knu/ruby-unf")
     (license license:bsd-2)))
 
+(define-public ruby-webmock
+  (package
+    (name "ruby-webmock")
+    (version "2.3.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (rubygems-uri "webmock" version))
+       (sha256
+        (base32
+         "04hkcqsmbfnp8g237pisnc834vpgildklicbjbyikqg0bg1rwcy5"))))
+    (build-system ruby-build-system)
+    (propagated-inputs
+     `(("bundler" ,bundler)
+       ("ruby-addressable" ,ruby-addressable)
+       ("ruby-crack" ,ruby-crack)
+       ("ruby-public-suffic" ,ruby-public-suffix)
+       ("ruby-rspec" ,ruby-rspec)
+       ("ruby-hashdiff" ,ruby-hashdiff)))
+    (synopsis "Allows stubbing and setting expectations on HTTP requests")
+    (description
+     "WebMock allows stubbing HTTP requests and setting expectations on HTTP
+requests.  This is useful when testing software.")
+    (home-page "https://github.com/bblimke/webmock")
+    (license license:expat)))
+
 (define-public ruby-domain-name
   (package
     (name "ruby-domain-name")
-- 
2.20.1

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

* [bug#34222] [PATCH 08/15] gnu: Add ruby-rest-client.
  2019-01-27 17:08 ` [bug#34222] [PATCH 01/15] gnu: ruby-rspec-its: Enable tests Christopher Baines
                     ` (5 preceding siblings ...)
  2019-01-27 17:08   ` [bug#34222] [PATCH 07/15] gnu: Add ruby-webmock Christopher Baines
@ 2019-01-27 17:08   ` Christopher Baines
  2019-01-27 17:34     ` Ricardo Wurmus
  2019-01-27 17:08   ` [bug#34222] [PATCH 09/15] gnu: Add ruby-bacon-colored-output Christopher Baines
                     ` (7 subsequent siblings)
  14 siblings, 1 reply; 41+ messages in thread
From: Christopher Baines @ 2019-01-27 17:08 UTC (permalink / raw)
  To: 34222

Required for ruby-ast.

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

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 5eb08d9929..f013d84299 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -3888,6 +3888,48 @@ wrapping them in ANSI escape codes.")
     (home-page "https://github.com/sickill/rainbow")
     (license license:expat)))
 
+(define-public ruby-rest-client
+  (package
+    (name "ruby-rest-client")
+    (version "2.0.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (rubygems-uri "rest-client" version))
+       (sha256
+        (base32
+         "1hzcs2r7b5bjkf2x2z3n8z6082maz0j8vqjiciwgg3hzb63f958j"))))
+    (build-system ruby-build-system)
+    (arguments
+     '(#:phases
+       (modify-phases %standard-phases
+         (add-before 'check 'fix-dependencies
+           (lambda _
+             (substitute* "rest-client.gemspec"
+               ((".*rubocop.*") "\n")
+               ((".*pry.*") "\n"))
+             #t))
+         (add-before 'check 'delete-network-tests
+           (lambda _
+             (delete-file "spec/integration/request_spec.rb")
+             (delete-file "spec/integration/httpbin_spec.rb")
+             #t)))))
+    (propagated-inputs
+     `(("ruby-http-cookie" ,ruby-http-cookie)
+       ("ruby-mime-types" ,ruby-mime-types)
+       ("ruby-netrc" ,ruby-netrc)))
+    (native-inputs
+     `(("bundler" ,bundler)
+       ("ruby-webmock", ruby-webmock)
+       ("ruby-rspec", ruby-rspec)))
+    (synopsis "Simple HTTP and REST client for Ruby")
+    (description
+     "@code{rest-client} provides a simple HTTP and REST client for Ruby,
+inspired by the Sinatra microframework style of specifying actions: get, put,
+post, delete.")
+    (home-page "https://github.com/rest-client/rest-client")
+    (license license:expat)))
+
 (define-public ruby-contest
   (package
     (name "ruby-contest")
-- 
2.20.1

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

* [bug#34222] [PATCH 09/15] gnu: Add ruby-bacon-colored-output.
  2019-01-27 17:08 ` [bug#34222] [PATCH 01/15] gnu: ruby-rspec-its: Enable tests Christopher Baines
                     ` (6 preceding siblings ...)
  2019-01-27 17:08   ` [bug#34222] [PATCH 08/15] gnu: Add ruby-rest-client Christopher Baines
@ 2019-01-27 17:08   ` Christopher Baines
  2019-01-27 17:34     ` Ricardo Wurmus
  2019-01-27 17:08   ` [bug#34222] [PATCH 10/15] gnu: Add ruby-ast Christopher Baines
                     ` (6 subsequent siblings)
  14 siblings, 1 reply; 41+ messages in thread
From: Christopher Baines @ 2019-01-27 17:08 UTC (permalink / raw)
  To: 34222

This is a requirement of ruby-ast.

* gnu/packages/ruby.scm (ruby-bacon-colored-output): 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 f013d84299..e0c09f59ab 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -1515,6 +1515,30 @@ disable tests, have before and after blocks that run once and more.")
     (home-page "https://github.com/cldwalker/bacon-bits")
     (license license:expat)))
 
+(define-public ruby-bacon-colored-output
+  (package
+    (name "ruby-bacon-colored-output")
+    (version "1.1.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (rubygems-uri "bacon-colored_output" version))
+       (sha256
+        (base32
+         "1znyh3vkfdlmf19p3k4zip88ibym41dn5g4p4n5hmks2iznb7qpx"))))
+    (build-system ruby-build-system)
+    (arguments
+     '(;; No included tests
+       #:tests? #f))
+    (propagated-inputs
+     `(("ruby-bacon" ,ruby-bacon)))
+    (synopsis "Colored output for Bacon test framework")
+    (description
+     "This package adds color through ANSI escape codes to Bacon test
+output.")
+    (home-page "https://github.com/whitequark/bacon-colored_output")
+    (license license:expat)))
+
 (define-public ruby-connection-pool
   (package
     (name "ruby-connection-pool")
-- 
2.20.1

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

* [bug#34222] [PATCH 10/15] gnu: Add ruby-ast.
  2019-01-27 17:08 ` [bug#34222] [PATCH 01/15] gnu: ruby-rspec-its: Enable tests Christopher Baines
                     ` (7 preceding siblings ...)
  2019-01-27 17:08   ` [bug#34222] [PATCH 09/15] gnu: Add ruby-bacon-colored-output Christopher Baines
@ 2019-01-27 17:08   ` Christopher Baines
  2019-01-27 17:36     ` Ricardo Wurmus
  2019-01-27 17:08   ` [bug#34222] [PATCH 11/15] gnu: Add ruby-cliver Christopher Baines
                     ` (5 subsequent siblings)
  14 siblings, 1 reply; 41+ messages in thread
From: Christopher Baines @ 2019-01-27 17:08 UTC (permalink / raw)
  To: 34222

Required for ruby-parser.

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

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index e0c09f59ab..2bb9ea1cff 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -699,6 +699,53 @@ AsciiDoc content to HTML5, DocBook 5 (or 4.5), PDF, and other formats.")
   (home-page "https://asciidoctor.org")
   (license license:expat)))
 
+(define-public ruby-ast
+  (package
+    (name "ruby-ast")
+    (version "2.4.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (rubygems-uri "ast" version))
+       (sha256
+        (base32
+         "184ssy3w93nkajlz2c70ifm79jp3j737294kbc5fjw69v1w0n9x7"))))
+    (build-system ruby-build-system)
+    (arguments
+     '(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'remove-coveralls-requirement
+           (lambda _
+             (substitute* "test/helper.rb"
+               (("require 'coveralls'") "")
+               (("Coveralls::SimpleCov::Formatter") ""))
+             #t))
+         (add-after 'extract-gemspec 'remove-unnecessary-requirements
+           (lambda _
+             (substitute* "ast.gemspec"
+               ((".*coveralls.*") "\n")
+               (("%q<rest-client>.*") "%q<rest-client>.freeze, [\">= 0\"])\n")
+               (("%q<mime-types>.*") "%q<mime-types>.freeze, [\">= 0\"])\n")
+               (("%q<rake>.*") "%q<rake>.freeze, [\">= 0\"])\n"))
+             #t)))))
+    (native-inputs
+     `(("bundler" ,bundler)
+       ("ruby-simplecov" ,ruby-simplecov)
+       ("ruby-json-pure" ,ruby-json-pure)
+       ("ruby-mime-times" ,ruby-mime-types)
+       ("ruby-yard" ,ruby-yard)
+       ("ruby-kramdown" ,ruby-kramdown)
+       ("ruby-rest-client" ,ruby-rest-client)
+       ("ruby-bacon" ,ruby-bacon)
+       ("ruby-bacon-colored-output" ,ruby-bacon-colored-output)
+       ("ruby-racc" ,ruby-racc)))
+    (synopsis "Library for working with Abstract Syntax Trees")
+    (description
+     "@code{ast} is a Ruby library for working with Abstract Syntax Trees.
+It does this through immutable data structures.")
+    (home-page "https://whitequark.github.io/ast/")
+    (license license:expat)))
+
 (define-public ruby-sporkmonger-rack-mount
   ;; Testing the addressable gem requires a newer commit than that released, so
   ;; use an up to date version.
-- 
2.20.1

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

* [bug#34222] [PATCH 11/15] gnu: Add ruby-cliver.
  2019-01-27 17:08 ` [bug#34222] [PATCH 01/15] gnu: ruby-rspec-its: Enable tests Christopher Baines
                     ` (8 preceding siblings ...)
  2019-01-27 17:08   ` [bug#34222] [PATCH 10/15] gnu: Add ruby-ast Christopher Baines
@ 2019-01-27 17:08   ` Christopher Baines
  2019-01-27 17:38     ` Ricardo Wurmus
  2019-01-27 17:08   ` [bug#34222] [PATCH 12/15] gnu: Add ruby-parser Christopher Baines
                     ` (4 subsequent siblings)
  14 siblings, 1 reply; 41+ messages in thread
From: Christopher Baines @ 2019-01-27 17:08 UTC (permalink / raw)
  To: 34222

Requirement of ruby-parser.

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

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 2bb9ea1cff..061659e59f 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -869,6 +869,38 @@ code in Merb and Rails.")
     (home-page "https://github.com/jnunemaker/crack")
     (license license:expat)))
 
+(define-public ruby-cliver
+  (package
+    (name "ruby-cliver")
+    (version "0.3.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (rubygems-uri "cliver" version))
+       (sha256
+        (base32
+         "096f4rj7virwvqxhkavy0v55rax10r4jqf8cymbvn4n631948xc7"))))
+    (build-system ruby-build-system)
+    (arguments
+     '(#:phases
+       (modify-phases %standard-phases
+         ;; Avoid this issue with rspec@2
+         ;; NoMethodError: undefined method `last_comment'
+         (replace 'check
+           (lambda* (#:key tests? #:allow-other-keys)
+             (when tests?
+               (invoke "rspec"))
+             #t)))))
+    (native-inputs
+     `(("bundler" ,bundler)
+       ("ruby-rspec" ,ruby-rspec-2)))
+    (synopsis "Assertions for command-line dependencies in Ruby")
+    (description
+     "@code{cliver} provides a way to detect missing command-line
+dependencies, including versions.")
+    (home-page "https://github.com/yaauie/cliver")
+    (license license:expat)))
+
 (define-public ruby-czmq-ffi-gen
   (package
     (name "ruby-czmq-ffi-gen")
-- 
2.20.1

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

* [bug#34222] [PATCH 12/15] gnu: Add ruby-parser.
  2019-01-27 17:08 ` [bug#34222] [PATCH 01/15] gnu: ruby-rspec-its: Enable tests Christopher Baines
                     ` (9 preceding siblings ...)
  2019-01-27 17:08   ` [bug#34222] [PATCH 11/15] gnu: Add ruby-cliver Christopher Baines
@ 2019-01-27 17:08   ` Christopher Baines
  2019-01-27 17:39     ` Ricardo Wurmus
  2019-01-27 17:08   ` [bug#34222] [PATCH 13/15] gnu: Add ruby-unicode-display-width Christopher Baines
                     ` (3 subsequent siblings)
  14 siblings, 1 reply; 41+ messages in thread
From: Christopher Baines @ 2019-01-27 17:08 UTC (permalink / raw)
  To: 34222

Required for ruby-rubocop.

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

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 061659e59f..ccc58effa0 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -2818,6 +2818,33 @@ for select languages.")
     (home-page "http://coderay.rubychan.de")
     (license license:expat)))
 
+(define-public ruby-parser
+  (package
+    (name "ruby-parser")
+    (version "2.6.0.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (rubygems-uri "parser" version))
+       (sha256
+        (base32
+         "1hhz2k5417vr2k1llwqgjdnmyrhlpqicy0y2arr6r1gp04fg9wlm"))))
+    (build-system ruby-build-system)
+    (native-inputs
+     `(("bundler" ,bundler)
+       ("ruby-cliver" ,ruby-cliver)
+       ("ruby-simplecov" ,ruby-simplecov)
+       ("ruby-racc" ,ruby-racc)))
+    (inputs
+     `(("ragel" ,ragel)))
+    (propagated-inputs
+     `(("ruby-ast" ,ruby-ast)))
+    (synopsis "Ruby parser written in pure Ruby")
+    (description
+     "This package provides a Ruby parser written in pure Ruby.")
+    (home-page "https://github.com/whitequark/parser")
+    (license license:expat)))
+
 (define-public ruby-progress_bar
   (package
     (name "ruby-progress_bar")
-- 
2.20.1

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

* [bug#34222] [PATCH 13/15] gnu: Add ruby-unicode-display-width.
  2019-01-27 17:08 ` [bug#34222] [PATCH 01/15] gnu: ruby-rspec-its: Enable tests Christopher Baines
                     ` (10 preceding siblings ...)
  2019-01-27 17:08   ` [bug#34222] [PATCH 12/15] gnu: Add ruby-parser Christopher Baines
@ 2019-01-27 17:08   ` Christopher Baines
  2019-01-27 17:39     ` Ricardo Wurmus
  2019-01-27 17:08   ` [bug#34222] [PATCH 14/15] gnu: Add ruby-jaro-winkler Christopher Baines
                     ` (2 subsequent siblings)
  14 siblings, 1 reply; 41+ messages in thread
From: Christopher Baines @ 2019-01-27 17:08 UTC (permalink / raw)
  To: 34222

Required for ruby-rubocop.

* gnu/packages/ruby.scm (ruby-unicode-display-width): 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 ccc58effa0..c455bd5f7b 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -4979,6 +4979,28 @@ requests.  This is useful when testing software.")
     (home-page "https://github.com/bblimke/webmock")
     (license license:expat)))
 
+(define-public ruby-unicode-display-width
+  (package
+    (name "ruby-unicode-display-width")
+    (version "1.4.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (rubygems-uri "unicode-display_width" version))
+       (sha256
+        (base32
+         "0bq528fibi8s0jmxz0xzlgzggdq0x4fx46wfqz49478pv8gb2diq"))))
+    (build-system ruby-build-system)
+    (arguments
+     '(;; Test data not included.
+       #:tests? #f))
+    (synopsis "Determine the monospace display width of Ruby strings")
+    (description
+     "@code{Unicode::DisplayWidth} is a Ruby library which can determine the
+display width of strings in Ruby.")
+    (home-page "https://github.com/janlelis/unicode-display_width")
+    (license license:expat)))
+
 (define-public ruby-domain-name
   (package
     (name "ruby-domain-name")
-- 
2.20.1

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

* [bug#34222] [PATCH 14/15] gnu: Add ruby-jaro-winkler.
  2019-01-27 17:08 ` [bug#34222] [PATCH 01/15] gnu: ruby-rspec-its: Enable tests Christopher Baines
                     ` (11 preceding siblings ...)
  2019-01-27 17:08   ` [bug#34222] [PATCH 13/15] gnu: Add ruby-unicode-display-width Christopher Baines
@ 2019-01-27 17:08   ` Christopher Baines
  2019-01-27 17:40     ` Ricardo Wurmus
  2019-01-27 17:08   ` [bug#34222] [PATCH 15/15] gnu: Add ruby-rubocop Christopher Baines
  2019-01-27 17:20   ` [bug#34222] [PATCH 01/15] gnu: ruby-rspec-its: Enable tests Ricardo Wurmus
  14 siblings, 1 reply; 41+ messages in thread
From: Christopher Baines @ 2019-01-27 17:08 UTC (permalink / raw)
  To: 34222

Required for ruby-rubocop.

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

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index c455bd5f7b..9026251626 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -3327,6 +3327,29 @@ when working with Ruby code.")
     ;; There is no mention of the "or later" clause.
     (license license:gpl2)))
 
+(define-public ruby-jaro-winkler
+  (package
+    (name "ruby-jaro-winkler")
+    (version "1.5.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (rubygems-uri "jaro_winkler" version))
+       (sha256
+        (base32
+         "1zz27z88qznix4r65gd9h56gl177snlfpgv10b0s69vi8qpl909l"))))
+    (build-system ruby-build-system)
+    (arguments
+     '(;; No included tests
+       #:tests? #f))
+    (synopsis "Ruby implementation of Jaro-Winkler distance algorithm")
+    (description
+     "@code{jaro_winkler} is an implementation of Jaro-Winkler distance
+algorithm.  It is written in C extension and will fallback to a pure Ruby
+implementation on platforms where this is unsupported.")
+    (home-page "https://github.com/tonytonyjan/jaro_winkler")
+    (license license:expat)))
+
 (define-public ruby-json
   (package
     (name "ruby-json")
-- 
2.20.1

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

* [bug#34222] [PATCH 15/15] gnu: Add ruby-rubocop.
  2019-01-27 17:08 ` [bug#34222] [PATCH 01/15] gnu: ruby-rspec-its: Enable tests Christopher Baines
                     ` (12 preceding siblings ...)
  2019-01-27 17:08   ` [bug#34222] [PATCH 14/15] gnu: Add ruby-jaro-winkler Christopher Baines
@ 2019-01-27 17:08   ` Christopher Baines
  2019-01-27 17:41     ` Ricardo Wurmus
  2019-01-27 17:20   ` [bug#34222] [PATCH 01/15] gnu: ruby-rspec-its: Enable tests Ricardo Wurmus
  14 siblings, 1 reply; 41+ messages in thread
From: Christopher Baines @ 2019-01-27 17:08 UTC (permalink / raw)
  To: 34222

* gnu/packages/ruby.scm (ruby-rubocop): 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 9026251626..6f9ad43c53 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -4083,6 +4083,36 @@ post, delete.")
     (home-page "https://github.com/rest-client/rest-client")
     (license license:expat)))
 
+(define-public ruby-rubocop
+  (package
+    (name "ruby-rubocop")
+    (version "0.63.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (rubygems-uri "rubocop" version))
+       (sha256
+        (base32
+         "1pq00qwlmcv52dbhgbk534ggwn1ny9k3sq3vfb1zk3r4psnqz2jy"))))
+    (build-system ruby-build-system)
+    (arguments
+     '(;; No included tests
+       #:tests? #f))
+    (propagated-inputs
+     `(("ruby-parser" ,ruby-parser)
+       ("ruby-powerpack" ,ruby-powerpack)
+       ("ruby-rainbow" ,ruby-rainbow)
+       ("ruby-ruby-progressbar" ,ruby-ruby-progressbar)
+       ("ruby-parallel" ,ruby-parallel)
+       ("ruby-jaro-winkler" ,ruby-jaro-winkler)
+       ("ruby-unicode-display-width" ,ruby-unicode-display-width)))
+    (synopsis "Ruby code style checking tool")
+    (description
+     "@code{rubocop} is a Ruby code style checking tool.  It aims to enforce
+the community-driven Ruby Style Guide.")
+    (home-page "https://github.com/rubocop-hq/rubocop")
+    (license license:expat)))
+
 (define-public ruby-contest
   (package
     (name "ruby-contest")
-- 
2.20.1

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

* [bug#34222] [PATCH 01/15] gnu: ruby-rspec-its: Enable tests.
  2019-01-27 17:08 ` [bug#34222] [PATCH 01/15] gnu: ruby-rspec-its: Enable tests Christopher Baines
                     ` (13 preceding siblings ...)
  2019-01-27 17:08   ` [bug#34222] [PATCH 15/15] gnu: Add ruby-rubocop Christopher Baines
@ 2019-01-27 17:20   ` Ricardo Wurmus
  14 siblings, 0 replies; 41+ messages in thread
From: Ricardo Wurmus @ 2019-01-27 17:20 UTC (permalink / raw)
  To: Christopher Baines; +Cc: 34222


Christopher Baines <mail@cbaines.net> writes:

> Enable the tests, and also tweak the synopsis and description to hopefully be
> more descriptive.
>
> * gnu/packages/ruby.scm (ruby-rspec-its)[source]: Change to GitHub, and add
> patch.
> [arguments]: Enabled tests, set the #:test-target to "spec", and add the
> phases to tweak the Gemfile and rspec-its.gemspec.
> [native-inputs]: Add bundler, ruby-cucumber and ruby-aruba.
> [synopsis,description]: Make more explicit and descriptive.

Looks good to me.

-- 
Ricardo

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

* [bug#34222] [PATCH 03/15] gnu: Add ruby-rainbow.
  2019-01-27 17:08   ` [bug#34222] [PATCH 03/15] gnu: Add ruby-rainbow Christopher Baines
@ 2019-01-27 17:25     ` Ricardo Wurmus
  0 siblings, 0 replies; 41+ messages in thread
From: Ricardo Wurmus @ 2019-01-27 17:25 UTC (permalink / raw)
  To: Christopher Baines; +Cc: 34222


Christopher Baines <mail@cbaines.net> writes:

> Required for ruby-rubocop.
>
> * gnu/packages/ruby.scm (ruby-rainbow): New variable.

LGTM!

-- 
Ricardo

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

* [bug#34222] [PATCH 04/15] gnu: Add ruby-racc.
  2019-01-27 17:08   ` [bug#34222] [PATCH 04/15] gnu: Add ruby-racc Christopher Baines
@ 2019-01-27 17:27     ` Ricardo Wurmus
  2019-01-27 18:57       ` Christopher Baines
  0 siblings, 1 reply; 41+ messages in thread
From: Ricardo Wurmus @ 2019-01-27 17:27 UTC (permalink / raw)
  To: Christopher Baines; +Cc: 34222


Christopher Baines <mail@cbaines.net> writes:

> Required for ruby-ast and ruby-parser.
>
> * gnu/packages/ruby.scm (ruby-racc): New variable.
[…]
> +    (license license:expat)))

On the website it says that the license is “LGPL” (no version is
provided).  Could you please confirm the license?

-- 
Ricardo

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

* [bug#34222] [PATCH 06/15] gnu: Add ruby-crack.
  2019-01-27 17:08   ` [bug#34222] [PATCH 06/15] gnu: Add ruby-crack Christopher Baines
@ 2019-01-27 17:29     ` Ricardo Wurmus
  2019-01-27 18:55       ` Christopher Baines
  0 siblings, 1 reply; 41+ messages in thread
From: Ricardo Wurmus @ 2019-01-27 17:29 UTC (permalink / raw)
  To: Christopher Baines; +Cc: 34222


Christopher Baines <mail@cbaines.net> writes:

> Required for ruby-webmock.
>
> * gnu/packages/ruby.scm (ruby-crack): New variable.
[…]
> +         (replace 'check
> +           (lambda _
> +             (for-each (lambda (file)
> +                         (display file)(display "\n")
> +                         (invoke "ruby" file))
> +                       (find-files "spec" ".*rb$"))
> +             #t)))))

I don’t see a “spec” directory in the git repository.  Do the Gem
contents differ from the repo?

-- 
Ricardo

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

* [bug#34222] [PATCH 07/15] gnu: Add ruby-webmock.
  2019-01-27 17:08   ` [bug#34222] [PATCH 07/15] gnu: Add ruby-webmock Christopher Baines
@ 2019-01-27 17:32     ` Ricardo Wurmus
  2019-01-27 18:53       ` Christopher Baines
  0 siblings, 1 reply; 41+ messages in thread
From: Ricardo Wurmus @ 2019-01-27 17:32 UTC (permalink / raw)
  To: Christopher Baines; +Cc: 34222


Christopher Baines <mail@cbaines.net> writes:

> Required by ruby-rest-client. Also at version ~> 2, so don't package 3 just
> yet.
>
> * gnu/packages/ruby.scm (ruby-webmock): New variable.

[…]

When version 3 is already available, I’d prefer to explicitly name this
“ruby-webmock-2”, so that other people know it is on purpose.

> +    (propagated-inputs
> +     `(("bundler" ,bundler)

Does “bundler” really need to be propagated?

--
Ricardo

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

* [bug#34222] [PATCH 08/15] gnu: Add ruby-rest-client.
  2019-01-27 17:08   ` [bug#34222] [PATCH 08/15] gnu: Add ruby-rest-client Christopher Baines
@ 2019-01-27 17:34     ` Ricardo Wurmus
  2019-01-27 18:51       ` Christopher Baines
  0 siblings, 1 reply; 41+ messages in thread
From: Ricardo Wurmus @ 2019-01-27 17:34 UTC (permalink / raw)
  To: Christopher Baines; +Cc: 34222


Christopher Baines <mail@cbaines.net> writes:

> Required for ruby-ast.
>
> * gnu/packages/ruby.scm (ruby-rest-client): New variable.

[…]

> +       (modify-phases %standard-phases
> +         (add-before 'check 'fix-dependencies
> +           (lambda _
> +             (substitute* "rest-client.gemspec"
> +               ((".*rubocop.*") "\n")
> +               ((".*pry.*") "\n"))
> +             #t))

Could you please add a comment here why this is necessary?

> +    (description
> +     "@code{rest-client} provides a simple HTTP and REST client for Ruby,
> +inspired by the Sinatra microframework style of specifying actions: get, put,
> +post, delete.")

I would wrap “get”, “put”, “post”, and “delete” in @code{…}.

-- 
Ricardo

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

* [bug#34222] [PATCH 09/15] gnu: Add ruby-bacon-colored-output.
  2019-01-27 17:08   ` [bug#34222] [PATCH 09/15] gnu: Add ruby-bacon-colored-output Christopher Baines
@ 2019-01-27 17:34     ` Ricardo Wurmus
  0 siblings, 0 replies; 41+ messages in thread
From: Ricardo Wurmus @ 2019-01-27 17:34 UTC (permalink / raw)
  To: Christopher Baines; +Cc: 34222


Christopher Baines <mail@cbaines.net> writes:

> This is a requirement of ruby-ast.
>
> * gnu/packages/ruby.scm (ruby-bacon-colored-output): New variable.

LGTM!

-- 
Ricardo

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

* [bug#34222] [PATCH 10/15] gnu: Add ruby-ast.
  2019-01-27 17:08   ` [bug#34222] [PATCH 10/15] gnu: Add ruby-ast Christopher Baines
@ 2019-01-27 17:36     ` Ricardo Wurmus
  2019-01-27 18:50       ` Christopher Baines
  0 siblings, 1 reply; 41+ messages in thread
From: Ricardo Wurmus @ 2019-01-27 17:36 UTC (permalink / raw)
  To: Christopher Baines; +Cc: 34222


Christopher Baines <mail@cbaines.net> writes:

> Required for ruby-parser.
>
> * gnu/packages/ruby.scm (ruby-ast): New variable.
[…]
> +    (native-inputs
> +     `(("bundler" ,bundler)
> +       ("ruby-simplecov" ,ruby-simplecov)
> +       ("ruby-json-pure" ,ruby-json-pure)
> +       ("ruby-mime-times" ,ruby-mime-types)
> +       ("ruby-yard" ,ruby-yard)
> +       ("ruby-kramdown" ,ruby-kramdown)
> +       ("ruby-rest-client" ,ruby-rest-client)
> +       ("ruby-bacon" ,ruby-bacon)
> +       ("ruby-bacon-colored-output" ,ruby-bacon-colored-output)
> +       ("ruby-racc" ,ruby-racc)))

Are really none of these required at run time?

-- 
Ricardo

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

* [bug#34222] [PATCH 11/15] gnu: Add ruby-cliver.
  2019-01-27 17:08   ` [bug#34222] [PATCH 11/15] gnu: Add ruby-cliver Christopher Baines
@ 2019-01-27 17:38     ` Ricardo Wurmus
  2019-01-27 18:48       ` Christopher Baines
  0 siblings, 1 reply; 41+ messages in thread
From: Ricardo Wurmus @ 2019-01-27 17:38 UTC (permalink / raw)
  To: Christopher Baines; +Cc: 34222


Christopher Baines <mail@cbaines.net> writes:

> Requirement of ruby-parser.
>
> * gnu/packages/ruby.scm (ruby-cliver): New variable.
[…]

> +    (arguments
> +     '(#:phases
> +       (modify-phases %standard-phases
> +         ;; Avoid this issue with rspec@2
> +         ;; NoMethodError: undefined method `last_comment'
> +         (replace 'check
> +           (lambda* (#:key tests? #:allow-other-keys)
> +             (when tests?
> +               (invoke "rspec"))
> +             #t)))))
> +    (native-inputs
> +     `(("bundler" ,bundler)
> +       ("ruby-rspec" ,ruby-rspec-2)))

Is this a problem that would disappear when using a later version of
Rspec?

--
Ricardo

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

* [bug#34222] [PATCH 12/15] gnu: Add ruby-parser.
  2019-01-27 17:08   ` [bug#34222] [PATCH 12/15] gnu: Add ruby-parser Christopher Baines
@ 2019-01-27 17:39     ` Ricardo Wurmus
  0 siblings, 0 replies; 41+ messages in thread
From: Ricardo Wurmus @ 2019-01-27 17:39 UTC (permalink / raw)
  To: Christopher Baines; +Cc: 34222


Christopher Baines <mail@cbaines.net> writes:

> Required for ruby-rubocop.
>
> * gnu/packages/ruby.scm (ruby-parser): New variable.

LGTM!

-- 
Ricardo

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

* [bug#34222] [PATCH 13/15] gnu: Add ruby-unicode-display-width.
  2019-01-27 17:08   ` [bug#34222] [PATCH 13/15] gnu: Add ruby-unicode-display-width Christopher Baines
@ 2019-01-27 17:39     ` Ricardo Wurmus
  0 siblings, 0 replies; 41+ messages in thread
From: Ricardo Wurmus @ 2019-01-27 17:39 UTC (permalink / raw)
  To: Christopher Baines; +Cc: 34222


Christopher Baines <mail@cbaines.net> writes:

> Required for ruby-rubocop.
>
> * gnu/packages/ruby.scm (ruby-unicode-display-width): New variable.

LGTM!

-- 
Ricardo

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

* [bug#34222] [PATCH 14/15] gnu: Add ruby-jaro-winkler.
  2019-01-27 17:08   ` [bug#34222] [PATCH 14/15] gnu: Add ruby-jaro-winkler Christopher Baines
@ 2019-01-27 17:40     ` Ricardo Wurmus
  2019-01-27 18:45       ` Christopher Baines
  0 siblings, 1 reply; 41+ messages in thread
From: Ricardo Wurmus @ 2019-01-27 17:40 UTC (permalink / raw)
  To: Christopher Baines; +Cc: 34222


Christopher Baines <mail@cbaines.net> writes:

> Required for ruby-rubocop.
>
> * gnu/packages/ruby.scm (ruby-jaro-winkler): New variable.
[…]
> +    (description
> +     "@code{jaro_winkler} is an implementation of Jaro-Winkler distance
> +algorithm.  It is written in C extension and will fallback to a pure Ruby
> +implementation on platforms where this is unsupported.")

“written in C” or “written as a C extension”?

-- 
Ricardo

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

* [bug#34222] [PATCH 15/15] gnu: Add ruby-rubocop.
  2019-01-27 17:08   ` [bug#34222] [PATCH 15/15] gnu: Add ruby-rubocop Christopher Baines
@ 2019-01-27 17:41     ` Ricardo Wurmus
  0 siblings, 0 replies; 41+ messages in thread
From: Ricardo Wurmus @ 2019-01-27 17:41 UTC (permalink / raw)
  To: Christopher Baines; +Cc: 34222


Christopher Baines <mail@cbaines.net> writes:

> * gnu/packages/ruby.scm (ruby-rubocop): New variable.

LGTM!

-- 
Ricardo

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

* [bug#34222] [PATCH 02/15] gnu: Add ruby-powerpack.
  2019-01-27 17:08   ` [bug#34222] [PATCH 02/15] gnu: Add ruby-powerpack Christopher Baines
@ 2019-01-27 17:44     ` Ricardo Wurmus
  2019-01-27 18:44       ` Christopher Baines
  0 siblings, 1 reply; 41+ messages in thread
From: Ricardo Wurmus @ 2019-01-27 17:44 UTC (permalink / raw)
  To: Christopher Baines; +Cc: 34222


Christopher Baines <mail@cbaines.net> writes:

> Required for ruby-rubocop.
>
> * gnu/packages/ruby.scm (ruby-powerpack): New variable.
[…]
> +    (description
> +     "This package provides a few useful extensions to core Ruby
> classes.")

I’d add “, including @code{Array}, @code{Enumerable}, @code{Hash},
@code{Numeric}, and @code{String}.”

LGTM!

-- 
Ricardo

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

* [bug#34222] [PATCH 05/15] gnu: Add ruby-hashdiff.
  2019-01-27 17:08   ` [bug#34222] [PATCH 05/15] gnu: Add ruby-hashdiff Christopher Baines
@ 2019-01-27 17:45     ` Ricardo Wurmus
  0 siblings, 0 replies; 41+ messages in thread
From: Ricardo Wurmus @ 2019-01-27 17:45 UTC (permalink / raw)
  To: Christopher Baines; +Cc: 34222


Christopher Baines <mail@cbaines.net> writes:

> Required for ruby-webmock.
>
> * gnu/packages/ruby.scm (ruby-hashdiff): New variable.

LGTM!

-- 
Ricardo

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

* [bug#34222] [PATCH 02/15] gnu: Add ruby-powerpack.
  2019-01-27 17:44     ` Ricardo Wurmus
@ 2019-01-27 18:44       ` Christopher Baines
  0 siblings, 0 replies; 41+ messages in thread
From: Christopher Baines @ 2019-01-27 18:44 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: 34222

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


Ricardo Wurmus <rekado@elephly.net> writes:

> Christopher Baines <mail@cbaines.net> writes:
>
>> Required for ruby-rubocop.
>>
>> * gnu/packages/ruby.scm (ruby-powerpack): New variable.
> […]
>> +    (description
>> +     "This package provides a few useful extensions to core Ruby
>> classes.")
>
> I’d add “, including @code{Array}, @code{Enumerable}, @code{Hash},
> @code{Numeric}, and @code{String}.”

Ok, will do. Thanks for taking a look :)

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 962 bytes --]

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

* [bug#34222] [PATCH 14/15] gnu: Add ruby-jaro-winkler.
  2019-01-27 17:40     ` Ricardo Wurmus
@ 2019-01-27 18:45       ` Christopher Baines
  0 siblings, 0 replies; 41+ messages in thread
From: Christopher Baines @ 2019-01-27 18:45 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: 34222

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


Ricardo Wurmus <rekado@elephly.net> writes:

> Christopher Baines <mail@cbaines.net> writes:
>
>> Required for ruby-rubocop.
>>
>> * gnu/packages/ruby.scm (ruby-jaro-winkler): New variable.
> […]
>> +    (description
>> +     "@code{jaro_winkler} is an implementation of Jaro-Winkler distance
>> +algorithm.  It is written in C extension and will fallback to a pure Ruby
>> +implementation on platforms where this is unsupported.")
>
> “written in C” or “written as a C extension”?

The latter. I've updated the patch to say "written as a C extension".

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 962 bytes --]

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

* [bug#34222] [PATCH 11/15] gnu: Add ruby-cliver.
  2019-01-27 17:38     ` Ricardo Wurmus
@ 2019-01-27 18:48       ` Christopher Baines
  0 siblings, 0 replies; 41+ messages in thread
From: Christopher Baines @ 2019-01-27 18:48 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: 34222

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


Ricardo Wurmus <rekado@elephly.net> writes:

> Christopher Baines <mail@cbaines.net> writes:
>
>> Requirement of ruby-parser.
>>
>> * gnu/packages/ruby.scm (ruby-cliver): New variable.
> […]
>
>> +    (arguments
>> +     '(#:phases
>> +       (modify-phases %standard-phases
>> +         ;; Avoid this issue with rspec@2
>> +         ;; NoMethodError: undefined method `last_comment'
>> +         (replace 'check
>> +           (lambda* (#:key tests? #:allow-other-keys)
>> +             (when tests?
>> +               (invoke "rspec"))
>> +             #t)))))
>> +    (native-inputs
>> +     `(("bundler" ,bundler)
>> +       ("ruby-rspec" ,ruby-rspec-2)))
>
> Is this a problem that would disappear when using a later version of
> Rspec?

I don't think so, I get a different exception which looks to me like an
incompatibility between the tests and rspec@3 in Guix. This
`last_comment' related error is a issue between Rspec 2 and more recent
versions of Rake, and I've updated the comment as below to try and
explain this.

+    (Build-system ruby-build-system)
+    (arguments
+     '(#:phases
+       (modify-phases %standard-phases
+         ;; Avoid a incompatibility between rspec@2 and rake. Using rspec@3
+         ;; would be nice, but the tests look to be incompatible:
+         ;;
+         ;; NoMethodError: undefined method `last_comment'
+         (replace 'check
+           (lambda* (#:key tests? #:allow-other-keys)
+             (when tests?
+               (invoke "rspec"))
+             #t)))))

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 962 bytes --]

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

* [bug#34222] [PATCH 10/15] gnu: Add ruby-ast.
  2019-01-27 17:36     ` Ricardo Wurmus
@ 2019-01-27 18:50       ` Christopher Baines
  0 siblings, 0 replies; 41+ messages in thread
From: Christopher Baines @ 2019-01-27 18:50 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: 34222

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


Ricardo Wurmus <rekado@elephly.net> writes:

> Christopher Baines <mail@cbaines.net> writes:
>
>> Required for ruby-parser.
>>
>> * gnu/packages/ruby.scm (ruby-ast): New variable.
> […]
>> +    (native-inputs
>> +     `(("bundler" ,bundler)
>> +       ("ruby-simplecov" ,ruby-simplecov)
>> +       ("ruby-json-pure" ,ruby-json-pure)
>> +       ("ruby-mime-times" ,ruby-mime-types)
>> +       ("ruby-yard" ,ruby-yard)
>> +       ("ruby-kramdown" ,ruby-kramdown)
>> +       ("ruby-rest-client" ,ruby-rest-client)
>> +       ("ruby-bacon" ,ruby-bacon)
>> +       ("ruby-bacon-colored-output" ,ruby-bacon-colored-output)
>> +       ("ruby-racc" ,ruby-racc)))
>
> Are really none of these required at run time?

According to the gemspec at least [1].

1: https://github.com/whitequark/ast/blob/master/ast.gemspec#L14-L26

I don't know the library at all, but it seems like a AST data structure,
so I think it's possible that it's very dependency light.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 962 bytes --]

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

* [bug#34222] [PATCH 08/15] gnu: Add ruby-rest-client.
  2019-01-27 17:34     ` Ricardo Wurmus
@ 2019-01-27 18:51       ` Christopher Baines
  0 siblings, 0 replies; 41+ messages in thread
From: Christopher Baines @ 2019-01-27 18:51 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: 34222

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


Ricardo Wurmus <rekado@elephly.net> writes:

> Christopher Baines <mail@cbaines.net> writes:
>
>> Required for ruby-ast.
>>
>> * gnu/packages/ruby.scm (ruby-rest-client): New variable.
>
> […]
>
>> +       (modify-phases %standard-phases
>> +         (add-before 'check 'fix-dependencies
>> +           (lambda _
>> +             (substitute* "rest-client.gemspec"
>> +               ((".*rubocop.*") "\n")
>> +               ((".*pry.*") "\n"))
>> +             #t))
>
> Could you please add a comment here why this is necessary?

I've updated the patch to say:

+         (add-before 'check 'remove-unnecessary-development-dependencies
+           (lambda _
+             (substitute* "rest-client.gemspec"
+               ;; Remove rubocop as it's unused. Rubocop also indirectly
+               ;; depends on this package through ruby-parser and ruby-ast so
+               ;; this avoids a dependency loop.
+               ((".*rubocop.*") "\n")
+               ;; Remove pry as it's unused, it's a debugging tool
+               ((".*pry.*") "\n"))

Hopefully that is a bit clearer.

>> +    (description
>> +     "@code{rest-client} provides a simple HTTP and REST client for Ruby,
>> +inspired by the Sinatra microframework style of specifying actions: get, put,
>> +post, delete.")
>
> I would wrap “get”, “put”, “post”, and “delete” in @code{…}.

Ok, I've updated the patch to do this now.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 962 bytes --]

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

* [bug#34222] [PATCH 07/15] gnu: Add ruby-webmock.
  2019-01-27 17:32     ` Ricardo Wurmus
@ 2019-01-27 18:53       ` Christopher Baines
  0 siblings, 0 replies; 41+ messages in thread
From: Christopher Baines @ 2019-01-27 18:53 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: 34222

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


Ricardo Wurmus <rekado@elephly.net> writes:

> Christopher Baines <mail@cbaines.net> writes:
>
>> Required by ruby-rest-client. Also at version ~> 2, so don't package 3 just
>> yet.
>>
>> * gnu/packages/ruby.scm (ruby-webmock): New variable.
>
> […]
>
> When version 3 is already available, I’d prefer to explicitly name this
> “ruby-webmock-2”, so that other people know it is on purpose.

Sure, I've updated the patch and the other dependant patches.

>> +    (propagated-inputs
>> +     `(("bundler" ,bundler)
>
> Does “bundler” really need to be propagated?

Good spot. Indeed bundler doesn't need to be propagated, and this wasn't
the only issue with the inputs. They now are as follows:

+    (native-inputs
+     `(("bundler" ,bundler)
+       ("ruby-rspec" ,ruby-rspec)))
+    (propagated-inputs
+     `(("ruby-addressable" ,ruby-addressable)
+       ("ruby-crack" ,ruby-crack)
+       ("ruby-hashdiff" ,ruby-hashdiff)))

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 962 bytes --]

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

* [bug#34222] [PATCH 06/15] gnu: Add ruby-crack.
  2019-01-27 17:29     ` Ricardo Wurmus
@ 2019-01-27 18:55       ` Christopher Baines
  0 siblings, 0 replies; 41+ messages in thread
From: Christopher Baines @ 2019-01-27 18:55 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: 34222

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


Ricardo Wurmus <rekado@elephly.net> writes:

> Christopher Baines <mail@cbaines.net> writes:
>
>> Required for ruby-webmock.
>>
>> * gnu/packages/ruby.scm (ruby-crack): New variable.
> […]
>> +         (replace 'check
>> +           (lambda _
>> +             (for-each (lambda (file)
>> +                         (display file)(display "\n")
>> +                         (invoke "ruby" file))
>> +                       (find-files "spec" ".*rb$"))
>> +             #t)))))
>
> I don’t see a “spec” directory in the git repository.  Do the Gem
> contents differ from the repo?

Good spot. There isn't a "spec" directory, it's instead called
"test". So no tests were actually being run. I've fixed this now.

+         (replace 'check
+           (lambda _
+             (for-each (lambda (file)
+                         (display file)(display "\n")
+                         (invoke "ruby" "-Ilib" "-Itest" file))
+                       (find-files "test" ".*rb$"))
+             #t)))))

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 962 bytes --]

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

* [bug#34222] [PATCH 04/15] gnu: Add ruby-racc.
  2019-01-27 17:27     ` Ricardo Wurmus
@ 2019-01-27 18:57       ` Christopher Baines
  2019-01-27 19:06         ` Christopher Baines
  0 siblings, 1 reply; 41+ messages in thread
From: Christopher Baines @ 2019-01-27 18:57 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: 34222

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


Ricardo Wurmus <rekado@elephly.net> writes:

> Christopher Baines <mail@cbaines.net> writes:
>
>> Required for ruby-ast and ruby-parser.
>>
>> * gnu/packages/ruby.scm (ruby-racc): New variable.
> […]
>> +    (license license:expat)))
>
> On the website it says that the license is “LGPL” (no version is
> provided).  Could you please confirm the license?

Indeed, the metadata in the gem is wrong. The information on the license
is a bit sparse. LGPL 2.1 is included in the sources, and there is one
file which references this in the header.

The published gem doesn't come from the original author, so I'm guessing
the default in the gemspec simply wasn't changed.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 962 bytes --]

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

* [bug#34222] [PATCH 04/15] gnu: Add ruby-racc.
  2019-01-27 18:57       ` Christopher Baines
@ 2019-01-27 19:06         ` Christopher Baines
  2019-01-27 19:26           ` Ricardo Wurmus
  0 siblings, 1 reply; 41+ messages in thread
From: Christopher Baines @ 2019-01-27 19:06 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: 34222

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


Christopher Baines <mail@cbaines.net> writes:

> Ricardo Wurmus <rekado@elephly.net> writes:
>
>> Christopher Baines <mail@cbaines.net> writes:
>>
>>> Required for ruby-ast and ruby-parser.
>>>
>>> * gnu/packages/ruby.scm (ruby-racc): New variable.
>> […]
>>> +    (license license:expat)))
>>
>> On the website it says that the license is “LGPL” (no version is
>> provided).  Could you please confirm the license?
>
> Indeed, the metadata in the gem is wrong. The information on the license
> is a bit sparse. LGPL 2.1 is included in the sources, and there is one
> file which references this in the header.

Actually, there is a lot more, I forgot to pass "-r" to
licensecheck. There's also 3 files where it says:

  You can distribute/modify this program under the same terms of ruby.

So I might put this instead. What do you think?

+    (license (list license:lgpl2.1
+                   license:ruby))))


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 962 bytes --]

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

* [bug#34222] [PATCH 04/15] gnu: Add ruby-racc.
  2019-01-27 19:06         ` Christopher Baines
@ 2019-01-27 19:26           ` Ricardo Wurmus
  0 siblings, 0 replies; 41+ messages in thread
From: Ricardo Wurmus @ 2019-01-27 19:26 UTC (permalink / raw)
  To: Christopher Baines; +Cc: 34222


Christopher Baines <mail@cbaines.net> writes:

> Christopher Baines <mail@cbaines.net> writes:
>
>> Ricardo Wurmus <rekado@elephly.net> writes:
>>
>>> Christopher Baines <mail@cbaines.net> writes:
>>>
>>>> Required for ruby-ast and ruby-parser.
>>>>
>>>> * gnu/packages/ruby.scm (ruby-racc): New variable.
>>> […]
>>>> +    (license license:expat)))
>>>
>>> On the website it says that the license is “LGPL” (no version is
>>> provided).  Could you please confirm the license?
>>
>> Indeed, the metadata in the gem is wrong. The information on the license
>> is a bit sparse. LGPL 2.1 is included in the sources, and there is one
>> file which references this in the header.
>
> Actually, there is a lot more, I forgot to pass "-r" to
> licensecheck. There's also 3 files where it says:
>
>   You can distribute/modify this program under the same terms of ruby.
>
> So I might put this instead. What do you think?
>
> +    (license (list license:lgpl2.1
> +                   license:ruby))))

This would be fine with a comment.

Thanks!

-- 
Ricardo

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

end of thread, other threads:[~2019-01-29  1:33 UTC | newest]

Thread overview: 41+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-27 17:01 [bug#34222] [PATCH 00/15] Add ruby-rubocop and dependencies Christopher Baines
2019-01-27 17:08 ` [bug#34222] [PATCH 01/15] gnu: ruby-rspec-its: Enable tests Christopher Baines
2019-01-27 17:08   ` [bug#34222] [PATCH 02/15] gnu: Add ruby-powerpack Christopher Baines
2019-01-27 17:44     ` Ricardo Wurmus
2019-01-27 18:44       ` Christopher Baines
2019-01-27 17:08   ` [bug#34222] [PATCH 03/15] gnu: Add ruby-rainbow Christopher Baines
2019-01-27 17:25     ` Ricardo Wurmus
2019-01-27 17:08   ` [bug#34222] [PATCH 04/15] gnu: Add ruby-racc Christopher Baines
2019-01-27 17:27     ` Ricardo Wurmus
2019-01-27 18:57       ` Christopher Baines
2019-01-27 19:06         ` Christopher Baines
2019-01-27 19:26           ` Ricardo Wurmus
2019-01-27 17:08   ` [bug#34222] [PATCH 05/15] gnu: Add ruby-hashdiff Christopher Baines
2019-01-27 17:45     ` Ricardo Wurmus
2019-01-27 17:08   ` [bug#34222] [PATCH 06/15] gnu: Add ruby-crack Christopher Baines
2019-01-27 17:29     ` Ricardo Wurmus
2019-01-27 18:55       ` Christopher Baines
2019-01-27 17:08   ` [bug#34222] [PATCH 07/15] gnu: Add ruby-webmock Christopher Baines
2019-01-27 17:32     ` Ricardo Wurmus
2019-01-27 18:53       ` Christopher Baines
2019-01-27 17:08   ` [bug#34222] [PATCH 08/15] gnu: Add ruby-rest-client Christopher Baines
2019-01-27 17:34     ` Ricardo Wurmus
2019-01-27 18:51       ` Christopher Baines
2019-01-27 17:08   ` [bug#34222] [PATCH 09/15] gnu: Add ruby-bacon-colored-output Christopher Baines
2019-01-27 17:34     ` Ricardo Wurmus
2019-01-27 17:08   ` [bug#34222] [PATCH 10/15] gnu: Add ruby-ast Christopher Baines
2019-01-27 17:36     ` Ricardo Wurmus
2019-01-27 18:50       ` Christopher Baines
2019-01-27 17:08   ` [bug#34222] [PATCH 11/15] gnu: Add ruby-cliver Christopher Baines
2019-01-27 17:38     ` Ricardo Wurmus
2019-01-27 18:48       ` Christopher Baines
2019-01-27 17:08   ` [bug#34222] [PATCH 12/15] gnu: Add ruby-parser Christopher Baines
2019-01-27 17:39     ` Ricardo Wurmus
2019-01-27 17:08   ` [bug#34222] [PATCH 13/15] gnu: Add ruby-unicode-display-width Christopher Baines
2019-01-27 17:39     ` Ricardo Wurmus
2019-01-27 17:08   ` [bug#34222] [PATCH 14/15] gnu: Add ruby-jaro-winkler Christopher Baines
2019-01-27 17:40     ` Ricardo Wurmus
2019-01-27 18:45       ` Christopher Baines
2019-01-27 17:08   ` [bug#34222] [PATCH 15/15] gnu: Add ruby-rubocop Christopher Baines
2019-01-27 17:41     ` Ricardo Wurmus
2019-01-27 17:20   ` [bug#34222] [PATCH 01/15] gnu: ruby-rspec-its: Enable tests Ricardo Wurmus

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).