forked from fabrik42/acts_as_api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
37 lines (25 loc) · 905 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
35
36
37
require 'bundler'
require 'rspec/core'
require 'rspec/core/rake_task'
#require 'rake/rdoctask'
Bundler::GemHelper.install_tasks
RSpec::Core::RakeTask.new
namespace :spec do
desc "Run ActiveRecord RSpec code examples only"
RSpec::Core::RakeTask.new do |t|
t.name = :active_record
t.rspec_opts = ["--color", "--format", "documentation", "--tag", "orm:active_record"]
end
end
gemspec = Gem::Specification.load("acts_as_api.gemspec")
task :default => :spec
# causes crash in travis ci
#Rake::RDocTask.new do |rdoc|
# rdoc.rdoc_dir = 'doc'
# rdoc.title = "#{gemspec.name} #{gemspec.version}"
# rdoc.options += gemspec.rdoc_options
# rdoc.options << '--line-numbers' << '--inline-source'
# rdoc.rdoc_files.include(gemspec.extra_rdoc_files)
# rdoc.rdoc_files.include('README.rdoc')
#end
#bundle exec rocco examples/introduction/index.rb -t examples/introduction/layout.mustache