forked from rubyamf/rubyamf
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
23 lines (20 loc) · 647 Bytes
/
Copy pathRakefile
File metadata and controls
23 lines (20 loc) · 647 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
require 'rubygems'
require 'bundler'
require 'rspec/core/rake_task'
require 'rdoc/task'
g = Bundler::GemHelper.new(File.dirname(__FILE__))
g.install
RSpec::Core::RakeTask.new do |t|
unless (RUBY_VERSION.split('.').map(&:to_i) <=> [1, 9]) >= 0
t.rcov = true
t.rcov_opts = ['--exclude', 'spec,gems,.bundler']
end
end
desc 'Generate documentation for RubyAMF'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = g.gemspec.name
rdoc.options += g.gemspec.rdoc_options
rdoc.rdoc_files.include(*g.gemspec.extra_rdoc_files)
rdoc.rdoc_files.include("lib") # Don't include ext folder because no one cares
end