Sha256: 88edc99593f1c6fe3534d15b8cc18b7a8123c6f4943667026a7180a5b6b4ade8
Contents?: true
Size: 1.56 KB
Versions: 3
Compression:
Stored size: 1.56 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} <<"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
3 entries across 3 versions & 1 rubygems