GNU bug report logs -
#64538
[PATCH 0/6] gnu: ruby-net-ssh: Update to 7.1.0.
Previous Next
Reported by: gemmaro <gemmaro.dev <at> gmail.com>
Date: Sun, 9 Jul 2023 05:56:02 UTC
Severity: normal
Tags: patch
Done: Christopher Baines <mail <at> cbaines.net>
Bug is archived. No further changes may be made.
Full log
Message #23 received at 64538 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/ruby.scm (ruby-net-ssh): Update to 7.1.0.
[source]: Switch to git-fetch for tests.
[arguments]: Add check-Net::SSH:Test phase.
[native-inputs]: Add ruby-bcrypt-pbkdf, ruby-ed25519, ruby-rbnacl,
and ruby-x25519 for tests with optional dependencies.
---
gnu/packages/ruby.scm | 26 ++++++++++++++++++++------
1 file changed, 20 insertions(+), 6 deletions(-)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 2ed6ca543e..fe58f8aede 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -5314,16 +5314,30 @@ (define-public ruby-mocha-on-bacon
(define-public ruby-net-ssh
(package
(name "ruby-net-ssh")
- (version "4.2.0")
+ (version "7.1.0")
(source (origin
- (method url-fetch)
- (uri (rubygems-uri "net-ssh" version))
+ (method git-fetch) ;for tests
+ (uri (git-reference
+ (url "https://github.com/net-ssh/net-ssh")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
(base32
- "07c4v97zl1daabmri9zlbzs6yvkl56z1q14bw74d53jdj0c17nhx"))))
+ "1dkbyzpl31jygnnva5sa754vk42q1fih4qz5ipqw5gqiafrrlb91"))))
(build-system ruby-build-system)
- (native-inputs
- (list bundler ruby-mocha ruby-test-unit))
+ (arguments
+ (list #:phases #~(modify-phases %standard-phases
+ (add-after 'check 'check-Net::SSH::Test
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "rake" "test_test")))))))
+ (native-inputs (list bundler
+ ruby-bcrypt-pbkdf
+ ruby-ed25519
+ ruby-mocha
+ ruby-rbnacl
+ ruby-test-unit
+ ruby-x25519))
(synopsis "Ruby implementation of the SSH2 client protocol")
(description "@code{Net::SSH} is a pure-Ruby implementation of the SSH2
client protocol. It allows you to write programs that invoke and interact
--
2.41.0
This bug report was last modified 1 year and 311 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.