pebblebed 0.4.5 → 0.4.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pebblebed/http.rb +6 -0
- data/lib/pebblebed/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1dd34d36113e5aeb7a5126f1f6e38c254316cf3f
|
4
|
+
data.tar.gz: 81eab83c979cefcb30e81139d25675f5b0a31ef7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9bd07609f837a893ac5f8b2b7df36a42042fe6daceb92cd5fc9cede78445856be961643515de80f410105934de63b5b7f0070775df9199c4b1e958e718a1833a
|
7
|
+
data.tar.gz: 4a0b10b1bb16ea62c8e267ea836ae87ed897266fef2751b5ca36545891ac19bfe0fc8a1e6e3926e96d1b07c718c1c03aa5ab2a1ba29ef8c4002879b82041e367
|
data/lib/pebblebed/http.rb
CHANGED
@@ -128,10 +128,16 @@ module Pebblebed
|
|
128
128
|
|
129
129
|
def self.delete(url, params, &block)
|
130
130
|
url, params, query = url_and_params_from_args(url, params, &block)
|
131
|
+
content_type, body = serialize_params(params)
|
131
132
|
return do_request(url) { |connection|
|
132
133
|
connection.delete(
|
133
134
|
:host => url.host,
|
134
135
|
:path => url.path,
|
136
|
+
:headers => {
|
137
|
+
'Accept' => 'application/json',
|
138
|
+
'Content-Type' => content_type
|
139
|
+
},
|
140
|
+
:body => body,
|
135
141
|
:query => query,
|
136
142
|
:persistent => true
|
137
143
|
)
|
data/lib/pebblebed/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pebblebed
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Katrina Owen
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-04-
|
12
|
+
date: 2018-04-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|