Skip to content

Commit

Permalink
Let ERB.version just return a version
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
k0kubun committed Jan 21, 2021
1 parent cda13b2 commit 2b4182e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/erb.rb
Expand Up @@ -258,10 +258,11 @@
#
class ERB
Revision = '$Date:: $' # :nodoc: #'
deprecate_constant :Revision

# Returns revision information for the erb.rb module.
def self.version
"erb.rb [#{VERSION} #{ERB::Revision.split[1]}]"
VERSION
end
end

Expand Down

0 comments on commit 2b4182e

Please sign in to comment.