diff options
author | Ben Woodcroft <donttrustben@gmail.com> | 2018-02-05 11:35:19 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2018-07-16 07:38:07 +0100 |
commit | 2d52a8adff1bab73a583c42b066b4fffe54785db (patch) | |
tree | 04d4094e684809e63bec1493313240c6ad2493cf | |
parent | 2150630744cebd250084a4b37851bcaad5b3188f (diff) | |
download | guix-2d52a8adff1bab73a583c42b066b4fffe54785db.tar guix-2d52a8adff1bab73a583c42b066b4fffe54785db.tar.gz |
gnu: Add ruby-addressable.
* gnu/packages/ruby.scm (ruby-addressable): New variable.
-rw-r--r-- | gnu/packages/ruby.scm | 43 |
1 files changed, 43 insertions, 0 deletions
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))) |