foobara-sh-cli-connector 0.0.13 → 0.0.15
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 +8 -0
- data/src/sh_cli_connector/serializers/cli_result_serializer.rb +6 -2
- data/src/sh_cli_connector.rb +5 -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: c2b95683633e9cd5d040607b37e7bfed49f2f3b0f8e7ff56dfe7d011a3df333a
|
4
|
+
data.tar.gz: c33d05e112fedd9af25c52892e03da6926e5f7100c0cd0af73f67fb2625e0f99
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c62ceb5b6ccc5facaaa96649a96ca1d70dc2fe3fe2a8cc2c0b38ca4d811adf0c0db092a2610155dd69d7ca05bfe40bedde44d07aae881239d0fcfdb1b85d91f0
|
7
|
+
data.tar.gz: c8ad6648b0e822b4660ad3393ad98ed08cc19c3d793e9b369916890220a83f3f212208b8e079067389ebc6ca27b564235b32e6249523a3d9abd25b35422179d8
|
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
@@ -25,6 +25,10 @@ module Foobara
|
|
25
25
|
end
|
26
26
|
end
|
27
27
|
|
28
|
+
def run(argv = ARGV, *, **, &)
|
29
|
+
super
|
30
|
+
end
|
31
|
+
|
28
32
|
def connect(...)
|
29
33
|
super.tap do
|
30
34
|
if single_command_mode
|
@@ -40,7 +44,7 @@ module Foobara
|
|
40
44
|
command_registry.foobara_all_command.first
|
41
45
|
end
|
42
46
|
|
43
|
-
|
47
|
+
super(*, **, command:, &)
|
44
48
|
end
|
45
49
|
|
46
50
|
# 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.
|
4
|
+
version: 0.0.15
|
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: []
|