lib/rubocop/cop/mixin/target_solidus_version.rb in rubocop-solidus-0.1.3 vs lib/rubocop/cop/mixin/target_solidus_version.rb in rubocop-solidus-0.1.4

- old
+ new

@@ -22,9 +22,13 @@ end def targeted_solidus_version?(version) Gem::Version.new(@minimum_solidus_version) <= Gem::Version.new(version) end + + def required_minimum_solidus_version + @minimum_solidus_version + end end # This method overrides the one in RuboCop::Cop::Base. # 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.