Skip to content

Commit

Permalink
Merge pull request rest-client#173 from kachick/improve-remove_warnings
Browse files Browse the repository at this point in the history
Remove some interpreter warnings
  • Loading branch information
L2G committed Apr 12, 2013
2 parents 58a40a8 + 2559951 commit fd21153
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/restclient/exceptions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ class Exception < RuntimeError

def initialize response = nil, initial_response_code = nil
@response = response
@message = nil
@initial_response_code = initial_response_code

# compatibility: this make the exception behave like a Net::HTTPResponse
Expand Down
2 changes: 1 addition & 1 deletion lib/restclient/payload.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def has_file_array?(params)
has_file_array?(v)
else
v.respond_to?(:path) && v.respond_to?(:read)
end
end
end
end

Expand Down
4 changes: 3 additions & 1 deletion lib/restclient/response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ module Response

include AbstractResponse

attr_accessor :args, :body, :net_http_res
attr_accessor :args, :net_http_res

attr_writer :body

def body
self
Expand Down

0 comments on commit fd21153

Please sign in to comment.