teamocil 1.0.3 → 1.0.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f10fa1c0f47e6a157c1c512edeb74edf1f6caccd
4
- data.tar.gz: 69791bc4d8b2ac3890188723e0f356759ccb0153
3
+ metadata.gz: cd9c25b9a34c7f2b8efa0b353640523a9c6ad8f4
4
+ data.tar.gz: 4e4db6b9d019b46b0820d8d7a8d583afdb1250e9
5
5
  SHA512:
6
- metadata.gz: d1926967783273f4764a5ccba173e0e6d12f64e0d491dda81cb6e134318e54fcc52d827e60595f7b94fc28b1573501a52a224a2bc87fa2cc49e3d28ff483ae15
7
- data.tar.gz: 729c2bfb214887e0d07a7c4199782c7d4facc925c93cde632b2038129ef5f01a6eb670b925901a9a73815f51f6f3847f490ea6de9c08f4bfb967456f663c562f
6
+ metadata.gz: 30df185031fc3ef4f5c530bc29b10f525312ca12f34d6590732f315ddf6b62cca9214b8ae5639cfb7d815bc4446181789f7f07a57ecf1fb73fa5969118cd5d13
7
+ data.tar.gz: 70d528fc0064ae4ec5f2409737fe21ff0b2aac5dfd2f4cfbf26b6bbf1406594c09d5b9677d30573222f681d14ff3d24f7dc6a2ac4e7f15df7c50d3382a19fa37
@@ -5,7 +5,7 @@ module Teamocil
5
5
  super
6
6
 
7
7
  # Make sure paths like `~/foo/bar` work
8
- self.root = File.expand_path(root)
8
+ self.root = File.expand_path(root) if root
9
9
 
10
10
  self.panes ||= splits
11
11
  self.panes = panes.each_with_index.map do |pane, index|
@@ -36,7 +36,7 @@ module Teamocil
36
36
  tmux << panes.map(&:as_tmux)
37
37
 
38
38
  # Select the window layout
39
- tmux << Teamocil::Command::SelectLayout.new(layout: layout)
39
+ tmux << Teamocil::Command::SelectLayout.new(layout: layout) if layout
40
40
 
41
41
  # Set the focus on the right pane or the first one
42
42
  focused_pane = panes.find(&:focus)
@@ -1,3 +1,3 @@
1
1
  module Teamocil
2
- VERSION = '1.0.3'
2
+ VERSION = '1.0.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: teamocil
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rémi Prévost