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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +1 -1
  3. data/src/http.rb +17 -7
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d5f34089ed75dae01a8094235bf86d14fa5af5945e259d73a6868020e70279fd
4
- data.tar.gz: 31198004409b08f4339c0231d81daf340153e7c8d511a65550a3487e47ac4cc8
3
+ metadata.gz: f79e8c2f3c9eedd1a96c4f5ff94ae2fe7be100f34d22dce4cf4e871ed1f68e8a
4
+ data.tar.gz: b3aa76ff2940a8a484c6423ca34aa0931603a636fce220166f47cccea96a8af9
5
5
  SHA512:
6
- metadata.gz: 9a67ce105559b09a8789198107590d6912383c3d790fdd5d0a96fe80eeee4c277738f79d8e8bab4d28a6f8359164bd1820ac1444523b051347efc496eeeba047
7
- data.tar.gz: c243677ab7140b04d4d00ad2e287fde8ebfe8641c524f0882e438bdfedd2464736ba8b8e9b8da10074b25e1e3f9e1dcb43a57518e793ba9d9baa44961bc51642
6
+ metadata.gz: da39db3b3e5b737c3af6779537703c1b7ddbd1b83b77e9cf8efd0081ba20a655c945403ad38074f69cbc6469a06e34fbc7c999aa25d534e1802ef66eb8233d10
7
+ data.tar.gz: 9642b9765721d12939f7ec17206fd345e8400b471116f2f767fe94fbfb3fbd4222ba0a7af31f572b8ae6db4def1dccd72246c891ca6c80db9f6550fb5a4df42e
data/CHANGELOG.md CHANGED
@@ -1,4 +1,4 @@
1
- ## [0.0.10] - 2025-01-25
1
+ ## [0.0.11] - 2025-01-25
2
2
 
3
3
  - Allow default_serializers to be changed
4
4
 
data/src/http.rb CHANGED
@@ -4,14 +4,24 @@ module Foobara
4
4
  include TruncatedInspect
5
5
 
6
6
  class << self
7
- attr_accessor :default_serializers
8
- end
7
+ attr_writer :default_serializers
8
+
9
+ def default_serializers
10
+ return @default_serializers if @default_serializers
9
11
 
10
- self.default_serializers = [
11
- Foobara::CommandConnectors::Serializers::ErrorsSerializer,
12
- Foobara::CommandConnectors::Serializers::AtomicSerializer,
13
- Foobara::CommandConnectors::Serializers::JsonSerializer
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foobara-http-command-connector
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi