diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mastodon/version.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/mastodon/version.rb b/lib/mastodon/version.rb index 1d6304864..9a7d49674 100644 --- a/lib/mastodon/version.rb +++ b/lib/mastodon/version.rb @@ -9,11 +9,11 @@ module Mastodon end def minor - 3 + 4 end def patch - 3 + 0 end def pre @@ -48,5 +48,9 @@ module Mastodon source_base_url end end + + def user_agent + @user_agent ||= "#{HTTP::Request::USER_AGENT} (Mastodon/#{Version}; +http#{Rails.configuration.x.use_https ? 's' : ''}://#{Rails.configuration.x.web_domain}/)" + end end end |