Sha256: f9d97f1715ba907e8ce728f02351662c8d5844961cf49c2130de8367c33ac7ef
Contents?: true
Size: 702 Bytes
Versions: 196
Compression:
Stored size: 702 Bytes
Contents
module Pod module Generator class Acknowledgements def license_text(spec) return nil unless spec.license text = spec.license[:text] unless text if license_file = spec.license[:file] license_path = file_accessor(spec).root + license_file if File.exist?(license_path) text = IO.read(license_path) else # UI.warn "Unable to read the license file `#{license_file}` " \ # "for the spec `#{spec}`" end elsif license_file = file_accessor(spec).license text = IO.read(license_file) end end text end end end end
Version data entries
196 entries across 196 versions & 10 rubygems