-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for headers and dynamic base URL (#65) #77
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job! Thank you!
I added some minor suggestions. And sorry for the delay :/
dc6fa8b
to
88c8feb
Compare
@sliiser almost there! There is one problem in the tests, but other than that it looks great! Please take a look. |
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. Co-authored-by: Philip Sampaio <[email protected]>
88c8feb
to
3bcb29a
Compare
Whoops. That test was linux only so it didn't fail on my dev machine. Fixed now (hopefully). I also squashed the commits to be ready for merge. |
Hey, it's been a while... Anything else you need me to change here? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @sliiser ! So sorry for the delay here :/
I added some minor points, but the overall looks great!
Co-authored-by: Philip Sampaio <[email protected]>
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.
@sliiser this is great! Thank you! I should release a new version today. I will ping you here. |
@sliiser it's released under v0.8.0. Please give it a try. |
Oh, sorry for not reporting back earlier. Works great! :) |
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.
#65