foobara 0.0.79 → 0.0.80

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: 94df95584faca0e8348cf9c142e5fd140db61cf383a736bae3079bdf7b5da57f
4
- data.tar.gz: 649db3526c7c6b4c5021c788187492ade4e2e7d3e75b4403e2882818de7d1126
3
+ metadata.gz: 1b2fdc64452fe8ed0285ac3b9d9ad26108cd7157f798a3fac36b814a0855d802
4
+ data.tar.gz: 4e37ca0d5af8ffd919b068a2fb67573ecddf056e2b13d6d39604f09188cc11c6
5
5
  SHA512:
6
- metadata.gz: a569a3f45368c81d72e5ca58f32f99b593d75302447dffb1307c6b6e39d71056f798dc8b141cd1d49ea53df42251ca95104ef663529c74fc893df8bcadfc65bf
7
- data.tar.gz: 3a370d02adcde2f6d29a02ad8caa2cd5216d52f0c2971238257f0623086cb356a6e3a32a9b8fefdc04f4ccf149eb63e6df8905f0c65a45cf897670234df2c9ff
6
+ metadata.gz: cefd96fe33a1c2fdf1fd2f53aa128e8c6f636507d921f0f30dd9730983b8fa10c5aa10b43bd2b8c0008f50452106f90cf7b8bacae9b0142df4898d3c1ba62b2f
7
+ data.tar.gz: b8fb560d295f3fe8c6a1f0e194f8528a02771e5504b9c482235e16cd9cba7cb0d51858e7b12952027e14d78909a4fd07c68be54553ff3b6356f029ff4cc3259c
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # [0.0.80] - 2025-03-19
2
+
3
+ - Fix bug preventing combining array type sugar with sensitive flag in type declarations
4
+
1
5
  # [0.0.79] - 2025-03-19
2
6
 
3
7
  - Make foobara manifest output more deterministic (alphabetize required fields array)
@@ -8,7 +8,7 @@ module Foobara
8
8
  class TypeSetToArrayDesugarizer < ArrayDesugarizer
9
9
  def applicable?(sugary_type_declaration)
10
10
  if sugary_type_declaration.is_a?(::Hash) && sugary_type_declaration.key?(:type)
11
- extra_keys = sugary_type_declaration.keys - %i[type description]
11
+ extra_keys = sugary_type_declaration.keys - %i[type description sensitive sensitive_exposed]
12
12
 
13
13
  return false if extra_keys.any?
14
14
 
@@ -27,6 +27,14 @@ module Foobara
27
27
  strict_type_declaration[:description] = sugary_type_declaration[:description]
28
28
  end
29
29
 
30
+ if sugary_type_declaration.key?(:sensitive)
31
+ strict_type_declaration[:sensitive] = sugary_type_declaration[:sensitive]
32
+ end
33
+
34
+ if sugary_type_declaration.key?(:sensitive_exposed)
35
+ strict_type_declaration[:sensitive_exposed] = sugary_type_declaration[:sensitive_exposed]
36
+ end
37
+
30
38
  strict_type_declaration
31
39
  end
32
40
  end
@@ -51,7 +51,6 @@ module Foobara
51
51
  type_class.new(
52
52
  strict_type_declaration,
53
53
  base_type:,
54
- # description: strict_type_declaration.is_a?(::Hash) && strict_type_declaration[:description],
55
54
  description: strict_type_declaration[:description],
56
55
  casters:,
57
56
  transformers:,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foobara
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.79
4
+ version: 0.0.80
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi
@@ -468,7 +468,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
468
468
  - !ruby/object:Gem::Version
469
469
  version: '0'
470
470
  requirements: []
471
- rubygems_version: 3.6.5
471
+ rubygems_version: 3.6.6
472
472
  specification_version: 4
473
473
  summary: A command-centric and discoverable software framework with a focus on domain
474
474
  concepts and abstracting away integration code