Module: GitlabReleases
- Defined in:
- lib/gitlab_releases.rb,
lib/gitlab_releases/version.rb
Constant Summary collapse
- VERSION =
"1.0.1"
Class Method Summary collapse
- .active_version ⇒ Object
- .available_versions ⇒ Object
- .current_minor_for_date(date) ⇒ Object
- .current_version ⇒ Object
- .next_patch_release_date ⇒ Object
- .next_versions ⇒ Object
- .previous_minors(version) ⇒ Object
- .previous_version ⇒ Object
- .upcoming_releases ⇒ Object
- .version_for_date(date) ⇒ Object
Class Method Details
.active_version ⇒ Object
21 22 23 |
# File 'lib/gitlab_releases.rb', line 21 def self.active_version ReleaseVersions.active_version end |
.available_versions ⇒ Object
45 46 47 |
# File 'lib/gitlab_releases.rb', line 45 def self.available_versions ReleaseVersions.available_versions end |
.current_minor_for_date(date) ⇒ Object
37 38 39 |
# File 'lib/gitlab_releases.rb', line 37 def self.current_minor_for_date(date) ReleaseVersions.current_minor_for_date(date) end |
.current_version ⇒ Object
17 18 19 |
# File 'lib/gitlab_releases.rb', line 17 def self.current_version ReleaseVersions.current_version end |
.next_patch_release_date ⇒ Object
49 50 51 |
# File 'lib/gitlab_releases.rb', line 49 def self.next_patch_release_date PatchDateCalculator.new.execute end |
.next_versions ⇒ Object
29 30 31 |
# File 'lib/gitlab_releases.rb', line 29 def self.next_versions ReleaseVersions.next_versions end |
.previous_minors(version) ⇒ Object
41 42 43 |
# File 'lib/gitlab_releases.rb', line 41 def self.previous_minors(version) ReleaseVersions.previous_minors(version) end |
.previous_version ⇒ Object
33 34 35 |
# File 'lib/gitlab_releases.rb', line 33 def self.previous_version ReleaseVersions.previous_version end |
.upcoming_releases ⇒ Object
10 11 12 13 14 15 |
# File 'lib/gitlab_releases.rb', line 10 def self.upcoming_releases ReleaseCalculator.new( current_version: current_version, release_date: release_date ).execute end |
.version_for_date(date) ⇒ Object
25 26 27 |
# File 'lib/gitlab_releases.rb', line 25 def self.version_for_date(date) ReleaseVersions.version_for_date(date) end |