lib/keen/client.rb in keen-0.9.6 vs lib/keen/client.rb in keen-0.9.7
- old
+ new
@@ -2,10 +2,11 @@
require 'keen/version'
require 'keen/client/publishing_methods'
require 'keen/client/querying_methods'
require 'keen/client/maintenance_methods'
require 'keen/client/saved_queries'
+require 'keen/version'
require 'openssl'
require 'multi_json'
require 'base64'
require 'cgi'
require 'addressable/uri'
@@ -27,10 +28,11 @@
if defined?(RUBY_ENGINE)
user_agent += ", #{RUBY_ENGINE}"
end
{ "Content-Type" => "application/json",
"User-Agent" => user_agent,
- "Authorization" => authorization }
+ "Authorization" => authorization,
+ "Keen-Sdk" => "ruby-#{Keen::VERSION}" }
}
}
def initialize(*args)
options = args[0]