mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Touch file with git revision when freezing edge
This commit is contained in:
parent
6e4ea66dc0
commit
5df8ff1d6b
1 changed files with 5 additions and 0 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue