Skip to content

Commit 156e978

Browse files
committed
Fix default default_serializers bug
1 parent 9c36761 commit 156e978

File tree

4 files changed

+40
-22
lines changed

4 files changed

+40
-22
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## [0.0.6] - 2024-12-01
2+
3+
- Fix default serializers bug
4+
- Add AtomicSerializer to list of default serializers
5+
16
## [0.0.3] - 2024-10-30
27

38
- Support path prefixes

Gemfile.lock

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
foobara-http-command-connector (0.0.3)
4+
foobara-http-command-connector (0.0.6)
55
foobara
66

77
GEM
@@ -20,6 +20,9 @@ GEM
2020
diff-lcs (1.5.1)
2121
docile (1.4.1)
2222
dotenv (3.1.4)
23+
extract-repo (0.0.8)
24+
foobara
25+
foobara-sh-cli-connector
2326
ffi (1.17.0)
2427
ffi (1.17.0-aarch64-linux-gnu)
2528
ffi (1.17.0-aarch64-linux-musl)
@@ -50,7 +53,7 @@ GEM
5053
foobara-type-generator
5154
foobara-typescript-react-command-form-generator
5255
foobara-typescript-remote-command-generator
53-
foobara (0.0.11)
56+
foobara (0.0.19)
5457
foobara-util
5558
foobara-autocrud-generator (0.0.1)
5659
foobara
@@ -66,7 +69,8 @@ GEM
6669
foobara-files-generator
6770
foobara-dotenv-loader (0.0.1)
6871
dotenv
69-
foobara-empty-ruby-project-generator (0.0.5)
72+
foobara-empty-ruby-project-generator (0.0.11)
73+
extract-repo
7074
foobara
7175
foobara-files-generator
7276
foobara-empty-typescript-react-project-generator (0.0.3)
@@ -92,10 +96,10 @@ GEM
9296
foobara-resque-scheduler-connector-generator (0.0.1)
9397
foobara
9498
foobara-files-generator
95-
foobara-rubocop-rules (0.0.4)
99+
foobara-rubocop-rules (0.0.5)
96100
rubocop
97101
rubocop-rspec
98-
foobara-sh-cli-connector (0.0.6)
102+
foobara-sh-cli-connector (0.0.9)
99103
foobara
100104
foobara-sh-cli-connector-generator (0.0.2)
101105
foobara
@@ -112,7 +116,7 @@ GEM
112116
foobara-typescript-remote-command-generator (0.0.6)
113117
foobara
114118
foobara-files-generator
115-
foobara-util (0.0.6)
119+
foobara-util (0.0.7)
116120
formatador (1.1.0)
117121
guard (2.19.0)
118122
formatador (>= 0.2.4)
@@ -128,8 +132,8 @@ GEM
128132
guard (~> 2.1)
129133
guard-compat (~> 1.1)
130134
rspec (>= 2.99.0, < 4.0)
131-
hashdiff (1.1.1)
132-
json (2.7.5)
135+
hashdiff (1.1.2)
136+
json (2.8.2)
133137
language_server-protocol (3.17.0.3)
134138
listen (3.9.0)
135139
rb-fsevent (~> 0.10, >= 0.10.3)
@@ -141,7 +145,7 @@ GEM
141145
nenv (~> 0.1)
142146
shellany (~> 0.0)
143147
parallel (1.26.3)
144-
parser (3.3.5.0)
148+
parser (3.3.6.0)
145149
ast (~> 2.4.1)
146150
racc
147151
pry (0.14.2)
@@ -157,7 +161,7 @@ GEM
157161
rb-fsevent (0.11.2)
158162
rb-inotify (0.11.1)
159163
ffi (~> 1.0)
160-
regexp_parser (2.9.2)
164+
regexp_parser (2.9.3)
161165
rexml (3.3.9)
162166
rspec (3.13.0)
163167
rspec-core (~> 3.13.0)
@@ -168,24 +172,24 @@ GEM
168172
rspec-expectations (3.13.3)
169173
diff-lcs (>= 1.2.0, < 2.0)
170174
rspec-support (~> 3.13.0)
171-
rspec-its (1.3.1)
172-
rspec-core (>= 3.0.0)
173-
rspec-expectations (>= 3.0.0)
175+
rspec-its (2.0.0)
176+
rspec-core (>= 3.13.0)
177+
rspec-expectations (>= 3.13.0)
174178
rspec-mocks (3.13.2)
175179
diff-lcs (>= 1.2.0, < 2.0)
176180
rspec-support (~> 3.13.0)
177181
rspec-support (3.13.1)
178-
rubocop (1.67.0)
182+
rubocop (1.69.0)
179183
json (~> 2.3)
180184
language_server-protocol (>= 3.17.0)
181185
parallel (~> 1.10)
182186
parser (>= 3.3.0.2)
183187
rainbow (>= 2.2.2, < 4.0)
184188
regexp_parser (>= 2.4, < 3.0)
185-
rubocop-ast (>= 1.32.2, < 2.0)
189+
rubocop-ast (>= 1.36.1, < 2.0)
186190
ruby-progressbar (~> 1.7)
187-
unicode-display_width (>= 2.4.0, < 3.0)
188-
rubocop-ast (1.33.0)
191+
unicode-display_width (>= 2.4.0, < 4.0)
192+
rubocop-ast (1.36.2)
189193
parser (>= 3.3.1.0)
190194
rubocop-rake (0.6.0)
191195
rubocop (~> 1.0)
@@ -201,7 +205,9 @@ GEM
201205
simplecov-html (0.13.1)
202206
simplecov_json_formatter (0.1.4)
203207
thor (1.3.2)
204-
unicode-display_width (2.6.0)
208+
unicode-display_width (3.1.2)
209+
unicode-emoji (~> 4.0, >= 4.0.4)
210+
unicode-emoji (4.0.4)
205211
vcr (6.3.1)
206212
base64
207213
webmock (3.24.0)

src/http.rb

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,15 @@ class Http < CommandConnector
55

66
attr_accessor :prefix
77

8-
def initialize(prefix: nil, **)
8+
def initialize(
9+
prefix: nil,
10+
default_serializers: [
11+
Foobara::CommandConnectors::Serializers::ErrorsSerializer,
12+
Foobara::CommandConnectors::Serializers::AtomicSerializer,
13+
Foobara::CommandConnectors::Serializers::JsonSerializer
14+
],
15+
**
16+
)
917
if prefix
1018
if prefix.is_a?(::Array)
1119
prefix = prefix.join("/")
@@ -20,10 +28,9 @@ def initialize(prefix: nil, **)
2028
end
2129

2230
self.prefix = prefix
23-
2431
end
2532

26-
super(**)
33+
super(default_serializers:, **)
2734
end
2835

2936
def run(*, **)

version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module Foobara
22
module HttpCommandConnector
3-
VERSION = "0.0.3".freeze
3+
VERSION = "0.0.6".freeze
44
end
55
end

0 commit comments

Comments
 (0)