rosh 0.9.5 → 0.9.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9a9b04489aa21bdb87dd7a21a2696d33c0f1b29c45767593bca5bdc0b383b2a4
4
- data.tar.gz: a43d640d729094bb85640cfece07ebe2f1b82bb007723d528b628fb5a495a23a
3
+ metadata.gz: 1399835146cfcd6615a17868694c426b4c06b25649fab1c02192bf8f4534fe1d
4
+ data.tar.gz: 835a84fe3a697e322fb28aa6c67e16f0ad1cbf832616b23991c65f0333fde8f9
5
5
  SHA512:
6
- metadata.gz: 35972089d8384a358f3e79795fbf774be00e38b811872f690491057ccb17134488d3a19d21cdd2bc5854acab669033273689f2d99bc1fedbdb324d1eff31982c
7
- data.tar.gz: 8a422f7936c8482d12b168ed6a5aab6dddda8691e98b327c206a676976f770ad3a02d4a0d19888eeb86188b0dea4431b370ed2e6989559758d99adaf2c696932
6
+ metadata.gz: ecaffa32659f87db955a586bced2a742f15735cc75c5d76b00cc7113a9378673cfb54294b7d33ffa29eefdda0213cee56ea09f07de4caae68b3239875f4d9d7c
7
+ data.tar.gz: 66a075c156779a0d33907187ada1195f8d7ebce66fb59de8136e585f7e3b4ce1d0e9f641961d3be12c6b956ae8215f0071e60e16a2a46ea153f0b5c8f377fbd0
data/lib/rosh/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Rosh
2
- VERSION = '0.9.5'
2
+ VERSION = '0.9.6'
3
3
  end
data/lib/rosh.rb CHANGED
@@ -32,8 +32,6 @@ class Rosh
32
32
  if @verbose
33
33
  puts "ssh-config: #{config}"
34
34
  end
35
- @forward_opts = []
36
- @forwarding_disabled = false
37
35
  @oom_reported = false
38
36
  @last_exit_status = nil
39
37
  local_forwards(alias_name).each do |f|
@@ -120,26 +118,12 @@ private
120
118
  end
121
119
 
122
120
  def add_forward_option(kind, spec)
123
- return if forwarding_disabled?
124
121
  if kind == :local && !local_forward_available?(spec)
125
122
  puts "skip forwarding: #{spec} is already in use"
126
- disable_forwarding!
127
123
  return
128
124
  end
129
125
  opt = kind == :local ? "-L #{spec}" : "-R #{spec}"
130
126
  @ssh_opts << opt
131
- @forward_opts << opt
132
- end
133
-
134
- def disable_forwarding!
135
- return if @forwarding_disabled
136
- @forwarding_disabled = true
137
- @forward_opts.each { |opt| @ssh_opts.delete(opt) }
138
- @forward_opts.clear
139
- end
140
-
141
- def forwarding_disabled?
142
- @forwarding_disabled
143
127
  end
144
128
 
145
129
  def local_forward_available?(spec)
@@ -57,7 +57,7 @@ class RoshForwardingTest < Minitest::Test
57
57
  ssh_opts = rosh.instance_variable_get(:@ssh_opts)
58
58
 
59
59
  refute_includes ssh_opts, '-L 127.0.0.1:3131:localhost:3131'
60
- refute_includes ssh_opts, '-R 8082:localhost:8082'
60
+ assert_includes ssh_opts, '-R 8082:localhost:8082'
61
61
  end
62
62
 
63
63
  def test_verbose_logs_when_session_is_missing
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rosh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.5
4
+ version: 0.9.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Genki Takiuchi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-10-14 00:00:00.000000000 Z
11
+ date: 2025-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-ssh