{"id":23639772,"url":"https://github.com/yammerjp/file_charset_validator","last_synced_at":"2025-10-28T07:39:34.263Z","repository":{"id":56846344,"uuid":"456748582","full_name":"yammerjp/file_charset_validator","owner":"yammerjp","description":"validate file charset","archived":false,"fork":false,"pushed_at":"2022-08-28T11:52:08.000Z","size":80,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-04-24T18:41:14.304Z","etag":null,"topics":["charset","ruby"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/file_charset_validator","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/yammerjp.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-02-08T02:04:41.000Z","updated_at":"2023-04-08T12:59:49.000Z","dependencies_parsed_at":"2022-09-09T00:52:37.014Z","dependency_job_id":null,"html_url":"https://github.com/yammerjp/file_charset_validator","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yammerjp%2Ffile_charset_validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yammerjp%2Ffile_charset_validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yammerjp%2Ffile_charset_validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yammerjp%2Ffile_charset_validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yammerjp","download_url":"https://codeload.github.com/yammerjp/file_charset_validator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239576797,"owners_count":19662113,"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":["charset","ruby"],"created_at":"2024-12-28T08:19:11.005Z","updated_at":"2025-10-28T07:39:29.220Z","avatar_url":"https://github.com/yammerjp.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# file_charset_validator\n\nfile_charset_validator is CLI tool to validate text files' encoding.\n\nThis is implemented by ruby, and distributed as a gem.\n\n## Installation\n\nInstall it yourself as:\n\n```\n$ gem install file_charset_validator\n```\n\n## Usage\n\n\n```sh\n$ file_charset_validator --encoding UTF_8 path/to/file/1 path/to/file/2\n```\n\nIf the character codes of `path/to/file/1` and `path/to/file/2` are both UTF_8, it will exit normally.\nOtherwise, it will output a message and exit abnormally.\n\n\n### Options\n\n`--encoding` (`-e`)\n\nYou can specify the character encoding to be verified.\nThe character encoding that can be specified is defined as a constant in the encoding class of the ruby built-in library.\n\n### Arguments\n\n`\u003cpath, ...\u003e`\n\nYou can specify one or more file paths to be verified.\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/yammerjp/file_charset_validator. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/yammerjp/file_charset_validator/blob/master/CODE_OF_CONDUCT.md).\n\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the FileCharset project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/yammerjp/file_charset_validator/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyammerjp%2Ffile_charset_validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyammerjp%2Ffile_charset_validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyammerjp%2Ffile_charset_validator/lists"}