teamocil 0.2.1 → 0.2.2
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/.gitignore +1 -0
- data/Gemfile.lock +1 -1
- data/lib/teamocil.rb +1 -1
- data/lib/teamocil/layout.rb +9 -8
- metadata +4 -4
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
data/lib/teamocil.rb
CHANGED
data/lib/teamocil/layout.rb
CHANGED
@@ -13,7 +13,7 @@ module Teamocil
|
|
13
13
|
# @param attrs [Hash] the session data from the layout file
|
14
14
|
def initialize(options, attrs={}) # {{{
|
15
15
|
@name = attrs["name"]
|
16
|
-
@windows = attrs["windows"].each_with_index.map { |window,
|
16
|
+
@windows = attrs["windows"].each_with_index.map { |window, window_index| Window.new(self, window_index, window) }
|
17
17
|
@options = options
|
18
18
|
end # }}}
|
19
19
|
|
@@ -42,17 +42,17 @@ module Teamocil
|
|
42
42
|
def initialize(session, index, attrs={}) # {{{
|
43
43
|
@name = attrs["name"]
|
44
44
|
@root = attrs["root"]
|
45
|
-
@options = attrs["options"]
|
46
|
-
|
45
|
+
@options = attrs["options"] || {}
|
46
|
+
|
47
47
|
@splits = attrs["splits"] || []
|
48
|
-
@splits = @splits.each_with_index.map { |split,
|
49
|
-
@index = index
|
50
|
-
@session = session
|
48
|
+
@splits = @splits.each_with_index.map { |split, split_index| Split.new(self, split_index, split) }
|
51
49
|
|
52
|
-
@
|
53
|
-
@filters ||= {}
|
50
|
+
@filters = attrs["filters"] || {}
|
54
51
|
@filters["before"] ||= []
|
55
52
|
@filters["after"] ||= []
|
53
|
+
|
54
|
+
@index = index
|
55
|
+
@session = session
|
56
56
|
end # }}}
|
57
57
|
|
58
58
|
# Generate commands to send to tmux
|
@@ -94,6 +94,7 @@ module Teamocil
|
|
94
94
|
@width = attrs["width"]
|
95
95
|
@cmd = attrs["cmd"]
|
96
96
|
@target = attrs["target"]
|
97
|
+
|
97
98
|
@window = window
|
98
99
|
@index = index
|
99
100
|
end # }}}
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: teamocil
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 2
|
10
|
+
version: 0.2.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- "R\xC3\xA9mi Pr\xC3\xA9vost"
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-10-
|
18
|
+
date: 2011-10-26 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: rake
|