Permalink
Browse files

Added doc rake task for core+model. Some order in rake files.

  • Loading branch information...
1 parent b2ea1ba commit d768d94d1e1d5934962c1a7e33118186a31a297f @ciconia ciconia committed Dec 30, 2007
Showing with 38 additions and 12 deletions.
  1. +38 −0 Rakefile
  2. +0 −6 core/Rakefile
  3. +0 −6 model/Rakefile
View
@@ -23,6 +23,9 @@ def sh_with_each_project(cmd)
with_each_project {sh cmd rescue nil}
end
+##############################################################################
+# gem packaging and release
+##############################################################################
desc "Packages up Sequel and Sequel Model."
task :default => [:package]
task :package => [:clean]
@@ -44,10 +47,45 @@ task :uninstall => [:clean] do
sh_with_each_project "rake uninstall"
end
+##############################################################################
+# rspec
+##############################################################################
task :spec do
sh_with_each_project "rake spec"
end
task :spec_no_cov do
sh_with_each_project "rake spec_no_cov"
end
+
+##############################################################################
+# rdoc
+##############################################################################
+RDOC_OPTS = [
+ "--quiet",
+ "--title", "Sequel Model: Lightweight ORM for Ruby",
+ "--opname", "index.html",
+ "--line-numbers",
+ "--main", "core/README",
+ "--inline-source"
+]
+
+Rake::RDocTask.new do |rdoc|
+ rdoc.rdoc_dir = "doc/rdoc"
+ rdoc.options += RDOC_OPTS
+ rdoc.main = "core/README"
+ rdoc.title = "Sequel: Lightweight ORM for Ruby"
+ rdoc.rdoc_files.add ["core/README", "core/COPYING",
+ "core/lib/sequel.rb", "core/lib/**/*.rb",
+ "model/lib/sequel_model.rb", "model/lib/**/*.rb",
+ ]
+end
+
+task :doc_rforge => [:doc]
+
+desc "Update docs and upload to rubyforge.org"
+task :doc_rforge do
+ # sh %{rake doc}
+ sh %{scp -r doc/rdoc/* ciconia@rubyforge.org:/var/www/gforge-projects/sequel}
+end
+
View
@@ -106,12 +106,6 @@ task :release => [:package] do
sh %{rubyforge add_file sequel #{NAME} #{VERS} pkg/#{NAME}-#{VERS}.gem}
end
-desc "Update docs and upload to rubyforge.org"
-task :doc_rforge do
- sh %{rake doc}
- sh %{scp -r doc/rdoc/* ciconia@rubyforge.org:/var/www/gforge-projects/#{NAME}}
-end
-
##############################################################################
# specs
##############################################################################
View
@@ -104,12 +104,6 @@ task :release => [:package] do
sh %{rubyforge add_file sequel #{NAME} #{VERS} pkg/#{NAME}-#{VERS}.gem}
end
-desc "Update docs and upload to rubyforge.org"
-task :doc_rforge do
- sh %{rake doc}
- sh %{scp -r doc/rdoc/* ciconia@rubyforge.org:/var/www/gforge-projects/#{NAME}}
-end
-
##############################################################################
# specs
##############################################################################

0 comments on commit d768d94

Please sign in to comment.