kis_http 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9a9da174eb591385384a5561f61feac0587e893322a8c65db3e9b72102c2f896
4
- data.tar.gz: b74aab0d033e8a13d6cf5bfba54ce5fe250f95c14744e832beff233dcb6fb63a
3
+ metadata.gz: 0d29a12a5b4023d64f6ea4b3f21d99a43910a2832fa7c4f5ff2af44c013c7c92
4
+ data.tar.gz: '018ae17a9d88d73adbbd3abadb053b07bfccd7039968d47aba91e88c61a1f16c'
5
5
  SHA512:
6
- metadata.gz: a54c6c6f99e990d0624ecd8c9dafc77a6e4e387f549fa58207400e79cb500c1ff74c759499fb96ebeacf1a2c66113d39d6443f8ad003a22f836446239ce4e011
7
- data.tar.gz: bc546945dbb97b83fe5656860a6a3c01eefae324fc2353cc71644c8348f7d56fa2087e878eae5a36347325ac2f8631459e680e48a165f11eb2bb45a14ad510aa
6
+ metadata.gz: c0a36916119b81b58d62cb92e12872c6a888a07123e30cb4681cbad3d7632eb86b01f917c68beb337bcf867f005c1da1273a0320bf6bc80cc35c62464bf11dba
7
+ data.tar.gz: 9066667adac51c9cd36d6f3cc5944bb6a163a35a1d67e44dc4dfaa60ccaa7c167feb084901a7df518ae6fb3ec3decd33b46aa6e9261a1cdba1e5296a31eaba7d
@@ -28,6 +28,12 @@ module KisHttp
28
28
  end
29
29
  end
30
30
 
31
+ def delete(url, **kwargs)
32
+ request(url, **kwargs) do |uri|
33
+ Net::HTTP::Delete.new(uri)
34
+ end
35
+ end
36
+
31
37
  private
32
38
 
33
39
  def request(url, body: nil, headers: nil, options: nil)
@@ -1,3 +1,3 @@
1
1
  module KisHttp
2
- VERSION = '0.2.0'.freeze
2
+ VERSION = '0.2.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kis_http
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel P. Clark
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-05 00:00:00.000000000 Z
11
+ date: 2021-01-22 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: DRY for Net::HTTP
14
14
  email: