intouch-gdata4ruby 0.1.5.2 → 0.1.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/gdata4ruby/gdata_object.rb +1 -1
- data/lib/gdata4ruby/request.rb +1 -1
- metadata +1 -1
|
@@ -170,7 +170,7 @@ module GData4Ruby
|
|
|
170
170
|
#Deletes the object.
|
|
171
171
|
def delete
|
|
172
172
|
if @exists
|
|
173
|
-
service.send_request(Request.new(:delete, @edit_uri,
|
|
173
|
+
service.send_request(Request.new(:delete, @edit_uri, '', {"If-Match" => "*"}))
|
|
174
174
|
end
|
|
175
175
|
@exists = false
|
|
176
176
|
return true
|
data/lib/gdata4ruby/request.rb
CHANGED
|
@@ -33,7 +33,7 @@ module GData4Ruby
|
|
|
33
33
|
attr_reader :parameters
|
|
34
34
|
|
|
35
35
|
#Creates a new request object.
|
|
36
|
-
def initialize(type, url, content =
|
|
36
|
+
def initialize(type, url, content = '', headers = '', query_parameters = '')
|
|
37
37
|
@parameters = nil
|
|
38
38
|
@headers = headers
|
|
39
39
|
@content = content
|