Skip to content

Commit 1fc4f04

Browse files
committed
Use generic version number to VERSION and generate VERSION_CODE from that
1 parent e830680 commit 1fc4f04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/uri/version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module URI
22
# :stopdoc:
3-
VERSION_CODE = '010004'.freeze
4-
VERSION = VERSION_CODE.scan(/../).collect{|n| n.to_i}.join('.').freeze
3+
VERSION = '1.0.4'.freeze
4+
VERSION_CODE = VERSION.split('.').map{|s| s.rjust(2, '0')}.join.freeze
55
# :startdoc:
66
end

0 commit comments

Comments
 (0)