Method: LicenseFinder::BundlerPackage#initialize
- Defined in:
- lib/license_finder/packages/bundler_package.rb
#initialize(spec, bundler_def, options = {}) ⇒ BundlerPackage
Returns a new instance of BundlerPackage.
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/license_finder/packages/bundler_package.rb', line 5 def initialize(spec, bundler_def, = {}) children = spec.dependencies.map(&:name) groups = Array(bundler_def && bundler_def.groups).map(&:to_s) super( spec.name, spec.version.to_s, .merge( authors: Array(spec.).join(', '), summary: spec.summary, description: spec.description, homepage: spec.homepage, children: children, groups: groups, spec_licenses: spec.licenses, install_path: spec.full_gem_path ) ) end |