@@ -54,7 +54,7 @@ defmodule Knigge.Options do
5454 - `[only: <envs>]` - equivalent to the option above
5555 - `[except: <envs>]` - only delegates at runtime if the current environment is __not__ contained in the list
5656
57- __Default__: `Application.get_env(:knigge , :delegate_at_runtime?, #{ inspect ( @ defaults [ :delegate_at_runtime? ] ) } )`
57+ __Default__: `Application.get_env(:ex_knigge , :delegate_at_runtime?, #{ inspect ( @ defaults [ :delegate_at_runtime? ] ) } )`
5858
5959 ### `do_not_delegate`
6060 A keyword list defining callbacks for which no delegation should happen.
@@ -70,7 +70,7 @@ defmodule Knigge.Options do
7070 - `[only: <envs>]` - equivalent to the option above
7171 - `[except: <envs>]` - only warns if the current environment is __not__ contained in the list
7272
73- __Default__: `Application.get_env(:knigge , :warn, #{ inspect ( @ defaults [ :warn ] ) } )`
73+ __Default__: `Application.get_env(:ex_knigge , :warn, #{ inspect ( @ defaults [ :warn ] ) } )`
7474 """
7575
7676 import Keyword , only: [ has_key?: 2 , keyword?: 1 ]
@@ -187,7 +187,7 @@ defmodule Knigge.Options do
187187 end
188188
189189 defp defaults_from_config do
190- :knigge
190+ :ex_knigge
191191 |> Application . get_all_env ( )
192192 |> Keyword . take ( [ :delegate_at_runtime? , :warn ] )
193193 end
@@ -225,19 +225,19 @@ defmodule Knigge.Options do
225225 iex> Knigge.Options.validate!(implementation: SomeModule)
226226 [implementation: SomeModule]
227227
228- iex> Knigge.Options.validate!(otp_app: :knigge )
229- [otp_app: :knigge ]
228+ iex> Knigge.Options.validate!(otp_app: :ex_knigge )
229+ [otp_app: :ex_knigge ]
230230
231- iex> Knigge.Options.validate!(implementation: SomeModule, otp_app: :knigge )
231+ iex> Knigge.Options.validate!(implementation: SomeModule, otp_app: :ex_knigge )
232232 ** (ArgumentError) Knigge expects either the :implementation or the :otp_app option but both were given.
233233
234- iex> Knigge.Options.validate!(otp_app: :knigge , the_answer_to_everything: 42, another_weird_option: 1337)
234+ iex> Knigge.Options.validate!(otp_app: :ex_knigge , the_answer_to_everything: 42, another_weird_option: 1337)
235235 ** (ArgumentError) Knigge received unexpected options: [the_answer_to_everything: 42, another_weird_option: 1337]
236236
237237 iex> Knigge.Options.validate!(otp_app: "knigge")
238238 ** (ArgumentError) Knigge received invalid value for `otp_app`. Expected atom but received: "knigge"
239239
240- iex> Knigge.Options.validate!(otp_app: :knigge , delegate_at_runtime?: "test")
240+ iex> Knigge.Options.validate!(otp_app: :ex_knigge , delegate_at_runtime?: "test")
241241 ** (ArgumentError) Knigge received invalid value for `delegate_at_runtime?`. Expected boolean or environment (atom or list of atoms) but received: "test"
242242 """
243243 @ spec validate! ( opts :: raw ( ) ) :: no_return | opts when opts: raw ( )
0 commit comments