Class: CreateGithubRelease::CommandLine::Validations::ValidateNextReleaseVersion Private
- Inherits:
-
Base
- Object
- Base
- CreateGithubRelease::CommandLine::Validations::ValidateNextReleaseVersion
- Defined in:
- lib/create_github_release/command_line/validations.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Validate that the next release version (if given) is a valid gem version
Instance Method Summary collapse
-
#error ⇒ String+
private
Called when valid? is
false
to return the error messages. -
#valid? ⇒ Boolean
private
Returns
true
if the#next_release_version
is nil or is a valid gem version.
Methods inherited from Base
Constructor Details
This class inherits a constructor from CreateGithubRelease::CommandLine::Validations::Base
Instance Method Details
#error ⇒ String+
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Called when valid? is false
to return the error messages
266 |
# File 'lib/create_github_release/command_line/validations.rb', line 266 def error = "--next-release-version='#{.next_release_version}' is not valid" |
#valid? ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns true
if the #next_release_version
is nil or is a valid gem version
261 |
# File 'lib/create_github_release/command_line/validations.rb', line 261 def valid? = .next_release_version.nil? || valid_gem_version?(.next_release_version) |