Sha256: 39d00bf78dbef866a2703ac9dc0da7166d90a3dfd006cfbee570cb64b69121d6

Contents?: true

Size: 686 Bytes

Versions: 12

Compression:

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

12 entries across 12 versions & 1 rubygems

Version Path
license_finder-3.0.4 lib/license_finder/package_managers/bundler_package.rb
license_finder-3.0.2 lib/license_finder/package_managers/bundler_package.rb
license_finder-3.0.1 lib/license_finder/package_managers/bundler_package.rb
license_finder-3.0.0 lib/license_finder/package_managers/bundler_package.rb
license_finder-2.1.2 lib/license_finder/package_managers/bundler_package.rb
license_finder-2.1.1 lib/license_finder/package_managers/bundler_package.rb
license_finder-2.1.0 lib/license_finder/package_managers/bundler_package.rb
license_finder-2.1.0.rc9 lib/license_finder/package_managers/bundler_package.rb
license_finder-2.1.0.rc8 lib/license_finder/package_managers/bundler_package.rb
license_finder-2.1.0.rc7 lib/license_finder/package_managers/bundler_package.rb
license_finder-2.1.0.rc6 lib/license_finder/package_managers/bundler_package.rb
license_finder-2.1.0.rc5 lib/license_finder/package_managers/bundler_package.rb