From 2d52a8adff1bab73a583c42b066b4fffe54785db Mon Sep 17 00:00:00 2001 From: Ben Woodcroft Date: Mon, 5 Feb 2018 11:35:19 +0100 Subject: gnu: Add ruby-addressable. * gnu/packages/ruby.scm (ruby-addressable): New variable. --- gnu/packages/ruby.scm | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index a1b444ce68..38315757cd 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -5320,3 +5320,46 @@ value of an attribute. For example, one can use @code{its(:size)\\{should eq(1)\\}}.") (home-page "https://github.com/rspec/rspec-its") (license license:expat))) + +(define-public ruby-addressable + (package + (name "ruby-addressable") + (version "2.4.0") + (source + (origin + (method url-fetch) + (uri (rubygems-uri "addressable" version)) + (sha256 + (base32 + "0mpn7sbjl477h56gmxsjqb89r5s3w7vx5af994ssgc3iamvgzgvs")))) + (build-system ruby-build-system) + (arguments + '(#:test-target "spec" + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-rakefile + (lambda _ + (substitute* "Gemfile" + (("git: 'https://github.com/sporkmonger/rack-mount.git',") "") + ((".*launchy.*") "") + ((".*redcarpet.*") "")) + #t)) + (add-before 'check 'delete-network-test + (lambda _ + (delete-file "spec/addressable/net_http_compat_spec.rb") + #t))))) + (native-inputs + `(("ruby-rspec" ,ruby-rspec) + ("bundler" ,bundler) + ("ruby-sporkmonger-rack-mount" ,ruby-sporkmonger-rack-mount) + ("ruby-rspec-its", ruby-rspec-its) + ("ruby-yard" ,ruby-yard) + ("ruby-simplecov" ,ruby-simplecov))) + (synopsis "Uniform resource identifier (URI) reimplementation") + (description + "Addressable is a replacement for the URI implementation that is part of +Ruby's standard library. It more closely conforms to the relevant RFCs and +adds support for IRIs and URI templates.") + (home-page + "https://github.com/sporkmonger/addressable") + (license license:asl2.0))) -- cgit v1.2.3