Class: LicenseFinder::PNPMPackage

Inherits:
Package
  • Object
show all
Defined in:
lib/license_finder/packages/pnpm_package.rb

Instance Attribute Summary

Attributes inherited from Package

#authors, #children, #description, #groups, #homepage, #install_path, #license_names_from_spec, #logger, #manual_approval, #name, #parents, #summary, #version

Instance Method Summary collapse

Methods inherited from Package

#<=>, #activations, #approved?, #approved_manually!, #approved_manually?, #decide_on_license, #eql?, #hash, #initialize, #license_files, license_names_from_standard_spec, #licenses, #licenses_from_spec, #licensing, #log_activation, #missing?, #notice_files, #permitted!, #permitted?, #restricted!, #restricted?

Constructor Details

This class inherits a constructor from LicenseFinder::Package

Instance Method Details

#package_managerObject



5
6
7
# File 'lib/license_finder/packages/pnpm_package.rb', line 5

def package_manager
  'PNPM'
end

#package_urlObject



9
10
11
# File 'lib/license_finder/packages/pnpm_package.rb', line 9

def package_url
  "https://www.npmjs.com/package/#{CGI.escape(name)}/v/#{CGI.escape(version)}"
end