[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
43/59: gnu: ruby-rest-client: Update to 2.1.0.
From: |
guix-commits |
Subject: |
43/59: gnu: ruby-rest-client: Update to 2.1.0. |
Date: |
Wed, 28 Jun 2023 05:55:17 -0400 (EDT) |
cbaines pushed a commit to branch ruby-team
in repository guix.
commit 7befcef13ca069b9979aa013310d8f010e000566
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Wed Jun 28 08:28:44 2023 +0100
gnu: ruby-rest-client: Update to 2.1.0.
This package looks to be in a bad state upstream.
* gnu/packages/ruby.scm (ruby-rest-client): Update to 2.1.0.
[arguments]: Update style and stop running the tests.
[propagated-inputs]: Add ruby-http-accept-1.
---
gnu/packages/ruby.scm | 56 ++++++++++++++++++++++++++++++---------------------
1 file changed, 33 insertions(+), 23 deletions(-)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 6565a8946b..439163fbf7 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -8516,39 +8516,49 @@ techniques and a terse syntax.")
(define-public ruby-rest-client
(package
(name "ruby-rest-client")
- (version "2.0.2")
+ (version "2.1.0")
(source
(origin
(method url-fetch)
(uri (rubygems-uri "rest-client" version))
(sha256
(base32
- "1hzcs2r7b5bjkf2x2z3n8z6082maz0j8vqjiciwgg3hzb63f958j"))))
+ "1qs74yzl58agzx9dgjhcpgmzfn61fqkk33k1js2y5yhlvc5l19im"))))
(build-system ruby-build-system)
(arguments
- '(#:phases
- (modify-phases %standard-phases
- (add-before 'check 'remove-unnecessary-development-dependencies
- (lambda _
- (substitute* "rest-client.gemspec"
- ;; Remove rubocop as it's unused. Rubocop also indirectly
- ;; depends on this package through ruby-parser and ruby-ast so
- ;; this avoids a dependency loop.
- ((".*rubocop.*") "\n")
- ;; Remove pry as it's unused, it's a debugging tool
- ((".*pry.*") "\n")
- ;; Remove an unnecessarily strict rdoc dependency
- ((".*rdoc.*") "\n"))
- #t))
- (add-before 'check 'delete-network-dependent-tests
- (lambda _
- (delete-file "spec/integration/request_spec.rb")
- (delete-file "spec/integration/httpbin_spec.rb")
- #t)))))
+ (list
+ ;; TODO Some tests are currently broken
+ #:tests? #f
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'remove-unnecessary-development-dependencies
+ (lambda _
+ (substitute* "rest-client.gemspec"
+ ;; Remove rubocop as it's unused. Rubocop also indirectly
+ ;; depends on this package through ruby-parser and ruby-ast so
+ ;; this avoids a dependency loop.
+ ((".*rubocop.*") "\n")
+ ;; Remove pry as it's unused, it's a debugging tool
+ ((".*pry.*") "\n")
+ ;; Remove an unnecessarily strict rdoc dependency
+ ((".*rdoc.*") "\n"))))
+ (add-before 'check 'delete-network-dependent-tests
+ (lambda _
+ (delete-file "spec/integration/request_spec.rb")
+ (delete-file "spec/integration/httpbin_spec.rb")))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "rspec")))))))
(propagated-inputs
- (list ruby-http-cookie ruby-mime-types ruby-netrc))
+ (list ruby-http-accept-1
+ ruby-http-cookie
+ ruby-mime-types
+ ruby-netrc))
(native-inputs
- (list bundler ruby-webmock-2 ruby-rspec))
+ (list bundler
+ ruby-webmock-2
+ ruby-rspec))
(synopsis "Simple HTTP and REST client for Ruby")
(description
"@code{rest-client} provides a simple HTTP and REST client for Ruby,
- 18/59: gnu: ruby-mocha: Update to 2.0.4., (continued)
- 18/59: gnu: ruby-mocha: Update to 2.0.4., guix-commits, 2023/06/28
- 23/59: gnu: ruby-sqlite3: Update to 1.6.3., guix-commits, 2023/06/28
- 24/59: gnu: ruby-rack: Update to 2.2.7., guix-commits, 2023/06/28
- 28/59: gnu: ruby-minitest: Update to 5.18.1., guix-commits, 2023/06/28
- 29/59: gnu: ruby-thor: Update to 1.2.2., guix-commits, 2023/06/28
- 31/59: gnu: ruby-minitest-bonus-assertions: Fix build., guix-commits, 2023/06/28
- 34/59: gnu: ruby-mime-types: Update to 3.4.1., guix-commits, 2023/06/28
- 36/59: gnu: Add ruby-http-accept., guix-commits, 2023/06/28
- 38/59: gnu: ruby-protobuf: Fix build., guix-commits, 2023/06/28
- 39/59: gnu: ruby-hoe: Fix build., guix-commits, 2023/06/28
- 43/59: gnu: ruby-rest-client: Update to 2.1.0.,
guix-commits <=
- 45/59: gnu: ruby-puma: Update to 6.3.0., guix-commits, 2023/06/28
- 46/59: gnu: ruby-timecop: Update to 0.9.6., guix-commits, 2023/06/28
- 50/59: gnu: ruby-bootsnap: Fix build., guix-commits, 2023/06/28
- 53/59: gnu: zsh-autosuggestions: Remove ruby-byebug dependency., guix-commits, 2023/06/28
- 54/59: gnu: ruby-importmap-rails: Remove ruby-byebug dependency., guix-commits, 2023/06/28
- 56/59: gnu: ruby-maxitest: Update to 5.1.0., guix-commits, 2023/06/28
- 57/59: gnu: ruby-wapiti: Update to 2.1.0., guix-commits, 2023/06/28
- 59/59: gnu: ruby-rb-inotify: Update to 0.10.1., guix-commits, 2023/06/28
- 40/59: gnu: ruby-delayed-job: Fix build., guix-commits, 2023/06/28
- 41/59: gnu: ruby-oedipus-lex: Update to 2.6.1., guix-commits, 2023/06/28