public
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/lifo/docrails.git
Search Repo:
fxn (author)
Sat May 17 03:44:48 -0700 2008
commit  82a1b93c6a5f0ee866a270f66c8b051175c9793b
tree    c5ae820d9f12acf5fecd0c06d7b82b3ee3c881e6
parent  e535c037e3bb8e78d873b9330900dce37071d735
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