-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
45 lines (38 loc) · 911 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
37
38
39
40
41
42
43
44
45
require 'rubygems'
require 'rspec/core/rake_task'
require "#{File.dirname(__FILE__)}/lib/r509/version"
task :default => :spec
RSpec::Core::RakeTask.new(:spec)
# define a new spec with suppressed stack trace
RSpec::Core::RakeTask.new(:ntspec) do |t|
t.fail_on_error = false
end
namespace :gem do
desc 'Build the gem'
task :build do
puts `yard`
puts `gem build r509.gemspec`
end
desc 'Install gem'
task :install do
puts `gem install r509-#{R509::VERSION}.gem`
end
desc 'Uninstall gem'
task :uninstall do
puts `gem uninstall r509`
end
end
desc "Open an irb session with the lib dir included"
task :irb do
$LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)
$LOAD_PATH.unshift File.expand_path("../", __FILE__)
require 'r509'
require 'irb'
ARGV.clear
IRB.start
end
desc 'Build yard documentation'
task :yard do
puts `yard`
`open doc/index.html`
end