forked from intridea/multi_json
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
25 lines (20 loc) · 751 Bytes
/
Rakefile
File metadata and controls
25 lines (20 loc) · 751 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
require 'bundler'
Bundler::GemHelper.install_tasks
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:base_spec) do |task|
task.pattern = 'spec/multi_json_spec.rb,spec/options_cache_spec.rb'
end
namespace :adapters do
Dir['spec/*_adapter_spec.rb'].each do |adapter_spec|
adapter_name = adapter_spec[/(\w+)_adapter_spec/, 1]
desc "Run #{adapter_name} adapter specs"
RSpec::Core::RakeTask.new(adapter_name) do |task|
task.pattern = adapter_spec
end
end
end
task :spec => %w(base_spec adapters:oj adapters:yajl adapters:json_gem adapters:json_pure adapters:ok_json adapters:gson adapters:jr_jackson adapters:nsjsonserialization)
task :default => :spec
task :test => :spec
require 'yard'
YARD::Rake::YardocTask.new