Sha256: 5616419e1c24b948d8de85263f5d311eaab7f85554a0ac955efe771667820cd4

Contents?: true

Size: 637 Bytes

Versions: 4

Compression:

Stored size: 637 Bytes

Contents

module LicenseFinder
  class BundlerPackage < Package
    def initialize(spec, bundler_def, options={})
      children = spec.dependencies.map(&:name)
      groups = Array(bundler_def && bundler_def.groups).map(&:to_s)

      super(
        spec.name,
        spec.version.to_s,
        options.merge(
          authors: Array(spec.authors).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
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
license_finder-2.1.0.rc4 lib/license_finder/package_managers/bundler_package.rb
license_finder-2.1.0.rc3 lib/license_finder/package_managers/bundler_package.rb
license_finder-2.1.0.rc2 lib/license_finder/package_managers/bundler_package.rb
license_finder-2.1.0.rc1 lib/license_finder/package_managers/bundler_package.rb