Sha256: 8f71c7168ba70d970922786742df614dfc611b973e3c2a4c9b4528f987085581

Contents?: true

Size: 1.57 KB

Versions: 25

Compression:

Stored size: 1.57 KB

Contents

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>beforeRunningCommand</key>
	<string>saveActiveFile</string>
	<key>command</key>
	<string># Assumes the current file is a yaml test file
# Runs with the currently-focused method as the test name
args=$(${TM_RUBY:=ruby} &lt;&lt;"EOF"

n = ENV['TM_LINE_NUMBER'].to_i

name, test_file_path = nil, nil

File.open(ENV['TM_FILEPATH']) do |f|
# yaml test
lines     = f.read.split("\n")[0...n].reverse
name      = lines.find { |line| line =~ /^([^\s]+):\s*$/i }
name = $1 if name
test_file_path = lines.find { |line| line =~ /^#\s*test_file\s*:\s*(.*)$/i }
test_file_path = File.join(File.dirname(ENV['TM_FILEPATH']), $1) if test_file_path
end


group = ENV['TM_FILEPATH'].split('/').last.split('.').first
test_file_path ||= "#{File.dirname(ENV['TM_FILEPATH'])}_test.rb"
test_file = "#{test_file_path} --name test_#{group}_#{name}"
puts test_file
EOF)

if [[ -z "$args" ]]; then
echo -e "This doesn't appear to be a yaml test file."
exit_show_tool_tip
fi

export RUBYLIB="$TM_BUNDLE_SUPPORT/RubyMate${RUBYLIB:+:$RUBYLIB}"
"${TM_RUBY:-ruby}" -- "$TM_BUNDLE_SUPPORT/RubyMate/run_script.rb" $args	</string>
	<key>input</key>
	<string>document</string>
	<key>keyEquivalent</key>
	<string>@R</string>
	<key>name</key>
	<string>Run focused yaml test</string>
	<key>output</key>
	<string>showAsHTML</string>
	<key>scope</key>
	<string>source.yaml</string>
	<key>uuid</key>
	<string>0A94D7BE-E897-4B1B-8C2B-AEFB2B4BDD9F</string>
</dict>
</plist>

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
zena-1.2.7 vendor/TextMate/Zena.tmbundle/Commands/Run focused yaml test.tmCommand
zena-1.2.6 vendor/TextMate/Zena.tmbundle/Commands/Run focused yaml test.tmCommand
zena-1.2.5 vendor/TextMate/Zena.tmbundle/Commands/Run focused yaml test.tmCommand
zena-1.2.4 vendor/TextMate/Zena.tmbundle/Commands/Run focused yaml test.tmCommand
zena-1.2.3 vendor/TextMate/Zena.tmbundle/Commands/Run focused yaml test.tmCommand
zena-1.2.2 vendor/TextMate/Zena.tmbundle/Commands/Run focused yaml test.tmCommand
zena-1.2.1 vendor/TextMate/Zena.tmbundle/Commands/Run focused yaml test.tmCommand
zena-1.2.0 vendor/TextMate/Zena.tmbundle/Commands/Run focused yaml test.tmCommand
zena-1.0.0 vendor/TextMate/Zena.tmbundle/Commands/Run focused yaml test.tmCommand
zena-1.0.0.rc3 vendor/TextMate/Zena.tmbundle/Commands/Run focused yaml test.tmCommand
zena-1.0.0.rc2 vendor/TextMate/Zena.tmbundle/Commands/Run focused yaml test.tmCommand
zena-1.0.0.rc1 vendor/TextMate/Zena.tmbundle/Commands/Run focused yaml test.tmCommand
zena-0.16.9 vendor/TextMate/Zena.tmbundle/Commands/Run focused yaml test.tmCommand
zena-1.0.0.beta3 vendor/TextMate/Zena.tmbundle/Commands/Run focused yaml test.tmCommand
zena-0.16.8 vendor/TextMate/Zena.tmbundle/Commands/Run focused yaml test.tmCommand
zena-1.0.0.beta2 vendor/TextMate/Zena.tmbundle/Commands/Run focused yaml test.tmCommand
zena-1.0.0.beta1 vendor/TextMate/Zena.tmbundle/Commands/Run focused yaml test.tmCommand
zena-0.16.7 vendor/TextMate/Zena.tmbundle/Commands/Run focused yaml test.tmCommand
zena-0.16.6 vendor/TextMate/Zena.tmbundle/Commands/Run focused yaml test.tmCommand
zena-0.16.5 vendor/TextMate/Zena.tmbundle/Commands/Run focused yaml test.tmCommand