File: Rakefile

package info (click to toggle)
ruby-mina 0.3.7-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 444 kB
  • ctags: 99
  • sloc: ruby: 1,630; makefile: 31
file content (20 lines) | stat: -rw-r--r-- 517 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require 'bundler'
require 'bundler/gem_tasks'

github = ENV['github'] || 'nadarei/mina'

task :spec do
  system "rm Gemfile.lock; sh -c 'rake=0.8 bundle exec rspec'"
  system "rm Gemfile.lock; sh -c 'rake=0.9 bundle exec rspec'"
end

task :docs do
  files = ['manual/index.md', 'manual/modules.md', 'HISTORY.md'] + Dir['lib/**/*.rb']
  system "lidoc #{files.join ' '} -o docs --github #{github}"
end

task :'docs:deploy' => :docs do
  system "git-update-ghpages #{github} -i docs -p docs"
end

task :default => :spec