Skip to content

Releases: rom-rb/rom-factory

v0.12.0

26 Jan 10:28
v0.12.0
Compare
Choose a tag to compare

Added

  • Support for many-to-many and one-to-one-through associations (via
  • Support for UUID as PKs in associations (via

Fixed

  • Relations without PKs should work too (via
  • Relations with PK values generated on the Ruby side should work in SQlite too (via

Compare v0.11.0...v0.12.0

v0.11.0

11 Nov 07:24
v0.11.0
c026b59
Compare
Choose a tag to compare

Fixed

  • Support for plural Faker generators (@wuarmin)

Added

  • Support for one-to-one associations (@ianks)
  • [internal] cache for Faker constants (@flash-gordon)

Changed

  • [BREAKING] attributes are always passed as keywords (@alassek)
    This may affect your code in places where attributes are passed as hashes.
    Places like

    user_attributes = { name: 'Jane' }
    Factory[:user, user_attributes]

    must be updated to

    user_attributes = { name: 'Jane' }
    Factory[:user, **user_attributes]
  • Upgraded to the latest versions of dry-rb dependencies, compatible with rom 5.3 (@flash-gordon)

  • Support for Faker 1.x was dropped (@alassek)

v0.10.2

04 Apr 19:59
v0.10.2
43321d9
Compare
Choose a tag to compare

0.10.2 2020-04-05

Fixed

Compare v0.10.1...v0.10.2

v0.10.1

28 Dec 18:33
v0.10.1
33a546e
Compare
Choose a tag to compare

0.10.1 2019-12-28

Added

  • Support for faker 2 (@ianks)

Fixed

Compare v0.10.0...v0.10.1

v0.10.0

11 Dec 10:08
v0.10.0
bf0b426
Compare
Choose a tag to compare

Added

  • struct_namespace option is supported by factory builders (@graceful-potato)

    factories.define(:user, struct_namespace: MyApp::Entities) do |f|
      # ...
    end

Fixed

  • Support building structs when child assoc does not define parent (@psparrow)
  • Fixed TupleEvaluator#struct_attrs for non-standard output schema (@AMHOL)

Compare v0.9.1...v0.10.0

v0.9.1

23 Oct 07:30
v0.9.1
ac131cb
Compare
Choose a tag to compare

Fixed

  • Attributes of a struct are no longer accidentally passed to their associations (@psparrow)

Compare v0.9.0...v0.9.1

v0.9.0

12 Aug 14:52
v0.9.0
a9c2b57
Compare
Choose a tag to compare

Added

  • When attributes hash includes unknown attributes, a ROM::Factory::UnknownAttributeError will be raised (@rawburt)

Compare v0.8.0...v0.9.0

v0.6.0

31 Jan 17:18
Compare
Choose a tag to compare

Added

  • Support for factories with custom struct namespaces (solnic)

Changed

  • Accessing a factory which is not defined will result in FactoryNotDefinedError exception (GustavoCaso + solnic)

Fixed

  • Using dependent attributes with sequences works correctly, ie f.sequence(:login) { |i, name| "name-#{i}"} (solnic)

Compare v0.5.0...v0.6.0