-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
36 lines (31 loc) · 804 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
$:.push File.expand_path("../lib", __FILE__)
require "dcm_dict/version"
require 'rake'
require 'rspec/core/rake_task'
desc "Check all spec"
RSpec::Core::RakeTask.new(:spec) do |t|
t.pattern = 'spec/**/*_spec.rb'
t.ruby_opts = "-w"
t.rspec_opts = '--color --format documentation'
end
desc "Check all spec with code coverage"
task :coverage do
ENV['COVERAGE'] = "true"
Rake::Task["spec"].execute
end
desc(task(:coverage).comment)
task :default => :coverage
desc "Build dcm_dict v#{DcmDict::VERSION} gem"
task :build do
system "gem build dcm_dict.gemspec"
FileUtils.mkdir_p "pkg"
FileUtils.mv "dcm_dict-#{DcmDict::VERSION}.gem", "pkg"
end
desc "Open IRB with DcmDict support"
task :console do
require 'irb'
require 'irb/completion'
require 'dcm_dict'
ARGV.clear
IRB.start
end