net-sftp 2.0.4 → 2.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGELOG.rdoc CHANGED
@@ -1,3 +1,9 @@
1
+
2
+ === 2.0.5 / 19 Aug 2010
3
+
4
+ * Fixed missing StringIO exception in download! [Toby Bryans, Delano Mandelbaum]
5
+
6
+
1
7
  === 2.0.4 / 23 Nov 2009
2
8
 
3
9
  * Fixed frozen string issue in StatusException.message [appoxy]
data/Rakefile CHANGED
@@ -17,7 +17,7 @@ Echoe.new('net-sftp', version) do |p|
17
17
  p.changelog = "CHANGELOG.rdoc"
18
18
 
19
19
  p.author = "Jamis Buck"
20
- p.email = "jamis@jamisbuck.org"
20
+ p.email = "netsftp@solutious.com"
21
21
  p.summary = "A pure Ruby implementation of the SFTP client protocol"
22
22
  p.url = "http://net-ssh.rubyforge.org/sftp"
23
23
 
@@ -120,6 +120,7 @@ module Net; module SFTP
120
120
  # and returns the result as a string; otherwise, returns the
121
121
  # Net::SFTP::Operations::Download instance.
122
122
  def download!(remote, local=nil, options={}, &block)
123
+ require 'stringio' unless defined?(StringIO)
123
124
  destination = local || StringIO.new
124
125
  result = download(remote, destination, options, &block).wait
125
126
  local ? result : destination.string
@@ -6,7 +6,7 @@ module Net; module SFTP
6
6
  class Version < Net::SSH::Version
7
7
  MAJOR = 2
8
8
  MINOR = 0
9
- TINY = 4
9
+ TINY = 5
10
10
 
11
11
  # The current version, as a Version instance
12
12
  CURRENT = new(MAJOR, MINOR, TINY)
data/net-sftp.gemspec CHANGED
@@ -2,20 +2,20 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{net-sftp}
5
- s.version = "2.0.4"
5
+ s.version = "2.0.5"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Jamis Buck"]
9
- s.date = %q{2009-11-23}
9
+ s.date = %q{2010-08-19}
10
10
  s.description = %q{A pure Ruby implementation of the SFTP client protocol}
11
- s.email = %q{jamis@jamisbuck.org}
11
+ s.email = %q{netsftp@solutious.com}
12
12
  s.extra_rdoc_files = ["CHANGELOG.rdoc", "lib/net/sftp/constants.rb", "lib/net/sftp/errors.rb", "lib/net/sftp/operations/dir.rb", "lib/net/sftp/operations/download.rb", "lib/net/sftp/operations/file.rb", "lib/net/sftp/operations/file_factory.rb", "lib/net/sftp/operations/upload.rb", "lib/net/sftp/packet.rb", "lib/net/sftp/protocol/01/attributes.rb", "lib/net/sftp/protocol/01/base.rb", "lib/net/sftp/protocol/01/name.rb", "lib/net/sftp/protocol/02/base.rb", "lib/net/sftp/protocol/03/base.rb", "lib/net/sftp/protocol/04/attributes.rb", "lib/net/sftp/protocol/04/base.rb", "lib/net/sftp/protocol/04/name.rb", "lib/net/sftp/protocol/05/base.rb", "lib/net/sftp/protocol/06/attributes.rb", "lib/net/sftp/protocol/06/base.rb", "lib/net/sftp/protocol/base.rb", "lib/net/sftp/protocol.rb", "lib/net/sftp/request.rb", "lib/net/sftp/response.rb", "lib/net/sftp/session.rb", "lib/net/sftp/version.rb", "lib/net/sftp.rb", "README.rdoc"]
13
13
  s.files = ["CHANGELOG.rdoc", "lib/net/sftp/constants.rb", "lib/net/sftp/errors.rb", "lib/net/sftp/operations/dir.rb", "lib/net/sftp/operations/download.rb", "lib/net/sftp/operations/file.rb", "lib/net/sftp/operations/file_factory.rb", "lib/net/sftp/operations/upload.rb", "lib/net/sftp/packet.rb", "lib/net/sftp/protocol/01/attributes.rb", "lib/net/sftp/protocol/01/base.rb", "lib/net/sftp/protocol/01/name.rb", "lib/net/sftp/protocol/02/base.rb", "lib/net/sftp/protocol/03/base.rb", "lib/net/sftp/protocol/04/attributes.rb", "lib/net/sftp/protocol/04/base.rb", "lib/net/sftp/protocol/04/name.rb", "lib/net/sftp/protocol/05/base.rb", "lib/net/sftp/protocol/06/attributes.rb", "lib/net/sftp/protocol/06/base.rb", "lib/net/sftp/protocol/base.rb", "lib/net/sftp/protocol.rb", "lib/net/sftp/request.rb", "lib/net/sftp/response.rb", "lib/net/sftp/session.rb", "lib/net/sftp/version.rb", "lib/net/sftp.rb", "Rakefile", "README.rdoc", "setup.rb", "test/common.rb", "test/protocol/01/test_attributes.rb", "test/protocol/01/test_base.rb", "test/protocol/01/test_name.rb", "test/protocol/02/test_base.rb", "test/protocol/03/test_base.rb", "test/protocol/04/test_attributes.rb", "test/protocol/04/test_base.rb", "test/protocol/04/test_name.rb", "test/protocol/05/test_base.rb", "test/protocol/06/test_attributes.rb", "test/protocol/06/test_base.rb", "test/protocol/test_base.rb", "test/test_all.rb", "test/test_dir.rb", "test/test_download.rb", "test/test_file.rb", "test/test_file_factory.rb", "test/test_packet.rb", "test/test_protocol.rb", "test/test_request.rb", "test/test_response.rb", "test/test_session.rb", "test/test_upload.rb", "Manifest", "net-sftp.gemspec"]
