teamocil 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README.mkd +1 -0
  2. data/bin/teamocil +7 -3
  3. data/lib/teamocil.rb +1 -1
  4. metadata +3 -3
data/README.mkd CHANGED
@@ -7,6 +7,7 @@ Teamocil is a tool used to automatically create windows and splits in `tmux` wit
7
7
  $ gem install teamocil
8
8
  $ mkdir ~/.teamocil
9
9
  $ touch ~/.teamocil/sample.yml
10
+ $ tmux
10
11
  $ teamocil sample
11
12
 
12
13
  # Layout example
data/bin/teamocil CHANGED
@@ -1,6 +1,10 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require "teamocil"
3
+ require File.dirname(__FILE__)+"/../lib/teamocil"
4
4
 
5
- layout = Teamocil::Layout.new(ARGV[0], File.join("#{ENV["HOME"]}/.teamocil", "#{ARGV[0]}.yml"))
6
- layout.to_tmux
5
+ if ENV["TMUX"] == nil
6
+ puts "You must be in a tmux session to use teamocil"
7
+ else
8
+ layout = Teamocil::Layout.new(ARGV[0], File.join("#{ENV["HOME"]}/.teamocil", "#{ARGV[0]}.yml"))
9
+ layout.to_tmux
10
+ end
data/lib/teamocil.rb CHANGED
@@ -4,6 +4,6 @@ $:.unshift(File.dirname(__FILE__)) unless
4
4
  $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
5
5
 
6
6
  module Teamocil
7
- VERSION = '0.1.1'
7
+ VERSION = '0.1.2'
8
8
  autoload :Layout, "teamocil/layout"
9
9
  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: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - "R\xC3\xA9mi Pr\xC3\xA9vost"