sshkit 1.22.0 → 1.22.2
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
- data/.github/workflows/push.yml +1 -1
- data/lib/sshkit/backends/connection_pool/cache.rb +2 -2
- data/lib/sshkit/backends/netssh/known_hosts.rb +3 -1
- data/lib/sshkit/version.rb +1 -1
- data/sshkit.gemspec +1 -0
- data/test/unit/backends/test_abstract.rb +1 -1
- data/test/unit/test_deprecation_logger.rb +1 -1
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b7db39cc723be7334eecf9f54d9e7a8ca8cd03c22514956d0a5fda5e58764ba
|
4
|
+
data.tar.gz: 431b7368d840461e7bb47e5ae6af21de3995da4a38492bc193fc3a902a0ec945
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7829a6485761cc5fc79ffb44723c15089004b4267e4e54e028db7a2cbf4cc074d57541391bfa89e0b60c239533dbe240f72f2fddf6df1b3997f301b93c268dd5
|
7
|
+
data.tar.gz: 300efa2a1398ecfd27a420536aa9203a283d116318cf68ff4ecb94ee229c500a9c93134db93504075e95f3add04460fad12c71982a3551a742eacbadd150d10e
|
data/.github/workflows/push.yml
CHANGED
@@ -36,8 +36,8 @@ class SSHKit::Backend::ConnectionPool::Cache
|
|
36
36
|
def evict
|
37
37
|
# Peek at the first connection to see if it is still fresh. If so, we can
|
38
38
|
# return right away without needing to use `synchronize`.
|
39
|
-
first_expires_at,
|
40
|
-
return if (first_expires_at.nil? || fresh?(first_expires_at))
|
39
|
+
first_expires_at, _first_conn = connections.first
|
40
|
+
return if (first_expires_at.nil? || fresh?(first_expires_at))
|
41
41
|
|
42
42
|
connections.synchronize do
|
43
43
|
fresh, stale = connections.partition do |expires_at, conn|
|
data/lib/sshkit/version.rb
CHANGED
data/sshkit.gemspec
CHANGED
@@ -20,6 +20,7 @@ Gem::Specification.new do |gem|
|
|
20
20
|
gem.require_paths = ["lib"]
|
21
21
|
gem.version = SSHKit::VERSION
|
22
22
|
|
23
|
+
gem.add_runtime_dependency('base64') if RUBY_VERSION >= "2.4"
|
23
24
|
gem.add_runtime_dependency('mutex_m')
|
24
25
|
gem.add_runtime_dependency('net-ssh', '>= 2.8.0')
|
25
26
|
gem.add_runtime_dependency('net-scp', '>= 1.1.2')
|
@@ -124,7 +124,7 @@ module SSHKit
|
|
124
124
|
assert_equal 2, lines.length
|
125
125
|
|
126
126
|
assert_equal("[Deprecated] The background method is deprecated. Blame badly behaved pseudo-daemons!\n", lines[0])
|
127
|
-
assert_match(/ \(Called from.*test_abstract.rb:\d+:in
|
127
|
+
assert_match(/ \(Called from.*test_abstract.rb:\d+:in .block in .*test_background_logs_deprecation_warnings.\)\n/, lines[1])
|
128
128
|
end
|
129
129
|
|
130
130
|
def test_calling_abstract_with_undefined_execute_command_raises_exception
|
@@ -20,7 +20,7 @@ module SSHKit
|
|
20
20
|
|
21
21
|
assert_equal(2, actual_lines.size)
|
22
22
|
assert_equal "[Deprecated] Some message\n", actual_lines[0]
|
23
|
-
assert_match %r{ \(Called from .*sshkit/test/unit/test_deprecation_logger.rb:#{line_number}:in
|
23
|
+
assert_match %r{ \(Called from .*sshkit/test/unit/test_deprecation_logger.rb:#{line_number}:in .*generate_warning.\)\n}, actual_lines[1]
|
24
24
|
end
|
25
25
|
|
26
26
|
def test_handles_nil_output
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sshkit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.22.
|
4
|
+
version: 1.22.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lee Hambley
|
@@ -9,8 +9,22 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-
|
12
|
+
date: 2024-04-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: base64
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - ">="
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '0'
|
21
|
+
type: :runtime
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - ">="
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: '0'
|
14
28
|
- !ruby/object:Gem::Dependency
|
15
29
|
name: mutex_m
|
16
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -324,7 +338,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
324
338
|
- !ruby/object:Gem::Version
|
325
339
|
version: '0'
|
326
340
|
requirements: []
|
327
|
-
rubygems_version: 3.5.
|
341
|
+
rubygems_version: 3.5.9
|
328
342
|
signing_key:
|
329
343
|
specification_version: 4
|
330
344
|
summary: SSHKit makes it easy to write structured, testable SSH commands in Ruby
|