Sha256: cedf8309f0eec071c728f1a9347169ed6971b4666584297d3c1f5a61a9d7c2ec
Contents?: true
Size: 658 Bytes
Versions: 1
Compression:
Stored size: 658 Bytes
Contents
# frozen_string_literal: true module Bundler module Dependencies class Scanner attr_reader :graph def initialize(path = Bundler.default_lockfile) @lockfile = LockfileParser.new(Bundler.read_file(path)) @graph = Graph.new(lockfile: lockfile) end def gem_count gems.count end def spec_count specs.count end def to_s "#{gem_count} gems scanned; #{spec_count} dependencies found" end private attr_reader :lockfile def gems lockfile.dependencies.keys end def specs lockfile.specs end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bundler-dependencies-1.0.0 | lib/bundler/dependencies/scanner.rb |