diff options
author | Ben Woodcroft <donttrustben@gmail.com> | 2018-02-05 11:35:19 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2018-03-18 18:25:03 +0000 |
commit | 9b088b90e5396a75577bbd57525b35b454aa7685 (patch) | |
tree | 3efb768bc3b6461e4ef1e191f248377419e3369b /gnu/packages/ruby.scm | |
parent | 828b82cbfc37dc4482dc37e79c4889bea5cd3817 (diff) | |
download | guix-9b088b90e5396a75577bbd57525b35b454aa7685.tar guix-9b088b90e5396a75577bbd57525b35b454aa7685.tar.gz |
gnu: Add ruby-addressable.
* gnu/packages/ruby.scm (ruby-addressable): New variable.
Diffstat (limited to 'gnu/packages/ruby.scm')
-rw-r--r-- | gnu/packages/ruby.scm | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index b0ad986044..da095ab7d1 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -5193,3 +5193,47 @@ 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 + `(#:tests? #f + #: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))) |