foobara-sh-cli-connector 1.0.2 → 1.1.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 59cf7a21e3cefb21edff2aeff1190ae80b8ced00ea06ae8f283efeb9edf4fb5d
|
4
|
+
data.tar.gz: 3f633ba9a19437fd36b8d5afb11bbe373a222f4e35014b65fe9eeea9a2786e4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74f188499346a95da97cc18f1ae280ef0f1d2be8444761dc1de08905df15bd40908bec43daed15b95d69f163fa7a7c3bd15c60dd1663ecbacaf49d19744c6455
|
7
|
+
data.tar.gz: 3a31ffab1eb40dbf87e767ad84cee1c01e667b124112db3bcd7cf94d12d30f981f843ceae2477d271778e0a70355ce3915debf92c6933d7485445a9a84ea230d
|
data/CHANGELOG.md
CHANGED
@@ -18,7 +18,7 @@ module Foobara
|
|
18
18
|
always_prefix_inputs:
|
19
19
|
)
|
20
20
|
sub_required_attributes = if is_required
|
21
|
-
attribute_type.declaration_data[:required]
|
21
|
+
attribute_type.declaration_data[:required]
|
22
22
|
end || []
|
23
23
|
|
24
24
|
defaults = attribute_type.declaration_data[:defaults] || {}
|
@@ -150,6 +150,10 @@ module Foobara
|
|
150
150
|
!default.nil?
|
151
151
|
end
|
152
152
|
|
153
|
+
def primitive?
|
154
|
+
attribute_type.primitive?
|
155
|
+
end
|
156
|
+
|
153
157
|
def description
|
154
158
|
desc = []
|
155
159
|
attributes_description = attribute_type.description
|
@@ -162,10 +166,12 @@ module Foobara
|
|
162
166
|
desc << "Required"
|
163
167
|
end
|
164
168
|
|
165
|
-
|
169
|
+
unless primitive?
|
170
|
+
one_of = attribute_type.declaration_data[:one_of]
|
166
171
|
|
167
|
-
|
168
|
-
|
172
|
+
if one_of && !one_of.empty?
|
173
|
+
desc << "One of: #{one_of.join(", ")}"
|
174
|
+
end
|
169
175
|
end
|
170
176
|
|
171
177
|
if has_default?
|
@@ -176,7 +182,7 @@ module Foobara
|
|
176
182
|
desc.map!.with_index do |d, index|
|
177
183
|
break if index == desc.size - 1
|
178
184
|
|
179
|
-
if d =~ /[
|
185
|
+
if d =~ /[.!?\]}:]$/
|
180
186
|
d
|
181
187
|
else
|
182
188
|
"#{d}."
|
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: 1.0
|
4
|
+
version: 1.1.0
|
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
|
@@ -15,7 +15,7 @@ dependencies:
|
|
15
15
|
requirements:
|
16
16
|
- - ">="
|
17
17
|
- !ruby/object:Gem::Version
|
18
|
-
version: 0.
|
18
|
+
version: 0.1.1
|
19
19
|
- - "<"
|
20
20
|
- !ruby/object:Gem::Version
|
21
21
|
version: 2.0.0
|
@@ -25,7 +25,7 @@ dependencies:
|
|
25
25
|
requirements:
|
26
26
|
- - ">="
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version: 0.
|
28
|
+
version: 0.1.1
|
29
29
|
- - "<"
|
30
30
|
- !ruby/object:Gem::Version
|
31
31
|
version: 2.0.0
|
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
82
|
- !ruby/object:Gem::Version
|
83
83
|
version: '0'
|
84
84
|
requirements: []
|
85
|
-
rubygems_version: 3.6.
|
85
|
+
rubygems_version: 3.6.9
|
86
86
|
specification_version: 4
|
87
87
|
summary: Command-line connector for Foobara
|
88
88
|
test_files: []
|