net-scp 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +5 -0
- data/lib/net/scp/download.rb +1 -1
- data/lib/net/scp/version.rb +1 -1
- data/net-scp.gemspec +5 -3
- data/test/common.rb +1 -1
- metadata +19 -6
data/CHANGELOG.rdoc
CHANGED
data/lib/net/scp/download.rb
CHANGED
@@ -138,7 +138,7 @@ module Net; class SCP
|
|
138
138
|
|
139
139
|
channel[:file] = directive.merge(:times => channel[:times])
|
140
140
|
channel[:io] = channel[:local].respond_to?(:write) ? channel[:local] :
|
141
|
-
File.new(directive[:name],
|
141
|
+
File.new(directive[:name], "wb", directive[:mode] | 0600)
|
142
142
|
channel[:times] = nil
|
143
143
|
channel[:remaining] = channel[:file][:size]
|
144
144
|
channel[:state] = :read_data
|
data/lib/net/scp/version.rb
CHANGED
data/net-scp.gemspec
CHANGED
@@ -1,21 +1,23 @@
|
|
1
1
|
|
2
|
-
# Gem::Specification for Net-scp-1.0.
|
2
|
+
# Gem::Specification for Net-scp-1.0.1
|
3
3
|
# Originally generated by Echoe
|
4
4
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.name = %q{net-scp}
|
7
|
-
s.version = "1.0.
|
7
|
+
s.version = "1.0.1"
|
8
8
|
|
9
9
|
s.specification_version = 2 if s.respond_to? :specification_version=
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.authors = ["Jamis Buck"]
|
13
|
-
s.date = %q{2008-05-
|
13
|
+
s.date = %q{2008-05-29}
|
14
14
|
s.description = %q{A pure Ruby implementation of the SCP client protocol}
|
15
15
|
s.email = %q{jamis@jamisbuck.org}
|
16
|
+
s.extra_rdoc_files = ["CHANGELOG.rdoc", "lib/net/scp/download.rb", "lib/net/scp/errors.rb", "lib/net/scp/upload.rb", "lib/net/scp/version.rb", "lib/net/scp.rb", "lib/uri/open-scp.rb", "lib/uri/scp.rb", "README.rdoc"]
|
16
17
|
s.files = ["CHANGELOG.rdoc", "lib/net/scp/download.rb", "lib/net/scp/errors.rb", "lib/net/scp/upload.rb", "lib/net/scp/version.rb", "lib/net/scp.rb", "lib/uri/open-scp.rb", "lib/uri/scp.rb", "Rakefile", "README.rdoc", "setup.rb", "test/common.rb", "test/test_all.rb", "test/test_download.rb", "test/test_scp.rb", "test/test_upload.rb", "Manifest", "net-scp.gemspec"]
|
17
18
|
s.has_rdoc = true
|
18
19
|
s.homepage = %q{http://net-ssh.rubyforge.org/scp}
|
20
|
+
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Net-scp", "--main", "README.rdoc"]
|
19
21
|
s.require_paths = ["lib"]
|
20
22
|
s.rubyforge_project = %q{net-ssh}
|
21
23
|
s.rubygems_version = %q{1.1.1}
|
data/test/common.rb
CHANGED
@@ -76,7 +76,7 @@ class Net::SCP::TestCase < Test::Unit::TestCase
|
|
76
76
|
File.stubs(:open).with(path, "rb").returns(StringIO.new(contents))
|
77
77
|
|
78
78
|
@io = StringIO.new
|
79
|
-
File.stubs(:new).with(path,
|
79
|
+
File.stubs(:new).with(path, "wb", mode).returns(io)
|
80
80
|
end
|
81
81
|
end
|
82
82
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: net-scp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jamis Buck
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-05-
|
12
|
+
date: 2008-05-29 00:00:00 -06:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -27,8 +27,16 @@ executables: []
|
|
27
27
|
|
28
28
|
extensions: []
|
29
29
|
|
30
|
-
extra_rdoc_files:
|
31
|
-
|
30
|
+
extra_rdoc_files:
|
31
|
+
- CHANGELOG.rdoc
|
32
|
+
- lib/net/scp/download.rb
|
33
|
+
- lib/net/scp/errors.rb
|
34
|
+
- lib/net/scp/upload.rb
|
35
|
+
- lib/net/scp/version.rb
|
36
|
+
- lib/net/scp.rb
|
37
|
+
- lib/uri/open-scp.rb
|
38
|
+
- lib/uri/scp.rb
|
39
|
+
- README.rdoc
|
32
40
|
files:
|
33
41
|
- CHANGELOG.rdoc
|
34
42
|
- lib/net/scp/download.rb
|
@@ -51,8 +59,13 @@ files:
|
|
51
59
|
has_rdoc: true
|
52
60
|
homepage: http://net-ssh.rubyforge.org/scp
|
53
61
|
post_install_message:
|
54
|
-
rdoc_options:
|
55
|
-
|
62
|
+
rdoc_options:
|
63
|
+
- --line-numbers
|
64
|
+
- --inline-source
|
65
|
+
- --title
|
66
|
+
- Net-scp
|
67
|
+
- --main
|
68
|
+
- README.rdoc
|
56
69
|
require_paths:
|
57
70
|
- lib
|
58
71
|
required_ruby_version: !ruby/object:Gem::Requirement
|