Rakefile in arachni-rpc-0.1.1 vs Rakefile in arachni-rpc-0.1.2
- old
+ new
@@ -5,25 +5,24 @@
web site for more information on licensing and terms of use.
=end
require 'rubygems'
+require File.expand_path( File.dirname( __FILE__ ) ) + '/lib/arachni/rpc/version'
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
+ RSpec::Core::RakeTask.new
rescue
end
-desc "Generate docs"
+task default: [ :spec ]
+desc "Generate docs"
task :docs do
-
outdir = "../arachni-rpc-pages"
sh "mkdir #{outdir}" if !File.directory?( outdir )
sh "yardoc --verbose --title \
\"Arachni-RPC\" \
@@ -32,47 +31,24 @@
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