updated docco script in hopes of it fixing stuff, but nope...

This commit is contained in:
2011-05-06 01:21:29 +01:00
parent 83655b438f
commit f8912e4354
2 changed files with 13 additions and 8 deletions

View File

@@ -26,8 +26,13 @@ task :default => :spec
# Rocco
#
require 'rocco/tasks'
Rocco::make 'docs/'
begin
require 'rocco/tasks'
Rocco::make 'docs/'
rescue LoadError
warn "#$! -- rocco tasks not loaded."
task :rocco
end
desc 'Build rocco docs'
task :docs => :rocco
@@ -54,7 +59,7 @@ desc 'Update gh-pages branch'
task :pages => ['docs/.git', :docs] do
rev = `git rev-parse --short HEAD`.strip
Dir.chdir 'docs' do
sh "git add *.html"
sh "git add *"
sh "git commit -m 'rebuild pages from #{rev}'" do |ok,res|
if ok
verbose { puts "gh-pages updated" }
@@ -65,7 +70,7 @@ task :pages => ['docs/.git', :docs] do
end
# Update the pages/ directory clone
file 'docs/.git' => ['docs/'] do |f|
file 'docs/.git' => ['docs/', '.git/refs/heads/gh-pages'] do |f|
sh "cd docs && git init -q && git remote add o ../.git" if !File.exist?(f.name)
sh "cd docs && git fetch -q o && git reset -q --hard o/gh-pages && touch ."
end

View File

@@ -7,19 +7,19 @@ require 'time_ext/version'
# [Calculation][ca] methods such as `#floor`, `#ceil`, `#round`,
# `#prev_week` and many more, adding on top of the defaults present in
# ActiveSupport.
# [ca]: time_ext/calculations.html
# [ca]: /time_ext/lib/time_ext/calculations.html
require 'time_ext/calculations'
# [Iteration][it] methods allowing the use of `#each`, `#map_each` and more on
# Time objects similar to how you loop over an Array of items.
# [it]: time_ext/iterations.html
# [it]: /time_ext/lib/time_ext/iterations.html
require 'time_ext/iterations'
# Core extention of [Time][ti] class to load in [Calculation][ca] and
# [Iteration][it] modules.
# [ti]: time_ext/core_ext/time.html
# [ti]: /time_ext/lib/time_ext/core_ext/time.html
require 'time_ext/core_ext/time'
# Core extention of [Numeric][nu] class to set a couple of required aliases.
# [nu]: time_ext/core_ext/numeric.html
# [nu]: /time_ext/lib/time_ext/core_ext/numeric.html
require 'time_ext/core_ext/numeric'