diff --git a/CHANGELOG.md b/CHANGELOG.md index e50a98d..a5ab891 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,21 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [0.0.4] - [2018-05-22] + +### Added + +- The `:count` option for a number of objects to seed at once (nepalez) + + ```yaml + # Seed 3 customers + --- + - type: user + count: 3 + traits: + - customer + ``` + ## [0.0.3] - [2018-05-04] ### Added @@ -52,3 +67,4 @@ This is a first public release with features extracted from production app. [0.0.1]: https://github.com/nepalez/fixturama/releases/tag/v0.0.1 [0.0.2]: https://github.com/nepalez/fixturama/compare/v0.0.1...v0.0.2 [0.0.3]: https://github.com/nepalez/fixturama/compare/v0.0.2...v0.0.3 +[0.0.4]: https://github.com/nepalez/fixturama/compare/v0.0.3...v0.0.4 diff --git a/README.md b/README.md index fc9d6ed..6316d68 100644 --- a/README.md +++ b/README.md @@ -79,7 +79,7 @@ The seed (`seed_fixture`) file should be a YAML/JSON with opinionated parameters # ./database.yml # # This is the same as -# `create :profile, :active, id: profile_id` +# `create_list :profile, 1, :active, id: profile_id` --- - type: profile traits: @@ -88,6 +88,8 @@ The seed (`seed_fixture`) file should be a YAML/JSON with opinionated parameters id: <%= profile_id %> ``` +Use the `count: 2` key to create more objects at once. + Another opinionated format we use for stubs (`stub_fixture`): - `class` for stubbed class diff --git a/fixturama.gemspec b/fixturama.gemspec index 09c5560..2500970 100644 --- a/fixturama.gemspec +++ b/fixturama.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |gem| gem.name = "fixturama" - gem.version = "0.0.3" + gem.version = "0.0.4" gem.author = "Andrew Kozin (nepalez)" gem.email = "andrew.kozin@gmail.com" gem.homepage = "https://github.com/nepalez/fixturama"