]> cat aescling's git repositories - mastodon.git/commitdiff
Remove pre from version, add extra suffix variable (#11407)
authorClar Fon <them@lightdark.xyz>
Fri, 26 Jul 2019 05:57:27 +0000 (01:57 -0400)
committerEugen Rochko <eugen@zeonfederated.com>
Fri, 26 Jul 2019 05:57:27 +0000 (07:57 +0200)
lib/mastodon/version.rb

index 47eac2432b0278119411d2c21c945f9e8303efbe..3db57ceaa5d136e132651b1c9b5c478992f289b9 100644 (file)
@@ -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