Sha256: 2c7c0c472997df2b4f3bfa74207d57924076d0e30857955c836fff31f94e50ea

Contents?: true

Size: 911 Bytes

Versions: 2

Compression:

Stored size: 911 Bytes

Contents

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
r509-1.0.1 Rakefile
r509-1.0 Rakefile