remote_sh 0.1.4 → 0.1.5

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: 1c7102862c0e9113c5e3e7472f7ef63d17ca9839a8fe11910c59550c1aa137b9
4
- data.tar.gz: c2c93b7fb6a6d33cf8323d732101e1f1739eba24d97d1471b2f3ef19e2fe28a2
3
+ metadata.gz: 87d9e649f7b5b23c1e8b0aef4db8210be8b8b21964755ba5c286e40a7b89fa8d
4
+ data.tar.gz: 77e800c078aa7b7906b10edd6467aad9cb3e9e5b1cd5a2da690a843acc415f1d
5
5
  SHA512:
6
- metadata.gz: 76a21a121e6a31dd08f06d0b179c45dfd3051ea5fd965aa810f1ffc2259de3076152d8414fc107dae9d7c608d2f06486d776b97e7eb2e8d07ca93f54b0c73417
7
- data.tar.gz: 6f152b0ab7aa5032e18eb3df14835861339dff9155ed862b6c6cf9252bee53f183497275ad28c393adb277e67db7461ab1307491117ae1d750ff56ea44a18f01
6
+ metadata.gz: c1e4adb757cca373e036355d20ac8fb591d8c5c9a5a98ac0a500cd389d60e1d064c7d477f4a90b6dbbf253716b231202d1e6499288d8140ebfd6d4060f68477a
7
+ data.tar.gz: 29df5bef622e3775e9f0e7d92a6a5447d5e25f51a66272635403f97093df3e3d25fb0c3efb1a563f22a3b313e61ab89e12d3380c134d99f97f445a02540b0b0c
@@ -39,6 +39,19 @@ module RemoteSh
39
39
  SshHelper.current_ports(host_host, remote_blacklist_ports + local_opened_ports).each { |port| SshHelper.close_port(host_host, port) }
40
40
  current_ports(local_blacklisted_ports + remote_opened_ports).each { |port| SshHelper.close_local_port(host_host, port) }
41
41
  ensure
42
+ SshHelper
43
+ .current_ports(host_host, remote_blacklist_ports)
44
+ .each do |port|
45
+ SshHelper.close_port(host_host, port)
46
+ rescue
47
+ end
48
+
49
+ current_ports(local_blacklisted_ports)
50
+ .each do |port|
51
+ SshHelper.close_local_port(host_host, port)
52
+ rescue
53
+ end
54
+
42
55
  File.delete(pid_filename)
43
56
  end
44
57
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RemoteSh
4
- VERSION = "0.1.4"
4
+ VERSION = "0.1.5"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: remote_sh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Egorov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-12-29 00:00:00.000000000 Z
11
+ date: 2025-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: filewatcher