[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
16/17: gnu: Add ruby-domain-name.
From: |
Ben Woodcroft |
Subject: |
16/17: gnu: Add ruby-domain-name. |
Date: |
Wed, 27 Jan 2016 14:12:28 +0000 |
benwoodcroft pushed a commit to branch master
in repository guix.
commit 5799aadde41ea576c158ddf027ea8d16f47c91ac
Author: Ben Woodcroft <address@hidden>
Date: Thu Dec 31 09:25:45 2015 +1000
gnu: Add ruby-domain-name.
* gnu/packages/ruby.scm (ruby-domain-name): New variable.
---
gnu/packages/ruby.scm | 40 ++++++++++++++++++++++++++++++++++++++++
1 files changed, 40 insertions(+), 0 deletions(-)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 181c279..ed1bc69 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -3334,6 +3334,46 @@ support to both Ruby and JRuby. It uses @code{unf_ext}
on CRuby and
(home-page "https://github.com/knu/ruby-unf")
(license license:bsd-2)))
+(define-public ruby-domain-name
+ (package
+ (name "ruby-domain-name")
+ (version "0.5.25")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (rubygems-uri "domain_name" version))
+ (sha256
+ (base32
+ "16qvfrmcwlzz073aas55mpw2nhyhjcn96s524w0g1wlml242hjav"))))
+ (build-system ruby-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-before 'check 'fix-versions
+ (lambda _
+ ;; Fix NameError that appears to already be fixed upstream.
+ (substitute* "Rakefile"
+ (("DomainName::VERSION")
+ "Bundler::GemHelper.gemspec.version"))
+ ;; Loosen unnecessarily strict test-unit version specification.
+ (substitute* "domain_name.gemspec"
+ (("<test-unit>, \\[\\\"~> 2.5.5") "<test-unit>, [\">0"))
+ #t)))))
+ (propagated-inputs
+ `(("ruby-unf" ,ruby-unf)))
+ (native-inputs
+ `(("ruby-shoulda" ,ruby-shoulda)
+ ("bundler" ,bundler)
+ ("ruby-test-unit" ,ruby-test-unit)))
+ (synopsis "Domain name manipulation library")
+ (description
+ "@code{domain_name} is a Domain name manipulation library. It parses a
+domain name ready for extracting the registered domain and TLD (Top Level
+Domain). It can also be used for cookie domain validation based on the Public
+Suffix List.")
+ (home-page "https://github.com/knu/ruby-domain_name")
+ (license license:bsd-2)))
+
(define-public ruby-ansi
(package
(name "ruby-ansi")
- branch master updated (f66842d -> d114cee), Ben Woodcroft, 2016/01/27
- 02/17: gnu: Add ruby-minitest-focus., Ben Woodcroft, 2016/01/27
- 06/17: gnu: Add ruby-minitest-rg., Ben Woodcroft, 2016/01/27
- 04/17: gnu: Add ruby-minitest-moar., Ben Woodcroft, 2016/01/27
- 12/17: gnu: Add ruby-shoulda-matchers., Ben Woodcroft, 2016/01/27
- 05/17: gnu: Add ruby-minitest-bonus-assertions., Ben Woodcroft, 2016/01/27
- 14/17: gnu: Add ruby-shoulda., Ben Woodcroft, 2016/01/27
- 16/17: gnu: Add ruby-domain-name.,
Ben Woodcroft <=
- 17/17: gnu: Add ruby-http-cookie., Ben Woodcroft, 2016/01/27
- 13/17: gnu: Add ruby-shoulda-matchers-2., Ben Woodcroft, 2016/01/27
- 10/17: gnu: Add ruby-sqlite3., Ben Woodcroft, 2016/01/27
- 07/17: gnu: Add ruby-mime-types-data., Ben Woodcroft, 2016/01/27
- 08/17: gnu: Add ruby-fivemat., Ben Woodcroft, 2016/01/27
- 09/17: gnu: Add ruby-mime-types., Ben Woodcroft, 2016/01/27
- 15/17: gnu: Add ruby-unf., Ben Woodcroft, 2016/01/27
- 01/17: gnu: Add ruby-turn., Ben Woodcroft, 2016/01/27
- 11/17: gnu: Add ruby-shoulda-context., Ben Woodcroft, 2016/01/27
- 03/17: gnu: Add ruby-minitest-pretty-diff., Ben Woodcroft, 2016/01/27