Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

55 lines (46 sloc) 1.433 kb
# $Id: Rakefile,v 1.11 2008/10/03 13:24:30 ianmacd Exp $
#
require 'rubygems'
Gem::manage_gems
require 'rake/gempackagetask'
spec = Gem::Specification.new do |s|
s.platform = Gem::Platform::RUBY
s.name = 'ruby-aaws'
s.rubyforge_project = 'Ruby/(A)AWS'
s.version = '0.4.4'
s.author = 'Ian Macdonald'
s.email = 'ian@caliban.org'
s.summary = 'Ruby interface to Amazon Associates Web Services'
s.homepage = 'http://www.caliban.org/ruby/ruby-aws/'
s.files = FileList[ 'example/*', 'lib/*.rb', 'lib/**/*.rb', 'test/*' ].to_a
s.require_path = 'lib'
s.test_files = Dir.glob( 'test/*.rb' )
s.has_rdoc = true
s.extra_rdoc_files = %w[ COPYING NEWS README README.rdoc ]
s.required_ruby_version = '>= 1.8.6'
# s.autorequire = 'amazon/aws/search'
end
Rake::GemPackageTask.new( spec ) do |pkg|
pkg.need_tar = true
end
task :default => "pkg/#{spec.name}-#{spec.version}.gem" do
puts 'Generated latest version.'
end
desc 'Produce HTML documentation in ./doc'
task :doc do
system( *%w[ rdoc -SUx CVS lib ] )
# In-place edit to change page of main frame to the one with the most
# relevant documentation.
#
$-i = ''
ARGV[0] = 'doc/index.html'
ARGF.each_line do |l|
l.sub!( Regexp.new( 'files/lib/.+?\.html' ),
'files/lib/amazon/aws_rb.html' )
puts l
end
end
desc 'Remove build and installation files'
task :clean do
FileUtils.rm_rf %w[ InstalledFiles config.save doc/ pkg/ ]
end
Jump to Line
Something went wrong with that request. Please try again.