[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
30/36: gnu: Add ruby-standard.
From: |
guix-commits |
Subject: |
30/36: gnu: Add ruby-standard. |
Date: |
Fri, 17 Jul 2020 23:24:46 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit 97295c2aa4b7c2e9f5952b6e181812d8e34b769f
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Tue Jul 14 22:25:41 2020 -0400
gnu: Add ruby-standard.
* gnu/packages/ruby.scm (ruby-standard): New variable.
---
gnu/packages/ruby.scm | 52 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index ce41b41..e38f9af 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -1525,6 +1525,58 @@ only what they care about.")
(home-page "https://github.com/searls/gimme")
(license license:expat))))
+(define-public ruby-standard
+ (package
+ (name "ruby-standard")
+ (version "0.4.7")
+ (source
+ (origin
+ (method git-fetch) ;no test suite in distributed gem
+ (uri (git-reference
+ (url "https://github.com/testdouble/standard.git")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0ylx0lm2pbbgr5h7fban592w96bl3wxmvfcpcdfrhkxnpg5kiwgv"))))
+ (build-system ruby-build-system)
+ (arguments
+ ;; TODO: the tests are currently broken due to using a newer Rubocop.
+ `(#:tests? #f
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'relax-version-requiremens
+ (lambda _
+ (delete-file "Gemfile")
+ (delete-file "Gemfile.lock")
+ #t))
+ (replace 'replace-git-ls-files
+ (lambda _
+ ;; TODO: Remove after the fix of using 'cut' to better mimic the
+ ;; git ls-files output is merged in ruby-build-system.
+ (substitute* "standard.gemspec"
+ (("`git ls-files -z`")
+ "`find . -type f -not -regex '.*\\.gem$' -print0 \
+|sort -z|cut -zc3-`"))
+ #t)))))
+ (native-inputs
+ `(("ruby-gimme" ,ruby-gimme)
+ ("ruby-pry" ,ruby-pry)
+ ("ruby-simplecov" ,ruby-simplecov)))
+ (propagated-inputs
+ `(("ruby-rubocop" ,ruby-rubocop)
+ ("ruby-rubocop-performance" ,ruby-rubocop-performance)))
+ (synopsis "Ruby Style Guide, with linter & automatic code fixer")
+ (description "Standard is a port of StandardJS. Like StandardJS, it aims
+to save time in the following ways:
+@itemize
+@item No configuration.
+@item Automatically format code.
+@item Catch style issues and programmer errors early.
+@end itemize")
+ (home-page "https://github.com/testdouble/standard")
+ (license license:expat)))
+
(define-public ruby-ast
(package
(name "ruby-ast")
- 13/36: gnu: Add ruby-treetop., (continued)
- 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, 2020/07/17
- 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 <=
- 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
- 26/36: gnu: Add ruby-test-queue., guix-commits, 2020/07/17
- 31/36: gnu: Add ruby-chunky-png., guix-commits, 2020/07/17
- 32/36: gnu: Add ruby-text-hyphen., guix-commits, 2020/07/17
- 33/36: gnu: Add ruby-open-uri-cached., guix-commits, 2020/07/17
- 35/36: gnu: Add ruby-asciidoctor-pdf., guix-commits, 2020/07/17
- 36/36: gnu: ruby-yard: Make the package reproducible., guix-commits, 2020/07/17