mirror of
https://github.com/tmuxinator/tmuxinator.git
synced 2026-07-19 06:32:06 -05:00
* Update dependencies * Revert some things * Fix merged files * feat: add stop_all command (#945) * Start implementation * Fix command, add some docs * Sort cli args * Update cli spec * Fix rubocop issues * feat: Add --no-pre-window option to start command Signed-off-by: Andrew Kofink <ajkofink@gmail.com> * chore: Fix coveralls to run from GH actions Signed-off-by: Andrew Kofink <ajkofink@gmail.com> * chore: Bump tmuxinator to v3.3.4 Signed-off-by: Andrew Kofink <ajkofink@gmail.com> * Implement suggestions * Update readme and changelog * Extract, fix rubocop issues * Fix call issue * Fix alignment * Fix tests * Remove alias * Add alias * Add test for alias * Remove alias test * refactor: fix codeclimate complexity Signed-off-by: Andrew Kofink <ajkofink@gmail.com> --------- Signed-off-by: Andrew Kofink <ajkofink@gmail.com> Co-authored-by: Andrew Kofink <ajkofink@gmail.com> * Add changelog * feat: add stop_all command (#945) * Start implementation * Fix command, add some docs * Sort cli args * Update cli spec * Fix rubocop issues * feat: Add --no-pre-window option to start command Signed-off-by: Andrew Kofink <ajkofink@gmail.com> * chore: Fix coveralls to run from GH actions Signed-off-by: Andrew Kofink <ajkofink@gmail.com> * chore: Bump tmuxinator to v3.3.4 Signed-off-by: Andrew Kofink <ajkofink@gmail.com> * Implement suggestions * Update readme and changelog * Extract, fix rubocop issues * Fix call issue * Fix alignment * Fix tests * Remove alias * Add alias * Add test for alias * Remove alias test * refactor: fix codeclimate complexity Signed-off-by: Andrew Kofink <ajkofink@gmail.com> --------- Signed-off-by: Andrew Kofink <ajkofink@gmail.com> Co-authored-by: Andrew Kofink <ajkofink@gmail.com> * Fix double string freeze * Fix PR feedback, failing tests * Add explaining comment * Fix version parse * Update tmuxinator.gemspec Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Remove XDG depedency --------- Signed-off-by: Andrew Kofink <ajkofink@gmail.com> Co-authored-by: Andrew Kofink <ajkofink@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
71 lines
1.3 KiB
Ruby
71 lines
1.3 KiB
Ruby
# frozen_string_literal: true
|
|
|
|
require "pry"
|
|
require "simplecov"
|
|
|
|
SimpleCov.start do
|
|
if ENV["CI"]
|
|
formatter SimpleCov::Formatter::SimpleFormatter
|
|
else
|
|
formatter SimpleCov::Formatter::MultiFormatter.new(
|
|
[
|
|
SimpleCov::Formatter::HTMLFormatter,
|
|
SimpleCov::Formatter::SimpleFormatter,
|
|
]
|
|
)
|
|
end
|
|
|
|
add_filter "vendor/cache"
|
|
end
|
|
|
|
require "tmuxinator"
|
|
require "factory_bot"
|
|
|
|
FactoryBot.find_definitions
|
|
|
|
# Custom Matchers
|
|
require_relative "matchers/pane_matcher"
|
|
|
|
RSpec.configure do |config|
|
|
config.order = "random"
|
|
end
|
|
|
|
# Copied from minitest.
|
|
def capture_io
|
|
require "stringio"
|
|
|
|
captured_stdout = StringIO.new
|
|
captured_stderr = StringIO.new
|
|
|
|
orig_stdout = $stdout
|
|
orig_stderr = $stderr
|
|
|
|
$stdout = captured_stdout
|
|
$stderr = captured_stderr
|
|
|
|
yield
|
|
|
|
[captured_stdout.string, captured_stderr.string]
|
|
ensure
|
|
$stdout = orig_stdout
|
|
$stderr = orig_stderr
|
|
end
|
|
|
|
def tmux_config(options = {})
|
|
standard_options = [
|
|
"assume-paste-time 1",
|
|
"bell-action any",
|
|
"bell-on-alert off",
|
|
]
|
|
|
|
if base_index = options.fetch(:base_index, 1)
|
|
standard_options << "base-index #{base_index}"
|
|
end
|
|
|
|
if pane_base_index = options.fetch(:pane_base_index, 1)
|
|
standard_options << "pane-base-index #{pane_base_index}"
|
|
end
|
|
|
|
"echo '#{standard_options.join("\n")}'"
|
|
end
|