{"id":30883273,"url":"https://github.com/globocom/iprange","last_synced_at":"2025-10-13T17:32:08.863Z","repository":{"id":15193225,"uuid":"17921356","full_name":"globocom/iprange","owner":"globocom","description":"IPRange - Redis as a storage for IP range","archived":false,"fork":false,"pushed_at":"2020-05-11T20:45:06.000Z","size":18,"stargazers_count":14,"open_issues_count":1,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-10-09T13:46:32.992Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/globocom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-03-19T21:39:15.000Z","updated_at":"2020-07-23T02:36:50.000Z","dependencies_parsed_at":"2022-09-13T17:51:25.991Z","dependency_job_id":null,"html_url":"https://github.com/globocom/iprange","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/globocom/iprange","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/globocom%2Fiprange","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/globocom%2Fiprange/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/globocom%2Fiprange/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/globocom%2Fiprange/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/globocom","download_url":"https://codeload.github.com/globocom/iprange/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/globocom%2Fiprange/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279005413,"owners_count":26083883,"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","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-09-08T09:44:04.875Z","updated_at":"2025-10-13T17:32:08.836Z","avatar_url":"https://github.com/globocom.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IPRange\n\nStore IP Ranges in Redis as sorted sets for fast retrieval\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'iprange'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install iprange\n\n## Usage\n\n    \u003e redis_config = {host: \"127.0.0.1\"}\n    \u003e range = IPRange::Range.new(redis_config)\n    \u003e range.add(\"192.168.0.1/24\", some: \"data\", more: \"metadata\")\n    \u003e range.find(\"192.168.0.20\")\n    =\u003e {:range=\u003e\"192.168.0.1/24\", \"some\"=\u003e\"data\", \"more\"=\u003e\"metadata\"}\n\n## Notice\n\nThis gem relies on [a Redis fork that implements interval sets](https://github.com/hoxworth/redis/tree/2.6-intervals), as described in this [blog post](http://blog.togo.io/how-to/adding-interval-sets-to-redis/).\n\nIf your intervals do not, you can try the tag v0.0.1, which uses sorted sets instead of inverval sets.\n\n## Contributing\n\n1. Fork it ( http://github.com/globocom/iprange/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglobocom%2Fiprange","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fglobocom%2Fiprange","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglobocom%2Fiprange/lists"}