Module: Hanami::Version Private
- Defined in:
- lib/hanami/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.
Hanami version
Constant Summary collapse
- VERSION =
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.
'1.1.1'.freeze
Class Method Summary collapse
- .gem_requirement ⇒ Object private
- .major_minor ⇒ Object private
- .prerelease? ⇒ Boolean private
- .version ⇒ Object private
Class Method Details
.gem_requirement ⇒ 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.
19 20 21 22 23 24 25 |
# File 'lib/hanami/version.rb', line 19 def self.gem_requirement if prerelease? version else "~> #{major_minor}" end end |
.major_minor ⇒ 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.
35 36 37 |
# File 'lib/hanami/version.rb', line 35 def self.major_minor version.scan(/\A\d{1,2}\.\d{1,2}/).first end |
.prerelease? ⇒ 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.
29 30 31 |
# File 'lib/hanami/version.rb', line 29 def self.prerelease? version =~ /alpha|beta|rc/ end |
.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.
13 14 15 |
# File 'lib/hanami/version.rb', line 13 def self.version VERSION end |