Method: Pod::Version#prerelease?
- Defined in:
- lib/cocoapods-core/version.rb
permalink #prerelease? ⇒ Boolean
Note:
Prerelease Pods can contain a hyphen and/or a letter (conforms to Semantic Versioning instead of RubyGems).
For more info, see: semver.org
Returns indicates whether or not the version is a prerelease.
70 71 72 73 74 |
# File 'lib/cocoapods-core/version.rb', line 70 def prerelease? return @prerelease if defined?(@prerelease) comparable_version = @version.sub(/#{METADATA_PATTERN}$/, '') @prerelease = comparable_version =~ /[a-zA-Z\-]/ end |