Rakefile in appifier-0.1.0 vs Rakefile in appifier-0.1.1

- old
+ new

@@ -1,35 +1,47 @@ -require "bundler/gem_tasks" -require "rspec/core/rake_task" -require "version" +# frozen_string_literal: true + +require 'bundler/gem_tasks' +require 'rspec/core/rake_task' +require 'version' require 'rake/version_task' require 'code_statistics' require 'yard' -require 'yard/rake/yardoc_task.rb' +require 'yard/rake/yardoc_task' require 'rubocop/rake_task' -require "carioca/rake/manage" +require 'carioca/rake/manage' RuboCop::RakeTask.new - Rake::VersionTask.new RSpec::Core::RakeTask.new(:spec) +task default: :spec -task :default => :spec - YARD::Rake::YardocTask.new do |t| - t.files = [ 'lib/**/*.rb', '-', 'doc/**/*','spec/**/*_spec.rb'] - t.options += ['-o', "yardoc"] + t.files = ['lib/**/*.rb', '-', 'doc/**/*', 'spec/**/*_spec.rb'] + t.options += ['-o', 'yardoc'] end YARD::Config.load_plugin('yard-rspec') namespace :yardoc do - task :clobber do - rm_r "yardoc" rescue nil - rm_r ".yardoc" rescue nil - rm_r "pkg" rescue nil + task :clobber do + begin + rm_r 'yardoc' + rescue StandardError + nil end + begin + rm_r '.yardoc' + rescue StandardError + nil + end + begin + rm_r 'pkg' + rescue StandardError + nil + end + end end -task :clobber => "yardoc:clobber" +task clobber: 'yardoc:clobber'