tmuxinator 0.6.3 → 0.6.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d39dfeb0a8545d2a350baa90a8e10d955fca6cce
4
- data.tar.gz: 6a65bf9c56691ca61b97fdf8a83273b5e77237e5
3
+ metadata.gz: 78a605e6c1ca2f15a4e38232b48dfc576b3f0e8f
4
+ data.tar.gz: 750b9013143c741b0cadeb9ddccef2c20ce28ecf
5
5
  SHA512:
6
- metadata.gz: da7b46dcb158ab71ac91c40f944b22a657ccb20091a5c8895db1d79a087416f1c81967693e371b883fad2f3fc880885fbc5b561d042422a136b888d0e52f2d2d
7
- data.tar.gz: 41ffd48199849fb16c7b777bd451b8e36446379858236bbac9a3b40a9442c029ab6bb6dd1a76c3d686fbc04ff2f7cfa4d804a667a8162d11a779c7d55d6711ac
6
+ metadata.gz: e24273e7128ff0fc956aa31f0f29e344e8930933b90f705b5ef36da0a10adf3ca109a5b1235899f87594b5b379210772bb836b93ee738b439f8df467c99acfdb
7
+ data.tar.gz: 8ad475904be0e362572c7f3a8fd81a5bbd5e53f199b44ea931668c79897b16dd701ab180c44e26ae37ebba0a3f8d01397b1e5a65637842bad16ea2e4e4dd2dfb
@@ -1,3 +1,8 @@
1
+ ## 0.6.4
2
+ - Fixes broken backwards compatibility of multiple pre commands #129
3
+ - Fixes tmuxinator ignoring project root when started from within a tmux session #132
4
+ - Add gem version badge
5
+
1
6
  ## 0.6.3
2
7
  - Remove stray pry #128
3
8
  - Allow starting a tmuxinator project while inside a tmux session #130
