Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add YARD documentation to ruby-git (#502)
Signed-off-by: James Couball <jcouball@yahoo.com>
- Loading branch information
Showing
13 changed files
with
471 additions
and
166 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 |
---|---|---|
|
@@ -3,6 +3,8 @@ | |
*.sw? | ||
.DS_Store | ||
coverage | ||
doc | ||
.yardoc | ||
pkg | ||
rdoc | ||
Gemfile.lock |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--default-return='' | ||
--hide-void-return | ||
--markup-provider=redcarpet | ||
--markup=markdown | ||
--fail-on-warning | ||
- | ||
README.md | ||
CHANGELOG.md | ||
CONTRIBUTING.md | ||
RELEASING.md | ||
MAINTAINERS.md |
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,3 +1,8 @@ | ||
<!-- | ||
# @markup markdown | ||
# @title Change Log | ||
--> | ||
|
||
# Change Log | ||
|
||
## 1.7.0 | ||
|
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
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
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
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
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,16 +1,44 @@ | ||
require 'bundler/gem_tasks' | ||
require 'rubygems' | ||
|
||
require "#{File.expand_path(File.dirname(__FILE__))}/lib/git/version" | ||
|
||
task :default => :test | ||
default_tasks = [] | ||
|
||
desc 'Run Unit Tests' | ||
task :test do |t| | ||
task :test do | ||
sh 'git config --global user.email "git@example.com"' if `git config user.email`.empty? | ||
sh 'git config --global user.name "GitExample"' if `git config user.name`.empty? | ||
|
||
$VERBOSE = true | ||
|
||
require File.dirname(__FILE__) + '/tests/all_tests.rb' | ||
end | ||
default_tasks << :test | ||
|
||
unless RUBY_PLATFORM == 'java' | ||
# | ||
# YARD documentation for this project can NOT be built with JRuby. | ||
# This project uses the redcarpet gem which can not be installed on JRuby. | ||
# | ||
require 'yard' | ||
YARD::Rake::YardocTask.new | ||
CLEAN << '.yardoc' | ||
CLEAN << 'doc' | ||
default_tasks << :yard | ||
|
||
require 'yardstick/rake/verify' | ||
Yardstick::Rake::Verify.new(:'yardstick:coverage') do |t| | ||
t.threshold = 50 | ||
t.require_exact_threshold = false | ||
end | ||
default_tasks << :'yardstick:coverage' | ||
|
||
desc 'Run yardstick to check yard docs' | ||
task :yardstick do | ||
sh "yardstick 'lib/**/*.rb'" | ||
end | ||
# Do not include yardstick as a default task for now since there are too many | ||
# warnings. Will work to get the warnings down before re-enabling it. | ||
# | ||
# default_tasks << :yardstick | ||
end | ||
|
||
task default: default_tasks |
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
Oops, something went wrong.