aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-10-15 15:44:35 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-10-15 15:44:35 +0000
commit985574c940dcf46ac507b5c92aa0c654c9469d34 (patch)
tree6ab396656367ad5663a7b773ccda4c1d4e285362 /railties
parent10714869dcf1b86eccfc230629a9842e36996996 (diff)
downloadrails-985574c940dcf46ac507b5c92aa0c654c9469d34.tar.gz
rails-985574c940dcf46ac507b5c92aa0c654c9469d34.tar.bz2
rails-985574c940dcf46ac507b5c92aa0c654c9469d34.zip
Make freezing work with Windows
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2615 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/tasks/framework.rake5
1 files changed, 3 insertions, 2 deletions
diff --git a/railties/lib/tasks/framework.rake b/railties/lib/tasks/framework.rake
index fe2a8c09b8..0efef47685 100644
--- a/railties/lib/tasks/framework.rake
+++ b/railties/lib/tasks/framework.rake
@@ -4,10 +4,11 @@ task :freeze_gems do
mkdir_p "vendor/rails"
for gem in %w( actionpack activerecord actionmailer activesupport actionwebservice )
- system "cd vendor/rails; gem unpack #{gem}; mv #{gem}* #{gem}"
+ system "cd vendor/rails; gem unpack #{gem}"
+ FileUtils.mv(Dir.glob("vendor/rails/#{gem}*").first, "vendor/rails/#{gem}")
end
- system "cd vendor/rails; gem unpack rails; mv rails* railties"
+ FileUtils.mv(Dir.glob("vendor/rails/rails*").first, "vendor/rails/railties")
end
desc "Lock this application to the Edge Rails (by exporting from Subversion)"