From b8d1284781212fa78583afd97767659d41572b1e Mon Sep 17 00:00:00 2001 From: Ben Woodcroft Date: Mon, 5 Feb 2018 11:44:01 +0100 Subject: gnu: Add ruby-rest-client. --- gnu/packages/ruby.scm | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 7cc1115cf4..439caeb8f3 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -5636,3 +5636,44 @@ (define-public ruby-truthy "Easily get truthiness values of Ruby objects") (home-page "https://rubygems.org/gems/truthy") (license #f))) + +(define-public ruby-rest-client + (package + (name "ruby-rest-client") + (version "1.8.0") + (source + (origin + (method url-fetch) + (uri (rubygems-uri "rest-client" version)) + (sha256 + (base32 + "1m8z0c4yf6w47iqz6j2p7x1ip4qnnzvhdph9d5fgx081cvjly3p7")))) + (build-system ruby-build-system) + (arguments + `(#:tests? #f + #:phases + (modify-phases %standard-phases + (add-before 'check 'fix-dependencies + (lambda _ + (substitute* "rest-client.gemspec" + ((".*pry.*") "\n")) + #t)) + (add-before 'check 'delete-network-tests + (lambda _ + (delete-file "spec/integration/request_spec.rb") + #t))))) + (propagated-inputs + `(("ruby-http-cookie" ,ruby-http-cookie) + ("ruby-mime-types" ,ruby-mime-types) + ("ruby-netrc" ,ruby-netrc))) + (native-inputs + `(("bundler" ,bundler) + ("ruby-webmock", ruby-webmock) + ("ruby-rspec", ruby-rspec-2))) + (synopsis + "A simple HTTP and REST client for Ruby, inspired by the Sinatra microframework style of specifying actions: get, put, post, delete.") + (description + "A simple HTTP and REST client for Ruby, inspired by the Sinatra microframework style of specifying actions: get, put, post, delete.") + (home-page + "https://github.com/rest-client/rest-client") + (license license:expat))) -- cgit v1.2.3