Giter Site home page Giter Site logo

Rename gem? about geoip2 HOT 7 OPEN

da4nik avatar da4nik commented on July 16, 2024
Rename gem?

from geoip2.

Comments (7)

da4nik avatar da4nik commented on July 16, 2024

I thought about this. Will do, I think.

from geoip2.

autarch avatar autarch commented on July 16, 2024

Just to chime in ...

First, thank you for creating this package. It's always nice to see folks out in the community supporting our products like this.

Ideally, you'd have two packages. One would be a low-level generic MaxMind DB interface that didn't care about the specific structure of records in the database. Then you could write a higher-level GeoIP2 specific interface on top of that.

We've done this for the APIs we maintain for Perl, Python, Java, and others. Those would be good examples for you to see where the separation is. See http://dev.maxmind.com/geoip/geoip2/downloadable/ for links to these APIs.

I'd also note that what we've done for the GeoIP2 packages is to provide a unified high-level interface to the web service and downloadable databases. You can create either a webservice client of a database reader, but they both return essentially the same objects when you look an IP up.

Thanks,

Dave Rolsky
Director of Software Engineering
MaxMind, Inc.
www.maxmind.com

from geoip2.

key88sf avatar key88sf commented on July 16, 2024

@autarch Why doesn't MaxMind create an official Ruby gem for GeoIP2 ? Seems like you have SDKs for all the other major languages. I'm sure it would be very popular to have official support.

from geoip2.

autarch avatar autarch commented on July 16, 2024

@key88sf - We did a survey of our customers a while back to find out what languages they were using. Ruby didn't come in very high on that list, so we decided not to make an official API for it. I wouldn't rule out the possibility of doing so in the future if we had enough customer demand. But at least for now, our officially supported languages are PHP, Python, Perl, C, C#, Java, and an Apache module.

from geoip2.

key88sf avatar key88sf commented on July 16, 2024

@autarch Hmm ok. I feel like if it's not done now, someone like @da4nik will create the gems eventually, so future Ruby customers would never end up requesting official gems from MaxMind. Might be good for you guys .... but when the format changes or something breaking like that happens, just sucks to wait so long for another Ruby library to come out. We use the original MaxMind GeoLite DB and are trying to migrate to version 2, so would be great to have something like this. Thanks!

from geoip2.

autarch avatar autarch commented on July 16, 2024

@key88sf - We won't be making breaking changes to the format. If we did we'd call it GeoIP3 or some more creative name ;)

I do agree that having official Ruby APIs would be nice, it's just a question of resources. It'd also be nice to have official Node, Rust, Go, Haskell, Clojure, etc. APIs too. Why can't we all agree to program in one language? Surely COBOL ought to have been good enough for everyone!

from geoip2.

mmzoo avatar mmzoo commented on July 16, 2024

So... I found this https://github.com/desuwa/hive_geoip2 and this https://github.com/alexreisner/geocoder when I was looking at https://github.com/alexreisner/geocoder#geolite2-geoip2

from geoip2.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.