Hi there.
I patched did the following to add this functionality:
Add to myspace/object.rb:
def put(params,optParams=nil,data="")
path = self.build_request(params,optParams)
MySpace.connection.put(path, data) do |resp|
puts "MySpace response: #{resp.inspect}" #DEBUG
end
end
Add to myspace/connection.rb:
def put(path="/",data="",headers={},content_type="application/x-www-
form-urlencoded")
connect if !@http
req = HTTP::Put.new(path,headers)
req.body = data
req.content_type = content_type
req.oauth!(@http,consumer,nil,@oauthOptions)
if block_given?
yield @http.request(req)
else
@http.request(req)
end
@http.finish if @http.started?
end
Hope that helps!
-Chris