{"id":21056955,"url":"https://github.com/fluent-plugins-nursery/geoip2_c","last_synced_at":"2025-05-15T23:33:35.722Z","repository":{"id":53952198,"uuid":"76481784","full_name":"fluent-plugins-nursery/geoip2_c","owner":"fluent-plugins-nursery","description":"libmaxminddb binding for Ruby","archived":false,"fork":false,"pushed_at":"2023-08-17T00:36:43.000Z","size":98,"stargazers_count":9,"open_issues_count":0,"forks_count":8,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-03T17:13:08.677Z","etag":null,"topics":["geoip2","libmaxminddb","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fluent-plugins-nursery.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-12-14T17:28:06.000Z","updated_at":"2025-03-20T02:38:35.000Z","dependencies_parsed_at":"2024-11-20T00:05:15.339Z","dependency_job_id":null,"html_url":"https://github.com/fluent-plugins-nursery/geoip2_c","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluent-plugins-nursery%2Fgeoip2_c","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluent-plugins-nursery%2Fgeoip2_c/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluent-plugins-nursery%2Fgeoip2_c/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluent-plugins-nursery%2Fgeoip2_c/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fluent-plugins-nursery","download_url":"https://codeload.github.com/fluent-plugins-nursery/geoip2_c/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254442429,"owners_count":22071864,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["geoip2","libmaxminddb","ruby"],"created_at":"2024-11-19T16:55:15.630Z","updated_at":"2025-05-15T23:33:30.699Z","avatar_url":"https://github.com/fluent-plugins-nursery.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GeoIP2\n\nThis gem provides binding of [libmaxminddb](http://maxmind.github.io/libmaxminddb/).\n\nThis binding does not traverse all elements in lookup result by default.\nSo you can get the element you want fast such as city name, country name or etc.\n\n## Supported Ruby versions\n\nSee [workflows](https://github.com/fluent-plugins-nursery/geoip2_c/blob/master/.github/workflows/ubuntu.yml)\n\n## Build requirements\n\nNeed ruby.h to build this extension, so you must install it before build this extension.\n\nDebian GNU Linux / Ubuntu:\n\n```\n$ sudo apt install -y build-essential automake autoconf libtool\n```\n\nCentOS:\n\n```\n$ sudo yum groupinstall -y \"Development Tools\"\n```\n\n**NOTE**: If you want to use libmaxminddb provided as a deb/rpm package, you can install libmaxminddb-dev or libmaxminddb-devel at your own risk.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'geoip2_c'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install geoip2_c\n\n## Usage\n\n```ruby\nrequire \"geoip2\"\n\ndb = GeoIP2::Database.new(\"GeoLite2-City.mmdb\")\nresult = db.lookup(\"66.102.9.80\")\nresult.get_value(\"city\", \"names\", \"en\") # =\u003e \"Mountain View\"\nresult.dig(\"city\", \"names\", \"en\")       # =\u003e \"Mountain View\"\n```\n\n## Development\n\nAfter checking out the repo, run `bundle install` to install dependencies. Then, run `rake test` to run the tests.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/fluent-plugins-nursery/geoip2_c.\n\n## License\n\nThe gem is available as open source under the terms of the [Apache-2.0](http://opensource.org/licenses/Apache-2.0).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluent-plugins-nursery%2Fgeoip2_c","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffluent-plugins-nursery%2Fgeoip2_c","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluent-plugins-nursery%2Fgeoip2_c/lists"}