forked from moviepilot/titulator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
38 lines (30 loc) · 735 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
require 'bundler/gem_tasks'
require 'rspec'
require 'rspec/core/rake_task'
require 'yard'
require 'yard/rake/yardoc_task'
require 'pry'
desc 'Run all rspecs'
RSpec::Core::RakeTask.new(:spec) do |spec|
spec.fail_on_error = true
spec.verbose = false
# spec.rspec_opts = ['--backtrace']
end
desc 'Run yardoc over project sources'
YARD::Rake::YardocTask.new(:doc) do |t|
t.options = ['--verbose']
t.files = ['lib/**/*.rb', '-', 'README.md', 'AUTHORS', 'LICENSE.txt']
t.files << 'CHANGELOG.md'
t.files << 'ROADMAP.md'
end
desc 'Run pry console'
task :console do
require 'bundler'
Bundler.require
module Titulator
pry.binding
end
end
task :pry => :console
task :docs => :doc
task :specs => :spec