This repository has been archived by the owner on Aug 9, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rather than keep the docs under source control, which doesn't make mu…
…ch sense since they're derivative, make it easy to generate them by adding a Rakefile
- Loading branch information
Showing
118 changed files
with
32 additions
and
5,567 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.project | ||
doc/* | ||
pkg/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
require 'rubygems' | ||
require 'rake/gempackagetask' | ||
require 'rake/testtask' | ||
require 'rake/rdoctask' | ||
|
||
# read the contents of the gemspec, eval it, and assign it to 'spec' | ||
# this lets us maintain all gemspec info in one place. Nice and DRY. | ||
spec = eval(IO.read("campaign_monitor.gemspec")) | ||
|
||
Rake::GemPackageTask.new(spec) do |pkg| | ||
pkg.gem_spec = spec | ||
end | ||
|
||
task :install => [:package] do | ||
sh %{sudo gem install pkg/#{GEM}-#{VERSION}} | ||
end | ||
|
||
Rake::TestTask.new do |t| | ||
t.libs << "test" | ||
t.test_files = FileList['test/test*.rb'] | ||
t.verbose = true | ||
end | ||
|
||
Rake::RDocTask.new do |rd| | ||
rd.main = "README.rdoc" | ||
rd.rdoc_files.include("README.rdoc", "lib/**/*.rb") | ||
rd.rdoc_dir = 'doc' | ||
rd.options = spec.rdoc_options | ||
end |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.