14
14
  s.homepage = %q{http://net-ssh.rubyforge.org/sftp}
15
15
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Net-sftp", "--main", "README.rdoc"]
16
16
  s.require_paths = ["lib"]
17
17
  s.rubyforge_project = %q{net-ssh}
18
- s.rubygems_version = %q{1.3.5}
18
+ s.rubygems_version = %q{1.3.7}
19
19
  s.summary = %q{A pure Ruby implementation of the SFTP client protocol}
20
20
  s.test_files = ["test/test_all.rb"]
21
21
 
@@ -23,7 +23,7 @@ Gem::Specification.new do |s|
23
23
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
24
24
  s.specification_version = 3
25
25
 
26
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
26
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
27
27
  s.add_runtime_dependency(%q<net-ssh>, [">= 2.0.9"])
28
28
  else
29
29
  s.add_dependency(%q<net-ssh>, [">= 2.0.9"])
data/test/common.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  require 'test/unit'
2
2
  require 'mocha'
3
+ require 'stringio'
3
4
 
4
5
  begin
5
6
  require 'net/ssh'
data/test/test_all.rb CHANGED
@@ -1,4 +1,7 @@
1
- # $ ruby -Ilib -Itest -rrubygems test/test_all.rb
1
+ # $ ruby -I../net-ssh/lib -Ilib -Itest -rrubygems test/test_all.rb
2
+ #require 'net/ssh'
3
+ #puts Net::SSH::Version::CURRENT
4
+ require 'common'
2
5
  Dir.chdir(File.dirname(__FILE__)) do
3
6
  Dir['**/test_*.rb'].each { |file| require(file) }
4
7
  end
@@ -141,7 +141,7 @@ class DownloadTest < Net::SFTP::TestCase
141
141
  channel.sends_packet(FXP_CLOSE, :long, 12, :string, "handle")
142
142
  channel.gets_packet(FXP_STATUS, :long, 12, :long, 0)
143
143
  end
144
-
144
+
145
145
  file = StringIO.new
146
146
  File.stubs(:open).with(local, "wb").returns(file)
147
147
 
metadata CHANGED
@@ -1,7 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: net-sftp
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4
4
+ hash: 5
5
+ prerelease: false
6
+ segments:
7
+ - 2
8
+ - 0
9
+ - 5
10
+ version: 2.0.5
5
11
  platform: ruby
6
12
  authors:
7
13
  - Jamis Buck
@@ -9,21 +15,27 @@ autorequire:
9
15
  bindir: bin
10
16
  cert_chain: []
11
17
 
12
- date: 2009-11-23 00:00:00 -05:00
18
+ date: 2010-08-19 00:00:00 -04:00
13
19
  default_executable:
14
20
  dependencies:
15
21
  - !ruby/object:Gem::Dependency
16
22
  name: net-ssh
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
20
26
  requirements:
21
27
  - - ">="
22
28
  - !ruby/object:Gem::Version
29
+ hash: 29
30
+ segments:
31
+ - 2
32
+ - 0
33
+ - 9
23
34
  version: 2.0.9
24
- version:
35
+ type: :runtime
36
+ version_requirements: *id001
25
37
  description: A pure Ruby implementation of the SFTP client protocol
26
- email: jamis@jamisbuck.org
38
+ email: netsftp@solutious.com
27
39
  executables: []
28
40
 
29
41
  extensions: []
@@ -129,21 +141,28 @@ rdoc_options:
129
141
  require_paths:
130
142
  - lib
131
143
  required_ruby_version: !ruby/object:Gem::Requirement
144
+ none: false
132
145
  requirements:
133
146
  - - ">="
134
147
  - !ruby/object:Gem::Version
148
+ hash: 3
149
+ segments:
150
+ - 0
135
151
  version: "0"
136
- version:
137
152
  required_rubygems_version: !ruby/object:Gem::Requirement
153
+ none: false
138
154
  requirements:
139
155
  - - ">="
140
156
  - !ruby/object:Gem::Version
157
+ hash: 11
158
+ segments:
159
+ - 1
160
+ - 2
141
161
  version: "1.2"
142
- version:
143
162
  requirements: []
144
163
 
145
164
  rubyforge_project: net-ssh
146
- rubygems_version: 1.3.5
165
+ rubygems_version: 1.3.7
147
166
  signing_key:
148
167
  specification_version: 3
149
168
  summary: A pure Ruby implementation of the SFTP client protocol