This file contains hidden or 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
begin | |
require_dependency 'application_controller' | |
rescue LoadError => e | |
puts e | |
puts e.backtrace.join("\n") | |
require_dependency 'application' | |
end | |
[...] |
This file contains hidden or 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
namespace :yard do | |
desc "Generate yard documentation of controllers and models" | |
task :doc do | |
`yardoc app/models/**/*.rb app/controllers/**/*.rb config/routes.rb --output yardoc --protected` | |
puts "Generated doc to yardoc/index.html" | |
end | |
desc "Generate UML graph (requires dot, download Graphviz from http://www.graphviz.org/)" | |
task :graph do | |
#TODO use --db to specify specific yardoc db, but this doesn't seem to work with current version of yard-graph |
This file contains hidden or 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
source ~/.git-completion.sh | |
alias gco='git co' | |
alias gci='git ci' | |
alias grb='git rb' | |
NewerOlder