Sha256: 36f471892194d9a20d5c31b738c98d5ff7ab6df516dba2029fa7494878a62e7b

Contents?: true

Size: 360 Bytes

Versions: 14

Compression:

Stored size: 360 Bytes

Contents

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

    def licenses_from_spec
      [@license].compact
    end

    def package_manager
      'Conan'
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

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