Sha256: 801271a2238f68ae142f68d42e951a363461a1771092d815b018c19312806d60

Contents?: true

Size: 760 Bytes

Versions: 25

Compression:

Stored size: 760 Bytes

Contents

desc 'Generate website files'
task :website_generate => :ruby_env do
  (Dir['website/**/*.txt'] - Dir['website/version*.txt']).each do |txt|
    sh %{ #{RUBY_APP} script/txt2html #{txt} > #{txt.gsub(/txt$/,'html')} }
  end
  sh %{ #{RUBY_APP} script/txt2js website/version.txt > website/version.js }
  sh %{ #{RUBY_APP} script/txt2js website/version-raw.txt > website/version-raw.js }
end

desc 'Upload website files to rubyforge'
task :website_upload do
  host = "#{rubyforge_username}@rubyforge.org"
  remote_dir = "/var/www/gforge-projects/#{RUBYFORGE_PROJECT}/"
  local_dir = 'website'
  sh %{rsync -aCv #{local_dir}/ #{host}:#{remote_dir}}
end

desc 'Generate and upload website files'
task :website => [:website_generate, :website_upload, :publish_docs]

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
newgem-0.14.0 tasks/website.rake
newgem-0.14.1 tasks/website.rake
newgem-0.14.2 tasks/website.rake
newgem-0.15.0 tasks/website.rake
newgem-0.13.5 tasks/website.rake
newgem-0.16.1 tasks/website.rake
newgem-0.16.0 tasks/website.rake
newgem-0.17.1 tasks/website.rake
newgem-0.19.0 tasks/website.rake
newgem-0.17.0 tasks/website.rake
newgem-0.18.0 tasks/website.rake
newgem-0.19.1 tasks/website.rake
newgem-0.20.1 tasks/website.rake
newgem-0.21.0 tasks/website.rake
newgem-0.20.0 tasks/website.rake
newgem-0.22.2 tasks/website.rake
newgem-0.23.0 tasks/website.rake
newgem-0.23.1 tasks/website.rake
newgem-0.24.0 tasks/website.rake
newgem-0.25.0 tasks/website.rake