-
Notifications
You must be signed in to change notification settings - Fork 8
/
Rakefile
54 lines (46 loc) · 1.4 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# $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 = '[email protected]'
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