tmuxinator 0.6.8 → 0.6.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tmuxinator.rb +7 -0
- data/lib/tmuxinator/assets/template.erb +8 -1
- data/lib/tmuxinator/assets/wemux_template.erb +3 -1
- data/lib/tmuxinator/cli.rb +4 -7
- data/lib/tmuxinator/config.rb +2 -6
- data/lib/tmuxinator/project.rb +4 -2
- data/lib/tmuxinator/version.rb +1 -1
- data/lib/tmuxinator/window.rb +2 -1
- data/spec/lib/tmuxinator/cli_spec.rb +24 -29
- data/spec/lib/tmuxinator/config_spec.rb +21 -21
- data/spec/lib/tmuxinator/project_spec.rb +18 -18
- data/spec/lib/tmuxinator/window_spec.rb +5 -4
- metadata +43 -49
- data/.gitignore +0 -19
- data/.rspec +0 -1
- data/.travis.yml +0 -26
- data/CHANGELOG.md +0 -97
- data/CONTRIBUTING.md +0 -42
- data/Gemfile +0 -5
- data/LICENSE +0 -20
- data/README.md +0 -251
- data/Rakefile +0 -1
- data/completion/tmuxinator.bash +0 -21
- data/completion/tmuxinator.fish +0 -16
- data/completion/tmuxinator.zsh +0 -20
- data/tmuxinator.gemspec +0 -52
@@ -16,7 +16,7 @@ describe Tmuxinator::Window do
|
|
16
16
|
let(:window) { Tmuxinator::Window.new(yaml, 0, project) }
|
17
17
|
|
18
18
|
before do
|
19
|
-
project.
|
19
|
+
allow(project).to receive_messages(:tmux => "tmux", :name => "test", :base_index => 1)
|
20
20
|
end
|
21
21
|
|
22
22
|
describe "#initialize" do
|
@@ -29,7 +29,7 @@ describe Tmuxinator::Window do
|
|
29
29
|
let(:pane) { double(:pane) }
|
30
30
|
|
31
31
|
before do
|
32
|
-
Tmuxinator::Pane.
|
32
|
+
allow(Tmuxinator::Pane).to receive_messages :new => pane
|
33
33
|
end
|
34
34
|
|
35
35
|
context "with a three element Array" do
|
@@ -132,17 +132,18 @@ describe Tmuxinator::Window do
|
|
132
132
|
let(:window) { Tmuxinator::Window.new(yaml, 0, project) }
|
133
133
|
|
134
134
|
before do
|
135
|
-
project.
|
135
|
+
allow(project).to receive_messages(
|
136
136
|
:name => "",
|
137
137
|
:tmux => "tmux",
|
138
138
|
:root => "/project/tmuxinator",
|
139
|
+
:root? => true,
|
139
140
|
:base_index => 1
|
140
141
|
)
|
141
142
|
end
|
142
143
|
|
143
144
|
context "tmux 1.6 and below" do
|
144
145
|
before do
|
145
|
-
Tmuxinator::Config.
|
146
|
+
allow(Tmuxinator::Config).to receive_messages(:version => 1.6)
|
146
147
|
end
|
147
148
|
|
148
149
|
it "specifies root path by passing default-path to tmux" do
|
metadata
CHANGED
@@ -1,43 +1,49 @@
|
|
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.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Allen Bargi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.19'
|
17
20
|
- - ">="
|
18
21
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
22
|
+
version: 0.15.0
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.19'
|
24
30
|
- - ">="
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
32
|
+
version: 0.15.0
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: erubis
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
30
36
|
requirements:
|
31
|
-
- - "
|
37
|
+
- - "~>"
|
32
38
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
39
|
+
version: '2.6'
|
34
40
|
type: :runtime
|
35
41
|
prerelease: false
|
36
42
|
version_requirements: !ruby/object:Gem::Requirement
|
37
43
|
requirements:
|
38
|
-
- - "
|
44
|
+
- - "~>"
|
39
45
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
46
|
+
version: '2.6'
|
41
47
|
- !ruby/object:Gem::Dependency
|
42
48
|
name: bundler
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -56,100 +62,100 @@ dependencies:
|
|
56
62
|
name: rspec
|
57
63
|
requirement: !ruby/object:Gem::Requirement
|
58
64
|
requirements:
|
59
|
-
- - "
|
65
|
+
- - "~>"
|
60
66
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
67
|
+
version: '3.1'
|
62
68
|
type: :development
|
63
69
|
prerelease: false
|
64
70
|
version_requirements: !ruby/object:Gem::Requirement
|
65
71
|
requirements:
|
66
|
-
- - "
|
72
|
+
- - "~>"
|
67
73
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
74
|
+
version: '3.1'
|
69
75
|
- !ruby/object:Gem::Dependency
|
70
76
|
name: simplecov
|
71
77
|
requirement: !ruby/object:Gem::Requirement
|
72
78
|
requirements:
|
73
|
-
- - "
|
79
|
+
- - "~>"
|
74
80
|
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
81
|
+
version: '0.9'
|
76
82
|
type: :development
|
77
83
|
prerelease: false
|
78
84
|
version_requirements: !ruby/object:Gem::Requirement
|
79
85
|
requirements:
|
80
|
-
- - "
|
86
|
+
- - "~>"
|
81
87
|
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
88
|
+
version: '0.9'
|
83
89
|
- !ruby/object:Gem::Dependency
|
84
90
|
name: coveralls
|
85
91
|
requirement: !ruby/object:Gem::Requirement
|
86
92
|
requirements:
|
87
|
-
- - "
|
93
|
+
- - "~>"
|
88
94
|
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
95
|
+
version: '0.7'
|
90
96
|
type: :development
|
91
97
|
prerelease: false
|
92
98
|
version_requirements: !ruby/object:Gem::Requirement
|
93
99
|
requirements:
|
94
|
-
- - "
|
100
|
+
- - "~>"
|
95
101
|
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
102
|
+
version: '0.7'
|
97
103
|
- !ruby/object:Gem::Dependency
|
98
104
|
name: awesome_print
|
99
105
|
requirement: !ruby/object:Gem::Requirement
|
100
106
|
requirements:
|
101
|
-
- - "
|
107
|
+
- - "~>"
|
102
108
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
109
|
+
version: '1.2'
|
104
110
|
type: :development
|
105
111
|
prerelease: false
|
106
112
|
version_requirements: !ruby/object:Gem::Requirement
|
107
113
|
requirements:
|
108
|
-
- - "
|
114
|
+
- - "~>"
|
109
115
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
116
|
+
version: '1.2'
|
111
117
|
- !ruby/object:Gem::Dependency
|
112
118
|
name: pry
|
113
119
|
requirement: !ruby/object:Gem::Requirement
|
114
120
|
requirements:
|
115
|
-
- - "
|
121
|
+
- - "~>"
|
116
122
|
- !ruby/object:Gem::Version
|
117
|
-
version: '0'
|
123
|
+
version: '0.10'
|
118
124
|
type: :development
|
119
125
|
prerelease: false
|
120
126
|
version_requirements: !ruby/object:Gem::Requirement
|
121
127
|
requirements:
|
122
|
-
- - "
|
128
|
+
- - "~>"
|
123
129
|
- !ruby/object:Gem::Version
|
124
|
-
version: '0'
|
130
|
+
version: '0.10'
|
125
131
|
- !ruby/object:Gem::Dependency
|
126
132
|
name: pry-nav
|
127
133
|
requirement: !ruby/object:Gem::Requirement
|
128
134
|
requirements:
|
129
|
-
- - "
|
135
|
+
- - "~>"
|
130
136
|
- !ruby/object:Gem::Version
|
131
|
-
version: '0'
|
137
|
+
version: '0.2'
|
132
138
|
type: :development
|
133
139
|
prerelease: false
|
134
140
|
version_requirements: !ruby/object:Gem::Requirement
|
135
141
|
requirements:
|
136
|
-
- - "
|
142
|
+
- - "~>"
|
137
143
|
- !ruby/object:Gem::Version
|
138
|
-
version: '0'
|
144
|
+
version: '0.2'
|
139
145
|
- !ruby/object:Gem::Dependency
|
140
146
|
name: factory_girl
|
141
147
|
requirement: !ruby/object:Gem::Requirement
|
142
148
|
requirements:
|
143
|
-
- - "
|
149
|
+
- - "~>"
|
144
150
|
- !ruby/object:Gem::Version
|
145
|
-
version: '
|
151
|
+
version: '4.4'
|
146
152
|
type: :development
|
147
153
|
prerelease: false
|
148
154
|
version_requirements: !ruby/object:Gem::Requirement
|
149
155
|
requirements:
|
150
|
-
- - "
|
156
|
+
- - "~>"
|
151
157
|
- !ruby/object:Gem::Version
|
152
|
-
version: '
|
158
|
+
version: '4.4'
|
153
159
|
description: Create and manage complex tmux sessions easily.
|
154
160
|
email:
|
155
161
|
- allen.bargi@gmail.com
|
@@ -159,20 +165,8 @@ executables:
|
|
159
165
|
extensions: []
|
160
166
|
extra_rdoc_files: []
|
161
167
|
files:
|
162
|
-
- ".gitignore"
|
163
|
-
- ".rspec"
|
164
|
-
- ".travis.yml"
|
165
|
-
- CHANGELOG.md
|
166
|
-
- CONTRIBUTING.md
|
167
|
-
- Gemfile
|
168
|
-
- LICENSE
|
169
|
-
- README.md
|
170
|
-
- Rakefile
|
171
168
|
- bin/mux
|
172
169
|
- bin/tmuxinator
|
173
|
-
- completion/tmuxinator.bash
|
174
|
-
- completion/tmuxinator.fish
|
175
|
-
- completion/tmuxinator.zsh
|
176
170
|
- lib/tmuxinator.rb
|
177
171
|
- lib/tmuxinator/assets/sample.yml
|
178
172
|
- lib/tmuxinator/assets/template.erb
|
@@ -197,7 +191,6 @@ files:
|
|
197
191
|
- spec/lib/tmuxinator/util_spec.rb
|
198
192
|
- spec/lib/tmuxinator/window_spec.rb
|
199
193
|
- spec/spec_helper.rb
|
200
|
-
- tmuxinator.gemspec
|
201
194
|
homepage: https://github.com/aziz/tmuxinator
|
202
195
|
licenses:
|
203
196
|
- MIT
|
@@ -239,3 +232,4 @@ test_files:
|
|
239
232
|
- spec/lib/tmuxinator/util_spec.rb
|
240
233
|
- spec/lib/tmuxinator/window_spec.rb
|
241
234
|
- spec/spec_helper.rb
|
235
|
+
has_rdoc:
|
data/.gitignore
DELETED
data/.rspec
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
--color --format=nested
|
data/.travis.yml
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
rvm:
|
3
|
-
- "1.9.3"
|
4
|
-
- "2.0.0"
|
5
|
-
- "2.1.2"
|
6
|
-
env:
|
7
|
-
- TMUX_VERSION=master
|
8
|
-
- TMUX_VERSION=1.9
|
9
|
-
- TMUX_VERSION=1.8
|
10
|
-
- TMUX_VERSION=1.7
|
11
|
-
- TMUX_VERSION=1.6
|
12
|
-
- TMUX_VERSION=1.5
|
13
|
-
matrix:
|
14
|
-
allow_failures:
|
15
|
-
- env: TMUX_VERSION=1.7
|
16
|
-
before_install:
|
17
|
-
- sudo apt-get update -qq
|
18
|
-
- sudo apt-get install -qq libevent-dev libncurses-dev
|
19
|
-
- git clone git://git.code.sf.net/p/tmux/tmux-code tmux
|
20
|
-
- cd tmux
|
21
|
-
- git checkout $TMUX_VERSION
|
22
|
-
- sh autogen.sh
|
23
|
-
- ./configure && make && sudo make install
|
24
|
-
- cd ..
|
25
|
-
- tmux -V
|
26
|
-
script: bundle exec rspec spec
|
data/CHANGELOG.md
DELETED
@@ -1,97 +0,0 @@
|
|
1
|
-
## 0.6.8
|
2
|
-
- Remove some duplication #212
|
3
|
-
- Add wemux support #88 - Thanks to Andrew Thal (@athal7)
|
4
|
-
- Fix typos in readme #217, #216
|
5
|
-
- Fix encoding bug #229
|
6
|
-
- Fix specs not running due to changes in thor
|
7
|
-
|
8
|
-
## 0.6.7
|
9
|
-
- Remove use of grep for base-index #171
|
10
|
-
- Fix bugs in `Tmuxinator::Config.default?` #169
|
11
|
-
- Fix path for Rails log in directory sample #177
|
12
|
-
- Add completions for fish shell #179
|
13
|
-
- Fix grammar in readme #184
|
14
|
-
- Make commands take precedence over project names #182
|
15
|
-
- Improve error messages when $EDITOR isn't set #186, #194
|
16
|
-
- Add confirmation to deletion prompt #197
|
17
|
-
- Fix broken badge references after organisation move
|
18
|
-
- Remove dependancy on ActiveSupport #199
|
19
|
-
- Fix compatability with tmux 1.9
|
20
|
-
|
21
|
-
## 0.6.6
|
22
|
-
- Fix a bug caused by not escaping the root path #145
|
23
|
-
- Fix bash completion with a single argument #148
|
24
|
-
- Fix regression where an array of commands for a window wasn't working #149
|
25
|
-
- Add an option to call tmux wrappers or derivatives #154
|
26
|
-
- Refactor build\_panes to always return an array #157
|
27
|
-
- Clean up some branching code using `.presence` #163
|
28
|
-
- Setup TravisCI test matrix for different tmux versions #164
|
29
|
-
- Fix some grammar and spelling in readme #166
|
30
|
-
- Make multiple commands use tmux's `send-keys` rather than just using `&&` for both panes and windows #100
|
31
|
-
|
32
|
-
## 0.6.5
|
33
|
-
- Change deprecation continue message from any key to just the enter key
|
34
|
-
- Dramatically clean up the readme to be clearer for new users
|
35
|
-
- Update the contributing guide with references to the GitHub styleguide and add examples of how to leave good commit messages
|
36
|
-
- Use Erubis to render the project sample and fix a bad binding reference
|
37
|
-
- Update the sample project to be much simpler
|
38
|
-
- Fix not working delete command #142
|
39
|
-
- Fix an error in the bash completion script
|
40
|
-
- Fix an issue where the wrong project path was being returned
|
41
|
-
- Fix an issue where command aliases were being ignored
|
42
|
-
|
43
|
-
## 0.6.4
|
44
|
-
- Fixes broken backwards compatibility of multiple pre commands #129
|
45
|
-
- Fixes tmuxinator ignoring project root when started from within a tmux session #132
|
46
|
-
- Add gem version badge
|
47
|
-
|
48
|
-
## 0.6.3
|
49
|
-
- Remove stray pry #128
|
50
|
-
- Allow starting a tmuxinator project while inside a tmux session #130
|
51
|
-
- Set the tmux layout after pane creation to avoid pane too small errors #131
|
52
|
-
- Check for both pane-base-index and base-index #126
|
53
|
-
|
54
|
-
## 0.6.2
|
55
|
-
- Also pass command line options to the `base_index` lookup.
|
56
|
-
- Fixed bug #116.
|
57
|
-
|
58
|
-
## 0.6.1
|
59
|
-
- Remove stray binding.pry
|
60
|
-
- Fix nil error when creating a new project.
|
61
|
-
|
62
|
-
## 0.6.0
|
63
|
-
|
64
|
-
- Rewrote core functionality with proper abstractions and unit tests
|
65
|
-
- Fixed outstanding bugs #72 #89 #90 #93 #101 #102 #103 #104 #109
|
66
|
-
- Switched to thor for command line argument parsing
|
67
|
-
- Switched to Erubis for more Rails like ERB
|
68
|
-
- Added simplecov for test coverage
|
69
|
-
- Added debug command line option to view generated shell commands
|
70
|
-
- Added commands and completion options for completion scripts
|
71
|
-
- Added `pre_window` option for running commands before all panes and windows
|
72
|
-
- Deprecated `rbenv` in favour of `pre_window`
|
73
|
-
- Deprecated `rvm` in favour of `pre_window`
|
74
|
-
- Deprecated `cli_args` in favour of `tmux_options`
|
75
|
-
- Deprecated `tabs` in favour of `windows`
|
76
|
-
- Dropped support for Ruby 1.9.2
|
77
|
-
|
78
|
-
## 0.5.0
|
79
|
-
- Added optional socket name support (Thanks to Adam Walters)
|
80
|
-
- Added auto completion (Thanks to Jose Pablo Barrantes)
|
81
|
-
|
82
|
-
## 0.4.0
|
83
|
-
- Does not crash if given an invalid yaml file format. report it and exit gracefully.
|
84
|
-
- Removed clunky scripts & shell aliases (Thanks to Dane O'Connor)
|
85
|
-
- Config files are now rendered JIT (Thanks to Dane O'Connor)
|
86
|
-
- Can now start sessions from cli (Thanks to Dane O'Connor)
|
87
|
-
|
88
|
-
## 0.3.0
|
89
|
-
- Added pre command (Thanks to Ian Yang)
|
90
|
-
- Added multiple pre command (Thanks to Bjørn Arild Mæland)
|
91
|
-
- Using tmux set default-path for project root
|
92
|
-
- New aliases
|
93
|
-
|
94
|
-
## 0.2.0
|
95
|
-
- Added pane support (Thanks to Aaron Spiegel)
|
96
|
-
- RVM support (Thanks to Jay Adkisoon)
|
97
|
-
|
data/CONTRIBUTING.md
DELETED
@@ -1,42 +0,0 @@
|
|
1
|
-
# Contributing
|
2
|
-
|
3
|
-
## First
|
4
|
-
|
5
|
-
* Check if the issue you're going to submit isn't already submitted in
|
6
|
-
the [Issues](https://github.com/aziz/tmuxinator/issues) page.
|
7
|
-
|
8
|
-
## Issues
|
9
|
-
|
10
|
-
* Submit a ticket for your issue, assuming one does not already exist.
|
11
|
-
* The issue must:
|
12
|
-
* Clearly describe the problem including steps to reproduce when it is a bug.
|
13
|
-
* Also include all the information you can to make it easier for us to reproduce it,
|
14
|
-
like OS version, gem versions, rbenv or rvm versions etc...
|
15
|
-
* Even better, provide a failing test case for it.
|
16
|
-
|
17
|
-
## Pull Requests
|
18
|
-
|
19
|
-
If you've gone the extra mile and have a patch that fixes the issue, you
|
20
|
-
should submit a Pull Request!
|
21
|
-
|
22
|
-
* Please follow the [GitHub Styleguide](https://github.com/styleguide/ruby) for
|
23
|
-
Ruby in both implementation and tests!
|
24
|
-
* Fork the repo on Github.
|
25
|
-
* Create a topic branch from where you want to base your work.
|
26
|
-
* Add a test for your change. Only refactoring and documentation changes
|
27
|
-
require no new tests. If you are adding functionality or fixing a bug,
|
28
|
-
we need a test!
|
29
|
-
* Run _all_ the tests to assure nothine else was broken. We only take pull requests with passing tests.
|
30
|
-
* Check for unnecessary whitespace with `git diff --check` before committing.
|
31
|
-
* Structure your commit messages like this:
|
32
|
-
|
33
|
-
```
|
34
|
-
Summarize clearly in one line what the commit is about
|
35
|
-
|
36
|
-
Describe the problem the commit solves or the use
|
37
|
-
case for a new feature. Justify why you chose
|
38
|
-
the particular solution.
|
39
|
-
```
|
40
|
-
|
41
|
-
* Use "fix", "add", "change" instead of "fixed", "added", "changed" in your commit messages.
|
42
|
-
* Push to your fork and submit a pull request.
|