lab42_tmux2 0.0.1pre1 → 0.0.1pre2

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
  SHA1:
3
- metadata.gz: b296b9c2f6de2710e5e974eb2c392baf133f2e0e
4
- data.tar.gz: 7401c7875cdb671b61f67f51f3c0a206facb5937
3
+ metadata.gz: 7ff5a4e128bce5e7dabd4588da56010c2f3544ab
4
+ data.tar.gz: 960fa2f5ea0197610f316606a53bbccb714b4b23
5
5
  SHA512:
6
- metadata.gz: 69510c2287c20f782a421c42c5dbf639cc9e79ff2433b7c976b6fb29d1a8b72c36a0a8e10df59c1a0a2f20821c1d817848969eb88b583f297fdefd9ccca96429
7
- data.tar.gz: c3e289007ca737e224198892f4f678083c133a69eacf3995018392b46efbd8cc92630d8cd3a1a5705c8a1057bd9d53710341e9a95164cc81cb4a236298b66563
6
+ metadata.gz: 9f54f31a41d331d2a8283277d702064f25a493977f289ce349ea98cb4b548457d3c033c7dc89c83d02cd56ac45add87c55040a191cd8b69a1a9094347dabd5a8
7
+ data.tar.gz: 6d14ccdc3f048c09ff090371123bd11d4b159fefb74e6554d2973816bf9bf0e81d99d1823c0b138e7a373e38a9f0344e68cd9b02d87117f30bbd821566a2b9c9
@@ -8,6 +8,10 @@ module Lab42
8
8
  @win_number += 1
9
9
  commands << %W{ new-window #{session_address} -n #{name} }
10
10
  end
11
+
12
+ def send_keys *keys
13
+ commands << %W{ send-keys #{window_address} #{keys.map(&:inspect).join(' ')} C-m }
14
+ end
11
15
  end # module Commands
12
16
  include Commands
13
17
  end # class Session
@@ -5,6 +5,9 @@ module Lab42
5
5
  def session_address
6
6
  "-t #{name}"
7
7
  end
8
+ def window_address
9
+ "-t #{name}:#{win_number}"
10
+ end
8
11
  end # module ParameterHelpers
9
12
  include ParameterHelpers
10
13
  end # class Session
@@ -1,6 +1,6 @@
1
1
 
2
2
  module Lab42
3
3
  module Tmux
4
- VERSION = '0.0.1pre1'
4
+ VERSION = '0.0.1pre2'
5
5
  end # module Tmux
6
6
  end # module Lab42
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lab42_tmux2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1pre1
4
+ version: 0.0.1pre2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Dober
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-10 00:00:00.000000000 Z
11
+ date: 2014-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: forwarder2