Sha256: 372a07a3e82930f459c482c2c0a15d178f0487f525e88227c8d02ae249310f95
Contents?: true
Size: 462 Bytes
Versions: 4
Compression:
Stored size: 462 Bytes
Contents
# frozen_string_literal: true module NeetoCompliance class RubyVersionVerifier < Base def local_copy ".ruby-version" end def commons_copy NeetoCompliance::NeetoCommons.path.join "common_files/.ruby-version" end def verify_command "diff -N #{commons_copy} #{local_copy}" end def valid? `#{verify_command}`.empty? end def autofix_command "cp #{commons_copy} #{local_copy}" end end end
Version data entries
4 entries across 4 versions & 2 rubygems