-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathRakefile
38 lines (31 loc) · 867 Bytes
/
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
33
34
35
36
37
38
# encoding: utf-8
require 'rubygems'
require 'bundler'
require 'jeweler'
require 'rake'
require 'rake/testtask'
require 'rdoc/task'
require 'rspec/core/rake_task'
task default: :spec
Jeweler::Tasks.new do |gem|
gem.name = 'bgg-api'
gem.homepage = 'http://github.com/bhardin/bgg-api'
gem.license = 'MIT'
gem.summary = 'boardgamegeek api gem'
gem.description = 'A gem to interact with the BGG API'
gem.email = '[email protected]'
gem.authors = ['Brett Hardin']
end
Jeweler::RubygemsDotOrgTasks.new
RSpec::Core::RakeTask.new(:spec)
task :coverage do
ENV['COVERAGE'] = 'yes'
Rake::Task['spec'].execute
end
Rake::RDocTask.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : ""
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "bgg-api #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end