-
Notifications
You must be signed in to change notification settings - Fork 3
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
Currently Incompatible with Geocoder #3
Comments
@RustComet I think I've encountered this before. |
@dawilster That would work. But I think it's a simpler approach to have separate method names. I know it's not often that you would need both the |
I don't think It just seems odd to me to update a gem when it conflicts with another gem. I think it would be good practice to think about what you would do if a gem you didn't control had a method name conflict. Could look into monkey patching the gem by using |
That's a good point. I think another way to approach this would be to write a replacement for geocoder altogether. At the moment geocoder is better for setting coordinates from the backend (geocoding from an address, which is really only used by admins, and not often in most implementations), and geo_query is better for querying. Maybe we should write our own little geocoder style gem, that just does the setting. It would be more lightweight and better suited to working alongside geo_query, rather than installing geocoder and then only requiring parts we need. Just writing as I think here, might not be worth it… but would be handy to control the whole thing |
Currently
geo_query
includes the following method:However this clashes when also using the Geocoder gem as it contains the same method.
There is currently a branch that fixes this, but will break current implementations.
I think we should release and tag the current
master
as0.1.0
(current Rubygems is0.0.4
) and then release a new version0.2.0
after merging the PR.Happy to write up a new Readme for the branch as well to make sure it clearly explains the difference between the releases.
The text was updated successfully, but these errors were encountered: