-
Notifications
You must be signed in to change notification settings - Fork 197
Expand file tree
/
Copy pathRakefile
More file actions
37 lines (30 loc) · 755 Bytes
/
Rakefile
File metadata and controls
37 lines (30 loc) · 755 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
36
37
require 'rake/testtask'
desc 'Run all tests'
task :test, [:path] do |task, args|
ENV['RAILS_ENV'] = 'test'
$LOAD_PATH.unshift(File.expand_path('test'))
if args[:path]
require_relative args[:path]
else
Dir['test/*/**/test_*.rb'].each {|test| require "./#{test}" }
end
end
desc 'Generate YARD Documentation'
task :doc do
sh "mv README.md TEMPREADME"
sh "rm -rf doc"
sh "yardoc"
sh "mv TEMPREADME README.md"
end
namespace :gem do
desc 'Build and install the jammit gem'
task :install do
sh "gem build jammit.gemspec"
sh "gem install #{Dir['*.gem'].join(' ')} --local --no-ri --no-rdoc"
end
desc 'Uninstall the jammit gem'
task :uninstall do
sh "gem uninstall -x jammit"
end
end
task :default => :test