foobara-http-command-connector 0.0.8 → 0.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/src/http.rb +11 -5
  4. metadata +4 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cdbcd9daebb5c0ec04008acca0835581dffb47d130f2de21a70432d6ae3f2c15
4
- data.tar.gz: 7be4ffc0cc5d22452e73c074e0b625f5a57acee8ff7c130b5a3680cf084d2222
3
+ metadata.gz: d5f34089ed75dae01a8094235bf86d14fa5af5945e259d73a6868020e70279fd
4
+ data.tar.gz: 31198004409b08f4339c0231d81daf340153e7c8d511a65550a3487e47ac4cc8
5
5
  SHA512:
6
- metadata.gz: 514b77c3f4d58ff748ba85e9e4e286bd5d9f84aacbdab0cca985bb5f283be9841587385befbd206704702a39c400444716f23ff54f5ad470b91c552193e54bd5
7
- data.tar.gz: '08ba96c184a7eb8a61c33c563151afb7627d6186716abbe660dd543493afeb3695c0129e79da896db3f0536f7f1aff1c6da148f63c4405f0272474ea230feef0'
6
+ metadata.gz: 9a67ce105559b09a8789198107590d6912383c3d790fdd5d0a96fe80eeee4c277738f79d8e8bab4d28a6f8359164bd1820ac1444523b051347efc496eeeba047
7
+ data.tar.gz: c243677ab7140b04d4d00ad2e287fde8ebfe8641c524f0882e438bdfedd2464736ba8b8e9b8da10074b25e1e3f9e1dcb43a57518e793ba9d9baa44961bc51642
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## [0.0.10] - 2025-01-25
2
+
3
+ - Allow default_serializers to be changed
4
+
5
+ ## [0.0.9] - 2025-01-07
6
+
7
+ - Bump Ruby to 3.4.1
8
+
1
9
  ## [0.0.8] - 2024-12-09
2
10
 
3
11
  - Make sure to require pathname when needed
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,14 +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.8
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-12-09 00:00:00.000000000 Z
10
+ date: 2025-01-25 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: foobara
@@ -24,7 +23,6 @@ dependencies:
24
23
  - - ">="
25
24
  - !ruby/object:Gem::Version
26
25
  version: '0'
27
- description:
28
26
  email:
29
27
  - azimux@gmail.com
30
28
  executables: []
@@ -73,7 +71,6 @@ metadata:
73
71
  source_code_uri: https://github.com/foobara/http-command-connector
74
72
  changelog_uri: https://github.com/foobara/http-command-connector/blob/main/CHANGELOG.md
75
73
  rubygems_mfa_required: 'true'
76
- post_install_message:
77
74
  rdoc_options: []
78
75
  require_paths:
79
76
  - lib
@@ -81,15 +78,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
81
78
  requirements:
82
79
  - - ">="
83
80
  - !ruby/object:Gem::Version
84
- version: 3.2.2
81
+ version: 3.4.0
85
82
  required_rubygems_version: !ruby/object:Gem::Requirement
86
83
  requirements:
87
84
  - - ">="
88
85
  - !ruby/object:Gem::Version
89
86
  version: '0'
90
87
  requirements: []
91
- rubygems_version: 3.5.23
92
- signing_key:
88
+ rubygems_version: 3.6.2
93
89
  specification_version: 4
94
90
  summary: No description. Add one.
95
91
  test_files: []