debian/0000755000000000000000000000000012203753204007164 5ustar debian/rules0000755000000000000000000000070111772544415010256 0ustar #!/usr/bin/make -f #export DH_VERBOSE=1 # # Uncomment to ignore all test failures (but the tests will run anyway) #export DH_RUBY_IGNORE_TESTS=all # # Uncomment to ignore some test failures (but the tests will run anyway). # Valid values: #export DH_RUBY_IGNORE_TESTS=ruby1.8 ruby1.9.1 require-rubygems # # If you need to specify the .gemspec (eg there is more than one) #export DH_RUBY_GEMSPEC=gem.gemspec %: dh $@ --buildsystem=ruby --with ruby debian/watch0000644000000000000000000000014311772544415010227 0ustar version=3 http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/net-ssh .*/net-ssh-(.*).tar.gz debian/source/0000755000000000000000000000000011772544415010500 5ustar debian/source/format0000644000000000000000000000001411772544415011706 0ustar 3.0 (quilt) debian/copyright0000644000000000000000000000302611772544415011134 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Net::SSH Upstream-Contact: Jamis Buck Source: http://net-ssh.rubyforge.org/ Files: * Copyright: 2008, Jamis Buck License: Expat Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Comment: License referred to as MIT license. Files: debian/* Copyright: 2009, Christopher Lunsford License: GPL-3 On Debian systems, the complete text of the GNU General Public License version 3 can be found in `/usr/share/common-licenses/GPL-3'. debian/control0000644000000000000000000000244312203753204010572 0ustar Source: ruby-net-ssh Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Lucas Nussbaum , Paul van Tilburg Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.3.0~), ruby-mocha, ruby-test-unit Standards-Version: 3.9.4 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-net-ssh.git Vcs-Browser: http://anonscm.debian.org/gitweb?p=pkg-ruby-extras/ruby-net-ssh.git;a=summary Homepage: http://net-ssh.github.com/net-ssh/ XS-Ruby-Versions: all Package: ruby-net-ssh Architecture: all XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter Replaces: libnet-ssh-ruby1.8 (<< 2.1.4-1~), libnet-ssh2-ruby (<< 2.1.4-1~), libnet-ssh2-ruby1.8 (<< 2.1.4-1~), libnet-ssh2-ruby1.9.1 (<< 2.1.4-1~) Breaks: libnet-ssh-ruby1.8 (<< 2.1.4-1~), libnet-ssh2-ruby (<< 2.1.4-1~), libnet-ssh2-ruby1.8 (<< 2.1.4-1~), libnet-ssh2-ruby1.9.1 (<< 2.1.4-1~) Provides: libnet-ssh-ruby1.8, libnet-ssh2-ruby, libnet-ssh2-ruby1.8, libnet-ssh2-ruby1.9.1 Description: Ruby implementation of the SSH protocol Net::SSH is a pure-Ruby implementation of the SSH protocol. It allows you to write programs that invoke and interact with processes on remote servers, via SSH. debian/patches/0000755000000000000000000000000012204132413010605 5ustar debian/patches/skip-test-broken-on-1.8.patch0000644000000000000000000000151512203753204015755 0ustar Description: Skip test that is broken on Ruby 1.8 Author: Antonio Terceiro --- --- a/test/test_known_hosts.rb +++ b/test/test_known_hosts.rb @@ -8,6 +8,6 @@ class TestKnownHosts < Test::Unit::TestC keys = kh.keys_for("github.com") assert_equal(1, keys.count) assert_equal("ssh-rsa", keys[0].ssh_type) - end + end if RUBY_VERSION > '1.9' -end \ No newline at end of file +end --- a/test/test_buffer.rb +++ b/test/test_buffer.rb @@ -32,7 +32,7 @@ class TestBuffer < Test::Unit::TestCase def test_from_should_measure_bytesize_of_utf_8_string_correctly buffer = Net::SSH::Buffer.from(:string, "\u2603") # Snowman is 3 bytes assert_equal "\0\0\0\3\u2603", buffer.to_s - end + end if RUBY_VERSION > '1.9' def test_read_without_argument_should_read_to_end buffer = new("hello world") debian/patches/disable-rubygems-in-tests.patch0000644000000000000000000000113012203753204016631 0ustar Description: Disable rubygems in tests. In order to use test/unit >= 2.0, the test suite uses rubygems. This is not needed in Debian. Author: Lucas Nussbaum Forwarded: not-needed --- a/test/common.rb +++ b/test/common.rb @@ -1,6 +1,6 @@ $LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../lib" -gem "test-unit" # http://rubyforge.org/pipermail/test-unit-tracker/2009-July/000075.html -gem 'mocha' +#gem "test-unit" # http://rubyforge.org/pipermail/test-unit-tracker/2009-July/000075.html +#gem 'mocha' require 'test/unit' require 'mocha/setup' require 'net/ssh/buffer' debian/patches/series0000644000000000000000000000013112204132413012015 0ustar disable-rubygems-in-tests.patch fix-test-inheritance.patch skip-test-broken-on-1.8.patch debian/patches/fix-test-inheritance.patch0000644000000000000000000000213712204127015015665 0ustar Description: Fix some tests that don't require the needed files Some tests use inheritance but forget to require the parent test file. Author: Paul van Tilburg Forwarded: not-needed --- a/test/transport/kex/test_diffie_hellman_group_exchange_sha256.rb +++ b/test/transport/kex/test_diffie_hellman_group_exchange_sha256.rb @@ -1,5 +1,6 @@ require 'common' require 'net/ssh/transport/kex/diffie_hellman_group_exchange_sha1' +require 'transport/kex/test_diffie_hellman_group_exchange_sha1' module Transport; module Kex --- a/test/transport/kex/test_ecdh_sha2_nistp384.rb +++ b/test/transport/kex/test_ecdh_sha2_nistp384.rb @@ -1,4 +1,5 @@ require 'openssl' +require 'transport/kex/test_ecdh_sha2_nistp256' unless defined?(OpenSSL::PKey::EC) puts "Skipping tests for ecdh-sha2-nistp384 key exchange" --- a/test/transport/kex/test_ecdh_sha2_nistp521.rb +++ b/test/transport/kex/test_ecdh_sha2_nistp521.rb @@ -1,4 +1,5 @@ require 'openssl' +require 'transport/kex/test_ecdh_sha2_nistp256' unless defined?(OpenSSL::PKey::EC) puts "Skipping tests for ecdh-sha2-nistp521 key exchange" debian/compat0000644000000000000000000000000211772544415010376 0ustar 7 debian/ruby-net-ssh.docs0000644000000000000000000000001411772544415012405 0ustar README.rdoc debian/changelog0000644000000000000000000000760312203753204011044 0ustar ruby-net-ssh (1:2.6.8-1) unstable; urgency=low * Team upload. * New upstream release * Revert drop of fix-test-inheritance.patch: Tests are still failing (closes: #718118) -- David Suárez Tue, 30 Jul 2013 17:45:29 +0200 ruby-net-ssh (1:2.6.7-1) unstable; urgency=low * Team upload. * New upstream release - debian/patches/disable-rubygems-in-tests.patch: Refreshed * debian/control: Drop the transitional packages * debian/control: Bump Standards-Version to 3.9.4 (no further changes) * debian/patches/skip-test-broken-on-1.8.patch: Also disable test_from_should_measure_bytesize_of_utf_8_string_correctly check with ruby 1.8 * debian/patches: - Drop disable-test1.patch: The test is passing with ruby-test-unit 2.5.5 - Drop disable-config-tests.patch: The input config is now existing - Drop fix-test-inheritance.patch: Tests are running as expected now -- Laurent Bigonville Sat, 06 Jul 2013 21:04:36 +0200 ruby-net-ssh (1:2.5.2-2) unstable; urgency=low * Bumped build-dependency on gem2deb to >= 0.3.0~. -- Paul van Tilburg Tue, 26 Jun 2012 23:54:08 +0200 ruby-net-ssh (1:2.5.2-1) unstable; urgency=low * New upstream release. + Fixes crash looking for an unknown constant Net::SSH::KnownHosts::SUPPORTED_TYPE (Closes: #675946) * Added debian/patches/skip-test-broken-on-1.8.patch: a new test added in this release is broken on Ruby 1.8, so it has to be skipped. -- Antonio Terceiro Tue, 12 Jun 2012 15:46:54 -0300 ruby-net-ssh (1:2.5.1-1) unstable; urgency=low * New upstream release. * debian/control: + Added myself to uploaders. + Bumped standards version to 3.9.3; no changes required. + Added a depend on ruby-test-unit; the one shipped with ruby1.8 is too old to run the tests. + Set the priority of the lib*-ruby transitional packages to extra. * debian/copyright: converted to the Debian copyright format version 1.0. * debian/patches: + Added patch disable-config-tests.patch to disable config tests for which the input config does not actually exist. + Added patch fix-test-inheritance.patch to fix some tests that use inheritance but forget to require the parent test file. -- Paul van Tilburg Thu, 24 May 2012 20:55:35 +0200 ruby-net-ssh (1:2.2.1-1) unstable; urgency=low * New upstream release. * Switch to my @debian.org email-address. * Switch from Conflicts to Breaks. * debian/patches/disable-test1.patch: refreshed. -- Lucas Nussbaum Sun, 25 Sep 2011 14:30:59 +0200 ruby-net-ssh (1:2.1.4-2) unstable; urgency=low * Add an epoch. This is needed so that this package's libnet-ssh-ruby1.8 can override the one from the libnet-ssh-ruby source package. * Bump standards-version to 3.9.2. No changes needed. * Change Depends to ruby | ruby-interpreter. -- Lucas Nussbaum Tue, 17 May 2011 22:45:36 +0200 ruby-net-ssh (2.1.4-1) unstable; urgency=low * Migrated to gem2deb packaging. + Rename source and binary package. * Merged both libnet-ssh2-ruby and libnet-ssh-ruby (add transitional packages). * The new version was tested to work with gnome-keyring as an SSH agent. Closes: #472427. -- Lucas Nussbaum Sat, 16 Apr 2011 09:31:22 +0200 libnet-ssh2-ruby (2.0.15-1) unstable; urgency=low * Team upload. * New upstream version. * debian/control: + Bump Standards-Version to 3.8.4 (no changes needed). + Drop 1.9 package, add 1.9.1 package (Closes: #569872). -- Marco Rodrigues Wed, 24 Feb 2010 21:26:22 +0000 libnet-ssh2-ruby (2.0.13-1) unstable; urgency=low [ Christopher Lunsford ] * Initial release (Closes: #543302) [ Ryan Niebur ] * fix watch file -- Christopher Lunsford Sun, 23 Aug 2009 17:40:00 -0400 debian/ruby-tests.rb0000644000000000000000000000007011772544415011643 0ustar $: << 'test' << 'lib' << '.' require 'test/test_all.rb'