commit ff0a95583bac31abe84f0de8dfe8372a77950b5e
parent b33d8c32d00499b6203a889506378b9cd799252a
Author: Dan Callaghan <djc@djc.id.au>
Date: Mon, 18 Apr 2022 13:26:03 +1000
skip rubocop on Ruby < 2.3
The rubocop-packaging gem requires Ruby 2.3+ so just skip the rubocop
checks on older Ruby versions.
Diffstat:
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/Rakefile b/Rakefile
@@ -79,6 +79,10 @@ task :check_manifest do
end
task :rubocop_packaging do
+ if /^2\.[012]\./ =~ RUBY_VERSION
+ puts "skipping rubocop-packaging checks on unsupported Ruby #{RUBY_VERSION}"
+ next
+ end
if system("rubocop --only Packaging")
puts "rubocop-packaging checks OK"
else
diff --git a/sup.gemspec b/sup.gemspec
@@ -67,6 +67,6 @@ SUP: please note that our old mailing lists have been shut down,
s.add_development_dependency "rr", "~> 1.1"
s.add_development_dependency "gpgme", ">= 2.0.2"
s.add_development_dependency "pry"
- s.add_development_dependency "rubocop-packaging"
+ s.add_development_dependency "rubocop-packaging" unless /^2\.[012]\./ =~ RUBY_VERSION
end