foobara 0.0.19 → 0.0.21

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: e98da71172ba2ce6a41f900c6116319dff8661d82e68370bdd8024cdcb6b8ede
4
- data.tar.gz: 97b832458ea9dcd49c066028b82bfc0ad54df58187d2ea4a354a912ce9b288b7
3
+ metadata.gz: 8bae427b4d95880813782995bc8007b6ce1949fb5146b6119990462e6d74ec30
4
+ data.tar.gz: 02c6307459618529f7534cfb846c9adc8870a59dca72957b7dd0636b2c1235dc
5
5
  SHA512:
6
- metadata.gz: f5ad6eb6d15770e4739b2986b27cc93c730b4e76317f064a9a550ffd5c7276ab1020f8efdd932950cdaa8161a4884430d4dbb2c38a4a7cdad8c2e0d518f84928
7
- data.tar.gz: b98e0577f7e5ab638c74298c006aaeec277142aafff65ecf5603fbdbe9f821a400486e99f7f816d615a4cc24f25dd1145574333a6a858e830580d9a30bb9ddb5
6
+ metadata.gz: afef20c98aa2f6d50e885b1f60375750a2aa215832114fe91cfc8c325cf79041b3b663fef5b20086f15aa85a58e5e246bed1c1455fce9ad8355d9f90685d762b
7
+ data.tar.gz: bdae23b73288f992f62187dd24aab3c01f74b3cdc9cd04813638d0d05d9e8a7b5ff585767433fce7bac1afdeebe1049837935170f7b89f3cb8bfc1ebf0a8fc2b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## [0.0.21] - 2024-12-02
2
+
3
+ - Allow #foobara_manifest to be called without a to_include Set
4
+
5
+ ## [0.0.20] - 2024-12-01
6
+
7
+ - Fix delayed_connections bug in command connector
8
+
1
9
  ## [0.0.19] - 2024-11-30
2
10
 
3
11
  - Add some noop crud driver method implementations to
@@ -19,7 +19,7 @@ module Foobara
19
19
  remove_instance_variable("@all") if instance_variable_defined?("@all")
20
20
  end
21
21
 
22
- def foobara_manifest(to_include:)
22
+ def foobara_manifest(to_include: Set.new)
23
23
  depends_on = self.depends_on.map do |command_name|
24
24
  other_command = Foobara::Namespace.global.foobara_lookup!(command_name,
25
25
  mode: Foobara::Namespace::LookupMode::ABSOLUTE)
@@ -156,7 +156,7 @@ module Foobara
156
156
  types
157
157
  end
158
158
 
159
- def foobara_manifest(to_include:)
159
+ def foobara_manifest(to_include: Set.new)
160
160
  types = types_depended_on.select(&:registered?).map do |t|
161
161
  to_include << t
162
162
  t.foobara_manifest_reference
@@ -266,6 +266,8 @@ module Foobara
266
266
  const = Object.const_get(registerable_name)
267
267
  connect(const, *args, **opts)
268
268
  end
269
+
270
+ delayed_connections.clear
269
271
  end
270
272
 
271
273
  def connect(registerable, *, **)
@@ -94,7 +94,7 @@ module Foobara
94
94
  @full_command_symbol ||= Util.underscore_sym(full_command_name)
95
95
  end
96
96
 
