Sha256: 6f7d390a48c550b3c5453c24a83b483c85d2387a45833dcfc3458eb106c9dba9
Contents?: true
Size: 447 Bytes
Versions: 1
Compression:
Stored size: 447 Bytes
Contents
module FixDBSchemaConflicts class AutocorrectConfiguration def self.load new.load end def load if less_than_rubocop?(49) '.rubocop_schema.yml' elsif less_than_rubocop?(53) '.rubocop_schema.49.yml' else '.rubocop_schema.53.yml' end end private def less_than_rubocop?(ver) Gem.loaded_specs['rubocop'].version < Gem::Version.new("0.#{ver}.0") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fix-db-schema-conflicts-3.0.3 | lib/fix_db_schema_conflicts/autocorrect_configuration.rb |