Class: Fastlane::Wpmreleasetoolkit::Versioning::SemanticVersionCalculator

Inherits:
AbstractVersionCalculator show all
Defined in:
lib/fastlane/plugin/wpmreleasetoolkit/versioning/calculators/semantic_version_calculator.rb

Overview

The ‘SemanticVersionCalculator` class is a specialized version calculator for semantic versions of an app, extending the `AbstractVersionCalculator` class.

Instance Method Summary collapse

Methods inherited from AbstractVersionCalculator

#next_build_number, #next_major_version, #next_minor_version, #next_patch_version, #previous_patch_version, #release_is_hotfix?

Instance Method Details

#next_release_version(version:) ⇒ AppVersion

Calculate the next semantic release version.

Parameters:

  • version (AppVersion)

    The version to calculate the next semantic release version from.

Returns:

  • (AppVersion)

    The next semantic release version.



15
16
17
# File 'lib/fastlane/plugin/wpmreleasetoolkit/versioning/calculators/semantic_version_calculator.rb', line 15

def next_release_version(version:)
  next_minor_version(version: version)
end