Class: Dependabot::Pub::FileParser

Inherits:
FileParsers::Base
  • Object
show all
Extended by:
T::Sig
Includes:
Helpers
Defined in:
lib/dependabot/pub/file_parser.rb

Instance Attribute Summary

Attributes included from Helpers

#credentials, #dependency_files, #options

Instance Method Summary collapse

Methods included from Helpers

pub_helpers_path, run_infer_sdk_versions

Instance Method Details

#parseObject



20
21
22
23
24
25
26
# File 'lib/dependabot/pub/file_parser.rb', line 20

def parse
  dependency_set = DependencySet.new
  list.map do |d|
    dependency_set << parse_listed_dependency(d)
  end
  dependency_set.dependencies.sort_by(&:name)
end