Class: Dependabot::Python::UpdateChecker::LatestVersionFinder
- Inherits:
- 
      Object
      
        - Object
- Dependabot::Python::UpdateChecker::LatestVersionFinder
 
- Defined in:
- lib/dependabot/python/update_checker/latest_version_finder.rb
Constant Summary collapse
- PYTHON_REQUIREMENT_REGEX =
- /data-requires-python\s*=\s*["'](?<requirement>[^"']+)["']/m.freeze 
Instance Method Summary collapse
- 
  
    
      #initialize(dependency:, dependency_files:, credentials:, ignored_versions:, security_advisories:)  ⇒ LatestVersionFinder 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of LatestVersionFinder. 
- #latest_version(python_version: nil) ⇒ Object
- #latest_version_with_no_unlock(python_version: nil) ⇒ Object
- #lowest_security_fix_version(python_version: nil) ⇒ Object
Constructor Details
#initialize(dependency:, dependency_files:, credentials:, ignored_versions:, security_advisories:) ⇒ LatestVersionFinder
Returns a new instance of LatestVersionFinder.
| 19 20 21 22 23 24 25 26 | # File 'lib/dependabot/python/update_checker/latest_version_finder.rb', line 19 def initialize(dependency:, dependency_files:, credentials:, ignored_versions:, security_advisories:) @dependency = dependency @dependency_files = dependency_files @credentials = credentials @ignored_versions = ignored_versions @security_advisories = security_advisories end | 
Instance Method Details
#latest_version(python_version: nil) ⇒ Object
| 28 29 30 31 | # File 'lib/dependabot/python/update_checker/latest_version_finder.rb', line 28 def latest_version(python_version: nil) @latest_version ||= fetch_latest_version(python_version: python_version) end | 
#latest_version_with_no_unlock(python_version: nil) ⇒ Object
| 33 34 35 36 | # File 'lib/dependabot/python/update_checker/latest_version_finder.rb', line 33 def latest_version_with_no_unlock(python_version: nil) @latest_version_with_no_unlock ||= fetch_latest_version_with_no_unlock(python_version: python_version) end | 
#lowest_security_fix_version(python_version: nil) ⇒ Object
| 38 39 40 41 | # File 'lib/dependabot/python/update_checker/latest_version_finder.rb', line 38 def lowest_security_fix_version(python_version: nil) @lowest_security_fix_version ||= fetch_lowest_security_fix_version(python_version: python_version) end |