foobara-http-command-connector 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/src/http.rb +9 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 14fd05992a1b0d4a094bec743f31d55e4d35eaeb004190504a59580b4778ca93
|
4
|
+
data.tar.gz: 70c08be8c4a8b06383fdce7713a7a26a6def5abcaf61853a930d81e7cdd189bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c88cbc20527427aad3bca0c3071555b9184958df9d40b8b67753590ba8befeca32109d5ba16f6119985b0425d5de54d459c9c9cf1755d6e470a1dbe6180871d
|
7
|
+
data.tar.gz: 3b1500e6c8adf3d8b252168492584e8d72b3fc7f1091fa867b4ed6c09bb819b38cf8fc8574cee0f4ca93eba874548dab565544b707310165cb3fa8beae4e9e8c
|
data/CHANGELOG.md
CHANGED
data/src/http.rb
CHANGED
@@ -5,7 +5,14 @@ module Foobara
|
|
5
5
|
|
6
6
|
attr_accessor :prefix
|
7
7
|
|
8
|
-
def initialize(
|
8
|
+
def initialize(
|
9
|
+
prefix: nil,
|
10
|
+
default_serializers: [
|
11
|
+
Foobara::CommandConnectors::Serializers::ErrorsSerializer,
|
12
|
+
Foobara::CommandConnectors::Serializers::JsonSerializer
|
13
|
+
],
|
14
|
+
**
|
15
|
+
)
|
9
16
|
if prefix
|
10
17
|
if prefix.is_a?(::Array)
|
11
18
|
prefix = prefix.join("/")
|
@@ -20,10 +27,9 @@ module Foobara
|
|
20
27
|
end
|
21
28
|
|
22
29
|
self.prefix = prefix
|
23
|
-
|
24
30
|
end
|
25
31
|
|
26
|
-
super(**)
|
32
|
+
super(default_serializers:, **)
|
27
33
|
end
|
28
34
|
|
29
35
|
def run(*, **)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foobara-http-command-connector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miles Georgi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-12-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: foobara
|
@@ -88,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
requirements: []
|
91
|
-
rubygems_version: 3.5.
|
91
|
+
rubygems_version: 3.5.23
|
92
92
|
signing_key:
|
93
93
|
specification_version: 4
|
94
94
|
summary: No description. Add one.
|