[ruby/erb] Publish constant ERB::VERSION

Even cgi.gem publicly defines CGI::VERSION today. It's just weird that
ERB::VERSION is kept private at this point.

https://github.com/ruby/erb/commit/46801cbd47
This commit is contained in:
Takashi Kokubun 2025-05-13 11:05:33 -07:00 committed by git
parent 4a9d46ce07
commit 8982bbcbee
2 changed files with 1 additions and 2 deletions

View File

@ -7,7 +7,7 @@ end
Gem::Specification.new do |spec|
spec.name = 'erb'
spec.version = ERB.const_get(:VERSION, false)
spec.version = ERB::VERSION
spec.authors = ['Masatoshi SEKI', 'Takashi Kokubun']
spec.email = ['seki@ruby-lang.org', 'k0kubun@ruby-lang.org']

View File

@ -1,5 +1,4 @@
# frozen_string_literal: true
class ERB
VERSION = '4.0.4'
private_constant :VERSION
end