Sha256: 934448834040cbff3b9c98c2057c0adaeadc4656c5ff1ef01f74bc95376f5d5c

Contents?: true

Size: 1.24 KB

Versions: 4

Compression:

Stored size: 1.24 KB

Contents

# frozen_string_literal: true

require_relative 'gitlab_releases/version'
require_relative 'gitlab_releases/release_version'
require_relative 'gitlab_releases/release_versions'
require_relative 'gitlab_releases/release_calculator'
require_relative 'gitlab_releases/patch_date_calculator'

module GitlabReleases
  def self.upcoming_releases
    ReleaseCalculator.new(
      current_version: current_version,
      release_date: release_date
    ).execute
  end

  def self.current_version
    ReleaseVersions.current_version
  end

  def self.active_version
    ReleaseVersions.active_version
  end

  def self.version_for_date(date)
    ReleaseVersions.version_for_date(date)
  end

  def self.next_versions
    ReleaseVersions.next_versions
  end

  def self.previous_version
    ReleaseVersions.previous_version
  end

  def self.current_minor_for_date(date)
    ReleaseVersions.current_minor_for_date(date)
  end

  def self.previous_minors(version)
    ReleaseVersions.previous_minors(version)
  end

  def self.available_versions
    ReleaseVersions.available_versions
  end

  def self.next_patch_release_date
    PatchDateCalculator.new.execute
  end

  def self.release_date
    ReleaseVersions.previous_release_date
  end

  private_class_method :release_date
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
gitlab-releases-1.0.1 lib/gitlab_releases.rb
gitlab-releases-1.0.0 lib/gitlab_releases.rb
gitlab-releases-0.2.9 lib/gitlab_releases.rb
gitlab-releases-0.2.7 lib/gitlab_releases.rb