Sha256: 3feb3576ffb9db70ab2b90540da93855822186478439d06974a4e2a7208d1c11

Contents?: true

Size: 600 Bytes

Versions: 5

Compression:

Stored size: 600 Bytes

Contents

module LicenseFinder
  class BundlerPackage < Package
    extend Forwardable
    def_delegators :gem_def, :summary, :description, :name, :homepage

    attr_reader :gem_def
    attr_accessor :children

    def initialize(gem_def, bundler_def)
      @gem_def = gem_def
      @bundler_def = bundler_def
      @children = []
    end

    def groups
      Array(@bundler_def && @bundler_def.groups)
    end

    def version
      gem_def.version.to_s
    end

    private

    def install_path
      gem_def.full_gem_path
    end

    def license_names_from_spec
      gem_def.licenses
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
license_finder-1.1.1-java lib/license_finder/package_managers/bundler_package.rb
license_finder-1.1.1 lib/license_finder/package_managers/bundler_package.rb
license_finder-1.1.0 lib/license_finder/package_managers/bundler_package.rb
license_finder-1.0.1 lib/license_finder/package_managers/bundler_package.rb
license_finder-1.0.0.1 lib/license_finder/package_managers/bundler_package.rb