Skip to content

Commit

Permalink
Some Rakefile cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
ntalbott committed Apr 25, 2012
1 parent a47dbb8 commit 9c172ee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
20 changes: 5 additions & 15 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ end

require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'rake/gempackagetask'
require 'rubygems/package_task'
require 'support/gateway_support'
require 'support/outbound_hosts'

Expand All @@ -36,21 +35,12 @@ namespace :test do

end

Rake::RDocTask.new do |rdoc|
rdoc.rdoc_dir = 'doc'
rdoc.title = "ActiveMerchant library"
rdoc.options << '--line-numbers' << '--inline-source' << '--main=README.rdoc'
rdoc.rdoc_files.include('README.rdoc', 'CHANGELOG')
rdoc.rdoc_files.include('lib/**/*.rb')
rdoc.rdoc_files.exclude('lib/tasks')
end

desc "Delete tar.gz / zip / rdoc"
task :cleanup => [ :clobber_package, :clobber_rdoc ]
desc "Delete tar.gz / zip"
task :cleanup => [ :clobber_package ]

spec = eval(File.read('activemerchant.gemspec'))

Rake::GemPackageTask.new(spec) do |p|
Gem::PackageTask.new(spec) do |p|
p.gem_spec = spec
p.need_tar = true
p.need_zip = true
Expand Down Expand Up @@ -98,4 +88,4 @@ namespace :gateways do
OutboundHosts.list
end

end
end
2 changes: 1 addition & 1 deletion activemerchant.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Gem::Specification.new do |s|
s.homepage = 'http://activemerchant.org/'
s.rubyforge_project = 'activemerchant'

s.files = Dir['CHANGELOG', 'README.rdoc', 'MIT-LICENSE', 'CONTRIBUTORS', 'gem-public_cert.pem', 'lib/**/*', 'vendor/**/*']
s.files = Dir['CHANGELOG', 'README.md', 'MIT-LICENSE', 'CONTRIBUTORS', 'gem-public_cert.pem', 'lib/**/*', 'vendor/**/*']
s.require_path = 'lib'

s.has_rdoc = true if Gem::VERSION < '1.7.0'
Expand Down

0 comments on commit 9c172ee

Please sign in to comment.