foobara-http-command-connector 0.0.9 → 0.0.10
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 +11 -5
- 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: d5f34089ed75dae01a8094235bf86d14fa5af5945e259d73a6868020e70279fd
|
4
|
+
data.tar.gz: 31198004409b08f4339c0231d81daf340153e7c8d511a65550a3487e47ac4cc8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a67ce105559b09a8789198107590d6912383c3d790fdd5d0a96fe80eeee4c277738f79d8e8bab4d28a6f8359164bd1820ac1444523b051347efc496eeeba047
|
7
|
+
data.tar.gz: c243677ab7140b04d4d00ad2e287fde8ebfe8641c524f0882e438bdfedd2464736ba8b8e9b8da10074b25e1e3f9e1dcb43a57518e793ba9d9baa44961bc51642
|
data/CHANGELOG.md
CHANGED
data/src/http.rb
CHANGED
@@ -3,15 +3,21 @@ module Foobara
|
|
3
3
|
class Http < CommandConnector
|
4
4
|
include TruncatedInspect
|
5
5
|
|
6
|
+
class << self
|
7
|
+
attr_accessor :default_serializers
|
8
|
+
end
|
9
|
+
|
10
|
+
self.default_serializers = [
|
11
|
+
Foobara::CommandConnectors::Serializers::ErrorsSerializer,
|
12
|
+
Foobara::CommandConnectors::Serializers::AtomicSerializer,
|
13
|
+
Foobara::CommandConnectors::Serializers::JsonSerializer
|
14
|
+
]
|
15
|
+
|
6
16
|
attr_accessor :prefix
|
7
17
|
|
8
18
|
def initialize(
|
9
19
|
prefix: nil,
|
10
|
-
default_serializers:
|
11
|
-
Foobara::CommandConnectors::Serializers::ErrorsSerializer,
|
12
|
-
Foobara::CommandConnectors::Serializers::AtomicSerializer,
|
13
|
-
Foobara::CommandConnectors::Serializers::JsonSerializer
|
14
|
-
],
|
20
|
+
default_serializers: self.class.default_serializers,
|
15
21
|
**
|
16
22
|
)
|
17
23
|
if prefix
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
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.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miles Georgi
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-01-
|
10
|
+
date: 2025-01-25 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: foobara
|