{"id":19199984,"url":"https://github.com/fusic/roshi","last_synced_at":"2025-05-09T01:28:46.677Z","repository":{"id":36286631,"uuid":"40591147","full_name":"fusic/roshi","owner":"fusic","description":"ActiveModel/ActiveRecord Validation Collection For Mainly Japanese","archived":false,"fork":false,"pushed_at":"2022-10-05T13:48:12.000Z","size":53,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":29,"default_branch":"master","last_synced_at":"2025-04-20T11:31:58.335Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/fusic.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":"2015-08-12T09:07:18.000Z","updated_at":"2022-10-05T13:46:45.000Z","dependencies_parsed_at":"2022-09-04T12:22:51.477Z","dependency_job_id":null,"html_url":"https://github.com/fusic/roshi","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fusic%2Froshi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fusic%2Froshi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fusic%2Froshi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fusic%2Froshi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fusic","download_url":"https://codeload.github.com/fusic/roshi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253173635,"owners_count":21865726,"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":[],"created_at":"2024-11-09T12:29:49.381Z","updated_at":"2025-05-09T01:28:46.657Z","avatar_url":"https://github.com/fusic.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Roshi\n\n[![Gem Version](https://badge.fury.io/rb/roshi.svg)](https://badge.fury.io/rb/roshi)\n[![Build Status](https://travis-ci.org/fusic/roshi.svg)](https://travis-ci.org/fusic/roshi)\n\nActiveModel/ActiveRecord Validation Collection For Mainly Japanese\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'roshi'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install roshi\n\n## Usage\n\n```ruby\nclass TestModel\n  validates :email, email: true\n  validates :zip_code, zip_code: true # zip_code: { hiphenation: true }\n  validates :phone_number, phone_number: true # phone_number: { hiphenation: true }\n  validates :date, date: true\n  validates :hiragana, hiragana: true # hiragana: { allow_space: true }\n  validates :katakana, katakana: true # katakana: { allow_space: true }\n  validates :version_number, version_number: true\n  validates :accept_word, available_word: { accept_words: %w(accept available) }\n  validates :reject_word, available_word: { reject_words: %w(reject unavailable) }\n  validates :large_value, numerical_comparison: { greater_than: :small_value }\n  validates :large_value, numerical_comparison: { greater_than_or_equal_to: :small_value }\n  validates :large_value, numerical_comparison: { equal_to: :small_value }\n  validates :small_value, numerical_comparison: { less_than_or_equal_to: :large_value }\n  validates :small_value, numerical_comparison: { less_than: :large_value }\n  validates :middle_value, numerical_comparison: { between: { min: :small_value, max: :large_value } }\nend\n```\n\n## Contributing\n\n1. Fork it ( https://github.com/fusic/roshi/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 a new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffusic%2Froshi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffusic%2Froshi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffusic%2Froshi/lists"}