foobara-sh-cli-connector 0.0.13 → 0.0.14

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: baee3b1690dc7108efe1763f106088b5c60ec44bee67f9e5e973af806dc23dcb
4
- data.tar.gz: ff4692056eed0949ef1c4f1b0ece541e3c5805ed9afd1fb282feb35727c48780
3
+ metadata.gz: 665dbe7ec95119ae45a08a732dd7435b4a95a77a65f9db4fbe886fc682f34a68
4
+ data.tar.gz: a296ff798f597f90d638ae67b1352a41b4f043e29aef811a00e3f4c084ee4ab2
5
5
  SHA512:
6
- metadata.gz: c45bc3cb9f0d47d3ec1dce2cc6fb7ce34712905f9f2c8895d03c56ba5e3bc1a285bc5f325740d17c5d7f6403e17892836b71829f0d065e1c4e0d124823e5c97d
7
- data.tar.gz: 7de22a9ff9f3f780b08eb8cb4587204232d7d5e8bd00ccedfead314d737401acd31a51c26a13bc68ad518ec336003e1332aabf2ff40040b336ed70b897fb555a
6
+ metadata.gz: af0c874392c53914b85bda8d5513464b725b50cf833207e9ac4b232c921961ce8e62b97d1990319efe3ac6e2dcad6327abe28a618c4b3f63d00928cf82efb9e5
7
+ data.tar.gz: 4c9d55a9d040971adbd62cddc94560291667385de959460ad63d0d7d0cb7e2c5d19c5068e3ee6f4f6ebc47b1063373d9b335f6718f14749d50e9aa29c576c566
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [0.0.14] - 2025-04-11
2
+
3
+ - Handle newer versions of foobara
4
+
1
5
  ## [0.0.13] - 2025-03-28
2
6
 
3
7
  - Handle recent #request_to_response refactor
@@ -3,9 +3,9 @@ module Foobara
3
3
  class ShCliConnector < CommandConnector
4
4
  module Serializers
5
5
  # Should allow either atomic or aggregate
6
- class CliResultSerializer < CommandConnectors::Serializers::AtomicSerializer
6
+ class CliResultSerializer < CommandConnectors::Serializers::SuccessSerializer
7
7
  def serialize(object)
8
- serializable = super
8
+ serializable = atomic_serializer.serialize(object)
9
9
 
10
10
  if serializable.is_a?(::String)
11
11
  serializable
@@ -19,6 +19,10 @@ module Foobara
19
19
  end
20
20
  end
21
21
 
22
+ def atomic_serializer
23
+ @atomic_serializer ||= Foobara::CommandConnectors::Serializers::AtomicSerializer.new
24
+ end
25
+
22
26
  private
23
27
 
24
28
  def print(io, object, padding = nil, after_colon: false)
@@ -40,7 +40,7 @@ module Foobara
40
40
  command_registry.foobara_all_command.first
41
41
  end
42
42
 
43
- self.class::Request.new(*, **, command:, &)
43
+ super(*, **, command:, &)
44
44
  end
45
45
 
46
46
  # TODO: this needs a better name... it's doing more than building.
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foobara-sh-cli-connector
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-03-28 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: foobara
@@ -76,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0'
78
78
  requirements: []
79
- rubygems_version: 3.6.6
79
+ rubygems_version: 3.6.7
80
80
  specification_version: 4
81
81
  summary: Command-line connector for Foobara
82
82
  test_files: []