提交 c07e1515 编写于 作者: C Charlie Somerville

Add version method to top level modules

上级 70d0537d
module ActionMailer
module VERSION #:nodoc:
MAJOR = 4
MINOR = 0
TINY = 0
PRE = "beta1"
# Returns the version of the currently loaded ActionMailer as a Gem::Version
def self.version
Gem::Version.new "4.0.0.beta1"
end
STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
module VERSION #:nodoc:
MAJOR, MINOR, TINY, PRE = ActionMailer.version.segments
STRING = ActionMailer.version.to_s
end
end
module ActionPack
module VERSION #:nodoc:
MAJOR = 4
MINOR = 0
TINY = 0
PRE = "beta1"
# Returns the version of the currently loaded ActionPack as a Gem::Version
def self.version
Gem::Version.new "4.0.0.beta1"
end
STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
module VERSION #:nodoc:
MAJOR, MINOR, TINY, PRE = ActionPack.version.segments
STRING = ActionPack.version.to_s
end
end
module ActiveModel
module VERSION #:nodoc:
MAJOR = 4
MINOR = 0
TINY = 0
PRE = "beta1"
# Returns the version of the currently loaded ActiveModel as a Gem::Version
def self.version
Gem::Version.new "4.0.0.beta1"
end
STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
module VERSION #:nodoc:
MAJOR, MINOR, TINY, PRE = ActiveModel.version.segments
STRING = ActiveModel.version.to_s
end
end
module ActiveRecord
module VERSION #:nodoc:
MAJOR = 4
MINOR = 0
TINY = 0
PRE = "beta1"
# Returns the version of the currently loaded ActiveRecord as a Gem::Version
def self.version
Gem::Version.new "4.0.0.beta1"
end
STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
module VERSION #:nodoc:
MAJOR, MINOR, TINY, PRE = ActiveRecord.version.segments
STRING = ActiveRecord.version.to_s
end
end
module ActiveSupport
module VERSION #:nodoc:
MAJOR = 4
MINOR = 0
TINY = 0
PRE = "beta1"
# Returns the version of the currently loaded ActiveSupport as a Gem::Version
def self.version
Gem::Version.new "4.0.0.beta1"
end
STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
module VERSION #:nodoc:
MAJOR, MINOR, TINY, PRE = ActiveSupport.version.segments
STRING = ActiveSupport.version.to_s
end
end
module Rails
module VERSION #:nodoc:
MAJOR = 4
MINOR = 0
TINY = 0
PRE = "beta1"
# Returns the version of the currently loaded Rails as a Gem::Version
def self.version
Gem::Version.new "4.0.0.beta1"
end
STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
module VERSION #:nodoc:
MAJOR, MINOR, TINY, PRE = Rails.version.segments
STRING = Rails.version.to_s
end
end
module Rails
module VERSION #:nodoc:
MAJOR = 4
MINOR = 0
TINY = 0
PRE = "beta1"
def self.version
Gem::Version.new "4.0.0.beta1"
end
STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
module VERSION #:nodoc:
MAJOR, MINOR, TINY, PRE = Rails.version.segments
STRING = Rails.version.to_s
end
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册