about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorStarfall <us@starfall.systems>2020-07-01 16:25:03 -0500
committerStarfall <us@starfall.systems>2020-07-03 19:54:39 -0500
commitde293f77a8c9921baa7de09549741a71399df965 (patch)
treebcbff42f74559f057c75e2000389d04c6d725a38 /lib
parent9b8ab85007cc9b527ba8c59a3624731cd8e46ffe (diff)
Add commit hash to displayed version number
Also includes a few tweaks to the README
Diffstat (limited to 'lib')
-rw-r--r--lib/mastodon/version.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/mastodon/version.rb b/lib/mastodon/version.rb
index fa85f8e37..e745ed2d4 100644
--- a/lib/mastodon/version.rb
+++ b/lib/mastodon/version.rb
@@ -21,7 +21,11 @@ module Mastodon
     end
 
     def suffix
-      '+glitch'
+      if source_tag
+        "+cafe.#{source_tag}"
+      else
+        "+cafe"
+      end
     end
 
     def to_a
@@ -33,7 +37,7 @@ module Mastodon
     end
 
     def repository
-      ENV.fetch('GITHUB_REPOSITORY') { 'glitch-soc/mastodon' }
+      ENV.fetch('GITHUB_REPOSITORY') { 'pluralcafe/mastodon' }
     end
 
     def source_base_url