forked from tigerlily/redisse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
28 lines (25 loc) · 598 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
require "bundler/gem_tasks"
begin
require 'yard'
YARD::Config.load_plugin 'tomdoc'
YARD::Rake::YardocTask.new do |t|
t.name = :doc
end
task :gh_pages => :doc do
sh 'git checkout gh-pages'
sh 'rsync -a doc/* .'
sh 'git add .'
version = "v#{Bundler::GemHelper.gemspec.version}"
sh "git commit -m 'Documentation for #{version}'"
sh 'git checkout -'
end
rescue LoadError
end
begin
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec) do |task|
task.pattern = "{example/,}" + task.pattern
end
task :default => :spec
rescue LoadError
end