mirror of
https://github.com/jimeh/time_ext.git
synced 2026-02-19 13:26:39 +00:00
updated docco script in hopes of it fixing stuff, but nope...
This commit is contained in:
13
Rakefile
13
Rakefile
@@ -26,8 +26,13 @@ task :default => :spec
|
|||||||
# Rocco
|
# Rocco
|
||||||
#
|
#
|
||||||
|
|
||||||
require 'rocco/tasks'
|
begin
|
||||||
Rocco::make 'docs/'
|
require 'rocco/tasks'
|
||||||
|
Rocco::make 'docs/'
|
||||||
|
rescue LoadError
|
||||||
|
warn "#$! -- rocco tasks not loaded."
|
||||||
|
task :rocco
|
||||||
|
end
|
||||||
|
|
||||||
desc 'Build rocco docs'
|
desc 'Build rocco docs'
|
||||||
task :docs => :rocco
|
task :docs => :rocco
|
||||||
@@ -54,7 +59,7 @@ desc 'Update gh-pages branch'
|
|||||||
task :pages => ['docs/.git', :docs] do
|
task :pages => ['docs/.git', :docs] do
|
||||||
rev = `git rev-parse --short HEAD`.strip
|
rev = `git rev-parse --short HEAD`.strip
|
||||||
Dir.chdir 'docs' do
|
Dir.chdir 'docs' do
|
||||||
sh "git add *.html"
|
sh "git add *"
|
||||||
sh "git commit -m 'rebuild pages from #{rev}'" do |ok,res|
|
sh "git commit -m 'rebuild pages from #{rev}'" do |ok,res|
|
||||||
if ok
|
if ok
|
||||||
verbose { puts "gh-pages updated" }
|
verbose { puts "gh-pages updated" }
|
||||||
@@ -65,7 +70,7 @@ task :pages => ['docs/.git', :docs] do
|
|||||||
end
|
end
|
||||||
|
|
||||||
# Update the pages/ directory clone
|
# 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 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 ."
|
sh "cd docs && git fetch -q o && git reset -q --hard o/gh-pages && touch ."
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -7,19 +7,19 @@ require 'time_ext/version'
|
|||||||
# [Calculation][ca] methods such as `#floor`, `#ceil`, `#round`,
|
# [Calculation][ca] methods such as `#floor`, `#ceil`, `#round`,
|
||||||
# `#prev_week` and many more, adding on top of the defaults present in
|
# `#prev_week` and many more, adding on top of the defaults present in
|
||||||
# ActiveSupport.
|
# ActiveSupport.
|
||||||
# [ca]: time_ext/calculations.html
|
# [ca]: /time_ext/lib/time_ext/calculations.html
|
||||||
require 'time_ext/calculations'
|
require 'time_ext/calculations'
|
||||||
|
|
||||||
# [Iteration][it] methods allowing the use of `#each`, `#map_each` and more on
|
# [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.
|
# 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'
|
require 'time_ext/iterations'
|
||||||
|
|
||||||
# Core extention of [Time][ti] class to load in [Calculation][ca] and
|
# Core extention of [Time][ti] class to load in [Calculation][ca] and
|
||||||
# [Iteration][it] modules.
|
# [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'
|
require 'time_ext/core_ext/time'
|
||||||
|
|
||||||
# Core extention of [Numeric][nu] class to set a couple of required aliases.
|
# 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'
|
require 'time_ext/core_ext/numeric'
|
||||||
|
|||||||
Reference in New Issue
Block a user