Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 2045

Show
Ignore:
Timestamp:
08/24/05 09:22:20 (3 years ago)
Author:
david
Message:

Made SwitchTower conform to the other Rakefiles in terms of PKG description and beta gems pushing

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/pushgems.rb

    r977 r2045  
    22 
    33unless ARGV.first == "no_build" 
    4   build_number = `svn log -q -rhead http://dev.rubyonrails.org/svn/rails`.scan(/r([0-9]*)/).first.first.to_i 
     4  build_number = "1962" 
    55end 
    66 
    7 %w( actionwebservice actionmailer actionpack activerecord railties activesupport).each do |pkg| 
     7%w( actionwebservice actionmailer actionpack activerecord railties activesupport switchtower ).each do |pkg| 
    88  puts "Pushing: #{pkg} (#{build_number})" 
    99  if build_number 
  • trunk/railties/Rakefile

    r2029 r2045  
    268268  s.add_dependency('actionmailer',     '= 1.0.1' + PKG_BUILD) 
    269269  s.add_dependency('actionwebservice', '= 0.8.1' + PKG_BUILD) 
     270  s.add_dependency('switchtower',      '= 0.8.0' + PKG_BUILD) 
    270271 
    271272  s.rdoc_options << '--exclude' << '.' 
  • trunk/switchtower/Rakefile

    r1997 r2045  
    33require 'rake/rdoctask' 
    44require 'rake/gempackagetask' 
     5require 'rake/contrib/rubyforgepublisher' 
    56 
    67require "./lib/switchtower/version" 
    78 
    8 SOFTWARE_NAME = "switchtower" 
    9 SOFTWARE_VERSION = SwitchTower::Version::STRING 
     9PKG_NAME      = "switchtower" 
     10PKG_BUILD     = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : '' 
     11PKG_VERSION   = SwitchTower::Version::STRING + PKG_BUILD 
     12PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}" 
    1013 
    1114desc "Default task" 
     
    2023end 
    2124 
    22 GEM_SPEC = eval(File.read("#{File.dirname(__FILE__)}/#{SOFTWARE_NAME}.gemspec")) 
     25GEM_SPEC = eval(File.read("#{File.dirname(__FILE__)}/#{PKG_NAME}.gemspec")) 
    2326 
    2427Rake::GemPackageTask.new(GEM_SPEC) do |p| 
     
    3740  rdoc.template = "jamis" 
    3841end 
     42 
     43desc "Publish the beta gem" 
     44task :pgem => [:package] do  
     45  Rake::SshFilePublisher.new("davidhh@wrath.rubyonrails.org", "public_html/gems/gems", "pkg", "#{PKG_FILE_NAME}.gem").upload 
     46  `ssh davidhh@wrath.rubyonrails.org './gemupdate.sh'` 
     47end 
  • trunk/switchtower/switchtower.gemspec

    r1967 r2045  
    44 
    55  s.name = 'switchtower' 
    6   s.version = SwitchTower::Version::STRING 
     6  s.version = PKG_VERSION 
    77  s.platform = Gem::Platform::RUBY 
    88  s.summary = <<-DESC.strip.gsub(/\n/, " ")