summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClar Fon <them@lightdark.xyz>2019-07-26 01:57:27 -0400
committerEugen Rochko <eugen@zeonfederated.com>2019-08-09 21:34:24 +0200
commit91fb945b0ee0b41bbd844531f6058ef38845d85e (patch)
tree0856f802a5c3b241e8c1e3aeae212956d080a689
parented27803822d1e63650d168ff111de15b41799b02 (diff)
Remove pre from version, add extra suffix variable (#11407)
-rw-r--r--lib/mastodon/version.rb10
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