[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
32/66: gnu: Add ruby-idn-ruby.
From: |
guix-commits |
Subject: |
32/66: gnu: Add ruby-idn-ruby. |
Date: |
Thu, 14 Feb 2019 16:38:36 -0500 (EST) |
cbaines pushed a commit to branch master
in repository guix.
commit f3d7bb9323582d142e6f8d6f6371d58fc55516e1
Author: Christopher Baines <address@hidden>
Date: Sun Jan 27 19:41:26 2019 +0000
gnu: Add ruby-idn-ruby.
Required for the ruby-addressable tests.
* gnu/packages/ruby.scm (ruby-idn-ruby): 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 9c229db..d01297c 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -40,6 +40,7 @@
#:use-module (gnu packages autotools)
#:use-module (gnu packages java)
#:use-module (gnu packages libffi)
+ #:use-module (gnu packages libidn)
#:use-module (gnu packages maths)
#:use-module (gnu packages ncurses)
#:use-module (gnu packages networking)
@@ -2014,6 +2015,52 @@ irb's last-word approach.")
(home-page "http://tagaholic.me/bond/")
(license license:expat)))
+(define-public ruby-idn-ruby
+ (package
+ (name "ruby-idn-ruby")
+ (version "0.1.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (rubygems-uri "idn-ruby" version))
+ (sha256
+ (base32
+ "07vblcyk3g72sbq12xz7xj28snpxnh3sbcnxy8bglqbfqqhvmawr"))))
+ (build-system ruby-build-system)
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ (delete 'check)
+ (add-after 'install 'check
+ (lambda* (#:key tests? outputs #:allow-other-keys)
+ (when tests?
+ (let* ((gem-file (cadr (find-files "." "\\.gem")))
+ (name-and-version (basename gem-file ".gem")))
+ (apply invoke
+ "ruby" "--verbose"
+ (string-append "-I"
+ (assoc-ref outputs "out")
+ "/lib/ruby/vendor_ruby/gems/"
+ name-and-version
+ "/lib")
+ (find-files "./test" ".*\\.rb"))))
+ #t)))))
+ (inputs
+ `(("libidn" ,libidn)))
+ (synopsis "Ruby Bindings for the GNU LibIDN library")
+ (description
+ "Ruby Bindings for the GNU LibIDN library, an implementation of the
+Stringprep, Punycode and IDNA specifications. These are used to encode and
+decode internationalized domain + names according to the IDNA2003
+specifications.
+
+Included are the most important parts of the Stringprep, Punycode and IDNA
+APIs like performing Stringprep processings, encoding to and decoding from
+Punycode strings and converting entire domain names to and from the ACE
+encoded form.")
+ (home-page "https://github.com/deepfryed/idn-ruby")
+ (license license:asl2.0)))
+
(define-public ruby-instantiator
(package
(name "ruby-instantiator")
- 10/66: gnu: ruby-cucumber-core: Update to 3.2.1., (continued)
- 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, 2019/02/14
- 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 <=
- 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
- 29/66: gnu: ruby-minitest: Update to 5.11.3., guix-commits, 2019/02/14
- 26/66: gnu: Add ruby-jaro-winkler., guix-commits, 2019/02/14
- 27/66: gnu: Add ruby-rubocop., guix-commits, 2019/02/14
- 50/66: gnu: Add ruby-rails-dom-testing., guix-commits, 2019/02/14
- 58/66: gnu: Add ruby-globalid., guix-commits, 2019/02/14