resourceful 0.5.2 → 0.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/resourceful.rb +1 -1
- data/lib/resourceful/request.rb +1 -2
- data/resourceful.gemspec +1 -1
- metadata +1 -1
data/lib/resourceful.rb
CHANGED
@@ -12,7 +12,7 @@ require 'resourceful/http_accessor'
|
|
12
12
|
|
13
13
|
# Resourceful is a library that provides a high level HTTP interface.
|
14
14
|
module Resourceful
|
15
|
-
VERSION = "0.5.
|
15
|
+
VERSION = "0.5.3"
|
16
16
|
RESOURCEFUL_USER_AGENT_TOKEN = "Resourceful/#{VERSION}(Ruby/#{RUBY_VERSION})"
|
17
17
|
|
18
18
|
end
|
data/lib/resourceful/request.rb
CHANGED
@@ -86,7 +86,7 @@ module Resourceful
|
|
86
86
|
@cached_response ||= begin
|
87
87
|
@already_checked_cache = true
|
88
88
|
resp = accessor.cache_manager.lookup(self)
|
89
|
-
logger.info(" Retrieved from cache")
|
89
|
+
logger.info(" Retrieved from cache") if resp
|
90
90
|
resp
|
91
91
|
end
|
92
92
|
end
|
@@ -162,7 +162,6 @@ module Resourceful
|
|
162
162
|
# Perform the request, with no magic handling of anything.
|
163
163
|
def perform!
|
164
164
|
@request_time = Time.now
|
165
|
-
logger.debug("DEBUG: Request Header: #{@header.inspect}")
|
166
165
|
|
167
166
|
http_resp = NetHttpAdapter.make_request(@method, @resource.uri, @body, @header)
|
168
167
|
@response = Resourceful::Response.new(uri, *http_resp)
|
data/resourceful.gemspec
CHANGED