Sha256: 3d988f5abe5b2af05cfbd1ef865055e8c7aceb0787d6d56629d5d791408682bd

Contents?: true

Size: 341 Bytes

Versions: 14

Compression:

Stored size: 341 Bytes

Contents

module LicenseFinder
  class CocoaPodsPackage < Package
    def initialize(name, version, license_text, options = {})
      super(name, version, options)
      @license = License.find_by_text(license_text.to_s)
    end

    def licenses_from_spec
      [@license].compact
    end

    def package_manager
      'CocoaPods'
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
license_finder-5.4.1 lib/license_finder/packages/cocoa_pods_package.rb
license_finder-5.4.0 lib/license_finder/packages/cocoa_pods_package.rb
license_finder-5.3.0 lib/license_finder/packages/cocoa_pods_package.rb
license_finder-5.2.3 lib/license_finder/packages/cocoa_pods_package.rb
license_finder-5.2.1 lib/license_finder/packages/cocoa_pods_package.rb
license_finder-5.2.0 lib/license_finder/packages/cocoa_pods_package.rb
license_finder-5.1.1 lib/license_finder/packages/cocoa_pods_package.rb
license_finder-5.1.0 lib/license_finder/packages/cocoa_pods_package.rb
license_finder-5.0.3 lib/license_finder/packages/cocoa_pods_package.rb
license_finder-5.0.2 lib/license_finder/packages/cocoa_pods_package.rb
license_finder-5.0.0 lib/license_finder/packages/cocoa_pods_package.rb
license_finder-4.0.2 lib/license_finder/package_managers/cocoa_pods_package.rb
license_finder-4.0.1 lib/license_finder/package_managers/cocoa_pods_package.rb
license_finder-3.1.1 lib/license_finder/package_managers/cocoa_pods_package.rb