teamocil 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -3,3 +3,4 @@
3
3
  .local*
4
4
  .yardoc
5
5
  doc
6
+ pkg
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- teamocil (0.2.1)
4
+ teamocil (0.2.2)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
data/lib/teamocil.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Teamocil
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  autoload :Layout, "teamocil/layout"
4
4
  autoload :CLI, "teamocil/cli"
5
5
  end
@@ -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, index| Window.new(self, index, 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
- @filters = attrs["filters"]
45
+ @options = attrs["options"] || {}
46
+
47
47
  @splits = attrs["splits"] || []
48
- @splits = @splits.each_with_index.map { |split, index| Split.new(self, index, 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
- @options ||= {}
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: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 1
10
- version: 0.2.1
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-24 00:00:00 Z
18
+ date: 2011-10-26 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rake