[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
22/66: gnu: Add ruby-ast.
From: |
guix-commits |
Subject: |
22/66: gnu: Add ruby-ast. |
Date: |
Thu, 14 Feb 2019 16:38:34 -0500 (EST) |
cbaines pushed a commit to branch master
in repository guix.
commit d5840f77252d662da403a423f8f2cf947d1c712d
Author: Christopher Baines <address@hidden>
Date: Sun Jan 27 16:42:37 2019 +0000
gnu: Add ruby-ast.
Required for ruby-parser.
* gnu/packages/ruby.scm (ruby-ast): New variable.
---
gnu/packages/ruby.scm | 47 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index e4ac6cc..d55daaa 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -719,6 +719,53 @@ AsciiDoc content to HTML5, DocBook 5 (or 4.5), PDF, and
other formats.")
(home-page "https://asciidoctor.org")
(license license:expat)))
+(define-public ruby-ast
+ (package
+ (name "ruby-ast")
+ (version "2.4.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (rubygems-uri "ast" version))
+ (sha256
+ (base32
+ "184ssy3w93nkajlz2c70ifm79jp3j737294kbc5fjw69v1w0n9x7"))))
+ (build-system ruby-build-system)
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'remove-coveralls-requirement
+ (lambda _
+ (substitute* "test/helper.rb"
+ (("require 'coveralls'") "")
+ (("Coveralls::SimpleCov::Formatter") ""))
+ #t))
+ (add-after 'extract-gemspec 'remove-unnecessary-requirements
+ (lambda _
+ (substitute* "ast.gemspec"
+ ((".*coveralls.*") "\n")
+ (("%q<rest-client>.*") "%q<rest-client>.freeze, [\">= 0\"])\n")
+ (("%q<mime-types>.*") "%q<mime-types>.freeze, [\">= 0\"])\n")
+ (("%q<rake>.*") "%q<rake>.freeze, [\">= 0\"])\n"))
+ #t)))))
+ (native-inputs
+ `(("bundler" ,bundler)
+ ("ruby-simplecov" ,ruby-simplecov)
+ ("ruby-json-pure" ,ruby-json-pure)
+ ("ruby-mime-times" ,ruby-mime-types)
+ ("ruby-yard" ,ruby-yard)
+ ("ruby-kramdown" ,ruby-kramdown)
+ ("ruby-rest-client" ,ruby-rest-client)
+ ("ruby-bacon" ,ruby-bacon)
+ ("ruby-bacon-colored-output" ,ruby-bacon-colored-output)
+ ("ruby-racc" ,ruby-racc)))
+ (synopsis "Library for working with Abstract Syntax Trees")
+ (description
+ "@code{ast} is a Ruby library for working with Abstract Syntax Trees.
+It does this through immutable data structures.")
+ (home-page "https://whitequark.github.io/ast/")
+ (license license:expat)))
+
(define-public ruby-sporkmonger-rack-mount
;; Testing the addressable gem requires a newer commit than that released, so
;; use an up to date version.
- 06/66: gnu: Add ruby-cucumber-expressions., (continued)
- 06/66: gnu: Add ruby-cucumber-expressions., guix-commits, 2019/02/14
- 07/66: gnu: Add ruby-mspec., guix-commits, 2019/02/14
- 05/66: gnu: Add ruby-fuubar., guix-commits, 2019/02/14
- 14/66: gnu: Add ruby-powerpack., guix-commits, 2019/02/14
- 13/66: gnu: ruby-rspec-its: Enable tests., guix-commits, 2019/02/14
- 10/66: gnu: ruby-cucumber-core: Update to 3.2.1., guix-commits, 2019/02/14
- 09/66: gnu: Add ruby-cucumber-tag-expressions., guix-commits, 2019/02/14
- 11/66: gnu: ruby-gherkin: Update to 5.1.0., guix-commits, 2019/02/14
- 12/66: gnu: Add ruby-cucumber and ruby-aruba., guix-commits, 2019/02/14
- 20/66: gnu: Add ruby-rest-client., guix-commits, 2019/02/14
- 22/66: gnu: Add ruby-ast.,
guix-commits <=
- 33/66: gnu: ruby-addressable: Enable tests and update., guix-commits, 2019/02/14
- 18/66: gnu: Add ruby-crack., guix-commits, 2019/02/14
- 17/66: gnu: Add ruby-hashdiff., guix-commits, 2019/02/14
- 31/66: gnu: ruby-public-suffix: Enable tests., guix-commits, 2019/02/14
- 32/66: gnu: Add ruby-idn-ruby., guix-commits, 2019/02/14
- 24/66: gnu: Add ruby-parser., guix-commits, 2019/02/14
- 16/66: gnu: Add ruby-racc., guix-commits, 2019/02/14
- 21/66: gnu: Add ruby-bacon-colored-output., guix-commits, 2019/02/14
- 23/66: gnu: Add ruby-cliver., guix-commits, 2019/02/14
- 19/66: gnu: Add ruby-webmock., guix-commits, 2019/02/14