Class: Dependabot::Bundler::FileParser
- Inherits:
-
FileParsers::Base
- Object
- FileParsers::Base
- Dependabot::Bundler::FileParser
show all
- Extended by:
- T::Sig
- Defined in:
- lib/dependabot/bundler/file_parser.rb,
lib/dependabot/bundler/file_parser/file_preparer.rb,
lib/dependabot/bundler/file_parser/gemfile_declaration_finder.rb,
lib/dependabot/bundler/file_parser/gemspec_declaration_finder.rb
Defined Under Namespace
Classes: FilePreparer, GemfileDeclarationFinder, GemspecDeclarationFinder
Instance Method Summary
collapse
Instance Method Details
#ecosystem ⇒ Object
38
39
40
41
42
43
44
45
46
47
|
# File 'lib/dependabot/bundler/file_parser.rb', line 38
def ecosystem
@ecosystem ||= T.let(
Ecosystem.new(
name: ECOSYSTEM,
package_manager: package_manager,
language: language
),
T.nilable(Ecosystem)
)
end
|
#parse ⇒ Object
28
29
30
31
32
33
34
35
|
# File 'lib/dependabot/bundler/file_parser.rb', line 28
def parse
dependency_set = DependencySet.new
dependency_set += gemfile_dependencies
dependency_set += gemspec_dependencies
dependency_set += lockfile_dependencies
check_external_code(dependency_set.dependencies)
dependency_set.dependencies
end
|