summaryrefslogtreecommitdiff
path: root/dev-ruby/net-sftp
diff options
context:
space:
mode:
Diffstat (limited to 'dev-ruby/net-sftp')
-rw-r--r--dev-ruby/net-sftp/Manifest5
-rw-r--r--dev-ruby/net-sftp/files/net-sftp-2.1.2-net-ssh-4.patch42
-rw-r--r--dev-ruby/net-sftp/metadata.xml11
-rw-r--r--dev-ruby/net-sftp/net-sftp-2.1.2-r2.ebuild26
-rw-r--r--dev-ruby/net-sftp/net-sftp-2.1.2-r3.ebuild26
5 files changed, 110 insertions, 0 deletions
diff --git a/dev-ruby/net-sftp/Manifest b/dev-ruby/net-sftp/Manifest
new file mode 100644
index 000000000000..7a84d9191af2
--- /dev/null
+++ b/dev-ruby/net-sftp/Manifest
@@ -0,0 +1,5 @@
+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 612 BLAKE2B 127343e6499ef0aeced00dc5806d35fbec0325993c2b7fa6e45639305e0189ef2de20bd29e187754aff4b5f87a9ed95e7dc04294e04b0072675ac0aaf0ae4eb8 SHA512 b125a0fb9b3badd045526e3859718b920b6eb1d6644815275aa653cd50912320cf8c880907daf62baacb2d785bd03a300a585cb56771cea9a364e3367930f3a2
+EBUILD net-sftp-2.1.2-r3.ebuild 588 BLAKE2B 7bd990292df2a08be68a250e43d25e7d7863d12e8be283833e63db0c2cfe619826d30d8c120c987158e96ccc79a38ee0df6433e9d05e87181ae2a8eb1b4063bc SHA512 95ea446be79d62f0f3d4465bb120770edf995dbd357dec0d6d03c17f33ca60b515cd56c023a4ef30065cc7a91794a0ada64623b88a38e2889d976caa2f46f5c9
+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/metadata.xml b/dev-ruby/net-sftp/metadata.xml
new file mode 100644
index 000000000000..cf6139ba278e
--- /dev/null
+++ b/dev-ruby/net-sftp/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>ruby@gentoo.org</email>
+ <name>Gentoo Ruby Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">net-ssh/net-sftp</remote-id>
+ </upstream>
+</pkgmetadata>
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
new file mode 100644
index 000000000000..96382ec54248
--- /dev/null
+++ b/dev-ruby/net-sftp/net-sftp-2.1.2-r2.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+USE_RUBY="ruby23 ruby24 ruby25"
+
+RUBY_FAKEGEM_EXTRADOC="CHANGES.txt README.rdoc"
+
+inherit ruby-fakegem
+
+DESCRIPTION="SFTP in pure Ruby"
+HOMEPAGE="https://github.com/net-ssh/net-sftp"
+
+LICENSE="GPL-2"
+SLOT="2"
+KEYWORDS="amd64 ppc ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris ~x86-solaris"
+IUSE=""
+
+RUBY_PATCHES=( "${FILESDIR}/${P}-net-ssh-4.patch" )
+
+ruby_add_rdepend "|| ( dev-ruby/net-ssh:4 dev-ruby/net-ssh:2.6 )"
+
+ruby_add_bdepend "
+ test? (
+ >=dev-ruby/mocha-0.13
+ )"
diff --git a/dev-ruby/net-sftp/net-sftp-2.1.2-r3.ebuild b/dev-ruby/net-sftp/net-sftp-2.1.2-r3.ebuild
new file mode 100644
index 000000000000..dc0ee41f341f
--- /dev/null
+++ b/dev-ruby/net-sftp/net-sftp-2.1.2-r3.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+USE_RUBY="ruby23 ruby24 ruby25"
+
+RUBY_FAKEGEM_EXTRADOC="CHANGES.txt README.rdoc"
+
+inherit ruby-fakegem
+
+DESCRIPTION="SFTP in pure Ruby"
+HOMEPAGE="https://github.com/net-ssh/net-sftp"
+
+LICENSE="GPL-2"
+SLOT="2"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris ~x86-solaris"
+IUSE=""
+
+RUBY_PATCHES=( "${FILESDIR}/${P}-net-ssh-4.patch" )
+
+ruby_add_rdepend "dev-ruby/net-ssh:4"
+
+ruby_add_bdepend "
+ test? (
+ >=dev-ruby/mocha-0.13
+ )"