about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorClar Fon <them@lightdark.xyz>2019-07-26 01:57:27 -0400
committerEugen Rochko <eugen@zeonfederated.com>2019-07-26 07:57:27 +0200
commita6b44401156524ef70a5917d17c93886c5e20a0d (patch)
treeaf20c79c08f6dedaab1c0eca7ee4d100fff6cef1 /lib
parentd0c25584b881131986f5bb9b16c37879cddbd6c3 (diff)
Remove pre from version, add extra suffix variable (#11407)
Diffstat (limited to 'lib')
-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 47eac2432..3db57ceaa 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