module Polisher::GemFiles::ClassMethods
Public Instance Methods
doc_file?(file)
click to toggle source
Return bool indicating if the specified file is on the DOC_FILES list
# File lib/polisher/gem/files.rb, line 54 def doc_file?(file) DOC_FILES.any? do |doc| doc.is_a?(Regexp) ? doc.match(file) : doc == file end end
ignorable_file?(file)
click to toggle source
Return bool indicating if the specified file is on the IGNORE_FILES list
# File lib/polisher/gem/files.rb, line 33 def ignorable_file?(file) IGNORE_FILES.any? do |ignore| ignore.is_a?(Regexp) ? ignore.match(file) : ignore == file end end
license_file?(file)
click to toggle source
Return bool indicating if the specified file is on the LICENSE_FILES list
# File lib/polisher/gem/files.rb, line 47 def license_file?(file) LICENSE_FILES.any? do |license| license.is_a?(Regexp) ? license.match(file) : license == file end end
runtime_file?(file)
click to toggle source
Return bool indicating if the specified file in on the RUNTIME_FILES list
# File lib/polisher/gem/files.rb, line 40 def runtime_file?(file) RUNTIME_FILES.any? do |runtime| runtime.is_a?(Regexp) ? runtime.match(file) : runtime == file end end