tmuxinator 0.7.1 → 0.7.2

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: 7c6ff68dfeab85d67f1fb06a8e000c2bf527bd13
4
- data.tar.gz: 028ba3082dc1d6a3c6108efacc2e9f130135b904
3
+ metadata.gz: 69776676073ac64ed73dd6f12141c6c3d7b3d9bc
4
+ data.tar.gz: a8fbc49a81682d255042d28c9c73ccc5303147d7
5
5
  SHA512:
6
- metadata.gz: 6e1d74afdea6de73c488ec8f84bf14acfe01e86c6a80b1f523b0993544e208089310aeb3daa8a80eb7296791a1139f750ae0530778ad3f61bc289fd6a5b85157
7
- data.tar.gz: d23d2b5311bdaf10b332f9533794ee781f64407fcc979d44d37541f0b00ae024d672009b7c5307e01d39adf82a89b3a9ab5af6aaae9c07fe4534a69dbb94aa4b
6
+ metadata.gz: a22f37e133c2bea7f2b3b2b3c62d1291ed364bc7eb1b302fb8814cc86bd29269c132e3eb30bdbb0bc34c7e5b3ef023eb355b20112233dccd6a31d1a8060466b1
7
+ data.tar.gz: 1f83b909c1539eb9b8c1d40b78836a1e4a1b9b269130ed8379be287e4e791166f5425ed5ae5fb6b2f2d92631e4a898b80cf487c16a30efa7f43cbe066ac86f59
data/bin/mux ADDED
@@ -0,0 +1 @@
1
+ tmuxinator
@@ -0,0 +1 @@
1
+ tmuxinator.fish
@@ -4,7 +4,7 @@
4
4
  unset RBENV_VERSION
5
5
  unset RBENV_DIR
6
6
 
7
- <%= tmux %> start-server\; has-session -t <%= name %> 2>/dev/null
7
+ <%= tmux %> start-server\; has-session = <%= name %> 2>/dev/null
8
8
 
9
9
  if [ "$?" -eq 1 ]; then
10
10
  cd <%= root || "." %>
@@ -60,9 +60,10 @@ if [ "$?" -eq 1 ]; then
60
60
  <% unless pane.last? %>
61
61
  <%= pane.tmux_split_command %>
62
62
  <% end %>
63
- <%= window.tmux_layout_command %>
63
+ <%= window.tmux_tiled_layout_command %>
64
64
  <% end %>
65
65
 
66
+ <%= window.tmux_layout_command %>
66
67
  <%= window.tmux_select_first_pane %>
67
68
  <% end %>
68
69
  <% end %>
@@ -1,3 +1,3 @@
1
1
  module Tmuxinator
2
- VERSION = "0.7.1"
2
+ VERSION = "0.7.2"
3
3
  end
@@ -95,6 +95,10 @@ module Tmuxinator
95
95
  "#{project.tmux} new-window #{path} -t #{tmux_window_target} #{tmux_window_name_option}"
96
96
  end
97
97
 
98
+ def tmux_tiled_layout_command
99
+ "#{project.tmux} select-layout -t #{tmux_window_target} tiled"
100
+ end
101
+
98
102
  def tmux_layout_command
99
103
  "#{project.tmux} select-layout -t #{tmux_window_target} #{layout}"
100
104
  end
@@ -51,6 +51,14 @@ describe Tmuxinator::Project do
51
51
  expect(rendered).to_not include("sample")
52
52
  end
53
53
  end
54
+
55
+ # Please see: https://github.com/tmuxinator/tmuxinator/issues/347
56
+ context "open sessions" do
57
+ it "uses 'has-session =' to avoid matching open session name prefixes" do
58
+ output = project.render
59
+ expect(output).to match %r{has-session =}
60
+ end
61
+ end
54
62
  end
55
63
 
56
64
  describe "#windows" do
@@ -2,10 +2,11 @@ require "coveralls"
2
2
  require "simplecov"
3
3
  require "pry"
4
4
 
5
- SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
5
+ formatters = [
6
6
  SimpleCov::Formatter::HTMLFormatter,
7
7
  Coveralls::SimpleCov::Formatter
8
8
  ]
9
+ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new(formatters)
9
10
  SimpleCov.start do
10
11
  add_filter "vendor/cache"
11
12
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tmuxinator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Allen Bargi
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-12-14 00:00:00.000000000 Z
12
+ date: 2016-04-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor
@@ -130,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
130
130
  version: 1.8.23
131
131
  requirements: []
132
132
  rubyforge_project:
133
- rubygems_version: 2.4.2
133
+ rubygems_version: 2.5.1
134
134
  signing_key:
135
135
  specification_version: 4
136
136
  summary: Create and manage complex tmux sessions easily.
data/bin/mux DELETED
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env ruby
2
- $: << File.expand_path("../../lib/", __FILE__)
3
-
4
- require "thor"
5
- require "tmuxinator"
6
-
7
- name = ARGV[0] || nil
8
-
9
- if ARGV.length == 0 && Tmuxinator::Config.local?
10
- Tmuxinator::Cli.new.local
11
- elsif name && !Tmuxinator::Cli::COMMANDS.keys.include?(name.to_sym) &&
12
- Tmuxinator::Config.exists?(name)
13
- Tmuxinator::Cli.new.start(name, *ARGV.drop(1))
14
- else
15
- Tmuxinator::Cli.start
16
- end
@@ -1,22 +0,0 @@
1
- function __fish_tmuxinator_using_command
2
- set cmd (commandline -opc)
3
- if [ (count $cmd) -gt 1 ]
4
- if [ $argv[1] = $cmd[2] ]
5
- return 0
6
- end
7
- end
8
- return 1
9
- end
10
-
11
- set __fish_tmuxinator_program_cmd (commandline -o)[1]
12
-
13
- function __fish_tmuxinator_program
14
- eval "$__fish_tmuxinator_program_cmd $argv"
15
- end
16
-
17
- complete -f -c $__fish_tmuxinator_program_cmd -a '(__fish_tmuxinator_program completions start)'
18
- complete -f -c $__fish_tmuxinator_program_cmd -n '__fish_use_subcommand' -x -a "(__fish_tmuxinator_program commands)"
19
- complete -f -c $__fish_tmuxinator_program_cmd -n '__fish_tmuxinator_using_command start' -a "(__fish_tmuxinator_program completions start)"
20
- complete -f -c $__fish_tmuxinator_program_cmd -n '__fish_tmuxinator_using_command open' -a "(__fish_tmuxinator_program completions open)"
21
- complete -f -c $__fish_tmuxinator_program_cmd -n '__fish_tmuxinator_using_command copy' -a "(__fish_tmuxinator_program completions copy)"
22
- complete -f -c $__fish_tmuxinator_program_cmd -n '__fish_tmuxinator_using_command delete' -a "(__fish_tmuxinator_program completions delete)"