diff options
author | Joshua Peek <josh@joshpeek.com> | 2008-08-19 17:14:17 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2008-08-19 17:16:35 -0500 |
commit | 5df8ff1d6b6c35a7b5924f95ad12693984323513 (patch) | |
tree | 2da15b6facbcce3b8e580a13fdaab9068a19e070 /railties | |
parent | 6e4ea66dc0d41ef611e2b2187e940321f5dc748a (diff) | |
download | rails-5df8ff1d6b6c35a7b5924f95ad12693984323513.tar.gz rails-5df8ff1d6b6c35a7b5924f95ad12693984323513.tar.bz2 rails-5df8ff1d6b6c35a7b5924f95ad12693984323513.zip |
Touch file with git revision when freezing edge
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/tasks/framework.rake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/railties/lib/tasks/framework.rake b/railties/lib/tasks/framework.rake index 71aea09867..66ab78c3b2 100644 --- a/railties/lib/tasks/framework.rake +++ b/railties/lib/tasks/framework.rake @@ -43,9 +43,12 @@ namespace :rails do require 'open-uri' version = ENV["RELEASE"] || "edge" target = "rails_#{version}.zip" + commits = "http://github.com/api/v1/yaml/rails/rails/commits/master" url = "http://dev.rubyonrails.org/archives/#{target}" chdir 'vendor' do + latest_revision = YAML.load(open(commits))["commits"].first["id"] + puts "Downloading Rails from #{url}" File.open('rails.zip', 'wb') do |dst| open url do |src| @@ -61,6 +64,8 @@ namespace :rails do %w(rails.zip rails/Rakefile rails/cleanlogs.sh rails/pushgems.rb rails/release.rb).each do |goner| rm_f goner end + + touch "rails/REVISION_#{latest_revision}" end puts 'Updating current scripts, javascripts, and configuration settings' |