- Re-release with a fix to the release process. This includes a bump of the
gem's version in
Gemfile.lock.
- Unnecessary files were removed from the published .gem. Pull request by Orien Madgwick. GitHub #131.
- Updated
connection_pooldependency to allow version 3+. Reported by Igor Kasyanchuk. GitHub #140.
- Ruby 3.2+ is now required. If you're using Ruby 3.0 or 3.1, please use version 1.3.0 of this gem.
- A new
anonymizerobject has been added to theMaxMind::GeoIP2::Model::Insightsmodel. This object indicates whether the IP address is part of an anonymizing network, including VPN confidence scoring, provider name detection, and network last seen date. This is only available from the GeoIP2 Insights web service. - A new
ip_risk_snapshotmethod has been added toMaxMind::GeoIP2::Record::Traits. This field contains the risk associated with the IP address, ranging from 0.01 to 99 (a higher score indicates a higher risk). This is only available from the GeoIP2 Insights web service. - The
anonymous?,anonymous_vpn?,hosting_provider?,public_proxy?,residential_proxy?, andtor_exit_node?methods inMaxMind::GeoIP2::Record::Traitshave been deprecated. Please use the corresponding methods in theanonymizerobject from the GeoIP2 Insights response instead.
- Support for the GeoIP Anonymous Plus database has been added. To do a
lookup in this database, use the
anonymous_plusmethod onMaxMind::GeoIP2::Reader. - Ruby 3.0+ is now required. If you're using Ruby 2.5, 2.6, or 2.7, please use version 1.2.0 of this gem.
- Deprecated
metro_codeonMaxMind::GeoIP2::Record::Location. The code values are no longer being maintained.
MaxMind::GeoIP2::Clientnow validates the IP address before making a request to the web service.MaxMind::GeoIP2::Clientnow includes the version of Ruby, the version of the HTTP client library, and its own version in the User-Agent header.- The
anycast?method was added toMaxMind::GeoIP2::Record::Traits. This returnstrueif the IP address belongs to an anycast network. This is available for the GeoIP2 Country, City Plus, and Insights web services and the GeoIP2 Country, City, and Enterprise databases.
- Exceptions from this gem now inherit from
MaxMind::GeoIP2::Error. IP address related exceptions now inherit fromMaxMind::GeoIP2::AddressError, which itself inherits fromMaxMind::GeoIP2::Error. Pull Request by gr8bit. GitHub #35. - Support for mobile country code (MCC) and mobile network codes (MNC) was
added for the GeoIP2 ISP and Enterprise databases as well as the GeoIP2
City and Insights web services.
mobile_country_codeandmobile_network_codeattributes were added toMaxMind::GeoIP2::Model::ISPfor the GeoIP2 ISP database andMaxMind::GeoIP2::Record::Traitsfor the Enterprise database and the GeoIP2 City and Insights web services. We expect this data to be available by late January, 2022.
- Ruby 2.4 is no longer supported. If you're using Ruby 2.4, please use version 0.7.0 of this gem.
- Expand accepted versions of the
httpgem to include 5.0+. - Bump version to 1.0.0 since we have been at 0.x for over a year. There is no breaking change.
- Ensured defaults are set when creating a
MaxMind::GeoIP2::Clientin the case when args are explicitly passed in asnil. Pull Request by Manoj Dayaram. GitHub #31.
- Updated the
MaxMind::GeoIP2::Readerconstructor to support being called using keyword arguments. For example, you may now create aReaderusingMaxMind::GeoIP2::Reader.new(database: 'GeoIP2-Country.mmdb')instead of using positional arguments. This is intended to make it easier to pass in optional arguments. Positional argument calling is still supported. - Proxy support was fixed. Pull request by Manoj Dayaram. GitHub #30.
- Added the
residential_proxy?method toMaxMind::GeoIP2::Model::AnonymousIPandMaxMind::GeoIP2::Record::Traitsfor use with the Anonymous IP database and GeoIP2 Precision Insights.
- HTTP connections are now persistent. There is a new parameter that controls the maximum number of connections the client will use.
- Modules are now always be defined. Previously we used a shorthand syntax which meant including individual classes could leave module constants undefined.
- Added support for the GeoIP2 Precision web services: Country, City, and Insights.
- Added support for the Anonymous IP, ASN, Connection Type, Domain, and ISP databases.
- Added missing dependency on maxmind-db to the gemspec. Reported by Sean Dilda. GitHub #4.
- Initial implementation with support for location databases.