Created
January 28, 2012 19:24
-
-
Save arton/1695503 to your computer and use it in GitHub Desktop.
actionpack-3.2.1 patch for Windows
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 -p -u assets.rake~ assets.rake | |
--- assets.rake~ Sat Jan 28 23:55:07 2012 | |
+++ assets.rake Sun Jan 29 04:19:54 2012 | |
@@ -6,7 +6,11 @@ namespace :assets do | |
groups = ENV['RAILS_GROUPS'] || 'assets' | |
args = [$0, task,"RAILS_ENV=#{env}","RAILS_GROUPS=#{groups}"] | |
args << "--trace" if Rake.application.options.trace | |
- fork ? ruby(*args) : Kernel.exec(FileUtils::RUBY, *args) | |
+ if $0 =~ /rake\.bat\Z/i | |
+ Kernel.exec $0, *args | |
+ else | |
+ fork ? ruby(*args) : Kernel.exec(FileUtils::RUBY, *args) | |
+ end | |
end | |
# We are currently running with no explicit bundler group |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment