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 +4 -4
- data/CHANGELOG.md +4 -0
- data/src/sh_cli_connector/serializers/cli_result_serializer.rb +6 -2
- data/src/sh_cli_connector.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 665dbe7ec95119ae45a08a732dd7435b4a95a77a65f9db4fbe886fc682f34a68
|
4
|
+
data.tar.gz: a296ff798f597f90d638ae67b1352a41b4f043e29aef811a00e3f4c084ee4ab2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af0c874392c53914b85bda8d5513464b725b50cf833207e9ac4b232c921961ce8e62b97d1990319efe3ac6e2dcad6327abe28a618c4b3f63d00928cf82efb9e5
|
7
|
+
data.tar.gz: 4c9d55a9d040971adbd62cddc94560291667385de959460ad63d0d7d0cb7e2c5d19c5068e3ee6f4f6ebc47b1063373d9b335f6718f14749d50e9aa29c576c566
|
data/CHANGELOG.md
CHANGED
@@ -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::
|
6
|
+
class CliResultSerializer < CommandConnectors::Serializers::SuccessSerializer
|
7
7
|
def serialize(object)
|
8
|
-
serializable =
|
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)
|
data/src/sh_cli_connector.rb
CHANGED
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.
|
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:
|
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.
|
79
|
+
rubygems_version: 3.6.7
|
80
80
|
specification_version: 4
|
81
81
|
summary: Command-line connector for Foobara
|
82
82
|
test_files: []
|