foobara 0.0.3 → 0.0.5
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: d0d75c02aeb1d7ced25b0d2a0ef318dd0e3a1935b4c49be4f051c047f20087ef
|
4
|
+
data.tar.gz: 2e356c61f565f53264e67158099796459f3acc9b265ad6762acb351753062c89
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b1ea24287f78f2c071d9c3284674b92ad127a96fb19186fa59e2994b85c43277fd075e95587df12ff582f05dcb59f50cf439b0c54e7b07de7b982171f8098a9
|
7
|
+
data.tar.gz: fc609c10518e1cc5af2a096204ddde8527fbcf9934df455343c3565fdd94dd4863b47269e5b7ec3acd2796e179075f6d2744c4c43116af6e9a110b93d28fb7e2
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
## [0.0.5] - 2024-08-21
|
2
|
+
|
3
|
+
- Render element type for Array types in Http::Help
|
4
|
+
|
5
|
+
## [0.0.4] - 2024-08-19
|
6
|
+
|
7
|
+
- Render element type for Array types in Http::Help
|
8
|
+
|
1
9
|
## [0.0.3] - 2024-08-15
|
2
10
|
|
3
11
|
- Do not automatically try to map subcommand types to calling command result type
|
@@ -391,7 +391,13 @@ module Foobara
|
|
391
391
|
end
|
392
392
|
end
|
393
393
|
|
394
|
-
h
|
394
|
+
normalize_manifest(h)
|
395
|
+
end
|
396
|
+
|
397
|
+
def normalize_manifest(manifest_hash)
|
398
|
+
manifest_hash.map do |key, entries|
|
399
|
+
[key, entries.sort.to_h]
|
400
|
+
end.sort.to_h
|
395
401
|
end
|
396
402
|
|
397
403
|
def all_exposed_commands
|
@@ -103,6 +103,22 @@ module Foobara
|
|
103
103
|
html << "</li>"
|
104
104
|
end
|
105
105
|
html << "</ul>" unless skip_wrapper
|
106
|
+
when Manifest::Array
|
107
|
+
html << "<ul>" unless skip_wrapper
|
108
|
+
data.relevant_manifest.each_pair do |key, value|
|
109
|
+
next if key == :element_type_declaration
|
110
|
+
|
111
|
+
if key.to_s == "type"
|
112
|
+
value = root_manifest.lookup_path(key, value)
|
113
|
+
end
|
114
|
+
html << "<li>#{key}"
|
115
|
+
html << "<ul>"
|
116
|
+
html << render_html_list(value, skip_wrapper: true)
|
117
|
+
html << "</ul>"
|
118
|
+
html << "</li>"
|
119
|
+
end
|
120
|
+
html << render_html_list({ element_type: data.element_type }, skip_wrapper: true)
|
121
|
+
html << "</ul>" unless skip_wrapper
|
106
122
|
when Manifest::TypeDeclaration
|
107
123
|
html << "<ul>" unless skip_wrapper
|
108
124
|
data.relevant_manifest.each_pair do |key, value|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foobara
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miles Georgi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-08-
|
11
|
+
date: 2024-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: foobara-util
|