Releases: rom-rb/rom-factory
Releases · rom-rb/rom-factory
v0.12.0
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
v0.11.0
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 likeuser_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
v0.10.1
0.10.1 2019-12-28
Added
- Support for faker 2 (@ianks)
Fixed
- Keyword warnings reported by Ruby 2.7 (@flash-gordon)
v0.10.0
Added
-
struct_namespace
option is supported by factory builders (@graceful-potato)factories.define(:user, struct_namespace: MyApp::Entities) do |f| # ... end
Fixed
v0.9.1
v0.9.0
v0.6.0
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)