lab42_tmux2 0.0.1pre6 → 0.0.1
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/lib/lab42/tmux/dry_run.rb +4 -5
- data/lib/lab42/tmux/session/commands.rb +4 -2
- data/lib/lab42/tmux/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7158e6273257e1c421f16fea52c591747202982d
|
|
4
|
+
data.tar.gz: b85ee0e8e196f7c01ad3abb4bcc9d6c85d39235f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 60f2393cd3256884abd746afa887acca2eafd3fd1ce2aee22077266380bee7ff19db4b507cd6a36ce3d1dacd90a994d16fcaa187a8a98129e0cd59d333a5919a
|
|
7
|
+
data.tar.gz: 7b4de21e5069a8296a2038f24fe57c72125b8b743b741aa0654ff8f22b41a83561dac3aaae54abc804993db6c3fd8d9b1230f66684e45d0f9b5e4f9f44523a3e
|
data/lib/lab42/tmux/dry_run.rb
CHANGED
|
@@ -4,15 +4,14 @@ module Lab42
|
|
|
4
4
|
module Interface extend self
|
|
5
5
|
def command *args
|
|
6
6
|
puts args.join( ' ' )
|
|
7
|
-
end
|
|
8
|
-
def query *args
|
|
9
|
-
puts args.join( ' ' )
|
|
10
7
|
if args.first == 'capture-pane'
|
|
11
8
|
capture_pane( *args.drop( 1 ) )
|
|
12
|
-
else
|
|
13
|
-
args.first != 'has-session'
|
|
14
9
|
end
|
|
15
10
|
end
|
|
11
|
+
def query *args
|
|
12
|
+
puts args.join( ' ' )
|
|
13
|
+
args.first != 'has-session'
|
|
14
|
+
end
|
|
16
15
|
|
|
17
16
|
private
|
|
18
17
|
def capture_pane *args
|
|
@@ -22,7 +22,7 @@ module Lab42
|
|
|
22
22
|
def wait_for text_or_rgx, alternate_pane_addr=nil, &blk
|
|
23
23
|
require 'timeout'
|
|
24
24
|
pane_addr = alternate_pane_addr || window_address
|
|
25
|
-
text_or_rgx = %r{#{text_or_rgx}} unless Regexp === text_or_rgx
|
|
25
|
+
text_or_rgx = %r{#{text_or_rgx}}m unless Regexp === text_or_rgx
|
|
26
26
|
conditional_sleep configuration.pre_wait_interval
|
|
27
27
|
Timeout.timeout configuration.wait_timeout do
|
|
28
28
|
really_wait_for text_or_rgx, in_pane: pane_addr, dependent_actions: blk
|
|
@@ -43,7 +43,9 @@ module Lab42
|
|
|
43
43
|
|
|
44
44
|
private
|
|
45
45
|
def capture_pane pane_addr
|
|
46
|
-
|
|
46
|
+
command( 'capture-pane', *(pane_addr.split), '-p' ).tap do |result |
|
|
47
|
+
p result if $DEBUG
|
|
48
|
+
end
|
|
47
49
|
end
|
|
48
50
|
def conditional_sleep sleepy_or_falsy
|
|
49
51
|
sleep sleepy_or_falsy if sleepy_or_falsy
|
data/lib/lab42/tmux/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lab42_tmux2
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Robert Dober
|
|
@@ -100,9 +100,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
100
100
|
version: '2.1'
|
|
101
101
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
102
102
|
requirements:
|
|
103
|
-
- - "
|
|
103
|
+
- - ">="
|
|
104
104
|
- !ruby/object:Gem::Version
|
|
105
|
-
version:
|
|
105
|
+
version: '0'
|
|
106
106
|
requirements: []
|
|
107
107
|
rubyforge_project:
|
|
108
108
|
rubygems_version: 2.2.2
|