Sha256: 87b179dbae00bdc5b0f5b8e4f60660386c1f945060eab3ed23571d9a0c27187a

Contents?: true

Size: 370 Bytes

Versions: 46

Compression:

Stored size: 370 Bytes

Contents

# frozen_string_literal: true

module LicenseFinder
  class CarthagePackage < 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
      'Carthage'
    end
  end
end

Version data entries

46 entries across 46 versions & 2 rubygems

Version Path
license_finder-6.6.1 lib/license_finder/packages/carthage_package.rb
license_finder-6.6.0 lib/license_finder/packages/carthage_package.rb
license_finder-6.5.0 lib/license_finder/packages/carthage_package.rb
license_finder-6.4.0 lib/license_finder/packages/carthage_package.rb
license_finder-6.3.0 lib/license_finder/packages/carthage_package.rb
license_finder-6.2.0 lib/license_finder/packages/carthage_package.rb
license_finder-6.1.2 lib/license_finder/packages/carthage_package.rb
license_finder-6.1.0 lib/license_finder/packages/carthage_package.rb
license_finder-6.0.0 lib/license_finder/packages/carthage_package.rb
license_finder-5.11.1 lib/license_finder/packages/carthage_package.rb
license_finder-5.11.0 lib/license_finder/packages/carthage_package.rb
license_finder-5.10.2 lib/license_finder/packages/carthage_package.rb
license_finder-5.10.1 lib/license_finder/packages/carthage_package.rb
license_finder-5.10.0 lib/license_finder/packages/carthage_package.rb
license_finder-5.9.2 lib/license_finder/packages/carthage_package.rb
license_finder-5.9.1 lib/license_finder/packages/carthage_package.rb
license_finder-5.9.0 lib/license_finder/packages/carthage_package.rb
license_finder-5.8.0 lib/license_finder/packages/carthage_package.rb
license_finder-5.7.1 lib/license_finder/packages/carthage_package.rb
license_finder-5.7.0 lib/license_finder/packages/carthage_package.rb