net-scp 4.0.1.rc3 → 4.1.1.rc3
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.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/.github/workflows/ci.yml +3 -1
- data/CHANGES.txt +9 -0
- data/Gemfile +4 -0
- data/Rakefile +17 -12
- data/lib/net/scp/version.rb +1 -1
- data/lib/net/scp.rb +2 -2
- data/net-scp-public_cert.pem +7 -7
- data.tar.gz.sig +0 -0
- metadata +12 -13
- metadata.gz.sig +0 -0
- data/lib/net/scp/version.rb.old +0 -68
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 140aba7e5a90f61684d2a1acf0dedd19834b903c6e0a1d09f8e396cea0fd002c
|
|
4
|
+
data.tar.gz: 10ba5b3c7cc0172b435b44efbfc115be88caf60d804bfb11cb08b7e60bfbe00a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: eca631adb3b5cc64bca4fcf5ca05ae62e5043631f004dac7edc2341c86165da3546f3aeb249b7618c454046c1d8897ed98a1a453f927815c2c10395bc11bcbd5
|
|
7
|
+
data.tar.gz: ee708ab42fa3b6d92cb79d695fe5a1f4b408cc4b4095cb74a8985c98f15af0002428d8f2c56c5f328a1fe0f7d709e33c49d0a60e8fb1db1d456ff9a016db17e7
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/.github/workflows/ci.yml
CHANGED
|
@@ -10,7 +10,7 @@ jobs:
|
|
|
10
10
|
strategy:
|
|
11
11
|
fail-fast: false
|
|
12
12
|
matrix:
|
|
13
|
-
ruby-version: ['2.
|
|
13
|
+
ruby-version: ['2.6', '2.7', '3.0', '3.1', '3.2', '3.3', '3.4', 'ruby-head']
|
|
14
14
|
continue-on-error: ${{ matrix.ruby-version == 'ruby-head' }}
|
|
15
15
|
steps:
|
|
16
16
|
- uses: actions/checkout@v3
|
|
@@ -21,3 +21,5 @@ jobs:
|
|
|
21
21
|
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
|
22
22
|
- name: Run Tests
|
|
23
23
|
run: bundle exec rake test
|
|
24
|
+
env:
|
|
25
|
+
RUBYOPT: "--enable=frozen_string_literal"
|
data/CHANGES.txt
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
=== 4.1.1
|
|
2
|
+
|
|
3
|
+
* Fix frozen string literal compatibility [npezza93, mfazekas]
|
|
4
|
+
- Use mutable string for scp command construction
|
|
5
|
+
- Use mutable string for error_string initialization
|
|
6
|
+
* Add Ruby 3.4 and ruby-head to CI matrix
|
|
7
|
+
* Add Ruby 4.0+ compatibility (logger, rdoc gems)
|
|
8
|
+
* Drop EOL Ruby 2.3-2.5 from CI
|
|
9
|
+
|
|
1
10
|
=== 3.0.0
|
|
2
11
|
|
|
3
12
|
* NetSHH 6.* support
|
data/Gemfile
CHANGED
|
@@ -3,9 +3,13 @@ source 'https://rubygems.org'
|
|
|
3
3
|
# Specify your gem's dependencies in mygem.gemspec
|
|
4
4
|
gemspec
|
|
5
5
|
|
|
6
|
+
gem "net-ssh", ">= 7.3.1"
|
|
7
|
+
gem "logger" # no longer a default gem in Ruby 4.0+
|
|
8
|
+
|
|
6
9
|
# TODO: add to gemspec
|
|
7
10
|
gem "bundler", ">= 1.11"
|
|
8
11
|
gem "rake", ">= 12.0"
|
|
12
|
+
gem "rdoc"
|
|
9
13
|
|
|
10
14
|
gem 'byebug', group: %i[development test] if !Gem.win_platform? && RUBY_ENGINE == "ruby"
|
|
11
15
|
|
data/Rakefile
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
require "rubygems"
|
|
2
2
|
require "rake"
|
|
3
3
|
require "rake/clean"
|
|
4
|
-
|
|
4
|
+
begin
|
|
5
|
+
require "rdoc/task"
|
|
6
|
+
rescue LoadError
|
|
7
|
+
end
|
|
5
8
|
require "bundler/gem_tasks"
|
|
6
9
|
|
|
7
10
|
desc "When releasing make sure NET_SSH_BUILDGEM_SIGNED is set"
|
|
@@ -67,17 +70,19 @@ Rake::TestTask.new do |t|
|
|
|
67
70
|
end
|
|
68
71
|
|
|
69
72
|
extra_files = %w[LICENSE.txt THANKS.txt CHANGES.txt ]
|
|
70
|
-
RDoc::Task
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
73
|
+
if defined?(RDoc::Task)
|
|
74
|
+
RDoc::Task.new do |rdoc|
|
|
75
|
+
rdoc.rdoc_dir = "rdoc"
|
|
76
|
+
rdoc.title = "#{name} #{version}"
|
|
77
|
+
rdoc.generator = 'hanna' # gem install hanna-nouveau
|
|
78
|
+
rdoc.main = 'README.md'
|
|
79
|
+
rdoc.rdoc_files.include("README*")
|
|
80
|
+
rdoc.rdoc_files.include("bin/*.rb")
|
|
81
|
+
rdoc.rdoc_files.include("lib/**/*.rb")
|
|
82
|
+
extra_files.each { |file|
|
|
83
|
+
rdoc.rdoc_files.include(file) if File.exist?(file)
|
|
84
|
+
}
|
|
85
|
+
end
|
|
81
86
|
end
|
|
82
87
|
|
|
83
88
|
def change_version(&block)
|
data/lib/net/scp/version.rb
CHANGED
data/lib/net/scp.rb
CHANGED
|
@@ -329,7 +329,7 @@ module Net
|
|
|
329
329
|
# (:verbose, :recursive, :preserve). Returns the command-line as a
|
|
330
330
|
# string, ready to execute.
|
|
331
331
|
def scp_command(mode, options)
|
|
332
|
-
command = "scp "
|
|
332
|
+
command = +"scp "
|
|
333
333
|
command << (mode == :upload ? "-t" : "-f")
|
|
334
334
|
command << " -v" if options[:verbose]
|
|
335
335
|
command << " -r" if options[:recursive]
|
|
@@ -360,7 +360,7 @@ module Net
|
|
|
360
360
|
channel[:buffer ] = Net::SSH::Buffer.new
|
|
361
361
|
channel[:state ] = "#{mode}_start"
|
|
362
362
|
channel[:stack ] = []
|
|
363
|
-
channel[:error_string] = ''
|
|
363
|
+
channel[:error_string] = +''
|
|
364
364
|
|
|
365
365
|
channel.on_close do
|
|
366
366
|
# If we got an exit-status and it is not 0, something went wrong
|
data/net-scp-public_cert.pem
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
-----BEGIN CERTIFICATE-----
|
|
2
2
|
MIIDeDCCAmCgAwIBAgIBATANBgkqhkiG9w0BAQsFADBBMQ8wDQYDVQQDDAZuZXRz
|
|
3
3
|
c2gxGTAXBgoJkiaJk/IsZAEZFglzb2x1dGlvdXMxEzARBgoJkiaJk/IsZAEZFgNj
|
|
4
|
-
|
|
4
|
+
b20wHhcNMjYwNTE2MTYyMDUzWhcNMjcwNTE2MTYyMDUzWjBBMQ8wDQYDVQQDDAZu
|
|
5
5
|
ZXRzc2gxGTAXBgoJkiaJk/IsZAEZFglzb2x1dGlvdXMxEzARBgoJkiaJk/IsZAEZ
|
|
6
6
|
FgNjb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDGJ4TbZ9H+qZ08
|
|
7
7
|
pQfJhPJTHaDCyQvCsKTFrL5O9z3tllQ7B/zksMMM+qFBpNYu9HCcg4yBATacE/PB
|
|
@@ -12,10 +12,10 @@ KP4yMn+TzaXijyjRg7gECfJr3TGASaA4bQsILFGG5dAWcwO4OMrZedR7SHj/o0Kf
|
|
|
12
12
|
3gL7P0axAgMBAAGjezB5MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQW
|
|
13
13
|
BBQF8qLA7Z4zg0SJGtUbv3eoQ8tjIzAfBgNVHREEGDAWgRRuZXRzc2hAc29sdXRp
|
|
14
14
|
b3VzLmNvbTAfBgNVHRIEGDAWgRRuZXRzc2hAc29sdXRpb3VzLmNvbTANBgkqhkiG
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
9w0BAQsFAAOCAQEAVx/yCCX0ZPQ8TFeZe1T+OBEn3Co/AfjAmCdhstf1TF+Jziyx
|
|
16
|
+
dFJ8m8mF4596gru87Mi8mvu+WbPsLlFMOf5LDUkAsgnlvJ+zqNL7jPjGmsh0KOHJ
|
|
17
|
+
0dzPYnTeGcfyrp1AXNN3Z2jWlEInrnqvo376vOmejjTtmDVVlhPjITHQqLSXzRaQ
|
|
18
|
+
e3M8fbJ+nupobti6jpXCYvH86KtpaxF66mwaynfdjzxQAVycV/ilKtL+sHH8zxlg
|
|
19
|
+
vNiMFH5yLu/tlav4xh+HlYscWVdFQIvd7f/Uxa+Vip1Pi16wmhnrE15z/vDX921v
|
|
20
|
+
hukBRIoCEAuUgNVBh+L/C8aETzbf/77WU3Si/w==
|
|
21
21
|
-----END CERTIFICATE-----
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: net-scp
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.
|
|
4
|
+
version: 4.1.1.rc3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jamis Buck
|
|
8
8
|
- Delano Mandelbaum
|
|
9
9
|
- Miklós Fazekas
|
|
10
|
-
autorequire:
|
|
10
|
+
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain:
|
|
13
13
|
- |
|
|
14
14
|
-----BEGIN CERTIFICATE-----
|
|
15
15
|
MIIDeDCCAmCgAwIBAgIBATANBgkqhkiG9w0BAQsFADBBMQ8wDQYDVQQDDAZuZXRz
|
|
16
16
|
c2gxGTAXBgoJkiaJk/IsZAEZFglzb2x1dGlvdXMxEzARBgoJkiaJk/IsZAEZFgNj
|
|
17
|
-
|
|
17
|
+
b20wHhcNMjYwNTE2MTY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
|
|
35
|
+
date: 2026-05-16 00:00:00.000000000 Z
|
|
36
36
|
dependencies:
|
|
37
37
|
- !ruby/object:Gem::Dependency
|
|
38
38
|
name: net-ssh
|
|
@@ -105,7 +105,6 @@ files:
|
|
|
105
105
|
- lib/net/scp/errors.rb
|
|
106
106
|
- lib/net/scp/upload.rb
|
|
107
107
|
- lib/net/scp/version.rb
|
|
108
|
-
- lib/net/scp/version.rb.old
|
|
109
108
|
- lib/uri/open-scp.rb
|
|
110
109
|
- lib/uri/scp.rb
|
|
111
110
|
- net-scp-public_cert.pem
|
|
@@ -116,7 +115,7 @@ licenses:
|
|
|
116
115
|
- MIT
|
|
117
116
|
metadata:
|
|
118
117
|
changelog_uri: https://github.com/net-ssh/net-scp/blob/master/CHANGES.txt
|
|
119
|
-
post_install_message:
|
|
118
|
+
post_install_message:
|
|
120
119
|
rdoc_options: []
|
|
121
120
|
require_paths:
|
|
122
121
|
- lib
|
|
@@ -132,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
132
131
|
version: '0'
|
|
133
132
|
requirements: []
|
|
134
133
|
rubygems_version: 3.3.3
|
|
135
|
-
signing_key:
|
|
134
|
+
signing_key:
|
|
136
135
|
specification_version: 3
|
|
137
136
|
summary: A pure Ruby implementation of the SCP client protocol.
|
|
138
137
|
test_files: []
|
metadata.gz.sig
CHANGED
|
Binary file
|
data/lib/net/scp/version.rb.old
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
module Net
|
|
2
|
-
class SCP
|
|
3
|
-
# A class for describing the current version of a library. The version
|
|
4
|
-
# consists of three parts: the +major+ number, the +minor+ number, and the
|
|
5
|
-
# +tiny+ (or +patch+) number.
|
|
6
|
-
#
|
|
7
|
-
# Two Version instances may be compared, so that you can test that a version
|
|
8
|
-
# of a library is what you require:
|
|
9
|
-
#
|
|
10
|
-
# require 'net/scp/version'
|
|
11
|
-
#
|
|
12
|
-
# if Net::SCP::Version::CURRENT < Net::SCP::Version[2,1,0]
|
|
13
|
-
# abort "your software is too old!"
|
|
14
|
-
# end
|
|
15
|
-
class Version
|
|
16
|
-
include Comparable
|
|
17
|
-
|
|
18
|
-
# A convenience method for instantiating a new Version instance with the
|
|
19
|
-
# given +major+, +minor+, and +tiny+ components.
|
|
20
|
-
def self.[](major, minor, tiny, pre = nil)
|
|
21
|
-
new(major, minor, tiny, pre)
|
|
22
|
-
end
|
|
23
|
-
|
|
24
|
-
attr_reader :major, :minor, :tiny
|
|
25
|
-
|
|
26
|
-
# Create a new Version object with the given components.
|
|
27
|
-
def initialize(major, minor, tiny, pre = nil)
|
|
28
|
-
@major, @minor, @tiny, @pre = major, minor, tiny, pre
|
|
29
|
-
end
|
|
30
|
-
|
|
31
|
-
# Compare this version to the given +version+ object.
|
|
32
|
-
def <=>(version)
|
|
33
|
-
to_i <=> version.to_i
|
|
34
|
-
end
|
|
35
|
-
|
|
36
|
-
# Converts this version object to a string, where each of the three
|
|
37
|
-
# version components are joined by the '.' character. E.g., 2.0.0.
|
|
38
|
-
def to_s
|
|
39
|
-
@to_s ||= [@major, @minor, @tiny, @pre].compact.join(".")
|
|
40
|
-
end
|
|
41
|
-
|
|
42
|
-
# Converts this version to a canonical integer that may be compared
|
|
43
|
-
# against other version objects.
|
|
44
|
-
def to_i
|
|
45
|
-
@to_i ||= @major * 1_000_000 + @minor * 1_000 + @tiny
|
|
46
|
-
end
|
|
47
|
-
|
|
48
|
-
# The major component of this version of the Net::SSH library
|
|
49
|
-
MAJOR = 4
|
|
50
|
-
|
|
51
|
-
# The minor component of this version of the Net::SSH library
|
|
52
|
-
MINOR = 0
|
|
53
|
-
|
|
54
|
-
# The tiny component of this version of the Net::SSH library
|
|
55
|
-
TINY = 1
|
|
56
|
-
|
|
57
|
-
# The prerelease component of this version of the Net::SSH library
|
|
58
|
-
# nil allowed
|
|
59
|
-
PRE = "rc2"
|
|
60
|
-
|
|
61
|
-
# The current version of the Net::SSH library as a Version instance
|
|
62
|
-
CURRENT = new(*[MAJOR, MINOR, TINY, PRE].compact)
|
|
63
|
-
|
|
64
|
-
# The current version of the Net::SSH library as a String
|
|
65
|
-
STRING = CURRENT.to_s
|
|
66
|
-
end
|
|
67
|
-
end
|
|
68
|
-
end
|