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
# on Ruby 1.9.1... | |
# gem install test-unit -v 1.2.3 | |
# gem install autotest redgreen autotest-fsevent autotest-rails ZenTest autotest-growl | |
require 'redgreen' | |
Autotest.send(:alias_method, :real_ruby, :ruby) | |
Autotest.send(:define_method, :ruby) do |*args| | |
real_ruby + %[ -rrubygems -e "require 'redgreen'" ] | |
end |
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
def disable_rubygems; nil; end | |
def source(s); $src = s unless s[/gemcutter/] end | |
def gem(n, v) | |
if Hash === v | |
$stderr.puts "ignoring git gem #{n}" | |
return | |
end | |
puts "#{n} --version '#{v}' #{$src ? " -s#{$src}": ""}" | |
end | |
load ARGV[0] || "Gemfile" |