lib/opentok/client.rb in opentok-3.0.2 vs lib/opentok/client.rb in opentok-3.0.3
- old
+ new
@@ -1,8 +1,9 @@
require "opentok/constants"
require "opentok/exceptions"
require "opentok/extensions/hash"
+require "opentok/version"
require "active_support/inflector"
require "httparty"
require "jwt"
@@ -17,10 +18,10 @@
# debug_output $stdout
def initialize(api_key, api_secret, api_url, ua_addendum="")
self.class.base_uri api_url
self.class.headers({
- "User-Agent" => "OpenTok-Ruby-SDK/#{VERSION}" + (ua_addendum ? " #{ua_addendum}" : "")
+ "User-Agent" => "OpenTok-Ruby-SDK/#{VERSION}" + "-Ruby-Version-#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}" + (ua_addendum ? " #{ua_addendum}" : "")
})
@api_key = api_key
@api_secret = api_secret
end