tweemux 0.4.0 → 1.0.0
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.
- data/lib/tweemux/action/at.rb +5 -2
- data/lib/tweemux/version.rb +1 -1
- data/test/tweemux/action/at_test.rb +2 -14
- data/test/tweemux/action/on_test.rb +16 -0
- metadata +4 -2
data/lib/tweemux/action/at.rb
CHANGED
@@ -6,7 +6,10 @@ class Tweemux::Action::At < Tweemux::Action
|
|
6
6
|
cmd.push '-p'+port
|
7
7
|
port_parens = " (on port #{port})"
|
8
8
|
end
|
9
|
-
|
10
|
-
|
9
|
+
forced_path_for_osx_people = 'PATH=/usr/local/bin:/usr/bin'
|
10
|
+
explained_run cmd + [
|
11
|
+
'-t', forced_path_for_osx_people,
|
12
|
+
'tmux', '-S', Tweemux::SOCK, 'attach',
|
13
|
+
], "Connect to #{host}#{port_parens}, demand a pty, then attach to session"
|
11
14
|
end
|
12
15
|
end
|
data/lib/tweemux/version.rb
CHANGED
@@ -1,16 +1,4 @@
|
|
1
|
-
require_relative '
|
2
|
-
class Tweemux::Action::AtTest
|
3
|
-
include TweemuxActionHelper
|
1
|
+
require_relative 'on_test'
|
2
|
+
class Tweemux::Action::AtTest < Tweemux::Action::OnTest
|
4
3
|
def argv; %w'at sharpsaw.org 2233' end
|
5
|
-
def expected_commands
|
6
|
-
[ %w(ssh sharpsaw.org -p2233 -t tmux -S /tmp/tweemux.sock attach) ]
|
7
|
-
end
|
8
|
-
end
|
9
|
-
|
10
|
-
class Tweemux::Action::AtImplicitPortTest < MiniTest::Unit::TestCase
|
11
|
-
include TweemuxActionHelper
|
12
|
-
def argv; %w'at sharpsaw.org' end
|
13
|
-
def expected_commands
|
14
|
-
[ %w(ssh sharpsaw.org -t tmux -S /tmp/tweemux.sock attach) ]
|
15
|
-
end
|
16
4
|
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require_relative '../../action_test_helper'
|
2
|
+
class Tweemux::Action::OnTest < MiniTest::Unit::TestCase
|
3
|
+
include TweemuxActionHelper
|
4
|
+
def argv; %w'at sharpsaw.org 2233' end
|
5
|
+
def expected_commands
|
6
|
+
[ %w(ssh sharpsaw.org -p2233 -t PATH=/usr/local/bin:/usr/bin tmux -S /tmp/tweemux.sock attach) ]
|
7
|
+
end
|
8
|
+
end
|
9
|
+
|
10
|
+
class Tweemux::Action::OnImplicitPortTest < MiniTest::Unit::TestCase
|
11
|
+
include TweemuxActionHelper
|
12
|
+
def argv; %w'on sharpsaw.org' end
|
13
|
+
def expected_commands
|
14
|
+
[ %w(ssh sharpsaw.org -t PATH=/usr/local/bin:/usr/bin tmux -S /tmp/tweemux.sock attach) ]
|
15
|
+
end
|
16
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tweemux
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-03-
|
12
|
+
date: 2013-03-08 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: ! 'For Remote Pair Programming: A handy script to create-or-join a world-readable
|
15
15
|
tmux session
|
@@ -51,6 +51,7 @@ files:
|
|
51
51
|
- test/tweemux/action/help_test.rb
|
52
52
|
- test/tweemux/action/host_test.rb
|
53
53
|
- test/tweemux/action/hubkey_test.rb
|
54
|
+
- test/tweemux/action/on_test.rb
|
54
55
|
- test/tweemux/action/share_test.rb
|
55
56
|
- test/tweemux/action_test.rb
|
56
57
|
- test/tweemux_test.rb
|
@@ -88,6 +89,7 @@ test_files:
|
|
88
89
|
- test/tweemux/action/help_test.rb
|
89
90
|
- test/tweemux/action/host_test.rb
|
90
91
|
- test/tweemux/action/hubkey_test.rb
|
92
|
+
- test/tweemux/action/on_test.rb
|
91
93
|
- test/tweemux/action/share_test.rb
|
92
94
|
- test/tweemux/action_test.rb
|
93
95
|
- test/tweemux_test.rb
|