Created
June 1, 2011 23:50
-
-
Save coldnebo/1003628 to your computer and use it in GitHub Desktop.
patch for rake in ruby-1.9.2-p180
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
--- a/lib/ruby/1.9.1/rake.rb 2011-06-01 20:36:01.000000000 -0400 | |
+++ b/lib/ruby/1.9.1/rake.rb 2011-06-01 20:35:47.000000000 -0400 | |
@@ -990,7 +990,7 @@ | |
show_command = show_command[0,42] + "..." unless $trace | |
# TODO code application logic heref show_command.length > 45 | |
block = lambda { |ok, status| | |
- ok or fail "Command failed with status (#{status.exitstatus}): [#{show_command}]" | |
+ ok or fail(RuntimeError, "Command failed with status (#{status.exitstatus}): [#{show_command}]", []) | |
} | |
end | |
if RakeFileUtils.verbose_flag == :default |
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
# testing rakefile | |
task :default do | |
sh('exit 1') | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for posting the end result for posterity. Just ran into this on my 64-bit Archlinux install. I hadn't thought about it until I found this gist, but it's been a while since I updated rake and an update is just what the doctor ordered.