From 9bbe9c406bfaf1d0f945569ffeaf3a8dac193f2a Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Sun, 8 Jan 2023 21:23:42 -0500 Subject: [PATCH] gnu: ruby-faraday: Update to 2.7.4 and enable test suite. * gnu/packages/ruby.scm (ruby-faraday): Update to 2.7.4. [source]: Fetch from git. [arguments]: Delete #:tests? argument. Add #:test-target argument. [native-inputs]: New field. [propagated-inputs]: Delete ruby-multipart-post. Add ruby-ruby2-keywords. --- gnu/packages/ruby.scm | 37 ++++++++++++++++++++++--------------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index ebe88a46cd..9f9a5ea60c 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -12184,23 +12184,30 @@ (define-public ruby-faraday-net-http (define-public ruby-faraday (package (name "ruby-faraday") - (version "0.15.4") - (source - (origin - (method url-fetch) - (uri (rubygems-uri "faraday" version)) - (sha256 - (base32 - "0s72m05jvzc1pd6cw1i289chas399q0a14xrwg4rvkdwy7bgzrh0")))) + (version "2.7.4") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/lostisland/faraday") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0ya6jqa7ryr4i62mmzjjxzd8i8y0pyw0cbhifd758rs6lvkzmxa3")))) (build-system ruby-build-system) - (arguments - '(#:tests? #f)) - (propagated-inputs - (list ruby-multipart-post)) + (arguments (list #:test-target "spec")) + (native-inputs + (list ruby-coveralls + ruby-faraday-net-http + ruby-pry + ruby-rack + ruby-rspec + ruby-simplecov + ruby-webmock)) + (propagated-inputs (list ruby-ruby2-keywords)) (synopsis "Ruby HTTP/REST API client library") - (description - "Faraday is a HTTP/REST API client library which provides a common -interface over different adapters.") + (description "Faraday is a HTTP/REST API client library which provides a +common interface over different adapters.") (home-page "https://github.com/lostisland/faraday") (license license:expat)))