tmuxinator 0.6.3 → 0.6.4
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 +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +3 -1
- data/lib/tmuxinator/project.rb +7 -2
- data/lib/tmuxinator/version.rb +1 -1
- data/lib/tmuxinator/window.rb +1 -1
- data/spec/lib/tmuxinator/project_spec.rb +25 -0
- data/spec/lib/tmuxinator/window_spec.rb +18 -0
- data/tmuxinator.gemspec +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78a605e6c1ca2f15a4e38232b48dfc576b3f0e8f
|
4
|
+
data.tar.gz: 750b9013143c741b0cadeb9ddccef2c20ce28ecf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e24273e7128ff0fc956aa31f0f29e344e8930933b90f705b5ef36da0a10adf3ca109a5b1235899f87594b5b379210772bb836b93ee738b439f8df467c99acfdb
|
7
|
+
data.tar.gz: 8ad475904be0e362572c7f3a8fd81a5bbd5e53f199b44ea931668c79897b16dd701ab180c44e26ae37ebba0a3f8d01397b1e5a65637842bad16ea2e4e4dd2dfb
|
data/CHANGELOG.md
CHANGED
@@ -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
|
1
|
+
# Tmuxinator
|
2
|
+
|
3
|
+
[](http://badge.fury.io/rb/tmuxinator) [](http://travis-ci.org/aziz/tmuxinator?branch=master) [](https://coveralls.io/r/aziz/tmuxinator) [](https://codeclimate.com/github/aziz/tmuxinator) [](https://gemnasium.com/aziz/tmuxinator)
|
2
4
|
|
3
5
|
Create and manage tmux sessions easily.
|
4
6
|
|
data/lib/tmuxinator/project.rb
CHANGED
@@ -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
|
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
|
data/lib/tmuxinator/version.rb
CHANGED
data/lib/tmuxinator/window.rb
CHANGED
@@ -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
|
data/tmuxinator.gemspec
CHANGED
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.
|
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-
|
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:
|
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:
|
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.
|
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.
|