diff options
author | Clar Fon <them@lightdark.xyz> | 2019-07-26 01:57:27 -0400 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2019-08-09 21:34:24 +0200 |
commit | 91fb945b0ee0b41bbd844531f6058ef38845d85e (patch) | |
tree | 0856f802a5c3b241e8c1e3aeae212956d080a689 | |
parent | ed27803822d1e63650d168ff111de15b41799b02 (diff) |
Remove pre from version, add extra suffix variable (#11407)
-rw-r--r-- | lib/mastodon/version.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/mastodon/version.rb b/lib/mastodon/version.rb index 47eac2432b0..3db57ceaa5d 100644 --- a/lib/mastodon/version.rb +++ b/lib/mastodon/version.rb @@ -16,20 +16,20 @@ module Mastodon 2 end - def pre - nil + def flags + '' end - def flags + def suffix '' end def to_a - [major, minor, patch, pre].compact + [major, minor, patch].compact end def to_s - [to_a.join('.'), flags].join + [to_a.join('.'), flags, suffix].join end def repository |