diff --git a/CHANGELOG.md b/CHANGELOG.md index 6e73cac..866aab1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -79,18 +79,18 @@ This version upgrades to the Parent 0.11 and changes the internals. Strictly spe - The interface for writing tests has been changed. A certification test should now be written as - ```elixir - defmodule MyEndpoint.CertificationTest do - use ExUnit.Case, async: false - import SiteEncrypt.Phoenix.Test - - test "certification" do - clean_restart(MyEndpoint) - cert = get_cert(MyEndpoint) - assert cert.domains == ~w/mysite.com www.mysite.com/ + ```elixir + defmodule MyEndpoint.CertificationTest do + use ExUnit.Case, async: false + import SiteEncrypt.Phoenix.Test + + test "certification" do + clean_restart(MyEndpoint) + cert = get_cert(MyEndpoint) + assert cert.domains == ~w/mysite.com www.mysite.com/ + end end - end - ``` + ``` ## 0.1.0 @@ -104,16 +104,16 @@ This version introduces many breaking changes. If you've been using a pre 0.1 ve 1. In your endpoint, replace `@behaviour SiteEncrypt` with `use SiteEncrypt.Phoenix` 2. Also in the endpoint, change the `certification/0` callback to pass the options to `SiteEncrypt.configure/1` instead of just returning them. 3. Changes in options: - - `:mode` is no longer supported. Manual mode will be automatically set in tests. - - use `:domains` instead of `:domain` and `:extra_domain` - - `:ca_url` has been renamed to `directory_url` - - `:email` has been renamed to `emails` and must be a list - - `:base_folder` has been renamed to `:db_folder` - - `:cert_folder` is no longer supported. It will chosen automatically inside the `:db_folder` + - `:mode` is no longer supported. Manual mode will be automatically set in tests. + - use `:domains` instead of `:domain` and `:extra_domain` + - `:ca_url` has been renamed to `directory_url` + - `:email` has been renamed to `emails` and must be a list + - `:base_folder` has been renamed to `:db_folder` + - `:cert_folder` is no longer supported. It will chosen automatically inside the `:db_folder` 4. The internal folders structure has been changed. If you're running a site_encrypt system in production, you need to create the folder called `certbot` inside the `:db_folder`, and recurisvely copy top-level folders under `:db_folder` into the newly created `certbot` folder. 5. If you have been using `SiteEncrypt.Phoenix.Test.verify_certification` for certification testing, drop that test, and add the following module somewhere in your test suite: - ```elixir - defmodule CertificationTest do - use SiteEncrypt.Phoenix.Test, endpoint: MyEndpoint - end - ``` + ```elixir + defmodule CertificationTest do + use SiteEncrypt.Phoenix.Test, endpoint: MyEndpoint + end + ```