Class: Dependabot::Uv::FileUpdater::VersionConfigParser
- Inherits:
-
Object
- Object
- Dependabot::Uv::FileUpdater::VersionConfigParser
- Extended by:
- T::Sig
- Defined in:
- lib/dependabot/uv/file_updater/version_config_parser.rb
Defined Under Namespace
Classes: VersionConfig
Instance Method Summary collapse
-
#initialize(pyproject_content:, base_path: ".", repo_root: ".") ⇒ VersionConfigParser
constructor
A new instance of VersionConfigParser.
- #parse ⇒ Object
Constructor Details
#initialize(pyproject_content:, base_path: ".", repo_root: ".") ⇒ VersionConfigParser
Returns a new instance of VersionConfigParser.
31 32 33 34 35 36 |
# File 'lib/dependabot/uv/file_updater/version_config_parser.rb', line 31 def initialize(pyproject_content:, base_path: ".", repo_root: ".") @pyproject_content = pyproject_content @base_path = base_path @repo_root = repo_root @parsed_pyproject = T.let(nil, T.nilable(T::Hash[String, T.untyped])) end |
Instance Method Details
#parse ⇒ Object
39 40 41 42 43 44 45 46 |
# File 'lib/dependabot/uv/file_updater/version_config_parser.rb', line 39 def parse VersionConfig.new( write_paths: collect_write_paths, source_paths: collect_source_paths, fallback_version: extract_fallback_version, package_name: extract_package_name ) end |