lib/tasty.rb in tasty-1.0.0 vs lib/tasty.rb in tasty-1.0.1

- old
+ new

@@ -1,11 +1,11 @@ require 'httparty' class Tasty include HTTParty - VERSION = '1.0.0'.freeze + VERSION = '1.0.1'.freeze DEFAULT_HEADERS = { 'User-Agent' => "tasty gem #{VERSION}" } headers(DEFAULT_HEADERS) @@ -28,9 +28,13 @@ end def set_http_headers(http_headers = {}) http_headers.merge!(DEFAULT_HEADERS) headers(http_headers) + end + + def set_timeout(timeout) + default_timeout(timeout) end # Call del.icio.us using a particular API method, api_method. The options hash is where you can add any parameters appropriate for the API call. def get(api_method, options = {}) query = {} \ No newline at end of file