Module: GitlabReleases

Defined in:
lib/gitlab_releases.rb,
lib/gitlab_releases/version.rb

Constant Summary collapse

VERSION =
"1.0.1"

Class Method Summary collapse

Class Method Details

.active_versionObject



21
22
23
# File 'lib/gitlab_releases.rb', line 21

def self.active_version
  ReleaseVersions.active_version
end

.available_versionsObject



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_versionObject



17
18
19
# File 'lib/gitlab_releases.rb', line 17

def self.current_version
  ReleaseVersions.current_version
end

.next_patch_release_dateObject



49
50
51
# File 'lib/gitlab_releases.rb', line 49

def self.next_patch_release_date
  PatchDateCalculator.new.execute
end

.next_versionsObject



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_versionObject



33
34
35
# File 'lib/gitlab_releases.rb', line 33

def self.previous_version
  ReleaseVersions.previous_version
end

.upcoming_releasesObject



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