Sha256: 011f66f20baadd6500aaf25915dac43c8c8cd729a2d9a8d8865e19ba0b138447
Contents?: true
Size: 594 Bytes
Versions: 2
Compression:
Stored size: 594 Bytes
Contents
module LicenseFinder class MavenPackage < Package attr_reader :mvn_dependency def initialize(mvn_dependency, options={}) super options @mvn_dependency = mvn_dependency end def name mvn_dependency["artifactId"] end def version mvn_dependency["version"] end def description "" end def summary "" end def homepage "" end def groups [] end def children [] end def license_names_from_spec mvn_dependency["licenses"].map { |l| l["name"] } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
license_finder-1.2 | lib/license_finder/package_managers/maven_package.rb |
license_finder-1.2-java | lib/license_finder/package_managers/maven_package.rb |