diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-04-28 20:02:04 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-04-28 20:02:04 +0100 |
commit | a4e2a46beb5e4858ef27bdedbb0ff6d2ced430ad (patch) | |
tree | 852c90a4bf354c30ea66504f70bfab5401fba18d /dev-ruby/net-sftp | |
parent | 5e8702bcbbed438e6c6cce023e7ef0cc9baa3e02 (diff) |
gentoo resync : 28.04.2018
Diffstat (limited to 'dev-ruby/net-sftp')
-rw-r--r-- | dev-ruby/net-sftp/Manifest | 3 | ||||
-rw-r--r-- | dev-ruby/net-sftp/files/net-sftp-2.1.2-net-ssh-4.patch | 42 | ||||
-rw-r--r-- | dev-ruby/net-sftp/net-sftp-2.1.2-r2.ebuild | 8 |
3 files changed, 49 insertions, 4 deletions
diff --git a/dev-ruby/net-sftp/Manifest b/dev-ruby/net-sftp/Manifest index 8ada9f2538a0..9399793fac67 100644 --- a/dev-ruby/net-sftp/Manifest +++ b/dev-ruby/net-sftp/Manifest @@ -1,3 +1,4 @@ +AUX net-sftp-2.1.2-net-ssh-4.patch 1628 BLAKE2B 1dc8caef775ca06c80f485732acdceeedc10aaa96e33c1c6c59ce5e1596a71a229aecb06092b3a265288ae46469d1c72b4a0de8ec3d50cba5fe0947158c3181e SHA512 dc4e99f13e32698bbcfe1b07e2ec4baa1ed9beec5bc3816c016f26b053f7134bb9646dc538a0d03f2f3bda4d8d51d9742a5be54dfc6f9340cf2861e296492855 DIST net-sftp-2.1.2.gem 67584 BLAKE2B 6b8e15f42c7a18f8c9aa7118e5822281eda6505c34697282cc9c52375ea0e4042f3045f41c2e9a15b8fd20f02946bfe6f3ad557aa5859a8e54e4c0ae8bd1d53d SHA512 126a9537a4ac45150096db4d46ad19e0d8a1833fef3733a1b66ff01463c0d109415f0ef807706ff88be8c5c1395bbd4620e529f06e3c9f746a4ed6ec2cb7d18d -EBUILD net-sftp-2.1.2-r2.ebuild 544 BLAKE2B d715d9129318dc1b600f58182c828af5a3e9ffab74c0377b9a4e213eddf4ae8961929dfec8db648a89b41672a32999f118c80e6bd47738d550f3c6447e3b2ec2 SHA512 6d5328ba493ba21d0334a09b2654dbc358a5c0330978157a1beff1767edfe8accf330a2e65f264401e4fc874c207b921d47bc0464f19a636619fcdfce3780af5 +EBUILD net-sftp-2.1.2-r2.ebuild 631 BLAKE2B 04775b002345417596c5da23372f04fbe74ee751a85659bec14fbc05178ea094a5b018309141ef92f6d4127353a396ad19d09d52cfde5eaecd3fec75bffef09d SHA512 38fbf6a9c76ee34c4967dd35e98842f7fd9e5756b1754fac19d0e74f2f826cb1417a79812c4a8ebbe34655f7e5ad4b56c937c776b513251c3a619828acaa4cf3 MISC metadata.xml 342 BLAKE2B b52478d886842e044705cc42c177577f111b2c01140b58d322107ecaf20bc1b5db9763ec0f0e67397118515690f452b51c1e14dcf6bada17d7c5f18889571b07 SHA512 3ece29fffeee2912d0bc06514adca69c2bdfa95bd88173d4f42cf0aee00944adc71bfaec6df543f0c1fc1717b7a808459f30894977154f7acce289dfb491f6d9 diff --git a/dev-ruby/net-sftp/files/net-sftp-2.1.2-net-ssh-4.patch b/dev-ruby/net-sftp/files/net-sftp-2.1.2-net-ssh-4.patch new file mode 100644 index 000000000000..d510153ba8d5 --- /dev/null +++ b/dev-ruby/net-sftp/files/net-sftp-2.1.2-net-ssh-4.patch @@ -0,0 +1,42 @@ +From 9870b32d31bbe5cddceead54c64f71e4fd91779e Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?V=C3=ADt=20Ondruch?= <vondruch@redhat.com> +Date: Mon, 27 Feb 2017 15:00:30 +0100 +Subject: [PATCH] Fix compatiblity with net-ssh 4.0+ + +--- + test/test_download.rb | 4 +++- + test/test_session.rb | 6 ++++-- + 2 files changed, 7 insertions(+), 3 deletions(-) + +diff --git a/test/test_download.rb b/test/test_download.rb +index d4a5f0b..d9582b6 100644 +--- a/test/test_download.rb ++++ b/test/test_download.rb +@@ -139,7 +139,9 @@ def test_download_file_should_transfer_remote_to_local_buffer + + def test_download_directory_to_buffer_should_fail + expect_sftp_session :server_version => 3 +- assert_raises(ArgumentError) { sftp.download("/path/to/remote", StringIO.new, :recursive => true) } ++ Net::SSH::Test::Extensions::IO.with_test_extension do ++ assert_raises(ArgumentError) { sftp.download("/path/to/remote", StringIO.new, :recursive => true) } ++ end + end + + private +diff --git a/test/test_session.rb b/test/test_session.rb +index a59058a..c398436 100644 +--- a/test/test_session.rb ++++ b/test/test_session.rb +@@ -660,8 +660,10 @@ def test_unblock_bang_should_block_and_return_response + + def assert_not_implemented(server_version, command, *args) + expect_sftp_session :server_version => 1 +- sftp.connect! +- assert_raises(NotImplementedError) { sftp.send(command, *args) } ++ Net::SSH::Test::Extensions::IO.with_test_extension do ++ sftp.connect! ++ assert_raises(NotImplementedError) { sftp.send(command, *args) } ++ end + end + + def assert_command_with_callback(command, *args) diff --git a/dev-ruby/net-sftp/net-sftp-2.1.2-r2.ebuild b/dev-ruby/net-sftp/net-sftp-2.1.2-r2.ebuild index 0fea846c2c4a..355c2a819361 100644 --- a/dev-ruby/net-sftp/net-sftp-2.1.2-r2.ebuild +++ b/dev-ruby/net-sftp/net-sftp-2.1.2-r2.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2016 Gentoo Foundation +# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=5 -USE_RUBY="ruby20 ruby21 ruby22 ruby23" +USE_RUBY="ruby22 ruby23 ruby24" RUBY_FAKEGEM_EXTRADOC="CHANGES.txt README.rdoc" @@ -16,7 +16,9 @@ SLOT="2" KEYWORDS="amd64 ppc ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris ~x86-solaris" IUSE="" -ruby_add_rdepend ">=dev-ruby/net-ssh-2.6.5" +RUBY_PATCHES=( "${FILESDIR}/${P}-net-ssh-4.patch" ) + +ruby_add_rdepend "|| ( dev-ruby/net-ssh:4 dev-ruby/net-ssh:3 dev-ruby/net-ssh:2.6 )" ruby_add_bdepend " test? ( |