Sha256: de4917e7e83ecb9f53be3ee47fdada3e077bee1717893578040df2efd3223964
Contents?: true
Size: 687 Bytes
Versions: 12
Compression:
Stored size: 687 Bytes
Contents
require 'cocoapods-mtxx-bin/native/specification' module Pod class Specification class Linter # !@group Lint steps # Checks that the spec's root name matches the filename. # # @return [void] # def validate_root_name if spec.root.name && file acceptable_names = Specification::VALID_EXTNAME.map { |extname| "#{spec.root.name}#{extname}" } names_match = acceptable_names.include?(file.basename.to_s) unless names_match results.add_error('name', 'The name of the spec should match the ' \ 'name of the file.') end end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems