Sha256: ef1da9447e463e296d45bb59e687f44bda6b74be36d131feef9a1a395c590eaf

Contents?: true

Size: 1.4 KB

Versions: 1

Compression:

Stored size: 1.4 KB

Contents

=begin

    This file is part of the Arachni-RPC project and may be subject to
    redistribution and commercial restrictions. Please see the Arachni-RPC
    web site for more information on licensing and terms of use.

=end

require 'rubygems'

begin
    require 'rspec'
    require 'rspec/core/rake_task'

    RSpec::Core::RakeTask.new do |t|
      t.rspec_opts = ['--options', "\"#{File.dirname(__FILE__)}/spec/spec.opts\""]
    end
rescue
end

desc "Generate docs"

task :docs do

    outdir = "../arachni-rpc-pages"
    sh "mkdir #{outdir}" if !File.directory?( outdir )

    sh "yardoc --verbose --title \
      \"Arachni-RPC\" \
       lib/* -o #{outdir} \
      - CHANGELOG.md LICENSE.md"


    sh "rm -rf .yard*"
end


#
# Cleans reports and logs
#
desc "Cleaning..."
task :clean do
    sh "rm *.gem || true"
end



#
# Building
#
desc "Build the arachni-rpc gem."
task :build => [ :clean ] do
    sh "gem build arachni-rpc.gemspec"
end


#
# Installing
#
desc "Build and install the arachni gem."
task :install  => [ :build ] do

    require File.expand_path( File.dirname( __FILE__ ) ) + '/lib/arachni/rpc/version'

    sh "gem install arachni-rpc-#{Arachni::RPC::VERSION}.gem"
end


#
# Publishing
#
desc "Push a new version to Gemcutter"
task :publish => [ :build ] do

    require File.expand_path( File.dirname( __FILE__ ) ) + '/lib/arachni/rpc/version'

    sh "gem push arachni-rpc-#{Arachni::RPC::VERSION}.gem"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
arachni-rpc-0.1.1 Rakefile