Sha256: de1c9d6af873493cc8233c225b91c0fa3c78d5046bd19255c554a731972be37c

Contents?: true

Size: 688 Bytes

Versions: 14

Compression:

Stored size: 688 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

    def package_manager
      'Bundler'
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

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