module Polisher::RPM::SpecGemFiles::ClassMethods
Public Instance Methods
file_satisfies?(spec_file, gem_file)
click to toggle source
Helper to return bool indicating if specified gem file is satisfied by specified spec file.
Spec
file satisfies gem file if they are the same or the spec file corresponds to the the directory in which the gem file resides.
# File lib/polisher/rpm/spec/gem_files.rb, line 21 def file_satisfies?(spec_file, gem_file) # If spec file for which gemfile.gsub(/^specfile/) # is different than the gemfile the spec contains the gemfile # # TODO: need to incorporate regex matching into this gem_file.gsub(/^#{spec_file.unrpmize}/, '') != gem_file end