Skip to content

Instantly share code, notes, and snippets.

@arton
Created January 28, 2012 19:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arton/1695503 to your computer and use it in GitHub Desktop.
Save arton/1695503 to your computer and use it in GitHub Desktop.
actionpack-3.2.1 patch for Windows
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