foobara 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0c67b545a741174d59b5a74553449d32169d2745b33824ad14ee21e4dac7085b
4
- data.tar.gz: 1e54750375fe79b83ee0bbf08e460021193124e5f7f661c4eef39afd53c3573b
3
+ metadata.gz: 467a360223436ef05ee0657bdcfbe8b6f8e855fe13a5af8f16d1fc9ef5d3b8e1
4
+ data.tar.gz: 3dcf54e84bd89483b9130d3c6093e1e14908c284904032fdb1c3011c7ca02dfb
5
5
  SHA512:
6
- metadata.gz: 18d0063f27c3c708b30603091ddaaba2bb11ad864d6902b705f0b120ba64ed32f33f64023561a11086e3cf266cf426b927deefc44e173d625156e6aa4d2c9a19
7
- data.tar.gz: 84f34116a5033ae5c2f34c6e408520cb61a2b0efbedbb59b1b07792c35992c1622153a4b254c8c5c4bd3782b6a22c0a04ec828160f3a0c11e0729871a160ccc7
6
+ metadata.gz: b58b221f4cfbc3407bcf2098049f9a00e8cc50b9ba97f03ac0c7f50e7e851f44096f98183a5d1e1805559df2ed10cabbc731002eec3ce5bd492db97656fa167e
7
+ data.tar.gz: 813912a5fe4b4aed472f4cf4dc51724e650595b128c422bacb7f6592ab08e319b9d8977b3474df048833f4a5847d037cef6013d498bfe722507e1e313221f361
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [0.0.4] - 2024-08-19
2
+
3
+ - Render element type for Array types in Http::Help
4
+
1
5
  ## [0.0.3] - 2024-08-15
2
6
 
3
7
  - Do not automatically try to map subcommand types to calling command result type
@@ -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.3
4
+ version: 0.0.4
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-17 00:00:00.000000000 Z
11
+ date: 2024-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: foobara-util