This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# SSH into multiple hosts with each in their own tmux pane. | |
if [ "$#" -lt 1 ]; then | |
cat >&2 <<-EOM | |
Usage: $(basename $0) host1 [ host2 ... ] [ -- ssh options ] | |
EOM | |
exit 1 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# MultiRuby Switcher: see multiruby for installs | |
mrs() { | |
local path="$HOME/.multiruby/install/$1/bin:" | |
if test "$1" = "system" -o "$1" = ""; then | |
echo >&2 "using system" | |
path= | |
elif ! test -d "${path%:}"; then | |
echo >&2 "$1 not available" | |
return 1 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName:'Ember Twiddle', | |
something: Ember.computed(function() { | |
return 'Something'; | |
}), | |
list: [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/minitest.rb b/lib/minitest.rb | |
index 2d4344e..5c50120 100644 | |
--- a/lib/minitest.rb | |
+++ b/lib/minitest.rb | |
@@ -43,12 +43,14 @@ module Minitest | |
# Registers Minitest to run at process exit | |
def self.autorun | |
+ registered_pid = $$ | |
at_exit { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/autotest.rb b/lib/autotest.rb | |
index 7be003d..281d824 100755 | |
--- a/lib/autotest.rb | |
+++ b/lib/autotest.rb | |
@@ -293,6 +293,8 @@ def run_tests | |
system cmd | |
hook :ran_command | |
+ | |
+ hook all_good ? :green : :red |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/autotest.rb b/lib/autotest.rb | |
index 479b3e9..2695a35 100755 | |
--- a/lib/autotest.rb | |
+++ b/lib/autotest.rb | |
@@ -264,7 +264,11 @@ def run | |
hook :quit | |
puts | |
rescue Exception => err | |
- hook(:died, err) or raise err | |
+ hook(:died, err) or ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/.autotest b/.autotest | |
index be4dedd..5ce4720 100644 | |
--- a/.autotest | |
+++ b/.autotest | |
@@ -21,6 +21,17 @@ Autotest.add_hook :initialize do |at| | |
# end | |
end | |
+Autotest.add_hook :initialize do |at| | |
+ raise ENV['ERR'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ruby /tmp/ruby.rb -v | |
Run options: -v --seed 24668 | |
# Running: | |
sleeping | |
TestReporting#test_slow = 1.00 s = . | |
sleeping | |
TestReporting#test_really_slow = 2.00 s = . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/minitest/spec.rb b/lib/minitest/spec.rb | |
index 5c27a99..64265f0 100644 | |
--- a/lib/minitest/spec.rb | |
+++ b/lib/minitest/spec.rb | |
@@ -8,10 +8,10 @@ def infect_an_assertion meth, new_name, dont_flip = false # :nodoc: | |
self.class_eval <<-EOM | |
def #{new_name} *args | |
case | |
- when Proc === self then | |
- Minitest::Spec.current.#{meth}(*args, &self) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
attach() { | |
tmux attach-session -t ${1:-$name} | |
} | |
list() { | |
if [[ "$1" == 'short' ]]; then | |
local args='-F #{session_name}' | |
shift |