foobara 0.1.13 → 0.1.14

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: 1261fd639b27af7af53e6a9be2225216d27ac77a83bddf4d78d645102473bff6
4
- data.tar.gz: 8d1c16370a2adfdbd9eb47126d1ab830b502c2b7dfa885ed9099d0851a9bcd60
3
+ metadata.gz: c7ae8222d0453f7195938553867b443d09f106ebc9f5c3206313d463621e343a
4
+ data.tar.gz: db414f4c72eadfd51b35d876c4f3f1c4c74e91680e1e3276164b18ed7d3e4ecd
5
5
  SHA512:
6
- metadata.gz: b5a6ef53e71864b9d756447f8eaae461e798d243c23121e041a12a6e0c4ecaa87b624c593d185549b2714569b965913447fa747e5df7922d8a538d1a60061b94
7
- data.tar.gz: 5a45569f70560c505b4c61a44fc91a0145e9d362c1f07ecacc2fb7cdbc3bbf12b9bc1f35ea51996f6138d060ed09b236483ed88fe12886609d3e241624db451a
6
+ metadata.gz: ee2feca5f583800b2e1ec869b5a6c3bfb530c50735e285745b8bf1fa349d3b94b36f0ec62d361180f97432dcd4fb38731a5ec4556b6dcd9c7ba707d51b772512
7
+ data.tar.gz: e6cb702a8667bae3b64a93213b000c094da67a0d735ad874c94a641fcd8d1d529fab15b9c0ad80429e04a253029d154c0623abf3e6a3e9f5c91754cead1750da
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # [0.1.14] - 2025-09-27
2
+
3
+ - When using aggregate/atom_entities connector options, remove default serializer/pre-commit transformers of the other
4
+
1
5
  # [0.1.13] - 2025-09-27
2
6
 
3
7
  - Fix various bugs resulting in values missing from connector manifest or included when they should not be
@@ -58,12 +58,16 @@ module Foobara
58
58
  if aggregate_entities
59
59
  pre_commit_transformers = [
60
60
  *pre_commit_transformers,
61
- Foobara::CommandConnectors::Transformers::LoadAggregatesPreCommitTransformer
62
- ].uniq
63
- serializers = [
64
- *serializers,
65
- Foobara::CommandConnectors::Serializers::AggregateSerializer
66
- ].uniq
61
+ CommandConnectors::Transformers::LoadAggregatesPreCommitTransformer
62
+ ]
63
+
64
+ pre_commit_transformers.uniq!
65
+ pre_commit_transformers.delete(CommandConnectors::Transformers::LoadAtomsPreCommitTransformer)
66
+
67
+ serializers = [*serializers, CommandConnectors::Serializers::AggregateSerializer]
68
+
69
+ serializers.uniq!
70
+ serializers.delete(Foobara::CommandConnectors::Serializers::AtomicSerializer)
67
71
  # TODO: either both should have special behavior for false or neither should
68
72
  elsif aggregate_entities == false
69
73
  pre_commit_transformers = pre_commit_transformers&.reject do |t|
@@ -73,7 +77,18 @@ module Foobara
73
77
  s == Foobara::CommandConnectors::Serializers::AggregateSerializer
74
78
  end
75
79
  elsif atomic_entities
76
- serializers = [*serializers, Foobara::CommandConnectors::Serializers::AtomicSerializer].uniq
80
+ pre_commit_transformers = [
81
+ *pre_commit_transformers,
82
+ CommandConnectors::Transformers::LoadAtomsPreCommitTransformer
83
+ ]
84
+
85
+ pre_commit_transformers.uniq!
86
+ pre_commit_transformers.delete(CommandConnectors::Transformers::LoadAggregatesPreCommitTransformer)
87
+
88
+ serializers = [*serializers, Foobara::CommandConnectors::Serializers::AtomicSerializer]
89
+
90
+ serializers.uniq!
91
+ serializers.delete(CommandConnectors::Serializers::AggregateSerializer)
77
92
  end
78
93
 
79
94
  self.command_class = command_class
@@ -98,7 +113,9 @@ module Foobara
98
113
  self.pre_commit_transformers = [
99
114
  *self.pre_commit_transformers,
100
115
  CommandConnectors::Transformers::LoadDelegatedAttributesEntitiesPreCommitTransformer
101
- ].uniq
116
+ ]
117
+
118
+ pre_commit_transformers.uniq!
102
119
  end
103
120
  end
104
121
  end
data/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Foobara
2
2
  module Version
3
- VERSION = "0.1.13".freeze
3
+ VERSION = "0.1.14".freeze
4
4
  MINIMUM_RUBY_VERSION = ">= 3.4.0".freeze
5
5
  end
6
6
  end
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.1.13
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi