reynard 0.0.7 → 0.0.8
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.
- checksums.yaml +4 -4
- data/lib/reynard/http/request.rb +22 -0
- data/lib/reynard/specification.rb +1 -1
- data/lib/reynard/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fcfd5e665e0b3fcc8c593d81c15db9560e8abc0125e9a254aeb98d3f53b6fb8a
|
|
4
|
+
data.tar.gz: 61d7d812f5b5eacf55c9be3fb6463cf1adafeb5e7935d2d0fc0b20a33a4a27b3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 05a42b85120cb3e519c4fcc3bad7c23a17e5c1a007072b22843421619b1460dabf378750fc83eea406a44a3ec0e08c80b309d53bdce2da0df09d6f3a67643685
|
|
7
|
+
data.tar.gz: d8e2ce1c77b097a4a3e4a64d8b3fd2d67bc0e8737307e9429452e4d794aedad7c34e7b44a76a1f4ac945f459a4f0497e67d354ebb37f2cb1fdece9e187981efd
|
data/lib/reynard/http/request.rb
CHANGED
|
@@ -26,6 +26,12 @@ class Reynard
|
|
|
26
26
|
build_http_get
|
|
27
27
|
when 'post'
|
|
28
28
|
build_http_post
|
|
29
|
+
when 'put'
|
|
30
|
+
build_http_put
|
|
31
|
+
when 'patch'
|
|
32
|
+
build_http_patch
|
|
33
|
+
when 'delete'
|
|
34
|
+
build_http_delete
|
|
29
35
|
end
|
|
30
36
|
end
|
|
31
37
|
|
|
@@ -38,6 +44,22 @@ class Reynard
|
|
|
38
44
|
post.body = @request_context.body
|
|
39
45
|
post
|
|
40
46
|
end
|
|
47
|
+
|
|
48
|
+
def build_http_put
|
|
49
|
+
put = Net::HTTP::Put.new(uri, @request_context.headers)
|
|
50
|
+
put.body = @request_context.body
|
|
51
|
+
put
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
def build_http_patch
|
|
55
|
+
patch = Net::HTTP::Patch.new(uri, @request_context.headers)
|
|
56
|
+
patch.body = @request_context.body
|
|
57
|
+
patch
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
def build_http_delete
|
|
61
|
+
Net::HTTP::Delete.new(uri, @request_context.headers)
|
|
62
|
+
end
|
|
41
63
|
end
|
|
42
64
|
end
|
|
43
65
|
end
|
data/lib/reynard/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: reynard
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Manfred Stienstra
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-11-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: multi_json
|