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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/src/http.rb +11 -5
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d0dc77f38d21a462d9c89385aab1410ddf4b73f5b6d9f102863cff41af103ed1
4
- data.tar.gz: 2ab32d4fd1f33b3eecb98193c7f1ba934e979e3c80aebf55897cd122867752a3
3
+ metadata.gz: d5f34089ed75dae01a8094235bf86d14fa5af5945e259d73a6868020e70279fd
4
+ data.tar.gz: 31198004409b08f4339c0231d81daf340153e7c8d511a65550a3487e47ac4cc8
5
5
  SHA512:
6
- metadata.gz: 36336bb47724c1abd4a670e905cb6565344af7d3e2565d6048e6f26a72808dd82fdefe6e89ba8342465686d4531d577c9e3c11efc2fbc582bc61c53c733355ee
7
- data.tar.gz: 95d6cf2266ee411f786a09c44d27b89bea7bbe883913e3591e5ece1dec23ace75a0deeab86b6216411d3ba6626dff0db8b91391d15203acb9186d9057ad5f172
6
+ metadata.gz: 9a67ce105559b09a8789198107590d6912383c3d790fdd5d0a96fe80eeee4c277738f79d8e8bab4d28a6f8359164bd1820ac1444523b051347efc496eeeba047
7
+ data.tar.gz: c243677ab7140b04d4d00ad2e287fde8ebfe8641c524f0882e438bdfedd2464736ba8b8e9b8da10074b25e1e3f9e1dcb43a57518e793ba9d9baa44961bc51642
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [0.0.10] - 2025-01-25
2
+
3
+ - Allow default_serializers to be changed
4
+
1
5
  ## [0.0.9] - 2025-01-07
2
6
 
3
7
  - Bump Ruby to 3.4.1
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.9
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-07 00:00:00.000000000 Z
10
+ date: 2025-01-25 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: foobara