Class: Dependabot::Julia::FileParser
- Inherits:
-
FileParsers::Base
- Object
- FileParsers::Base
- Dependabot::Julia::FileParser
- Extended by:
- T::Sig
- Defined in:
- lib/dependabot/julia/file_parser.rb
Instance Method Summary collapse
- #ecosystem ⇒ Object
-
#initialize(dependency_files:, source:, repo_contents_path: nil, credentials: [], reject_external_code: false, options: {}) ⇒ FileParser
constructor
A new instance of FileParser.
- #parse ⇒ Object
Constructor Details
#initialize(dependency_files:, source:, repo_contents_path: nil, credentials: [], reject_external_code: false, options: {}) ⇒ FileParser
Returns a new instance of FileParser.
31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/dependabot/julia/file_parser.rb', line 31 def initialize( dependency_files:, source:, repo_contents_path: nil, credentials: [], reject_external_code: false, options: {} ) super @registry_client = T.let(nil, T.nilable(Dependabot::Julia::RegistryClient)) @custom_registries = T.let(nil, T.nilable(T::Array[T::Hash[Symbol, T.untyped]])) end |
Instance Method Details
#ecosystem ⇒ Object
53 54 55 56 57 58 59 60 61 62 |
# File 'lib/dependabot/julia/file_parser.rb', line 53 def ecosystem @ecosystem ||= T.let( Ecosystem.new( name: PackageManager::ECOSYSTEM, package_manager: package_manager, language: language ), T.nilable(Ecosystem) ) end |
#parse ⇒ Object
45 46 47 48 49 50 |
# File 'lib/dependabot/julia/file_parser.rb', line 45 def parse dependency_set = T.let([], T::Array[Dependabot::Dependency]) dependency_set += project_file_dependencies dependency_set.uniq end |