OSDN Git Service

use README.rdoc instead of README
[mint/mint-lib.git] / Rakefile
1 # -*- coding: utf-8 -*-
2
3 require 'spec/rake/spectask'
4 require 'rake/gempackagetask'
5 require 'rake/rdoctask'
6
7 desc 'Run all specs (default)'
8 task :default => :spec
9
10 desc 'Run all specs'
11 Spec::Rake::SpecTask.new do |t|
12   t.spec_files = FileList['spec/**/*_spec.rb']
13   t.spec_opts = ['-c']
14 end
15
16 PKG_FILES = FileList[
17   'lib/**/*.rb',
18   'spec/**/*_spec.rb'
19 ]
20
21 spec = Gem::Specification.new do |s|
22   s.name = 'mint-lib'
23   s.version = '0.0.1'
24   s.author = 'Good-Day, Inc.'
25   s.email = 'info@good-day.co.jp'
26   s.homepage = 'http://www.good-day.jp/'
27   s.platform = Gem::Platform::RUBY
28   s.summary = 'Generates mathematical problem and solves it'
29   s.files = PKG_FILES.to_a
30   s.require_path = 'lib'
31   s.has_rdoc = false
32   s.extra_rdoc_files = ['README.rdoc']
33 end
34
35 desc 'Turn this library into a gem.'
36 Rake::GemPackageTask.new(spec) do |pkg|
37   pkg.gem_spec = spec
38 end
39
40 desc 'Generate documentation for the mint-lib.'
41 Rake::RDocTask.new(:rdoc) do |rdoc|
42   rdoc.rdoc_dir = 'rdoc'
43   rdoc.title    = 'mint-lib'
44   rdoc.options << '--line-numbers' << '--inline-source'
45   rdoc.rdoc_files.include('README')
46   rdoc.rdoc_files.include('lib/**/*.rb')
47 end
48