update version to include revision & channel
This commit is contained in:
+1
-1
@@ -42,7 +42,7 @@ module Postal
|
||||
#request.add_field 'X-Postal-Signature', signature
|
||||
end
|
||||
|
||||
request['User-Agent'] = options[:user_agent] || "Postal/#{Postal::VERSION}"
|
||||
request['User-Agent'] = options[:user_agent] || "Postal/#{Postal.version}"
|
||||
|
||||
connection = Net::HTTP.new(uri.host, uri.port)
|
||||
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
module Postal
|
||||
|
||||
VERSION = '1.0.0'
|
||||
REVISION = nil
|
||||
CHANNEL = 'dev'
|
||||
|
||||
def self.version
|
||||
[VERSION, REVISION, CHANNEL].compact.join('-')
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user