tmuxinator 0.3.1 → 0.3.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/README.md CHANGED
@@ -43,6 +43,7 @@ Create or edit your projects with this command, for editing you can also use `tm
43
43
  project_name: Tmuxinator
44
44
  project_root: ~/code/rails_project
45
45
  rvm: 1.9.2@rails_project
46
+ pre: sudo /etc/rc.d/mysqld start
46
47
  tabs:
47
48
  - editor:
48
49
  layout: main-vertical
@@ -62,6 +63,8 @@ Create or edit your projects with this command, for editing you can also use `tm
62
63
  If a tab contains multiple commands, they will be 'joined' together with '&&'.
63
64
  If you want to have your own default config, place it into $HOME/.tmuxinator/default.yml
64
65
 
66
+ The `pre` command allows you to run anything before starting the tmux session. Could be handy to make sure you database daemons are running.
67
+
65
68
  ## Panes Support
66
69
  you can define your own panes inside a window likes this:
67
70
 
@@ -134,8 +137,15 @@ I would love to hear your feedback on this project! Send me a message!
134
137
  * [Chris Lerum](https://github.com/chrislerum)
135
138
  * [David Bolton](https://github.com/lightningdb)
136
139
  * [Thibault Duplessis](https://github.com/ornicar)
140
+ * [Ian Yang](https://github.com/doitian)
141
+
137
142
 
138
143
  ## History
144
+ ###v. 0.3.0
145
+ * added pre command (Thanks to Ian Yang)
146
+ * using tmux set default-path for project root
147
+ * new aliases
148
+
139
149
  ###v. 0.2.0
140
150
  * added pane support (Thanks to Aaron Spiegel)
141
151
  * RVM support (Thanks to Jay Adkisoon)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.1
1
+ 0.3.2
@@ -4,6 +4,7 @@
4
4
  project_name: Tmuxinator
5
5
  project_root: ~/code/rails_project
6
6
  rvm: 1.9.2@rails_project
7
+ pre: sudo /etc/rc.d/mysqld start
7
8
  tabs:
8
9
  - editor:
9
10
  layout: main-vertical
@@ -2,7 +2,8 @@
2
2
  tmux start-server
3
3
 
4
4
  if ! $(tmux has-session -t <%=s @project_name %>); then
5
-
5
+ cd <%= @project_root || "." %>
6
+ <%= @pre %>
6
7
  tmux new-session -d -s <%=s @project_name %> -n <%=s @tabs[0].name %>
7
8
  tmux set default-path <%= @project_root %>
8
9
  tmux set-option base-index 1
@@ -1,7 +1,7 @@
1
1
  module Tmuxinator
2
2
 
3
3
  class ConfigWriter
4
- attr_accessor :file_name, :file_path, :project_name, :project_root, :rvm, :tabs
4
+ attr_accessor :file_name, :file_path, :project_name, :project_root, :rvm, :tabs, :pre
5
5
 
6
6
  include Tmuxinator::Helper
7
7
 
@@ -47,6 +47,7 @@ module Tmuxinator
47
47
  @project_name = yaml["project_name"]
48
48
  @project_root = yaml["project_root"]
49
49
  @rvm = yaml["rvm"]
50
+ @pre = yaml["pre"]
50
51
  @tabs = []
51
52
 
52
53
  yaml["tabs"].each do |tab|
@@ -8,6 +8,7 @@ describe Tmuxinator::ConfigWriter do
8
8
  its(:rvm){ should be_nil }
9
9
  its(:tabs){ should be_nil }
10
10
  its(:config_path){ should be_nil }
11
+ its(:pre){ should be_nil }
11
12
  end
12
13
 
13
14
  context "While Defining the filename on init" do
@@ -27,6 +28,7 @@ describe Tmuxinator::ConfigWriter do
27
28
  its(:project_root){ should eql '~/code/rails_project' }
28
29
  its(:rvm){ should eql '1.9.2@rails_project' }
29
30
  its(:tabs){ should be_an Array }
31
+ its(:pre){ should eql 'sudo /etc/rc.d/mysqld start' }
30
32
 
31
33
  let(:first_tab){ subject.tabs[0] }
32
34
 
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{tmuxinator}
8
- s.version = "0.3.1"
8
+ s.version = "0.3.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Allen Bargi"]
12
- s.date = %q{2011-04-09}
12
+ s.date = %q{2011-04-29}
13
13
  s.description = %q{Create and manage complex tmux sessions easily.}
14
14
  s.email = %q{allen.bargi@gmail.com}
15
15
  s.executables = ["tmuxinator"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tmuxinator
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 1
10
- version: 0.3.1
9
+ - 2
10
+ version: 0.3.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Allen Bargi
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-04-09 00:00:00 Z
18
+ date: 2011-04-29 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  type: :development