Sha256: 73b6bcae9081ee0e194ed25e54149fe603e1e10e6ee2616e45338861f55b8866

Contents?: true

Size: 443 Bytes

Versions: 2

Compression:

Stored size: 443 Bytes

Contents

# frozen_string_literal: true

module CobraCommander
  module Dependencies
    # Calculates ruby bundler dependencies
    class Bundler::Package
      attr_reader :path, :name, :dependencies

      def initialize(spec = nil, path: spec&.loaded_from, name: spec&.name, dependencies: spec&.dependencies)
        @spec = spec
        @path = path
        @name = name
        @dependencies = dependencies&.map(&:name)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cobra_commander-0.15.1 lib/cobra_commander/dependencies/bundler/package.rb
cobra_commander-0.15.0 lib/cobra_commander/dependencies/bundler/package.rb