class Pod::Generator::Acknowledgements
def self.generators
-
(Array- The classes of the acknowledgements generator)
def self.generators [Plist, Markdown] end
def file_accessor(spec)
-
(Sandbox::FileAccessor)- The file accessor.
Parameters:
-
spec(Specification) --
def file_accessor(spec) file_accessors.find { |accessor| accessor.spec.root == spec } end
def footnote_text
-
(String)- the foot notes.
def footnote_text "Generated by CocoaPods - http://cocoapods.org" end
def footnote_title
-
(String)- The title of the foot notes.
def footnote_title "" end
def header_text
-
(String)- A text to present before listing the acknowledgements.
def header_text "This application makes use of the following third party libraries:" end
def header_title
-
(String)- The title of the acknowledgements file.
def header_title "Acknowledgements" end
def initialize(file_accessors)
-
@see(Array) -- file_accessors.
def initialize(file_accessors) @file_accessors = file_accessors end
def license_text(spec)
-
(Nil)- If not license text could be found. -
(String)- The text of the license.
Parameters:
-
spec(Specification) --
def license_text(spec) return nil unless spec.license text = spec.license[:text] unless text if license_file = file_accessor(spec).license if license_file.exist? text = IO.read(license_file) else UI.warn "Unable to read the license file `#{license_file }` " \ "for the spec `#{spec}`" end end end text end
def specs
-
(Array- The root specifications for which the)
def specs file_accessors.map{ |accessor| accessor.spec.root }.uniq end