-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathRakefile
33 lines (27 loc) · 914 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
require "rubygems"
namespace :gem do
desc "Build the rdf-isomorphic-#{File.read('VERSION').chomp}.gem file"
task :build do
sh "gem build rdf-isomorphic.gemspec && mv rdf-isomorphic-#{File.read('VERSION').chomp}.gem pkg/"
end
desc "Release the rdf-isomorphic-#{File.read('VERSION').chomp}.gem file"
task :release do
sh "gem push pkg/rdf-isomorphic-#{File.read('VERSION').chomp}.gem"
end
end
desc 'Default: run specs.'
task default: :spec
task specs: :spec
require 'rspec/core/rake_task'
desc 'Run specifications'
RSpec::Core::RakeTask.new do |spec|
spec.rspec_opts = %w(--options spec/spec.opts) if File.exists?('spec/spec.opts')
end
desc "Run specifications for continuous integration"
RSpec::Core::RakeTask.new("spec:ci") do |spec|
spec.rspec_opts = %w(--options spec/spec.opts) if File.exists?('spec/spec.opts')
end
require 'yard'
namespace :doc do
YARD::Rake::YardocTask.new
end