Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 43 lines (36 sloc) 0.887 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
# encoding: utf-8

module Backup
  class Version

    ##
    # Change the MAJOR, MINOR and PATCH constants below
    # to adjust the version of the Backup gem
    #
    # MAJOR:
    # Defines the major version
    # MINOR:
    # Defines the minor version
    # PATCH:
    # Defines the patch version
    MAJOR, MINOR, PATCH = 3, 0, 13

    ##
    # Returns the major version ( big release based off of multiple minor releases )
    def self.major
      MAJOR
    end

    ##
    # Returns the minor version ( small release based off of multiple patches )
    def self.minor
      MINOR
    end

    ##
    # Returns the patch version ( updates, features and (crucial) bug fixes )
    def self.patch
      PATCH
    end

    ##
    # Returns the current version of the Backup gem ( qualified for the gemspec )
    def self.current
      "#{major}.#{minor}.#{patch}"
    end

  end
end
Something went wrong with that request. Please try again.