1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/release.rb
David Heinemeier Hansson 5c897270c2 Simple release script
2010-04-13 12:26:15 -07:00

11 lines
No EOL
432 B
Ruby

version = ARGV.pop
%w( activesupport activemodel activerecord activeresource actionpack actionmailer railties ).each do |framework|
puts "Building and pushing #{framework}..."
`cd #{framework} && gem build #{framework}.gemspec && gem push #{framework}-#{version}.gem && rm #{framework}-#{version}.gem`
end
puts "Building and pushing Rails..."
`gem build rails.gemspec`
`gem push rails-#{version}.gem`
`rm rails-#{version}.gem`