aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Woodcroft <donttrustben@gmail.com>2018-02-05 11:44:01 +0100
committerChristopher Baines <mail@cbaines.net>2018-03-18 18:25:19 +0000
commitb8d1284781212fa78583afd97767659d41572b1e (patch)
treead3eb67704a952a68f35d6443dbfc0b925fe23fa
parentd8e256d19689a33b0e41a0e099dd32cc638886e3 (diff)
downloadguix-b8d1284781212fa78583afd97767659d41572b1e.tar
guix-b8d1284781212fa78583afd97767659d41572b1e.tar.gz
gnu: Add ruby-rest-client.
-rw-r--r--gnu/packages/ruby.scm41
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)))