Rakefile in arachni-rpc-em-0.1.3 vs Rakefile in arachni-rpc-em-0.2
- old
+ new
@@ -5,12 +5,15 @@
web site for more information on licensing and terms of use.
=end
require 'rubygems'
-require File.expand_path( File.dirname( __FILE__ ) ) + '/lib/arachni/rpc/em/version'
+require 'bundler'
+require_relative 'lib/arachni/rpc/em/version'
+Bundler::GemHelper.install_tasks
+
begin
require 'rspec'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new
@@ -19,41 +22,19 @@
puts ' gem install rspec'
end
task default: [ :build, :spec ]
-desc "Generate docs"
+desc 'Generate docs'
task :docs do
+ outdir = '../arachni-rpc-em-docs'
- 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*"
+ sh "yardoc -o #{outdir}"
+ sh 'rm -rf .yardoc'
end
-desc "Cleaning..."
-task :clean do
- sh "rm *.gem || true"
-end
+desc 'Push a new version to RubyGems'
+task :publish => [ :release ]
-desc "Build the arachni-rpc-em gem."
-task :build => [ :clean ] do
- sh "gem build arachni-rpc-em.gemspec"
-end
-
-desc "Build and install the arachni gem."
-task :install => [ :build ] do
- sh "gem install arachni-rpc-em-#{Arachni::RPC::EM::VERSION}.gem"
-end
-
-desc "Push a new version to Rubygems"
-task :publish => [ :build ] do
- sh "git tag -a v#{Arachni::RPC::EM::VERSION} -m 'Version #{Arachni::RPC::EM::VERSION}'"
- sh "gem push arachni-rpc-em-#{Arachni::RPC::EM::VERSION}.gem"
-end
-task :release => [ :publish ]
+desc 'Build Arachni and run all the tests.'
+task :default => [ :build, :spec ]