-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Juan Felipe Alvarez Saldarriaga
committed
Oct 6, 2010
1 parent
1dd760f
commit bc24965
Showing
1 changed file
with
0 additions
and
38 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 |
---|---|---|
@@ -1,43 +1,5 @@ | ||
require 'rubygems' | ||
require 'rake' | ||
require 'rake/clean' | ||
require 'rake/gempackagetask' | ||
require 'rake/rdoctask' | ||
require 'rake/testtask' | ||
|
||
spec = Gem::Specification.new do |s| | ||
s.name = 'titanium-mobile-sdoc' | ||
s.version = '0.0.1' | ||
s.has_rdoc = true | ||
s.extra_rdoc_files = ['README', 'LICENSE'] | ||
s.summary = 'Titanium Mobile SDOC builder' | ||
s.description = s.summary | ||
s.author = 'Juan Felipe Alvarez Saldarriaga' | ||
s.email = '[email protected]' | ||
# s.executables = ['your_executable_here'] | ||
s.files = %w(LICENSE README Rakefile) + Dir.glob("{bin,lib,spec}/**/*") | ||
s.require_path = "lib" | ||
s.bindir = "bin" | ||
end | ||
|
||
Rake::GemPackageTask.new(spec) do |p| | ||
p.gem_spec = spec | ||
p.need_tar = true | ||
p.need_zip = true | ||
end | ||
|
||
Rake::RDocTask.new do |rdoc| | ||
files =['README', 'LICENSE', 'lib/**/*.rb'] | ||
rdoc.rdoc_files.add(files) | ||
rdoc.main = "README" # page to start on | ||
rdoc.title = "titanium-mobile-sdoc Docs" | ||
rdoc.rdoc_dir = 'doc/rdoc' # rdoc output folder | ||
rdoc.options << '--line-numbers' | ||
end | ||
|
||
Rake::TestTask.new do |t| | ||
t.test_files = FileList['test/**/*.rb'] | ||
end | ||
|
||
desc "Build Titanium Mobile SDOC file" | ||
task :build_sdoc do | ||
|