[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#62196] [PATCH 087/223] gnu: Add ruby-syntax-tree.
From: |
Maxim Cournoyer |
Subject: |
[bug#62196] [PATCH 087/223] gnu: Add ruby-syntax-tree. |
Date: |
Mon, 20 Mar 2023 13:14:19 -0400 |
* gnu/packages/ruby.scm (ruby-syntax-tree): New variable.
---
gnu/packages/ruby.scm | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 1ea90a543b..492468c296 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -12226,6 +12226,44 @@ (define-public ruby-language-server-protocol
(home-page "https://github.com/mtsmfm/language_server-protocol-ruby")
(license license:expat)))
+(define-public ruby-syntax-tree
+ (package
+ (name "ruby-syntax-tree")
+ (version "6.0.2")
+ (source (origin
+ (method git-fetch) ;for tests
+ (uri (git-reference
+ (url "https://github.com/ruby-syntax-tree/syntax_tree")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0p3gbc0y2ld9svhhx95nifqf67gjfyy478h6mzm7zz0dapi8v8jm"))))
+ (build-system ruby-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; The tests rely on the Gem being installed, so move the check
+ ;; phase after the install phase.
+ (delete 'check)
+ (add-after 'install 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (setenv "GEM_PATH" (string-append
+ #$output "/lib/ruby/vendor_ruby:"
+ (getenv "GEM_PATH")))
+ (when tests?
+ (invoke "rake" "test")))))))
+ (native-inputs (list ruby-rubocop-ast ruby-simplecov))
+ (propagated-inputs (list ruby-prettier-print))
+ (synopsis "Fast Ruby parser and formatter")
+ (description "Syntax Tree is a suite of tools built on top of the internal
+CRuby parser. It provides the ability to generate a syntax tree from source,
+as well as the tools necessary to inspect and manipulate that syntax tree. It
+can be used to build formatters, linters, language servers, and more.")
+ (home-page "https://github.com/ruby-syntax-tree/syntax_tree")
+ (license license:expat)))
+
(define-public ruby-mustache
(package
(name "ruby-mustache")
--
2.39.1
- [bug#62196] [PATCH 068/223] gnu: Add ruby-xpath., (continued)
- [bug#62196] [PATCH 068/223] gnu: Add ruby-xpath., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 074/223] gnu: Add ruby-minitest-stub-const., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 048/223] gnu: Add ruby-cucumber-ci-environment., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 062/223] gnu: ruby-actionview: Update to 7.0.4.3., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 099/223] gnu: ruby-octokit: Update to 6.1.0., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 078/223] gnu: Add ruby-rack-cache., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 090/223] gnu: Add ruby-concurrent-ruby., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 031/223] gnu: Add ruby-language-server-protocol., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 053/223] gnu: Remove ruby-cucumber-create-meta., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 055/223] gnu: ruby-aruba: Update to 2.1.0., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 087/223] gnu: Add ruby-syntax-tree.,
Maxim Cournoyer <=
- [bug#62196] [PATCH 026/223] gnu: Add ruby-rubocop-rake., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 067/223] gnu: ruby-activejob: Update to 7.0.4.3 and enable tests., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 011/223] gnu: ruby-unicode-display-width: Update to 2.4.2., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 012/223] gnu: Add ruby-rubocop-capybara-minimal., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 019/223] gnu: ruby-rspec-given: Update to 3.8.2., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 008/223] gnu: ruby-parser: Update to 3.2.1.1., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 009/223] gnu: ruby-rubocop-ast: Update to 1.27.0., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 017/223] gnu: ruby-rspec-mocks: Update to 3.12.4., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 013/223] gnu: ruby-rspec: Update to 3.12.0., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 022/223] gnu: ruby-simplecov-html: Update to 0.12.3., Maxim Cournoyer, 2023/03/20