diff options
author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2023-01-08 21:23:42 -0500 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2023-03-28 22:22:25 -0400 |
commit | 9bbe9c406bfaf1d0f945569ffeaf3a8dac193f2a (patch) | |
tree | f8526c32bebdacf55500fc49648c865e8c16e4b4 /gnu | |
parent | 0eac35350cb91621e2b3555cb9d90916892e4bc0 (diff) | |
download | guix-9bbe9c406bfaf1d0f945569ffeaf3a8dac193f2a.tar.gz guix-9bbe9c406bfaf1d0f945569ffeaf3a8dac193f2a.zip |
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.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/ruby.scm | 37 |
1 files 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 @@ over many adapters.") (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))) |