diff --git a/CHANGELOG.md b/CHANGELOG.md index 0e24b14..fdd3dbd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,115 +1,121 @@ # Changelog +## [0.9.0] - 2022-10-02 + +### Added + +- added code coverage ## [0.8.0] - 2021-11-13 ### Added -* added ability to re-rewire a module attribute +- added ability to re-rewire a module attribute ## [0.7.0] - 2020-11-07 ### Added -* added ability to re-rewire a module -* added extensive debug logging +- added ability to re-rewire a module +- added extensive debug logging ## [0.6.0] - 2020-11-06 ### Added -* support for rewiring a dependency on an Erlang module +- support for rewiring a dependency on an Erlang module ## [0.5.4] - 2020-10-31 ### Changed -* fixed bug for references to a previously-defined inner module +- fixed bug for references to a previously-defined inner module ## [0.5.3] - 2020-10-17 ### Changed -* docs and tests to use `import` instead of `use` +- docs and tests to use `import` instead of `use` ## [0.5.2] - 2020-10-17 ### Changed -* improved documentation +- improved documentation ## [0.5.1] - 2020-10-17 ### Added -* improved compiler errors +- improved compiler errors ## [0.5.0] - 2020-10-17 ### Added -* support for rewiring nested modules +- support for rewiring nested modules ## [0.4.1] - 2020-10-12 ### Added -* added mix formatter export +- added mix formatter export ## [0.4.0] - 2020-10-07 ### Added -* added debug option +- added debug option ## [0.3.3] - 2020-10-06 ### Changed -* internal refactorings -* improved documentation +- internal refactorings +- improved documentation ## [0.3.2] - 2020-10-02 ### Changed -* support `as` for `rewire` block +- support `as` for `rewire` block ## [0.3.1] - 2020-10-02 ### Added -* Elixir module documentation +- Elixir module documentation ## [0.3.0] - 2020-10-01 ### Added -* module-scoped `rewire` +- module-scoped `rewire` ## [0.2.1] - 2020-09-30 ### Changed -* improved alias detection of caller module +- improved alias detection of caller module ## [0.2.0] - 2020-09-30 ### Changed -* moved all code generation to compile-time due to compiler warnings in Elixir 1.10+ +- moved all code generation to compile-time due to compiler warnings in Elixir 1.10+ ## [0.1.1] - 2020-09-30 ### Changed -* fixed deprecation warning in Elixir 1.10+ +- fixed deprecation warning in Elixir 1.10+ ## [0.1.0] - 2020-09-28 ### Added -* initial version -* `rewire` with module args -* `rewire` with shorthand args -* error for non-existant module -* error for missing module replacement + +- initial version +- `rewire` with module args +- `rewire` with shorthand args +- error for non-existant module +- error for missing module replacement diff --git a/README.md b/README.md index f0a72c5..7029908 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,4 @@ -rewire -=== +# rewire [![Build Status](https://travis-ci.org/stephanos/rewire.svg?branch=master)](https://travis-ci.org/stephanos/rewire) [![Hex.pm](https://img.shields.io/hexpm/v/rewire.svg)](https://hex.pm/packages/rewire) @@ -17,7 +16,7 @@ Just add `rewire` to your list of dependencies in mix.exs: ```elixir def deps do [ - {:rewire, "~> 0.8", only: :test} + {:rewire, "~> 0.9", only: :test} ] end ``` @@ -95,7 +94,7 @@ Maybe just a little? Conclusive data from a larger code base isn't in yet. **Will test coverage be reported correctly?** -Sadly, not yet. But that is fixable. See [issue #10](https://github.com/stephanos/rewire/issues/10). +Yes! **Will it work with stateful processes?** @@ -131,10 +130,10 @@ end The downsides to that approach are: - 1) Your application code is now littered with testing concerns. - 2) Navigation in your code editor doesn't work as well. - 3) Searches for usages of the module are more difficult. - 4) The compiler is not able to warn you in case `greet/0` doesn't exist on the `English` module. +1. Your application code is now littered with testing concerns. +2. Navigation in your code editor doesn't work as well. +3. Searches for usages of the module are more difficult. +4. The compiler is not able to warn you in case `greet/0` doesn't exist on the `English` module. If you use `mox` for your mocking, there's a slightly better approach: diff --git a/mix.exs b/mix.exs index 29cfd2a..10807cd 100644 --- a/mix.exs +++ b/mix.exs @@ -4,7 +4,7 @@ defmodule Rewire.MixProject do def project do [ app: :rewire, - version: "0.8.0", + version: "0.9.0", elixir: "~> 1.7", start_permanent: Mix.env() == :prod, elixirc_paths: elixirc_paths(Mix.env()),