Subject: [PATCH 20/41] gnu: Add ruby-cane.

From: Julien Lepiller <[email-masked]>
Date: Sun, 26 Aug 2018 18:41:42 +0200

* gnu/packages/ruby.scm (ruby-cane): 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 e84418cff..d508faddb 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -5435,3 +5435,22 @@ interface.  It allows Jekyll to rebuild your site when a file changes.")
 (to use all CPUs) or Threads(to speedup blocking operations).  It is best
 suited for map-reduce or e.g. parallel downloads/uploads.")
     (license license:expat)))
+
+(define-public ruby-cane
+  (package
+    (name "ruby-cane")
+    (version "3.0.0")
+    (source (origin
+              (method url-fetch)
+              (uri (rubygems-uri "cane" version))
+              (sha256
+               (base32
+                "0yf5za3l7lhrqa3g56sah73wh33lbxy5y3cb7ij0a2bp1b4kwhih"))))
+    (build-system ruby-build-system)
+    (arguments `(#:tests? #f)); No rakefile
+    (home-page "http://github.com/square/cane")
+    (propagated-inputs
+     `(("ruby-parallel" ,ruby-parallel)))
+    (synopsis "Code quality threshold checking")
+    (description "Cane fails your build if code quality thresholds are not met.")
+    (license license:asl2.0)))
-- 
2.18.0