All Versions
20
Latest Version
Avg Release Cycle
167 days
Latest Release
-

Changelog History
Page 2

  • v1.0.2 Changes

    July 01, 2016

    ๐Ÿ“š Minor documentation fixes

  • v1.0.1 Changes

    June 24, 2016

    Small change to the error generated when a factory definition is not found (#142)

  • v1.0.0 Changes

    June 24, 2016

    โฌ†๏ธ A lot has changed but we tried to make upgrading as simple as possible.

    โฌ†๏ธ To upgrade: In mix.exs change the version to "~> 1.0" and run mix โšก๏ธ deps.get. Once you've updated, run mix test and ExMachina will raise errors that show you what needs to change to work with 1.0.0.

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fix compilation issues under OTP 19 (#138)
    • Raise helpful error when trying to insert twice (#128)

    โž• Added

    • โž• Add Sequence.next/1 for quickly creating sequences. Example: sequence("username") will generate "username1", then "username2" (#84)
    • Raise if passing invalid keys to structs (#99)
    • Add params_with_assocs (#124)

    ๐Ÿ”„ Changed

    • Rename fields_for to params_for (#98)
    • If using ExMachina with Ecto, use insert, insert_list and insert_pair instead of create_*
    • Instead of defining a custom save_record, you can now implement an ExMachina.Strategy. See the documentation on hex.pm for more info (#102)
    • ๐Ÿ‘€ Define factory as user_factory instead of factory(:user) (#110). See PR and related issue for details on why this was changed.
    • params_for no longer returns the primary key (#123)
  • v0.6.2

    September 12, 2016
  • v0.6.1 Changes

    โœ‚ Removes warnings as reported by โšก๏ธ https://github.com/thoughtbot/ex_machina/issues/70. We recommend updating if you are using Ecto 1.1. There are no backward incompatible changes and no new ๐Ÿ”‹ features.

  • v0.6.0 Changes

    You can continue using ExMachina 0.5.0 if you are not ready for Ecto 1.1 yet. ๐Ÿš€ There are no additional new features in this release.

    • โšก๏ธ Updated to use Ecto 1.1
    • Require Ecto 1.1

    ๐Ÿš€ There are still some warnings that we need to fix for Ecto 1.1, but this release โฌ†๏ธ at least fixes the error that was caused when upgrading to Ecto 1.1.

  • v0.5.0 Changes

    ๐Ÿ”„ Changed

    • ๐Ÿ‘€ Factories were simplified so that attrs is no longer required. See 70a0481 and issue #56
    • ๐Ÿ— ExMachina.Ecto.assoc/3 was removed. You can now use build(:factory) instead. See discussion in issue #56

    ๐Ÿ›  Fixed

    • ๐Ÿ‘‰ Use association id as defined on the schema 7c67047
  • v0.4.0 Changes

    โž• Added

    • Add support for has_many and has_one Ecto associations. See 1ff4198.

    ๐Ÿ”„ Changed

    • ๐Ÿ‘€ Factories must now be defined with functions. See 59b7d23
  • v0.3.0 Changes

    โž• Added

    • ๐Ÿ— Add build_list and build_pair. See 8f332ce.
    • โž• Add a create method that takes a map. This allows you to chain functions ๐Ÿ— like: build(:foo) |> make_admin |> create. See 59cbef5.

    ๐Ÿ”„ Changed

    • ๐Ÿ‘€ Factories must now be defined with a macro. See 03c41f6
    • ๐Ÿ‘€ belongs_to associations are now built instead of created. See b518285.
  • v0.2.0 Changes

    ๐Ÿ”„ Changed

    • ๐Ÿ‘€ Ecto functionality was extracted to ExMachina.Ecto. See 270c19b.