-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Add support for headers and dynamic base URL (#65) The :base_url attribute now accepts static headers or a custom function that returns a URL and headers. This allows us to fetch NIFs from more complicated sources, rather than just public GitHub releases. * Apply suggestions from code review * Enable config validation in tests Previously the `RustlerPrecompiled.Config` struct was initialized directly in the tests, which bypassed the validation in `new/1`. This change updates the tests to use `new/1` wherever possible. Some tests still use direct struct access to test invalid values.
- Loading branch information
Showing
3 changed files
with
341 additions
and
148 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
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.