-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
32 lines (26 loc) · 844 Bytes
/
Rakefile
File metadata and controls
32 lines (26 loc) · 844 Bytes
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 'rake/rdoctask'
require 'rspec/core/rake_task'
libdir = File.join(File.expand_path('..', __FILE__), 'lib')
require File.join(libdir, 'tanuki/version')
RSpec::Core::RakeTask.new do |t|
t.pattern = 'spec/**/*_spec.rb'
t.rspec_opts = ['--format', 'documentation']
end
Rake::RDocTask.new do |rd|
rd.main = 'README.rdoc'
rd.options << '--all'
rd.rdoc_dir = 'docs'
rd.rdoc_files.include 'README.rdoc', 'LICENSE', File.join('lib', '**', '*.rb')
rd.title = 'Tanuki Documentation'
end
desc 'Build gem from current sources'
task :build do
system 'gem build tanuki.gemspec'
end
desc 'Build gem from current sources and push to RubyGems.org'
task :release => :build do
system "gem push tanuki-#{::Tanuki.version}.gem"
end
desc 'Run specs, build RDoc, and build gem'
task :all => [:spec, :rdoc, :build]
task :default => :all