[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
20/36: gnu: Add ruby-rubocop-ast.
From: |
guix-commits |
Subject: |
20/36: gnu: Add ruby-rubocop-ast. |
Date: |
Fri, 17 Jul 2020 23:24:43 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit 5c4c28f8f588d65a5b0162aeb81a8b4731e38fe6
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Tue Jul 14 22:36:25 2020 -0400
gnu: Add ruby-rubocop-ast.
* gnu/packages/ruby.scm (ruby-rubocop-ast): New variable.
---
gnu/packages/ruby.scm | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 7a8132a..9099d2f 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -6429,6 +6429,50 @@ inspired by the Sinatra microframework style of
specifying actions:
(home-page "https://github.com/rest-client/rest-client")
(license license:expat)))
+(define-public ruby-rubocop-ast
+ (package
+ (name "ruby-rubocop-ast")
+ (version "0.1.0")
+ (source
+ (origin
+ (method git-fetch) ;no test suite in distributed gem
+ (uri (git-reference
+ (url "https://github.com/rubocop-hq/rubocop-ast.git")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0nz25z5b76xkgb9sh370hni3l946j07fr05cdwkdj9x7ibgsb6nj"))))
+ (build-system ruby-build-system)
+ (arguments
+ `(#:test-target "spec"
+ #:phases (modify-phases %standard-phases
+ (add-after 'unpack 'disable-bundler
+ (lambda _
+ (substitute* "Rakefile"
+ (("Bundler\\.setup.*") "nil\n"))
+ #t))
+ (replace 'replace-git-ls-files
+ (lambda _
+ (substitute* "rubocop-ast.gemspec"
+ (("`git ls-files(.*)`" _ files)
+ (format #f "`find ~a -type f| sort`" files)))
+ #t)))))
+ (native-inputs
+ `(("ruby-bump" ,ruby-bump)
+ ("ruby-rspec" ,ruby-rspec)))
+ (propagated-inputs
+ `(("ruby-parser" ,ruby-parser)))
+ (synopsis "RuboCop's AST extensions and NodePattern functionality")
+ (description "Rubocop::AST extends @code{ruby-parser} with classes used
+by RuboCop to deal with Ruby's Abstract Syntax Tree (AST), in particular:
+@itemize
+@item @code{RuboCop::AST::Node}
+@item @code{RuboCop::AST::NodePattern}
+@end itemize")
+ (home-page "https://rubocop.org/")
+ (license license:expat)))
+
(define-public ruby-rubocop
(package
(name "ruby-rubocop")
- 08/36: gnu: Add ruby-prawn-icon., (continued)
- 08/36: gnu: Add ruby-prawn-icon., guix-commits, 2020/07/17
- 09/36: gnu: Add ruby-css-parser., guix-commits, 2020/07/17
- 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 <=
- 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, 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