Skip to content

Commit 2b4182e

Browse files
committed
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`.
1 parent cda13b2 commit 2b4182e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/erb.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,10 +258,11 @@
258258
#
259259
class ERB
260260
Revision = '$Date:: $' # :nodoc: #'
261+
deprecate_constant :Revision
261262

262263
# Returns revision information for the erb.rb module.
263264
def self.version
264-
"erb.rb [#{VERSION} #{ERB::Revision.split[1]}]"
265+
VERSION
265266
end
266267
end
267268

0 commit comments

Comments
 (0)