{"id":16075426,"url":"https://github.com/yujideveloper/activemodel-ip_address_validator","last_synced_at":"2025-09-10T17:32:11.804Z","repository":{"id":62552789,"uuid":"192486955","full_name":"yujideveloper/activemodel-ip_address_validator","owner":"yujideveloper","description":"ActiveModel validator for ip address","archived":false,"fork":false,"pushed_at":"2020-01-08T15:29:18.000Z","size":28,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-27T03:43:15.998Z","etag":null,"topics":["active-model","active-record","activemodel","activerecord","rails","ruby-on-rails","validator"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/yujideveloper.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":null,"security":null,"support":null}},"created_at":"2019-06-18T07:17:26.000Z","updated_at":"2023-10-24T10:27:15.000Z","dependencies_parsed_at":"2022-11-03T04:15:15.858Z","dependency_job_id":null,"html_url":"https://github.com/yujideveloper/activemodel-ip_address_validator","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yujideveloper%2Factivemodel-ip_address_validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yujideveloper%2Factivemodel-ip_address_validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yujideveloper%2Factivemodel-ip_address_validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yujideveloper%2Factivemodel-ip_address_validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yujideveloper","download_url":"https://codeload.github.com/yujideveloper/activemodel-ip_address_validator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232548605,"owners_count":18540145,"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":["active-model","active-record","activemodel","activerecord","rails","ruby-on-rails","validator"],"created_at":"2024-10-09T09:05:06.680Z","updated_at":"2025-01-05T04:55:12.357Z","avatar_url":"https://github.com/yujideveloper.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ActiveModel::IpAddressValidator\n\nActiveModel validator for ip address.\n\n[![Gem Version](https://badge.fury.io/rb/activemodel-ip_address_validator.svg)](https://badge.fury.io/rb/activemodel-ip_address_validator)\n[![Build Status](https://travis-ci.org/yujideveloper/activemodel-ip_address_validator.svg?branch=master)](https://travis-ci.org/yujideveloper/activemodel-ip_address_validator)\n[![Maintainability](https://api.codeclimate.com/v1/badges/110218584f1f8621f6ae/maintainability)](https://codeclimate.com/github/yujideveloper/activemodel-ip_address_validator/maintainability)\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'activemodel-ip_address_validator'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install activemodel-ip_address_validator\n\n## Usage\n\n``` ruby\nvalidates :last_login_ip, ip_address: true\n```\n\nSpecify ip address version.\n``` ruby\nvalidates :last_login_ip, ip_address: { version: :v4 }\n```\n\n### Options\n\n| Name | Type | Description | Default |\n|:-----|:-----|:------------|:--------|\n| `version` | Symbol or Array of Symbol | Allowed ip address version. `:v4`, `:v6`, `%i[v4 v6]` | `%i[v4 v6]` |\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\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/yujideveloper/activemodel-ip_address_validator.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyujideveloper%2Factivemodel-ip_address_validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyujideveloper%2Factivemodel-ip_address_validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyujideveloper%2Factivemodel-ip_address_validator/lists"}