mirror of
https://github.com/samsonjs/simple_oauth.git
synced 2026-04-27 14:57:45 +00:00
Clean up the Rakefile
This commit is contained in:
parent
a7c5b2fa1e
commit
facaa40017
1 changed files with 5 additions and 9 deletions
14
Rakefile
14
Rakefile
|
|
@ -1,9 +1,9 @@
|
||||||
#!/usr/bin/env rake
|
#!/usr/bin/env rake
|
||||||
|
|
||||||
require 'bundler'
|
require 'bundler/gem_tasks'
|
||||||
Bundler::GemHelper.install_tasks
|
|
||||||
|
|
||||||
require 'rake/testtask'
|
require 'rake/testtask'
|
||||||
|
require 'yard'
|
||||||
|
|
||||||
Rake::TestTask.new do |test|
|
Rake::TestTask.new do |test|
|
||||||
test.libs << 'lib' << 'test'
|
test.libs << 'lib' << 'test'
|
||||||
test.pattern = 'test/**/*_test.rb'
|
test.pattern = 'test/**/*_test.rb'
|
||||||
|
|
@ -13,12 +13,8 @@ end
|
||||||
task :default => :test
|
task :default => :test
|
||||||
|
|
||||||
namespace :doc do
|
namespace :doc do
|
||||||
require 'yard'
|
|
||||||
YARD::Rake::YardocTask.new do |task|
|
YARD::Rake::YardocTask.new do |task|
|
||||||
task.files = ['README.md', 'LICENSE.md', 'lib/**/*.rb']
|
task.files = %w(README.md lib/**/*.rb)
|
||||||
task.options = [
|
task.options = %w(--output-dir doc/yard --markup markdown)
|
||||||
'--output-dir', 'doc/yard',
|
|
||||||
'--markup', 'markdown',
|
|
||||||
]
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue