[ruby/uri] Use generic version number to VERSION and generate VERSION_CODE from that

https://github.com/ruby/uri/commit/1fc4f0496a
This commit is contained in:
Hiroshi SHIBATA 2025-10-31 10:27:22 +09:00 committed by git
parent 2486e771b6
commit 240962dffa

View File

@ -1,6 +1,6 @@
module URI
# :stopdoc:
VERSION_CODE = '010004'.freeze
VERSION = VERSION_CODE.scan(/../).collect{|n| n.to_i}.join('.').freeze
VERSION = '1.0.4'.freeze
VERSION_CODE = VERSION.split('.').map{|s| s.rjust(2, '0')}.join.freeze
# :startdoc:
end