-
-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: raise Pigeon.ConfigError when booting invalid configurations (#161
) * feat: raise Pigeon.ConfigError when booting invalid configurations * fix: pass doctests * test: config raising with invalid configuration * fix: parse {app, path} to nil if file does not actually exist * feat: raise Pigeon.ConfigError for ADM (#162) * feat: proper APNS config validation + error redaction * fix: proper error tuple for APNS :key * fix: redact FCM :key * fix: handle APNS Config vs JWTConfig slightly differently Config needs the actual result of the pem decode for certs/keys whereas JWTConfig uses the raw text. Each now decode them in their own modules instead of ConfigParser. * fix: remove old APNS config validation check The old nil-presence logic screws JWTConfig connections with the new config validation updates. * fix: update secrets.tar.enc * ci: remove some old travis variables * chore: bump version to 1.5.0 * chore: bump minimum Elixir version to 1.6 This allows us to remove the compile warning about using the old `Enum.chunk/4`. Co-authored-by: Andrew Shu <[email protected]>
- Loading branch information
1 parent
1e5121e
commit a18f53d
Showing
22 changed files
with
333 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,4 @@ secrets.tar | |
scratchpad.txt | ||
.DS_Store | ||
.iex.exs | ||
*.swp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
defmodule Pigeon.ConfigError do | ||
defexception reason: nil, config: nil | ||
|
||
@impl true | ||
def message(%{config: config, reason: reason}) do | ||
""" | ||
#{reason} | ||
The following configuration was given: | ||
#{inspect(config, pretty: true)} | ||
""" | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.