lib/td/command/common.rb in td-0.10.76 vs lib/td/command/common.rb in td-0.10.77

- old
+ new

@@ -1,5 +1,6 @@ +require 'td/version' module TreasureData autoload :API, 'td/client/api' autoload :Client, 'td/client' @@ -21,9 +22,10 @@ end apikey = Config.apikey unless apikey raise ConfigError, "Account is not configured." end + opts[:user_agent] = "TD: #{TreasureData::VERSION}" Client.new(apikey, opts) end def get_ssl_client(opts={}) opts[:ssl] = true