-
Notifications
You must be signed in to change notification settings - Fork 12
Support &all/0 in all modules, Location.version() function
#25
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
Conversation
aerosol
left a comment
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.
Change requests inline.
nitpick: modules and functions instead of classes and methods 🙈 - I'm sorry, I'll show myself out
Location.version() methodLocation.version() function
| def version() do | ||
| version_file = Application.app_dir(:location, "priv/version") | ||
|
|
||
| File.read!(version_file) |
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.
Can it be compiled into the function? I'd like to remove most of the runtime behaviour from this library (wanted to discuss it with @ukutaht on the next call) ... Gettext-style, kind of. Probably doesn't matter since it wouldn't change the public API.
|
This PR would probably need to add tests for the new |
This is useful for users to know when the data has changed
In the main repo we'll be starting to sync locations into ClickHouse. For that to work, we need two new features:
versionof the libraryRelated PR: plausible/analytics#4328