sshkit 1.22.0 → 1.22.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 762a819b65ab2b01aee9bdff39037ca0b5f48a0e55b770c922eeee4b0118dcfb
4
- data.tar.gz: 31aa61f4e968d345f0ee2c974ecf6761f86b5acb5e1f735e73c2713931f3bf7a
3
+ metadata.gz: 4b7db39cc723be7334eecf9f54d9e7a8ca8cd03c22514956d0a5fda5e58764ba
4
+ data.tar.gz: 431b7368d840461e7bb47e5ae6af21de3995da4a38492bc193fc3a902a0ec945
5
5
  SHA512:
6
- metadata.gz: bd51f4d17794678ac7bc7f6b9c2588a7af76d94a8709414dfb3f2ba492adf1d4da134f4fc93a2a42096ac3fd2b2265a4570e5c6e7b6289c45326eddebec3bd2c
7
- data.tar.gz: 88c219aec07643424633efa06bb9e6c3dd8539e651fb42f04cdbcc2cb513ffde40b72c32a460e5cb6893d69d3b7baad062a57246ee90eaac6062bf64f70b8bc5
6
+ metadata.gz: 7829a6485761cc5fc79ffb44723c15089004b4267e4e54e028db7a2cbf4cc074d57541391bfa89e0b60c239533dbe240f72f2fddf6df1b3997f301b93c268dd5
7
+ data.tar.gz: 300efa2a1398ecfd27a420536aa9203a283d116318cf68ff4ecb94ee229c500a9c93134db93504075e95f3add04460fad12c71982a3551a742eacbadd150d10e
@@ -7,6 +7,6 @@ jobs:
7
7
  steps:
8
8
  - uses: actions/checkout@master
9
9
  - name: Draft Release
10
- uses: toolmantim/release-drafter@v5.25.0
10
+ uses: toolmantim/release-drafter@v6.0.0
11
11
  env:
12
12
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -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, first_conn = connections.first
40
- return if (first_expires_at.nil? || fresh?(first_expires_at)) && !closed?(first_conn)
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|
@@ -1,3 +1,5 @@
1
+ require "base64"
2
+
1
3
  module SSHKit
2
4
 
3
5
  module Backend
@@ -140,4 +142,4 @@ module SSHKit
140
142
 
141
143
  end
142
144
 
143
- end
145
+ end
@@ -1,3 +1,3 @@
1
1
  module SSHKit
2
- VERSION = "1.22.0".freeze
2
+ VERSION = "1.22.2".freeze
3
3
  end
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 `block in test_background_logs_deprecation_warnings'\)\n/, lines[1])
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 `generate_warning'\)\n}, actual_lines[1]
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.0
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-01-09 00:00:00.000000000 Z
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.3
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