teamocil 0.1.4 → 0.1.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.
Files changed (3) hide show
  1. data/bin/teamocil +10 -2
  2. data/lib/teamocil.rb +1 -1
  3. metadata +5 -5
data/bin/teamocil CHANGED
@@ -19,14 +19,22 @@ opts = OptionParser.new do |opts|
19
19
 
20
20
  Options:
21
21
  "
22
- opts.on("--here", "Set up the first window in the current window") do |safe|
22
+ opts.on("--here", "Set up the first window in the current window") do
23
23
  options[:here] = true
24
24
  end
25
25
 
26
+ opts.on("--layout [LAYOUT]", "Use a specific layout file, instead of ~/.teamocil/<layout>.yml") do |layout|
27
+ options[:layout] = layout
28
+ end
29
+
26
30
  end
27
31
  opts.parse!
28
32
 
29
- file = File.join("#{ENV["HOME"]}/.teamocil", "#{ARGV[0]}.yml")
33
+ if options.include?(:layout)
34
+ file = options[:layout]
35
+ else
36
+ file = File.join("#{ENV["HOME"]}/.teamocil", "#{ARGV[0]}.yml")
37
+ end
30
38
 
31
39
  bail "There is no file \"#{file}\"" unless File.exists?(file)
32
40
 
data/lib/teamocil.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Teamocil
2
- VERSION = '0.1.4'
2
+ VERSION = '0.1.5'
3
3
  autoload :Layout, "teamocil/layout"
4
4
  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: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 4
10
- version: 0.1.4
9
+ - 5
10
+ version: 0.1.5
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-02-16 00:00:00 -05:00
18
+ date: 2011-02-24 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies: []
21
21
 
@@ -63,7 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
63
63
  requirements: []
64
64
 
65
65
  rubyforge_project:
66
- rubygems_version: 1.5.0
66
+ rubygems_version: 1.5.2
67
67
  signing_key:
68
68
  specification_version: 3
69
69
  summary: Easy window and split layouts for tmux