mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 01:07:30 +08:00
This reverts commit 8e10878e1a37a608b0e1705bf9d0a06a295b8a63. Something is broken on a friday so reverting first before I pick this up again next Monday.
This commit is contained in:

committed by
GitHub

parent
8b963986b3
commit
92d7d24d0f
@ -3,6 +3,7 @@
|
||||
module Discourse
|
||||
VERSION_REGEXP ||= /\A\d+\.\d+\.\d+(\.beta\d+)?\z/
|
||||
VERSION_COMPATIBILITY_FILENAME ||= ".discourse-compatibility"
|
||||
|
||||
# work around reloader
|
||||
unless defined?(::Discourse::VERSION)
|
||||
module VERSION #:nodoc:
|
||||
@ -15,8 +16,8 @@ module Discourse
|
||||
MAJOR = PARTS[0].to_i
|
||||
MINOR = PARTS[1].to_i
|
||||
TINY = PARTS[2].to_i
|
||||
PRE = PARTS[3]&.split("-", 2)&.[](0)
|
||||
DEV = PARTS[3]&.split("-", 2)&.[](1)
|
||||
PRE = PARTS[3]&.split("-", 2)&.first
|
||||
DEV = PARTS[3]&.split("-", 2)&.second
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user