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

Version Path
cocoapods-bb-bin-0.2.10.3 lib/cocoapods-bb-bin/native/acknowledgements.rb
cocoapods-bb-bin-0.2.10.2 lib/cocoapods-bb-bin/native/acknowledgements.rb
cocoapods-bb-bin-0.2.10.1 lib/cocoapods-bb-bin/native/acknowledgements.rb
cocoapods-bb-bin-0.2.10.0 lib/cocoapods-bb-bin/native/acknowledgements.rb
cocoapods-meitu-bin-2.0.0 lib/cocoapods-meitu-bin/native/acknowledgements.rb
cocoapods-bb-bin-0.2.9.0 lib/cocoapods-bb-bin/native/acknowledgements.rb
cocoapods-swordfish-1.0.2 lib/swordfish/native/acknowledgements.rb
cocoapods-bb-bin-0.2.8.1 lib/cocoapods-bb-bin/native/acknowledgements.rb
cocoapods-bb-bin-0.2.8 lib/cocoapods-bb-bin/native/acknowledgements.rb
cocoapods-fy-bin-0.3.1 lib/cocoapods-fy-bin/native/acknowledgements.rb
cocoapods-tdf-bin-0.0.43 lib/cocoapods-tdf-bin/native/acknowledgements.rb
cocoapods-bb-bin-0.2.7.13 lib/cocoapods-bb-bin/native/acknowledgements.rb
cocoapods-imy-bin-0.3.1.21 lib/cocoapods-imy-bin/native/acknowledgements.rb
cocoapods-bb-bin-0.2.7.12 lib/cocoapods-bb-bin/native/acknowledgements.rb
cocoapods-meitu-bin-1.4.1 lib/cocoapods-meitu-bin/native/acknowledgements.rb
cocoapods-bb-bin-0.2.7.11 lib/cocoapods-bb-bin/native/acknowledgements.rb
cocoapods-meitu-bin-1.4.0 lib/cocoapods-meitu-bin/native/acknowledgements.rb
cocoapods-bb-bin-0.2.7.10 lib/cocoapods-bb-bin/native/acknowledgements.rb
cocoapods-tdf-bin-0.0.42 lib/cocoapods-tdf-bin/native/acknowledgements.rb
cocoapods-bb-bin-0.2.7.9 lib/cocoapods-bb-bin/native/acknowledgements.rb