foobara-http-command-connector 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -1
- data/src/http.rb +17 -7
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f79e8c2f3c9eedd1a96c4f5ff94ae2fe7be100f34d22dce4cf4e871ed1f68e8a
|
4
|
+
data.tar.gz: b3aa76ff2940a8a484c6423ca34aa0931603a636fce220166f47cccea96a8af9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da39db3b3e5b737c3af6779537703c1b7ddbd1b83b77e9cf8efd0081ba20a655c945403ad38074f69cbc6469a06e34fbc7c999aa25d534e1802ef66eb8233d10
|
7
|
+
data.tar.gz: 9642b9765721d12939f7ec17206fd345e8400b471116f2f767fe94fbfb3fbd4222ba0a7af31f572b8ae6db4def1dccd72246c891ca6c80db9f6550fb5a4df42e
|
data/CHANGELOG.md
CHANGED
data/src/http.rb
CHANGED
@@ -4,14 +4,24 @@ module Foobara
|
|
4
4
|
include TruncatedInspect
|
5
5
|
|
6
6
|
class << self
|
7
|
-
|
8
|
-
|
7
|
+
attr_writer :default_serializers
|
8
|
+
|
9
|
+
def default_serializers
|
10
|
+
return @default_serializers if @default_serializers
|
9
11
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
12
|
+
if superclass.respond_to?(:default_serializers)
|
13
|
+
serializers = superclass.default_serializers
|
14
|
+
|
15
|
+
return serializers if serializers
|
16
|
+
end
|
17
|
+
|
18
|
+
@default_serializers = [
|
19
|
+
Foobara::CommandConnectors::Serializers::ErrorsSerializer,
|
20
|
+
Foobara::CommandConnectors::Serializers::AtomicSerializer,
|
21
|
+
Foobara::CommandConnectors::Serializers::JsonSerializer
|
22
|
+
]
|
23
|
+
end
|
24
|
+
end
|
15
25
|
|
16
26
|
attr_accessor :prefix
|
17
27
|
|