forked from dicom/ruby-dicom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rakefile.rb
31 lines (27 loc) · 841 Bytes
/
rakefile.rb
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
# Available commands:
# Testing the specification:
# bundle exec rake spec
# Building a gem from source with rake:
# bundle exec rake package
# Building a gem from source with rubygems:
# bundle exec gem build dicom.gemspec
# Create html documentation files:
# bundle exec rake yard
require 'rubygems/package_task'
require 'rspec/core/rake_task'
require 'yard'
# Build gem:
gem_spec = eval(File.read('dicom.gemspec'))
Gem::PackageTask.new(gem_spec) do |pkg|
pkg.gem_spec = gem_spec
pkg.need_tar = true
end
# RSpec 2:
RSpec::Core::RakeTask.new do |t|
t.rspec_opts = ["-c", "-f progress", "-r ./spec/spec_helper.rb"]
t.pattern = 'spec/**/*_spec.rb'
end
# Build documentation (YARD):
YARD::Rake::YardocTask.new do |t|
t.options += ['--title', "ruby-dicom #{DICOM::VERSION} Documentation"]
end