Skip to content

Releases: BillyRuffian/faker_maker

Factory Namespacing Classes

25 Apr 13:36
fae884e

Choose a tag to compare

All factory classes are now created in the FakerMaker::Factory namespace

Simpler factory embedding

22 May 14:56
b513ee3

Choose a tag to compare

Easier factory embedding

FakerMaker.factory :item do
  name { Faker::Commerce.product_name }
  price { Faker::Commerce.price }
end

FakerMaker.factory :basket do
  items( has: 10, factory: :item )
end

Chaos mode

26 Jun 08:58
694bc99

Choose a tag to compare

FM factories can build objects with better optional fields to better test your APIs.

v1.3.0 audit history

17 May 07:06
401fc85

Choose a tag to compare

FakerMaker now, optionally, can stream out a record of all models it creates. Ruby 3+ only from this release onwards.

V1.2.1

16 Nov 09:59
99e181c

Choose a tag to compare

Fixed an issue where a naming scheme would break field-value omission when there was more than one attribute attached to a factory.

V1.2.0

14 Apr 09:51
3b6d08e

Choose a tag to compare

Fixes a problem where a naming scheme would prevent the omit modifier from working correctly #42

Cleans up the API for the before and after hooks by yield the instance being constructed and the factory doing the contstruction #43

Per factory naming of output in json strings

28 Oct 16:28
da1133b

Choose a tag to compare

Merge pull request #41 from BillyRuffian/feature/json_naming_strategy

per-factory json naming

Bug fix

08 Jun 08:26

Choose a tag to compare

Fixed: Factories were not always instantiating a new instance on build

Lifecycle hooks

01 May 11:09
0f1d4e7

Choose a tag to compare

Optional lifecycle hooks have been added to factories when created instances

Allow factories to be closed

21 Feb 11:24

Choose a tag to compare

Adds the ability close a factory and allow it's redefinition

  • shut!(name)
  • shut_all!