Skip to content
This repository was archived by the owner on Sep 25, 2024. It is now read-only.

Commit 1e8bd43

Browse files
author
Bob Corsaro
committed
Adds yard
1 parent 0139ee5 commit 1e8bd43

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@ Gemfile.lock
22
embedly.gemspec
33
pkg/
44
rdoc/
5+
doc/
6+
.yardoc/
57

Rakefile

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ begin
1717
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
1818
end
1919
Jeweler::GemcutterTasks.new
20+
2021
rescue LoadError
2122
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
2223
end
@@ -31,16 +32,13 @@ rescue LoadError
3132
end
3233

3334
begin
34-
require 'grancher/task'
35-
Grancher::Task.new do |g|
36-
g.branch = 'gh-pages'
37-
g.push_to = 'origin'
38-
g.message = 'Updated website'
39-
g.directory 'rdoc'
35+
require 'yard'
36+
YARD::Rake::YardocTask.new do |t|
37+
t.files = FileList['lib/**/*.rb'].exclude('lib/jeweler/templates/**/*.rb')
4038
end
4139
rescue LoadError
42-
task :publish do
43-
abort "Grancher is not installed"
40+
task :yard do
41+
abort "Yard is not installed"
4442
end
4543
end
4644

0 commit comments

Comments
 (0)