[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#34514] [PATCH 30/34] gnu: Add ruby-execjs.
From: |
Christopher Baines |
Subject: |
[bug#34514] [PATCH 30/34] gnu: Add ruby-execjs. |
Date: |
Sun, 17 Feb 2019 19:23:10 +0000 |
* gnu/packages/ruby.scm (ruby-execjs): New variable.
---
gnu/packages/ruby.scm | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 60b5e4b0e7..2c49b1587c 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -49,6 +49,7 @@
#:use-module (gnu packages maths)
#:use-module (gnu packages ncurses)
#:use-module (gnu packages networking)
+ #:use-module (gnu packages node)
#:use-module (gnu packages python)
#:use-module (gnu packages python-xyz)
#:use-module (gnu packages ragel)
@@ -1296,6 +1297,39 @@ support.")
(home-page "http://www.kuwata-lab.com/erubis/")
(license license:expat)))
+(define-public ruby-execjs
+ (package
+ (name "ruby-execjs")
+ (version "2.7.0")
+ (source
+ (origin
+ ;; fetch from github as the gem does not contain testing code
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/rails/execjs.git")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0c0vd2mmqq3ar4plbwi2wsbr31vn4h45i19r5km66skydnnbp1y6"))))
+ (build-system ruby-build-system)
+ (native-inputs
+ `(("bundler" ,bundler)
+ ;; The test suite tests all the available backends. Currenly, this just
+ ;; means the node backend.
+ ;;
+ ;; PASSED: test:node
+ ;; SKIPPED: test:duktape, ;; test:javascriptcore, test:jscript,
+ ;; test:miniracer, test:rubyracer, ;; test:rubyrhino, test:v8
+ ("node" ,node)))
+ (synopsis "ExecJS lets you run JavaScript code from Ruby")
+ (description
+ "ExecJS lets you run JavaScript code from Ruby. It automatically picks a
+runtime to evaluate your JavaScript program, then returns the result to you as
+a Ruby object.")
+ (home-page "https://github.com/rails/execjs")
+ (license license:expat)))
+
(define-public ruby-orderedhash
(package
(name "ruby-orderedhash")
--
2.20.1
- [bug#34514] [PATCH 20/34] gnu: Add ruby-temple., (continued)
- [bug#34514] [PATCH 20/34] gnu: Add ruby-temple., Christopher Baines, 2019/02/17
- [bug#34514] [PATCH 15/34] gnu: Add ruby-minitest-around., Christopher Baines, 2019/02/17
- [bug#34514] [PATCH 24/34] gnu: Add ruby-dep., Christopher Baines, 2019/02/17
- [bug#34514] [PATCH 18/34] gnu: Add ruby-sassc., Christopher Baines, 2019/02/17
- [bug#34514] [PATCH 22/34] gnu: Add ruby-tilt., Christopher Baines, 2019/02/17
- [bug#34514] [PATCH 25/34] gnu: ruby-jekyll-watch: Update to 2.1.2., Christopher Baines, 2019/02/17
- [bug#34514] [PATCH 23/34] gnu: Add ruby-sass-rails., Christopher Baines, 2019/02/17
- [bug#34514] [PATCH 21/34] gnu: Add ruby-haml., Christopher Baines, 2019/02/17
- [bug#34514] [PATCH 27/34] gnu: ruby-listen: Enable running the tests., Christopher Baines, 2019/02/17
- [bug#34514] [PATCH 29/34] gnu: Add ruby-web-console., Christopher Baines, 2019/02/17
- [bug#34514] [PATCH 30/34] gnu: Add ruby-execjs.,
Christopher Baines <=
- [bug#34514] [PATCH 32/34] gnu: Add ruby-rspec-rails., Christopher Baines, 2019/02/17
- [bug#34514] [PATCH 31/34] gnu: ruby: Update some RSpec packages., Christopher Baines, 2019/02/17
- [bug#34514] [PATCH 33/34] gnu: Add ruby-autoprefixer-rails., Christopher Baines, 2019/02/17
- [bug#34514] [PATCH 28/34] gnu: Add ruby-bindex., Christopher Baines, 2019/02/17
- [bug#34514] [PATCH 26/34] gnu: Remove ruby-listen-3.0., Christopher Baines, 2019/02/17
- [bug#34514] [PATCH 34/34] gnu: Add ruby-rerun., Christopher Baines, 2019/02/17
- [bug#34514] [PATCH 16/34] gnu: Add libsass., Christopher Baines, 2019/02/17
- [bug#34514] [PATCH 01/34] gnu: Add ruby-hamster., Ricardo Wurmus, 2019/02/18