aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorGeorge Claghorn <george@basecamp.com>2018-12-04 13:04:56 -0500
committerGeorge Claghorn <george@basecamp.com>2018-12-04 13:05:15 -0500
commit70c87ea7709ad550c1feaaf7d3831e85d52c032f (patch)
tree91d46a98f6347068bb1c9c9488fe300f26431982 /lib
parentb404d4e0b4601e4f084fde878ec0c285615fb039 (diff)
downloadrails-70c87ea7709ad550c1feaaf7d3831e85d52c032f.tar.gz
rails-70c87ea7709ad550c1feaaf7d3831e85d52c032f.tar.bz2
rails-70c87ea7709ad550c1feaaf7d3831e85d52c032f.zip
Include the gem version in the user agent string
Diffstat (limited to 'lib')
-rw-r--r--lib/action_mailbox/postfix_relayer.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/action_mailbox/postfix_relayer.rb b/lib/action_mailbox/postfix_relayer.rb
index 5a0eb7dca3..eae6184fbb 100644
--- a/lib/action_mailbox/postfix_relayer.rb
+++ b/lib/action_mailbox/postfix_relayer.rb
@@ -1,5 +1,6 @@
# frozen_string_literal: true
+require "action_mailbox/version"
require "net/http"
require "uri"
@@ -16,7 +17,7 @@ module ActionMailbox
end
CONTENT_TYPE = "message/rfc822"
- USER_AGENT = "Action Mailbox Postfix relayer"
+ USER_AGENT = "Action Mailbox Postfix relayer v#{ActionMailbox::VERSION}"
attr_reader :uri, :username, :password