-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathRakefile
More file actions
34 lines (25 loc) · 799 Bytes
/
Rakefile
File metadata and controls
34 lines (25 loc) · 799 Bytes
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
require 'rubygems'
require 'bundler'
require File.expand_path('lib/mongoid-cached-json/version', __dir__)
Bundler.setup(:default, :development)
Bundler::GemHelper.install_tasks
require 'rake'
require 'rspec/core'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec) do |spec|
files = FileList['spec/**/*_spec.rb']
files = files.exclude 'spec/benchmark_spec.rb'
spec.pattern = files
end
require 'rdoc/task'
Rake::RDocTask.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : ''
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "mongoid-cached-json #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('LICENSE*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
require 'rubocop/rake_task'
RuboCop::RakeTask.new
task default: [:rubocop, :spec]