forked from nex3/yard-pygments
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
32 lines (30 loc) · 1.01 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
require 'rubygems'
require 'rake'
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "yard-pygments"
gem.summary = %Q{Pygments-based syntax highlighting for YARD.}
gem.description = <<DESC
A plugin for the YARD documentation system that adds syntax highlighting
for a wide variety of languages using the Pygments highlighter.
DESC
gem.email = "gtdev@spearhead.de"
gem.homepage = "http://github.com/ngollan/yard-pygments"
gem.authors = ["Nathan Weizenbaum", "Nicos Gollan"]
gem.add_dependency('yard')
gem.add_dependency('rb-pygments', '>= 0.1.0')
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end
begin
require 'yard'
YARD::Rake::YardocTask.new
rescue LoadError
task :yardoc do
abort "YARD is not available. In order to run yardoc, you must: sudo gem install yard"
end
end