From c992dddafaab7d49541e88ae278361f80184b6e0 Mon Sep 17 00:00:00 2001 From: Bernhard Suttner Date: Mon, 8 Apr 2024 10:31:23 +0200 Subject: [PATCH] Update rakefile --- Rakefile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Rakefile b/Rakefile index 8c2f287..bf6d68d 100755 --- a/Rakefile +++ b/Rakefile @@ -1,4 +1,3 @@ -#!/usr/bin/env rake begin require 'bundler/setup' rescue LoadError @@ -14,13 +13,13 @@ end RDoc::Task.new(:rdoc) do |rdoc| rdoc.rdoc_dir = 'rdoc' - rdoc.title = 'ForemanPluginTemplate' + rdoc.title = 'ForemanCveScanner' rdoc.options << '--line-numbers' rdoc.rdoc_files.include('README.rdoc') rdoc.rdoc_files.include('lib/**/*.rb') end -APP_RAKEFILE = File.expand_path('test/dummy/Rakefile', __dir__) +APP_RAKEFILE = File.expand_path('../test/dummy/Rakefile', __FILE__) Bundler::GemHelper.install_tasks @@ -38,7 +37,7 @@ task default: :test begin require 'rubocop/rake_task' RuboCop::RakeTask.new -rescue +rescue => _ puts 'Rubocop not loaded.' end