97
- def foobara_manifest(to_include:)
97
+ def foobara_manifest(to_include: Set.new)
98
98
  transformed_command_class.foobara_manifest(to_include:).merge(super).merge(
99
99
  Util.remove_blank(
100
100
  scoped_category: :command,
@@ -14,7 +14,7 @@ module Foobara
14
14
  end
15
15
 
16
16
  # TODO: unable to address types here so it is handled as a hack higher up...
17
- def foobara_manifest(to_include:)
17
+ def foobara_manifest(to_include: Set.new)
18
18
  domain_manifest = domain_module.foobara_manifest(to_include: Set.new)
19
19
  mode = Foobara::Namespace::LookupMode::DIRECT
20
20
  commands = foobara_all_command(mode:).map(&:foobara_manifest_reference).sort
@@ -14,7 +14,7 @@ module Foobara
14
14
  end
15
15
 
16
16
  # TODO: unable to address types here so it is handled as a hack higher up...
17
- def foobara_manifest(to_include:)
17
+ def foobara_manifest(to_include: Set.new)
18
18
  organization_manifest = organization_module.foobara_manifest(to_include: Set.new)
19
19
  mode = Foobara::Namespace::LookupMode::DIRECT
20
20
  domains = foobara_all_domain(mode:).map(&:foobara_manifest_reference).sort
@@ -57,7 +57,7 @@ module Foobara
57
57
  }
58
58
  end
59
59
 
60
- def foobara_manifest(to_include:)
60
+ def foobara_manifest(to_include: Set.new)
61
61
  types = types_depended_on.map do |t|
62
62
  to_include << t
63
63
  t.foobara_manifest_reference
@@ -46,7 +46,7 @@ module Foobara
46
46
  end
47
47
 
48
48
  # TODO: technically does not belong in this project but maybe it should
49
- def foobara_manifest(to_include:)
49
+ def foobara_manifest(to_include: Set.new)
50
50
  to_include << error_class
51
51
 
52
52
  if processor
@@ -393,7 +393,7 @@ module Foobara
393
393
  end
394
394
 
395
395
  # TODO: can we kill this skip concept?
396
- def foobara_manifest(to_include:)
396
+ def foobara_manifest(to_include: Set.new)
397
397
  depends_on = foobara_depends_on.map do |name|
398
398
  domain = Domain.to_domain(name)
399
399
  to_include << domain
@@ -36,7 +36,7 @@ module Foobara
36
36
  foobara_all_domain(mode: Namespace::LookupMode::DIRECT)
37
37
  end
38
38
 
39
- def foobara_manifest(to_include:)
39
+ def foobara_manifest(to_include: Set.new)
40
40
  domains = foobara_domains.map do |domain|
41
41
  to_include << domain
42
42
  domain.foobara_manifest_reference
@@ -17,7 +17,7 @@ module Foobara
17
17
  types.map(&:target_class).uniq
18
18
  end
19
19
 
20
- def foobara_manifest(to_include:)
20
+ def foobara_manifest(to_include: Set.new)
21
21
  associations = self.associations.map do |(path, type)|
22
22
  entity_class = type.target_class
23
23
  entity_name = entity_class.full_entity_name
@@ -5,7 +5,7 @@ module Foobara
5
5
  include Concern
6
6
 
7
7
  module ClassMethods
8
- def foobara_manifest(to_include:)
8
+ def foobara_manifest(to_include: Set.new)
9
9
  Util.remove_blank(
10
10
  attributes_type: attributes_type.declaration_data,
11
11
  organization_name:,
@@ -10,7 +10,7 @@ module Foobara
10
10
  false
11
11
  end
12
12
 
13
- def foobara_manifest(to_include:)
13
+ def foobara_manifest(to_include: Set.new)
14
14
  # :nocov:
15
15
  super.merge(processor_type: :desugarizer)
16
16
  # :nocov:
@@ -4,7 +4,7 @@ module Foobara
4
4
  module TypeDeclarations
5
5
  class TypeDeclarationHandler < Value::Processor::Pipeline
6
6
  class << self
7
- def foobara_manifest(to_include:)
7
+ def foobara_manifest(to_include: Set.new)
8
8
  # :nocov:
9
9
  super.merge(processor_type: :type_declaration_handler)
10
10
  # :nocov:
@@ -2,7 +2,7 @@ module Foobara
2
2
  module TypeDeclarations
3
3
  class TypeDeclarationHandlerRegistry < Value::Processor::Selection
4
4
  class << self
5
- def foobara_manifest(to_include:)
5
+ def foobara_manifest(to_include: Set.new)
6
6
  # :nocov:
7
7
  super.merge(processor_type: :type_declaration_handler_registry)
8
8
  # :nocov:
@@ -4,7 +4,7 @@ module Foobara
4
4
  include WithRegistries
5
5
 
6
6
  class << self
7
- def foobara_manifest(to_include:)
7
+ def foobara_manifest(to_include: Set.new)
8
8
  # :nocov:
9
9
  super.merge(processor_type: :type_declaration_validator)
10
10
  # :nocov:
@@ -247,7 +247,7 @@ module Foobara
247
247
  scoped_full_name
248
248
  end
249
249
 
250
- def foobara_manifest(to_include:)
250
+ def foobara_manifest(to_include: Set.new)
251
251
  types = []
252
252
 
253
253
  types_depended_on.each do |dependent_type|
@@ -3,7 +3,7 @@ module Foobara
3
3
  # TODO: do we really need these?? Can't just use a transformer?
4
4
  class Caster < Transformer
5
5
  class << self
6
- def foobara_manifest(to_include:)
6
+ def foobara_manifest(to_include: Set.new)
7
7
  super.merge(processor_type: :caster)
8
8
  end
9
9
 
@@ -22,7 +22,7 @@ module Foobara
22
22
  end
23
23
 
24
24
  class << self
25
- def foobara_manifest(to_include:)
25
+ def foobara_manifest(to_include: Set.new)
26
26
  # :nocov:
27
27
  super.merge(processor_type: :casting)
28
28
  # :nocov:
@@ -5,7 +5,7 @@ module Foobara
5
5
  class Processor
6
6
  class Pipeline < Multi
7
7
  class << self
8
- def foobara_manifest(to_include:)
8
+ def foobara_manifest(to_include: Set.new)
9
9
  # :nocov:
10
10
  super.merge(processor_type: :pipeline)
11
11
  # :nocov:
@@ -9,7 +9,7 @@ module Foobara
9
9
  class MoreThanOneApplicableProcessorError < DataError; end
10
10
 
11
11
  class << self
12
- def foobara_manifest(to_include:)
12
+ def foobara_manifest(to_include: Set.new)
13
13
  # :nocov:
14
14
  super.merge(processor_type: :selection)
15
15
  # :nocov:
@@ -25,7 +25,7 @@ module Foobara
25
25
  true
26
26
  end
27
27
 
28
- def foobara_manifest(to_include:)
28
+ def foobara_manifest(to_include: Set.new)
29
29
  errors = error_classes.map do |error_class|
30
30
  to_include << error_class
31
31
  error_class.foobara_manifest_reference
@@ -317,7 +317,7 @@ module Foobara
317
317
 
318
318
  # TODO: is this in the wrong place? Should this be an extension?
319
319
 
320
- def foobara_manifest(to_include:)
320
+ def foobara_manifest(to_include: Set.new)
321
321
  possible_errors = self.possible_errors.map do |possible_error|
322
322
  [possible_error.key.to_s, possible_error.foobara_manifest(to_include:)]
323
323
  end
@@ -10,7 +10,7 @@ module Foobara
10
10
  end
11
11
 
12
12
  class << self
13
- def foobara_manifest(to_include:)
13
+ def foobara_manifest(to_include: Set.new)
14
14
  super.merge(processor_type: :transformer)
15
15
  end
16
16
 
@@ -6,7 +6,7 @@ module Foobara
6
6
  end
7
7
 
8
8
  class << self
9
- def foobara_manifest(to_include:)
9
+ def foobara_manifest(to_include: Set.new)
10
10
  super.merge(processor_type: :transformer)
11
11
  end
12
12
  end
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.19
4
+ version: 0.0.21
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-11-30 00:00:00.000000000 Z
11
+ date: 2024-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: foobara-util