[ruby/erb] Let ERB.version just return a version
and deprecate ERB::Revision. `'$Date:: $'` has not been working since Git migration from SVN. I'm sorry. Because it has been already broken, I'd like to take this opportunity to make `ERB.version` compatible with `Gem::Version.new`. https://github.com/ruby/erb/commit/2b4182eb10
This commit is contained in:
parent
f766ba54a9
commit
b12bd451af
@ -258,10 +258,11 @@ require 'erb/version'
|
|||||||
#
|
#
|
||||||
class ERB
|
class ERB
|
||||||
Revision = '$Date:: $' # :nodoc: #'
|
Revision = '$Date:: $' # :nodoc: #'
|
||||||
|
deprecate_constant :Revision
|
||||||
|
|
||||||
# Returns revision information for the erb.rb module.
|
# Returns revision information for the erb.rb module.
|
||||||
def self.version
|
def self.version
|
||||||
"erb.rb [#{VERSION} #{ERB::Revision.split[1]}]"
|
VERSION
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user