debian/0000755000000000000000000000000012170006161007160 5ustar debian/rules0000755000000000000000000000100312170004466010240 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 override_dh_installchangelogs: dh_installchangelogs CHANGES.txt debian/watch0000644000000000000000000000014511635725534010232 0ustar version=3 http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/net-sftp .*/net-sftp-(.*).tar.gz debian/source/0000755000000000000000000000000011635725534010501 5ustar debian/source/format0000644000000000000000000000001411635725534011707 0ustar 3.0 (quilt) debian/copyright0000644000000000000000000000276411635725534011145 0ustar This package was debianized by Christopher Lunsford on Sun, 23 Aug 2009 06:02:42 -0500. It was downloaded from Upstream authors: Jamis Buck Copyright: Copyright © 2008 by Jamis Buck License: 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. The Debian packaging is © 2009, Christopher Lunsford and is licensed under the GPL, see `/usr/share/common-licenses/GPL-3'. debian/control0000644000000000000000000000207712170005555010577 0ustar Source: ruby-net-sftp Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Lucas Nussbaum , Cédric Boutillier Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.3.0~), ruby-mocha, ruby-net-ssh (>= 2.6.5~) Standards-Version: 3.9.4 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-net-sftp.git Vcs-Browser: http://anonscm.debian.org/gitweb?p=pkg-ruby-extras/ruby-net-sftp.git;a=summary Homepage: http://net-ssh.github.com/sftp/v2/api/ XS-Ruby-Versions: all Package: ruby-net-sftp Architecture: all XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter, ruby-net-ssh (>= 2.6.5~) Description: Ruby implementation of the SFTP protocol Net::SFTP is a pure-Ruby implementation of the SFTP protocol (specifically, versions 1 through 6 of the SFTP protocol). Note that this is the "Secure File Transfer Protocol", typically run over an SSH connection, and has nothing to do with the FTP protocol. debian/patches/0000755000000000000000000000000012170005026010606 5ustar debian/patches/disable_test_triggering_mocha_bug_690562.patch0000644000000000000000000000236212064113677021372 0ustar Description: disable test causing FTBS because of a regression in ruby-mocha After the expects call, :from_buffer method is not completely restored and does not return objects from the correct class when applied to children classes. Author: Cédric Boutillier Bug: http://net-ssh.lighthouseapp.com/projects/36253-net-ssh/tickets/62-net-sftp-fails-with-mocha-0113 Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=674324 Last-Update: 2012-10-15 --- a/test/protocol/01/test_base.rb +++ b/test/protocol/01/test_base.rb @@ -33,10 +33,10 @@ assert_equal({ :data => "here is a string" }, @base.parse_data_packet(packet)) end - def test_parse_attrs_packet_should_use_correct_attributes_class - Net::SFTP::Protocol::V01::Attributes.expects(:from_buffer).with(:packet).returns(:result) - assert_equal({ :attrs => :result }, @base.parse_attrs_packet(:packet)) - end +# def test_parse_attrs_packet_should_use_correct_attributes_class +# Net::SFTP::Protocol::V01::Attributes.expects(:from_buffer).with(:packet).returns(:result) +# assert_equal({ :attrs => :result }, @base.parse_attrs_packet(:packet)) +# end def test_parse_name_packet_should_use_correct_name_class packet = Net::SSH::Buffer.from(:long, 2, debian/patches/series0000644000000000000000000000011212064113677012033 0ustar disable-gem-in-tests.patch disable_test_triggering_mocha_bug_690562.patch debian/patches/disable-gem-in-tests.patch0000644000000000000000000000147212170005026015550 0ustar Description: disable rubygems in tests Origin: vendor Reviewed-by: Cédric Boutillier Forwarded: no Last-Update: 2013-07-12 --- a/test/common.rb +++ b/test/common.rb @@ -2,18 +2,18 @@ require 'mocha/setup' require 'stringio' -begin +# begin require 'net/ssh' require 'net/ssh/version' raise LoadError, "wrong version" unless Net::SSH::Version::STRING >= '1.99.0' -rescue LoadError - begin - gem 'net-ssh', ">= 2.0.0" - require 'net/ssh' - rescue LoadError => e - abort "could not load net/ssh v2 (#{e.inspect})" - end -end +#rescue LoadError +# begin +# gem 'net-ssh', ">= 2.0.0" +# require 'net/ssh' +# rescue LoadError => e +# abort "could not load net/ssh v2 (#{e.inspect})" +# end +#end $LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../lib" require 'net/sftp' debian/compat0000644000000000000000000000000211635725534010377 0ustar 7 debian/changelog0000644000000000000000000000413212170006161011032 0ustar ruby-net-sftp (1:2.1.2-1) unstable; urgency=low [ Paul van Tilburg ] * debian/control: - Bump build dependency on gem2deb to >= 0.3.0~. [ Cédric Boutillier ] * Imported Upstream version 2.1.2 * debian/control: - remove obsolete DM-Upload-Allowed flag - use canonical URI in Vcs-* fields - drop transitional packages, not needed anymore - bump Standards-Version to 3.9.4 (no changes needed) - add myself to Uploaders * refresh and add DP3 headers to disable-gem-in-tests.patch * -- Cédric Boutillier Fri, 12 Jul 2013 15:39:38 +0200 ruby-net-sftp (1:2.0.5-3) unstable; urgency=medium * Team upload. * Set urgency to medium, as this upload fixes an RC bug. * Add debian/patches/disable_test_triggering_mocha_bug_690562.patch to disable a test which, due to a bug in ruby-mocha, causes other tests to fail, yielding a FTBFS (Closes: #674324). * Ease upgrade from Squeeze libnet-sftp2-ruby* packages + replace Conflicts: by Breaks: + set priority of transitional packages to extra -- Cédric Boutillier Mon, 15 Oct 2012 22:16:06 +0200 ruby-net-sftp (1:2.0.5-2) unstable; urgency=low * Add epoch to version in order to properly override the previous libnet-sftp-ruby* packages. * Standards-Version -> 3.9.2. No changes needed. * Depend on ruby | ruby-interpreter. -- Lucas Nussbaum Fri, 20 May 2011 18:11:33 +0200 ruby-net-sftp (2.0.5-1) unstable; urgency=low * Switch to gem2deb-based packaging. Rename source and binary package. -- Lucas Nussbaum Sat, 16 Apr 2011 11:18:42 +0200 libnet-sftp2-ruby (2.0.3-1) unstable; urgency=low * New upstream version * Drop 1.9 package, add 1.9.1 package for Ruby 1.9.1 transition * Add myself to uploaders * Standards-version 3.8.3→3.8.4 (no changes) -- Gunnar Wolf Tue, 23 Mar 2010 20:53:27 -0600 libnet-sftp2-ruby (2.0.2-1) unstable; urgency=low * Initial release (Closes: #543319) -- Christopher Lunsford Sun, 23 Aug 2009 17:40:00 -0400 debian/ruby-net-sftp.docs0000644000000000000000000000001411635725534012565 0ustar README.rdoc debian/ruby-tests.rb0000644000000000000000000000007212037063605011635 0ustar $: << 'test' << 'lib' << '.' require './test/test_all.rb'