Rakefile in pgtk-0.8.1 vs Rakefile in pgtk-0.9.0

- old
+ new

@@ -1,8 +1,8 @@ # frozen_string_literal: true -# Copyright (c) 2019-2023 Yegor Bugayenko +# Copyright (c) 2019-2024 Yegor Bugayenko # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the 'Software'), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell @@ -52,11 +52,11 @@ rdoc.rdoc_files.include('README*') rdoc.rdoc_files.include('lib/**/*.rb') end require 'rubocop/rake_task' -desc 'Run RuboCop on all directories' +desc 'Run Rubocop on all directories' RuboCop::RakeTask.new(:rubocop) do |task| task.fail_on_error = true task.requires << 'rubocop-rspec' end @@ -67,10 +67,10 @@ task.includes = ['**/*.xml', '**/*.xsl', '**/*.xsd', '**/*.html'] task.excludes = ['target/**/*', 'coverage/**/*'] end task :copyright do - sh "grep -q -r '#{Date.today.strftime('%Y')}' \ + sh "grep -q -r '2019-#{Date.today.strftime('%Y')}' \ --include '*.rb' \ --include '*.txt' \ --include 'Rakefile' \ ." end