Skip to content
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

NoMethodError: private method `archive_edition' called for Geocoder::MaxmindDatabase:Module #1651

Closed
fidalgo opened this issue Apr 4, 2024 · 1 comment · Fixed by #1652
Closed

Comments

@fidalgo
Copy link

fidalgo commented Apr 4, 2024

Expected behavior

Being able to extract the archive

Actual behavior

Failed to invoke que task

Steps to reproduce

rails geocoder:maxmind:geolite:extract PACKAGE=city --trace

** Invoke geocoder:maxmind:geolite:extract (first_time)
** Execute geocoder:maxmind:geolite:extract
bin/rails aborted!
NoMethodError: private method `archive_edition' called for Geocoder::MaxmindDatabase:Module (NoMethodError)

    archive_filename = "#{Geocoder::MaxmindDatabase.archive_edition(p)}.zip"
                                                   ^^^^^^^^^^^^^^^^
Did you mean?  archive_filename

Environment info

  • Geocoder version: 1.8.2
  • Rails version: 7.1
  • Database (if applicable):
  • Lookup (if applicable):
@alexreisner
Copy link
Owner

Looks like this method was created/made private in #1600. I just made it public in #1652. Until the next version is released, you can try it out by installing the gem from the repo (in your Gemfile: gem 'geocoder', git: 'git://github.com/alexreisner/geocoder.git', ref: '05faae32').

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants