{"id":24160469,"url":"https://github.com/simpleweb/simple-validators","last_synced_at":"2026-07-14T02:31:42.366Z","repository":{"id":7865612,"uuid":"9237959","full_name":"simpleweb/simple-validators","owner":"simpleweb","description":"Rails validators","archived":false,"fork":false,"pushed_at":"2013-12-19T12:19:21.000Z","size":164,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-06-23T16:28:15.868Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simpleweb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-04-05T09:24:44.000Z","updated_at":"2013-12-19T12:19:23.000Z","dependencies_parsed_at":"2022-07-11T01:46:56.602Z","dependency_job_id":null,"html_url":"https://github.com/simpleweb/simple-validators","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/simpleweb/simple-validators","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simpleweb%2Fsimple-validators","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simpleweb%2Fsimple-validators/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simpleweb%2Fsimple-validators/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simpleweb%2Fsimple-validators/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simpleweb","download_url":"https://codeload.github.com/simpleweb/simple-validators/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simpleweb%2Fsimple-validators/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35443979,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-14T02:00:06.603Z","response_time":114,"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-01-12T16:14:17.771Z","updated_at":"2026-07-14T02:31:42.349Z","avatar_url":"https://github.com/simpleweb.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple validators\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'simple-validators'\n\nAnd then execute:\n\n    $ bundle\n\n## Model validations\n\nTo use model validations include `Simple::Validators` in your model.\n\n```ruby\nclass User \u003c ActiveRecord::Base\n  include Simple::Validators\n\n  attr_accessible :email, :username\n\n  validates :email, presence: true, email: true\n  validates :username, presence: true, username: true\nend\n```\n\n#### Subdomain validator\n\n```ruby\nclass Account \u003c ActiveRecord::Base\n  include Simple::Validators\n\n  attr_accessible :subdomain\n\n  validates :subdomain, presence: true, uniqueness: true, subdomain: true\nend\n```\n\nYou can also pass a custom list of reserved subdomains, eg:\n\n```ruby\nvalidates :subdomain, subdomain: { reserved: %w[www mail ftp home test] }\n```\n\n## Contributing\n\n1. Fork it\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%2Fsimpleweb%2Fsimple-validators","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimpleweb%2Fsimple-validators","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimpleweb%2Fsimple-validators/lists"}