forked from softlayer/softlayer-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrakefile
34 lines (26 loc) · 771 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
#--
# Copyright (c) 2014 SoftLayer Technologies, Inc. All rights reserved.
#
# For licensing information see the LICENSE.md file in the project root.
#++
$LOAD_PATH << File.expand_path(File.join(File.dirname(__FILE__)))
require 'rubygems'
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'rdoc/task'
Rake::RDocTask.new do |rd|
require 'lib/softlayer/base.rb'
puts RDoc::Markdown::DEFAULT_EXTENSIONS
rd.title = "softlayer_api gem #{SoftLayer::VERSION}"
rd.main = "Welcome.md"
rd.rdoc_dir = "doc"
rd.rdoc_files.include('lib/**/*.rb')
rd.options << '--page-dir=doc_src'
end
RSpec::Core::RakeTask.new(:spec) do |t|
$DEBUG = 1
t.rspec_opts = ["-c"]
end
Rake::Task[:build].enhance [:rerdoc]
task :gem => [:build]
task :default => :spec