data/README.md CHANGED
@@ -1,4 +1,6 @@
1
- # Tmuxinator [![Build Status](https://secure.travis-ci.org/aziz/tmuxinator.png)](http://travis-ci.org/aziz/tmuxinator?branch=master) [![Coverage Status](https://coveralls.io/repos/aziz/tmuxinator/badge.png)](https://coveralls.io/r/aziz/tmuxinator) [![Code Climate](https://codeclimate.com/github/aziz/tmuxinator.png)](https://codeclimate.com/github/aziz/tmuxinator) [![Dependency Status](https://gemnasium.com/aziz/tmuxinator.png)](https://gemnasium.com/aziz/tmuxinator)
1
+ # Tmuxinator
2
+
3
+ [![Gem Version](https://badge.fury.io/rb/tmuxinator.png)](http://badge.fury.io/rb/tmuxinator) [![Build Status](https://secure.travis-ci.org/aziz/tmuxinator.png)](http://travis-ci.org/aziz/tmuxinator?branch=master) [![Coverage Status](https://coveralls.io/repos/aziz/tmuxinator/badge.png)](https://coveralls.io/r/aziz/tmuxinator) [![Code Climate](https://codeclimate.com/github/aziz/tmuxinator.png)](https://codeclimate.com/github/aziz/tmuxinator) [![Dependency Status](https://gemnasium.com/aziz/tmuxinator.png)](https://gemnasium.com/aziz/tmuxinator)
2
4
 
3
5
  Create and manage tmux sessions easily.
4
6
 
@@ -44,7 +44,12 @@ module Tmuxinator
44
44
  end
45
45
 
46
46
  def pre
47
- yaml["pre"]
47
+ pre_config = yaml["pre"]
48
+ if pre_config.is_a?(Array)
49
+ pre_config.join("; ")
50
+ else
51
+ pre_config
52
+ end
48
53
  end
49
54
 
50
55
  def pre_window
@@ -134,7 +139,7 @@ module Tmuxinator
134
139
  def deprecations
135
140
  deprecations = []
136
141
  deprecations << "DEPRECATION: rbenv/rvm specific options have been replaced by the pre_tab option and will not be supported in 0.8.0." if yaml["rbenv"] || yaml["rvm"]
137
- deprecations << "DEPRECATION: The tabs option has been replaced by the window option and will not be supported in 0.8.0." if yaml["tabs"].present?
142
+ deprecations << "DEPRECATION: The tabs option has been replaced by the windows option and will not be supported in 0.8.0." if yaml["tabs"].present?
138
143
  deprecations << "DEPRECATION: The cli_args option has been replaced by the tmux_options option and will not be supported in 0.8.0." if yaml["cli_args"].present?
139
144
  deprecations
140
145
  end
@@ -1,3 +1,3 @@
1
1
  module Tmuxinator
2
- VERSION = "0.6.3"
2
+ VERSION = "0.6.4"
3
3
  end
@@ -62,7 +62,7 @@ module Tmuxinator
62
62
  end
63
63
 
64
64
  def tmux_new_window_command
65
- "#{project.tmux} new-window -t #{tmux_window_target} -n #{name}"
65
+ "#{project.tmux} new-window -c #{project.root.shellescape} -t #{tmux_window_target} -n #{name}"
66
66
  end
67
67
 
68
68
  def tmux_layout_command
@@ -230,4 +230,29 @@ describe Tmuxinator::Project do
230
230
  end
231
231
  end
232
232
  end
233
+
234
+ describe "#pre" do
235
+ subject(:pre) { project.pre }
236
+
237
+ context "pre in yaml is string" do
238
+ before { project.yaml["pre"] = "mysql.server start" }
239
+
240
+ it "returns the string" do
241
+ expect(pre).to eq("mysql.server start")
242
+ end
243
+ end
244
+
245
+ context "pre in yaml is Array" do
246
+ before {
247
+ project.yaml["pre"] = [
248
+ "mysql.server start",
249
+ "memcached -d"
250
+ ]
251
+ }
252
+
253
+ it "joins array using ;" do
254
+ expect(pre).to eq("mysql.server start; memcached -d")
255
+ end
256
+ end
257
+ end
233
258
  end
@@ -59,4 +59,22 @@ describe Tmuxinator::Window do
59
59
  end
60
60
  end
61
61
  end
62
+
63
+ describe "#tmux_new_window_command" do
64
+ let(:project) { double(:project) }
65
+ let(:window) { Tmuxinator::Window.new(yaml, 0, project) }
66
+
67
+ before do
68
+ project.stub(
69
+ :name => "",
70
+ :tmux => "tmux",
71
+ :root => "/project/tmuxinator",
72
+ :base_index => 1
73
+ )
74
+ end
75
+
76
+ it "specifies root path by passing -c to tmux" do
77
+ expect(window.tmux_new_window_command).to include("-c /project/tmuxinator")
78
+ end
79
+ end
62
80
  end
@@ -37,7 +37,7 @@ Gem::Specification.new do |spec|
37
37
 
38
38
  spec.required_rubygems_version = ">= 1.8.23"
39
39
 
40
- spec.add_dependency "thor"
40
+ spec.add_dependency "thor", ">= 0.18.0"
41
41
  spec.add_dependency "activesupport"
42
42
  spec.add_dependency "erubis"
43
43
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tmuxinator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.3
4
+ version: 0.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Allen Bargi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-03 00:00:00.000000000 Z
11
+ date: 2013-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '>='
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: 0.18.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '>='
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: 0.18.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: activesupport
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -233,7 +233,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
233
233
  version: 1.8.23
234
234
  requirements: []
235
235
  rubyforge_project:
236
- rubygems_version: 2.0.3
236
+ rubygems_version: 2.0.6
237
237
  signing_key:
238
238
  specification_version: 4
239
239
  summary: Create and manage complex tmux sessions easily.