Module: Cuprum::Version Private
- Defined in:
- lib/cuprum/version.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
The current version of the gem.
Constant Summary collapse
- MAJOR =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Major version.
1
- MINOR =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Minor version.
2
- PATCH =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Patch version.
0
- PRERELEASE =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Prerelease version.
nil
- BUILD =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Build metadata.
nil
Class Method Summary collapse
-
.to_gem_version ⇒ Object
private
Generates the gem version string from the Version constants.
Class Method Details
.to_gem_version ⇒ Object
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.
Generates the gem version string from the Version constants.
Inlined here because dependencies may not be loaded when processing a gemspec, which results in the user being unable to install the gem for the first time.
29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/cuprum/version.rb', line 29 def to_gem_version str = "#{MAJOR}.#{MINOR}.#{PATCH}" prerelease = value_of(:PRERELEASE) str = "#{str}.#{prerelease}" if prerelease build = value_of(:BUILD) str = "#{str}.#{build}" if build str end |