rom-factory 0.14.0 → 0.14.1

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: 76c2c2d443aae25366e10dc9cfb41bc23a9e69abd38597b144214a9b4f861b51
4
- data.tar.gz: 3aea3e8cf8568962e72c0d8ebda1da5b9ca38b6bcbf6469a9c2ea3f67377a314
3
+ metadata.gz: e2cc20c4d4c1c21ec68d029af8e25e80ab28069be0d52cf250b462224507e29b
4
+ data.tar.gz: fc048580cb1667927901fbfb90a523212dc4e45856a30f21e7a21f3bfc00cb49
5
5
  SHA512:
6
- metadata.gz: 1a463af2b73eca8c24d2a276c678a72e7d7883ed030b241bdc71c58998ce2ce0742f039e30744a0baa12d81cfcab111602f2b960e0db5abf786b3c0f9afe3c03
7
- data.tar.gz: b60e2dfd2d87136bd3f10a84df790fa2f664babdd9d972682986545ceefabf7353f7811ef6f2f51028f611012e3b9f632cf485fcdf63c0d490ef543b9b59cf8d
6
+ metadata.gz: f1dbe301c3bdd3835f6416a084b053b7d55f9e52798b656a29d6b3be176aace1948e97c5666c29325443a3fdcac11879bc6ec53a3e57b28037e3ecb59db890a2
7
+ data.tar.gz: 2b2d407ba45235d175f6f077b3d0630a1061da18127991e399d819d815565ab65d8ea795894e4bca8b4733d85736978f8fbac82ebca5c12639eb58256b99ae81
data/CHANGELOG.md CHANGED
@@ -19,7 +19,15 @@ and this project adheres to [Break Versioning](https://www.taoensso.com/break-ve
19
19
 
20
20
  ### Security
21
21
 
22
- [Unreleased]: https://github.com/rom-rb/rom-factory/compare/v0.14.0...main
22
+ [Unreleased]: https://github.com/hanakai-rb/rom-factory/compare/v0.14.1...main
23
+
24
+ ## [0.14.1] - 2026-10-08
25
+
26
+ ## Fixed
27
+
28
+ - Child factories inherit traits from parent. (@alassek in #100)
29
+
30
+ [0.14.1]: https://github.com/hanakai-rb/rom-factory/compare/v0.14.0...v0.14.1
23
31
 
24
32
  ## [0.14.0] - 2026-10-03
25
33
 
@@ -52,13 +52,13 @@ module ROM
52
52
 
53
53
  # @api private
54
54
  def initialize(name, relation:, factories:, struct_namespace:, attributes: AttributeRegistry.new,
55
- transient: false)
55
+ traits: {}, transient: false)
56
56
  @_name = name
57
57
  @_relation = relation
58
58
  @_factories = factories
59
59
  @_struct_namespace = struct_namespace
60
60
  @_attributes = attributes.dup
61
- @_traits = {}
61
+ @_traits = traits.dup
62
62
  @_valid_names = _relation.schema.attributes.map(&:name)
63
63
  @_transient = transient
64
64
  yield(self)
@@ -250,6 +250,7 @@ module ROM
250
250
  DSL.new(
251
251
  name,
252
252
  attributes: parent.attributes,
253
+ traits: parent.traits,
253
254
  relation: relation,
254
255
  factories: self,
255
256
  struct_namespace: namespace,
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ROM
4
4
  module Factory
5
- VERSION = "0.14.0"
5
+ VERSION = "0.14.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rom-factory
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.14.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hanakai team