diff options
-rw-r--r-- | gnu/packages/ruby.scm | 41 |
1 files changed, 41 insertions, 0 deletions
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 @@ percentage, bars of various formats, elapsed time and estimated time remaining. "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))) |