From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: [PATCH] A couple of Ruby gems. Date: Tue, 24 Nov 2015 16:56:15 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41073) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1FxF-00070k-UU for guix-devel@gnu.org; Tue, 24 Nov 2015 10:56:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a1FxC-0002RP-Ls for guix-devel@gnu.org; Tue, 24 Nov 2015 10:56:29 -0500 Received: from venus.bbbm.mdc-berlin.de ([141.80.25.30]:38108) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1FxC-0002RJ-7m for guix-devel@gnu.org; Tue, 24 Nov 2015 10:56:26 -0500 Received: from localhost (localhost [127.0.0.1]) by venus.bbbm.mdc-berlin.de (Postfix) with ESMTP id 8F9B9380910 for ; Tue, 24 Nov 2015 16:56:24 +0100 (CET) Received: from venus.bbbm.mdc-berlin.de ([127.0.0.1]) by localhost (venus.bbbm.mdc-berlin.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0YW9eufOCsI3 for ; Tue, 24 Nov 2015 16:56:18 +0100 (CET) Received: from HTCAONE.mdc-berlin.net (mab.citx.mdc-berlin.de [141.80.36.102]) by venus.bbbm.mdc-berlin.de (Postfix) with ESMTP for ; Tue, 24 Nov 2015 16:56:18 +0100 (CET) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel --=-=-= Content-Type: text/plain Hi Guix, here are some more Ruby gems. I still have about a dozen or so that follow these. ~~ Ricardo --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename="0001-gnu-Add-ruby-simplecov.patch" >From 8e19b5df97fd486309b6d22b4f37c781e6748258 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Tue, 24 Nov 2015 16:48:42 +0100 Subject: [PATCH 1/6] gnu: Add ruby-simplecov. * gnu/packages/ruby.scm (ruby-simplecov): 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 4a33c3c..4265435 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -852,6 +852,33 @@ 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-simplecov + (package + (name "ruby-simplecov") + (version "0.10.0") + (source (origin + (method url-fetch) + (uri (rubygems-uri "simplecov" version)) + (sha256 + (base32 + "1q2iq2vgrdvvla5y907gkmqx6ry2qvnvc7a90hlcbwgp1w0sv6z4")))) + (build-system ruby-build-system) + ;; Simplecov depends on rubocop for code style checking at build time. + ;; Rubocop needs simplecov at build time. + (arguments `(#:tests? #f)) + (propagated-inputs + `(("ruby-json" ,ruby-json) + ("ruby-docile" ,ruby-docile) + ("ruby-simplecov-html" ,ruby-simplecov-html))) + (native-inputs + `(("bundler" ,bundler))) + (synopsis "Code coverage framework for Ruby") + (description "SimpleCov is a code coverage framework for Ruby with a +powerful configuration library and automatic merging of coverage across test +suites.") + (home-page "http://github.com/colszowka/simplecov") + (license license:expat))) + (define-public ruby-useragent (package (name "ruby-useragent") -- 2.1.0 --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename="0002-gnu-Add-ruby-atoulme-saikuro.patch" >From 16508c8842f8d87caa75c370f672535a3a390c2d Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Tue, 24 Nov 2015 16:50:37 +0100 Subject: [PATCH 2/6] gnu: Add ruby-atoulme-saikuro. * gnu/packages/ruby.scm (ruby-atoulme-saikuro): 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 4265435..1aa0397 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -518,6 +518,32 @@ script.") (home-page "http://rubyforge.org/projects/antwrap/") (license license:expat))) +(define-public ruby-atoulme-saikuro + (package + (name "ruby-atoulme-saikuro") + (version "1.2.1") + (source (origin + (method url-fetch) + (uri (rubygems-uri "atoulme-Saikuro" version)) + (sha256 + (base32 + "0kvd2nsxffbza61d3q4j94wrbnbv50r1zy3a7q26f6k706fw1f19")))) + (build-system ruby-build-system) + ;; FIXME: There are no unit tests. The tests are demonstrations of the + ;; "saikuro" tool. + (arguments `(#:tests? #f)) + (synopsis "Cyclomatic complexity analyzer") + (description "Saikuro is a Ruby cyclomatic complexity analyzer. When +given Ruby source code Saikuro will generate a report listing the cyclomatic +complexity of each method found. In addition, Saikuro counts the number of +lines per method and can generate a listing of the number of tokens on each +line of code.") + (home-page "http://www.github.com/atoulme/Saikuro") + ;; File headers contain the BSD-3 license and the README.rdoc says that + ;; "Saikuro uses the BSD license", but the LICENSE file contains the text + ;; of the Expat license. + (license license:bsd-3))) + (define-public ruby-orderedhash (package (name "ruby-orderedhash") -- 2.1.0 --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename="0003-gnu-Add-ruby-ci-reporter.patch" >From 58af6576358ceb0df3201d2ab0700568b078b496 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Tue, 24 Nov 2015 16:51:19 +0100 Subject: [PATCH 3/6] gnu: Add ruby-ci-reporter. * gnu/packages/ruby.scm (ruby-ci-reporter): 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 1aa0397..a01eefc 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -544,6 +544,33 @@ line of code.") ;; of the Expat license. (license license:bsd-3))) +(define-public ruby-ci-reporter + (package + (name "ruby-ci-reporter") + (version "2.0.0") + (source (origin + (method url-fetch) + (uri (rubygems-uri "ci_reporter" version)) + (sha256 + (base32 + "17fm20jmw3ajdryhkkxpjahcfx7bgswqzxrskivlkns2718ayyyg")))) + (build-system ruby-build-system) + (arguments + `(#:test-target "rspec")) + (propagated-inputs + `(("ruby-builder" ,ruby-builder))) + (native-inputs + `(("bundler" ,bundler) + ("ruby-rspec" ,ruby-rspec))) + (synopsis "Generate XML reports of runs test") + (description + "@code{CI::Reporter} is an add-on to Ruby testing frameworks that allows +you to generate XML reports of your test runs. The resulting files can be +read by a continuous integration system that understands Ant's JUnit report +format.") + (home-page "https://github.com/nicksieger/ci_reporter") + (license license:expat))) + (define-public ruby-orderedhash (package (name "ruby-orderedhash") -- 2.1.0 --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename="0004-gnu-Add-ruby-pry-editline.patch" >From 895e72ba4e1d716148625880248e048ed09452bf Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Tue, 24 Nov 2015 16:52:10 +0100 Subject: [PATCH 4/6] gnu: Add ruby-pry-editline. * gnu/packages/ruby.scm (ruby-pry-editline): 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 a01eefc..d0f6fe9 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -1809,6 +1809,27 @@ kernel subsystem for monitoring changes to files and directories.") (home-page "https://github.com/nex3/rb-inotify") (license license:expat))) +(define-public ruby-pry-editline + (package + (name "ruby-pry-editline") + (version "1.1.2") + (source (origin + (method url-fetch) + (uri (rubygems-uri "pry-editline" version)) + (sha256 + (base32 + "1pjxyvdxvw41xw3yyl18pwzix8hbvn6lgics7qcfhjfsf1zs8x1z")))) + (build-system ruby-build-system) + (arguments `(#:tests? #f)) ; no tests included + (native-inputs + `(("bundler" ,bundler))) + (synopsis "Open the current REPL line in an editor") + (description + "This gem provides a plugin for the Ruby REPL to enable opening the +current line in an external editor.") + (home-page "https://github.com/tpope/pry-editline") + (license license:expat))) + (define-public ruby-json (package (name "ruby-json") -- 2.1.0 --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename="0005-gnu-Add-ruby-sdoc.patch" >From 80b85007b0915f6720a34a38fe520e485c1ab0c1 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Tue, 24 Nov 2015 16:52:53 +0100 Subject: [PATCH 5/6] gnu: Add ruby-sdoc. * gnu/packages/ruby.scm (ruby-sdoc): 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 d0f6fe9..7e02d41 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -1830,6 +1830,38 @@ current line in an external editor.") (home-page "https://github.com/tpope/pry-editline") (license license:expat))) +(define-public ruby-sdoc + (package + (name "ruby-sdoc") + (version "0.4.1") + (source (origin + (method url-fetch) + (uri (rubygems-uri "sdoc" version)) + (sha256 + (base32 + "16xyfair1j4irfkd6sxvmdcak957z71lwkvhglrznfpkalfnqyqp")))) + (build-system ruby-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'build 'relax-minitest-requirement + (lambda _ + (substitute* "sdoc.gemspec" + ((", \\[\"~> 4\\.0\"\\]") + ", [\">= 4.0\"]")) + #t))))) + (propagated-inputs + `(("ruby-json" ,ruby-json))) + (native-inputs + `(("bundler" ,bundler) + ("ruby-minitest" ,ruby-minitest))) + (synopsis "Generate searchable RDoc documentation") + (description + "SDoc is an RDoc documentation generator to build searchable HTML +documentation for Ruby code.") + (home-page "http://github.com/voloko/sdoc") + (license license:expat))) + (define-public ruby-json (package (name "ruby-json") -- 2.1.0 --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename="0006-gnu-Add-ruby-tins.patch" >From 74d5d2752f54b2ffaa6f31f8925aa16346b4bf91 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Tue, 24 Nov 2015 16:54:09 +0100 Subject: [PATCH 6/6] gnu: Add ruby-tins. * gnu/packages/ruby.scm (ruby-tins): 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 7e02d41..c51a5f0 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -1862,6 +1862,36 @@ documentation for Ruby code.") (home-page "http://github.com/voloko/sdoc") (license license:expat))) +(define-public ruby-tins + (package + (name "ruby-tins") + (version "1.7.0") + (source (origin + (method url-fetch) + (uri (rubygems-uri "tins" version)) + (sha256 + (base32 + "1060h8dgnjl9az0sv1b74yrni8d4mh3x858wq6yfbfdf5dxrfl0a")))) + (build-system ruby-build-system) + ;; This gem needs gem-hadar at development time, but gem-hadar needs tins + ;; at runtime. To avoid the dependency on gem-hadar we disable rebuilding + ;; the gemspec. + (arguments + `(#:tests? #f ; there are no tests + #:phases + (modify-phases %standard-phases + (replace 'build + (lambda _ + ;; "lib/spruz" is a symlink. Leaving it in the gemspec file + ;; causes an error. + (substitute* "tins.gemspec" + (("\"lib/spruz\", ") "")) + (zero? (system* "gem" "build" "tins.gemspec"))))))) + (synopsis "Assorted tools for Ruby") + (description "Tins is a Ruby library providing assorted tools.") + (home-page "https://github.com/flori/tins") + (license license:expat))) + (define-public ruby-json (package (name "ruby-json") -- 2.1.0 --=-=-=--