lib/patron.rb in patron-0.6.3 vs lib/patron.rb in patron-0.6.4
- old
+ new
@@ -36,6 +36,12 @@
# Returns the version number of the gem
# @return [String]
def self.version
VERSION
end
+
+ # Returns the default User-Agent string
+ # @return [String]
+ def self.user_agent_string
+ @ua ||= "Patron/Ruby-%s-%s" % [version, libcurl_version]
+ end
end