foobara-http-command-connector 0.0.2 → 0.0.4

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 +5 -1
  3. data/src/http.rb +9 -3
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 689fd15392f038a53d6cb6ce907ece23adf2c37707687d5c718b7b60e6b269b4
4
- data.tar.gz: 94c1222d7d884d9fced6636230061f8e6570f5480cc372bc3d2bdd6d4d3a7aac
3
+ metadata.gz: 14fd05992a1b0d4a094bec743f31d55e4d35eaeb004190504a59580b4778ca93
4
+ data.tar.gz: 70c08be8c4a8b06383fdce7713a7a26a6def5abcaf61853a930d81e7cdd189bb
5
5
  SHA512:
6
- metadata.gz: 8fc91c89b06fc26816654909bbb977750f9c47d486ecf8b53c70758030cce5474d317a777fc690eb5267519f1295324d5c5793092d255952d70e15f0de524f7e
7
- data.tar.gz: d55f11cc2a20f8e9763d2783a4531e0de0308ce8303e65effdf0c1f96fa92da9afea29ec80e69b66e4461e35033637de24e594baa6fe994c24f118448cae440b
6
+ metadata.gz: 2c88cbc20527427aad3bca0c3071555b9184958df9d40b8b67753590ba8befeca32109d5ba16f6119985b0425d5de54d459c9c9cf1755d6e470a1dbe6180871d
7
+ data.tar.gz: 3b1500e6c8adf3d8b252168492584e8d72b3fc7f1091fa867b4ed6c09bb819b38cf8fc8574cee0f4ca93eba874548dab565544b707310165cb3fa8beae4e9e8c
data/CHANGELOG.md CHANGED
@@ -1,4 +1,8 @@
1
- ## [0.0.2] - 2024-10-30
1
+ ## [0.0.4] - 2024-12-01
2
+
3
+ - Fix default serializers bug
4
+
5
+ ## [0.0.3] - 2024-10-30
2
6
 
3
7
  - Support path prefixes
4
8
 
data/src/http.rb CHANGED
@@ -5,7 +5,14 @@ module Foobara
5
5
 
6
6
  attr_accessor :prefix
7
7
 
8
- def initialize(prefix:, **)
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.2
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-10-30 00:00:00.000000000 Z
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.22
91
+ rubygems_version: 3.5.23
92
92
  signing_key:
93
93
  specification_version: 4
94
94
  summary: No description. Add one.