[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
23/36: gnu: Add ruby-range-compressor.
From: |
guix-commits |
Subject: |
23/36: gnu: Add ruby-range-compressor. |
Date: |
Fri, 17 Jul 2020 23:24:44 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit ac75f1df1d41249260c1599d8d62871189382bb0
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Wed Jul 15 01:09:06 2020 -0400
gnu: Add ruby-range-compressor.
* gnu/packages/ruby.scm (ruby-range-compressor): New variable.
---
gnu/packages/ruby.scm | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 3c3da2a..cf500c8 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -6524,6 +6524,39 @@ better performance than @code{Regexp} and @code{String}
methods from the
(home-page "https://github.com/jaynetics/character_set")
(license license:expat)))
+(define-public ruby-range-compressor
+ (package
+ (name "ruby-range-compressor")
+ (version "1.0.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/janosch-x/range_compressor.git")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0y8slri2msyyg2szgwgriqd6qw9hkxycssdrcl5lk2dbcq5zvn54"))))
+ (build-system ruby-build-system)
+ (arguments
+ `(#:test-target "spec"
+ #:phases (modify-phases %standard-phases
+ (add-after 'extract-gemspec 'strip-version-requirements
+ (lambda _
+ (substitute* "range_compressor.gemspec"
+ (("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped)
+ (string-append stripped "\n")))
+ #t)))))
+ (native-inputs
+ `(("ruby-rspec" ,ruby-rspec)))
+ (synopsis "Simple arrays of objects to arrays of ranges compressor")
+ (description "RangeCompresses is a tiny library that allows compressing
+arrays of objects into arrays of ranges. For example, it can turn the
+following: @code{[1, 2, 3, 4, 6, 8, 9, 10]} into @code{[1..4, 6..6, 8..10]}.")
+ (home-page "https://github.com/janosch-x/range_compressor")
+ (license license:expat)))
+
(define-public ruby-rubocop
(package
(name "ruby-rubocop")
- 11/36: gnu: Add ruby-prawn-templates., (continued)
- 11/36: gnu: Add ruby-prawn-templates., guix-commits, 2020/07/17
- 14/36: gnu: Add ruby-sorcerer., guix-commits, 2020/07/17
- 15/36: gnu: Add ruby-given-core., guix-commits, 2020/07/17
- 16/36: gnu: Add ruby-rspec-given., guix-commits, 2020/07/17
- 18/36: gnu: ruby-parser: Update to 2.7.1.4., guix-commits, 2020/07/17
- 10/36: gnu: Add ruby-prawn-svg., guix-commits, 2020/07/17
- 13/36: gnu: Add ruby-treetop., guix-commits, 2020/07/17
- 17/36: gnu: ruby-coveralls: Strip exact versions from gemspec file., guix-commits, 2020/07/17
- 20/36: gnu: Add ruby-rubocop-ast., guix-commits, 2020/07/17
- 22/36: gnu: Add ruby-character-set., guix-commits, 2020/07/17
- 23/36: gnu: Add ruby-range-compressor.,
guix-commits <=
- 24/36: gnu: Add ruby-regexp-property-values., guix-commits, 2020/07/17
- 25/36: gnu: Add ruby-regexp-parser., guix-commits, 2020/07/17
- 27/36: gnu: ruby-rubocop: Update to 0.88.0., guix-commits, 2020/07/17
- 28/36: gnu: Add ruby-rubocop-performance., guix-commits, 2020/07/17
- 29/36: gnu: Add ruby-gimme., guix-commits, 2020/07/17
- 30/36: gnu: Add ruby-standard., guix-commits, 2020/07/17
- 34/36: gnu: ruby-rouge: Update to 3.21.0., guix-commits, 2020/07/17
- 12/36: gnu: Add ruby-polyglot., guix-commits, 2020/07/17
- 19/36: gnu: ruby-ast: Update to 2.4.1., guix-commits, 2020/07/17
- 21/36: gnu: Add ruby-rexml., guix-commits, 2020/07/17