{"id":15032793,"url":"https://github.com/ruby/ipaddr","last_synced_at":"2025-10-07T02:16:16.000Z","repository":{"id":22973266,"uuid":"97675076","full_name":"ruby/ipaddr","owner":"ruby","description":"A class to manipulate an IP address","archived":false,"fork":false,"pushed_at":"2025-10-06T23:48:22.000Z","size":216,"stargazers_count":75,"open_issues_count":14,"forks_count":39,"subscribers_count":32,"default_branch":"master","last_synced_at":"2025-10-07T01:18:36.893Z","etag":null,"topics":["ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ruby.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-07-19T05:11:22.000Z","updated_at":"2025-10-06T23:48:27.000Z","dependencies_parsed_at":"2023-01-13T22:32:40.220Z","dependency_job_id":"d8cc344b-fb9a-43b8-8c2b-4ea56b44e1e0","html_url":"https://github.com/ruby/ipaddr","commit_stats":{"total_commits":130,"total_committers":40,"mean_commits":3.25,"dds":0.8461538461538461,"last_synced_commit":"036836d910473aa56d224eb22c8518e1df41013c"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/ruby/ipaddr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fipaddr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fipaddr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fipaddr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fipaddr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ruby","download_url":"https://codeload.github.com/ruby/ipaddr/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fipaddr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278708004,"owners_count":26031932,"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-07T02:00:06.786Z","response_time":59,"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":["ruby"],"created_at":"2024-09-24T20:19:27.766Z","updated_at":"2025-10-07T02:16:15.982Z","avatar_url":"https://github.com/ruby.png","language":"Ruby","readme":"# IPAddr\n\nIPAddr provides a set of methods to manipulate an IP address.  Both\nIPv4 and IPv6 are supported.\n\n[![build](https://github.com/ruby/ipaddr/actions/workflows/test.yml/badge.svg)](https://github.com/ruby/ipaddr/actions/workflows/test.yml)\n\n## Installation\n\nThis library is part of the standard ruby distribution as default gem\nand synchronized periodically, but you can explicitly depend on this\ngem with version constraints as necessary, like when you need a newer\nversion than comes with older versions of ruby.\n\nFor example, you can add this line to your application's Gemfile:\n\n```ruby\ngem 'ipaddr', '~\u003e 1.2'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install ipaddr\n\n## Usage\n\n```ruby\nrequire 'ipaddr'\n\nipaddr1 = IPAddr.new \"3ffe:505:2::1\"\n\np ipaddr1                   #=\u003e #\u003cIPAddr: IPv6:3ffe:0505:0002:0000:0000:0000:0000:0001/ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff\u003e\n\np ipaddr1.to_s              #=\u003e \"3ffe:505:2::1\"\n\nipaddr2 = ipaddr1.mask(48)  #=\u003e #\u003cIPAddr: IPv6:3ffe:0505:0002:0000:0000:0000:0000:0000/ffff:ffff:ffff:0000:0000:0000:0000:0000\u003e\n\np ipaddr2.to_s              #=\u003e \"3ffe:505:2::\"\n\nipaddr3 = IPAddr.new \"192.168.2.0/24\"\n\np ipaddr3                   #=\u003e #\u003cIPAddr: IPv4:192.168.2.0/255.255.255.0\u003e\n```\n\n## Alternative\n\nThe [ipaddress](https://rubygems.org/gems/ipaddress) gem is a popular,\nextensive library for manipulating IP addresses with a layer of\ncompatibility with `ipaddr`.  If you need a richer set of features\nthan `ipaddr` has, try this library instead.\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/ruby/ipaddr.\n\n## License\n\nThe gem is available as open source under the terms of the [2-Clause BSD License](https://opensource.org/licenses/BSD-2-Clause).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruby%2Fipaddr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fruby%2Fipaddr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruby%2Fipaddr/lists"}