lib/gem2rpm/template_helpers.rb in gem2rpm-0.11.2 vs lib/gem2rpm/template_helpers.rb in gem2rpm-0.11.3
- old
+ new
@@ -1,17 +1,17 @@
module Gem2Rpm
module TemplateHelpers
# File list block for the main package
def main_file_entries(spec)
entries = Helpers.top_level_from_file_list(spec.files)
- entries.delete_if{ |f| Helpers.doc_file?(f) || Helpers.misc_file?(f) }
+ entries.delete_if { |f| Helpers.doc_file?(f) || Helpers.misc_file?(f) }
Helpers.file_entries_to_rpm(entries)
end
# File list block for the doc sub-package
def doc_file_entries(spec)
entries = Helpers.top_level_from_file_list(spec.files)
- entries.delete_if{ |f| !(Helpers.doc_file?(f) || Helpers.misc_file?(f)) }
+ entries.delete_if { |f| !(Helpers.doc_file?(f) || Helpers.misc_file?(f)) }
Helpers.file_entries_to_rpm(entries)
end
# Provides well formatted requirement with version.
def requirement(name, version = nil)