-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
35 lines (27 loc) · 750 Bytes
/
Rakefile
File metadata and controls
35 lines (27 loc) · 750 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
33
34
35
#!/usr/bin/env ruby -rubygems
require 'bundler/setup'
require 'bundler/gem_tasks'
require 'rake/clean'
require 'rake/testtask'
GEMSPEC = Gem::Specification.load(Dir.glob('*.gemspec').first)
$:.unshift(File.expand_path('lib', __dir__))
require GEMSPEC.name
Rake::TestTask.new do |t|
t.libs = %w(test lib)
t.pattern = 'test/test*.rb'
t.verbose = false
t.warning = true
end
begin
require 'yard'
require 'yard/rake/yardoc_task'
YARD::Rake::YardocTask.new do |t|
t.options += ['--title', "%s %s: %s" %
[GEMSPEC.name, GEMSPEC.version, GEMSPEC.summary.chomp('.')]]
end
rescue LoadError
end
task :default => :test
task :irb do require 'irb'; ARGV.clear; IRB.start end
CLEAN.include('*.html')
CLOBBER.include('Gemfile.lock')