lib/rubocop/cop/mixin/target_solidus_version.rb in rubocop-solidus-0.1.4 vs lib/rubocop/cop/mixin/target_solidus_version.rb in rubocop-solidus-0.2.0
- old
+ new
@@ -34,10 +34,10 @@
# Since this method is called for every offense, we can use it to check
# if the Solidus version is affected and skip the offense if it's not.
def add_offense(*args, **kwargs, &block)
return unless affected_solidus_version?
- if Gem::Version.new(RUBY_VERSION) > Gem::Version.new('3')
+ if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('2.7')
super(*args, **kwargs, &block)
else
super(*args, &block)
end
end