GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Fork of lifo/docrails
Description: PLEASE CHECK http://github.com/lifo/docrails/wikis
Homepage: http://weblog.rubyonrails.org/2008/5/2/help-improve-rails-documentation-on-git-branch
Clone URL: git://github.com/TampaRuby/docrails.git
ambethia (author)
Thu May 15 17:13:01 -0700 2008
commit  9a8060f5351e702172beb54cd968e59a370990a0
tree    e841d212ab9692d8f4703ffcbb1d98fdb9e05b98
parent  4e2bc02163aa646ab1304b1b5bec98a7af8927f5
docrails / pushgems.rb
100755 14 lines (12 sloc) 0.416 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env ruby
 
unless ARGV.first == "no_build"
  build_number = Time.now.strftime("%Y%m%d%H%M%S").to_i
end
 
%w( activeresource actionmailer actionpack activerecord railties activesupport ).each do |pkg|
  puts "Pushing: #{pkg} (#{build_number})"
  if build_number
    `cd #{pkg} && rm -rf pkg && PKG_BUILD=#{build_number} rake pgem && cd ..`
  else
    `cd #{pkg} && rm -rf pkg && rake pgem && cd ..`
  end
end