{"id":14969832,"url":"https://github.com/segoy89/errors_to_sentences","last_synced_at":"2026-02-04T00:02:33.465Z","repository":{"id":56844776,"uuid":"289445232","full_name":"segoy89/errors_to_sentences","owner":"segoy89","description":"Simple gem to transform error messages into sentences","archived":false,"fork":false,"pushed_at":"2020-08-23T08:24:51.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-01T07:35:22.910Z","etag":null,"topics":["activemodel","errors","gem","rails","rails-gem","ruby-on-rails"],"latest_commit_sha":null,"homepage":"","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/segoy89.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-22T07:54:12.000Z","updated_at":"2020-08-23T10:06:33.000Z","dependencies_parsed_at":"2022-09-09T19:12:33.939Z","dependency_job_id":null,"html_url":"https://github.com/segoy89/errors_to_sentences","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/segoy89/errors_to_sentences","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segoy89%2Ferrors_to_sentences","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segoy89%2Ferrors_to_sentences/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segoy89%2Ferrors_to_sentences/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segoy89%2Ferrors_to_sentences/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/segoy89","download_url":"https://codeload.github.com/segoy89/errors_to_sentences/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segoy89%2Ferrors_to_sentences/sbom","scorecard":{"id":810012,"data":{"date":"2025-08-11","repo":{"name":"github.com/segoy89/errors_to_sentences","commit":"29f893144424ebe98278320ce718acffd8e4aed4"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 0/3 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":6,"reason":"4 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-cr5q-6q9f-rq6q","Warn: Project is vulnerable to: GHSA-j6gc-792m-qgm2","Warn: Project is vulnerable to: GHSA-pj73-v5mw-pm9j","Warn: Project is vulnerable to: GHSA-5cm2-9h8c-rvfx"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-23T12:52:14.724Z","repository_id":56844776,"created_at":"2025-08-23T12:52:14.725Z","updated_at":"2025-08-23T12:52:14.725Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29062483,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T23:14:54.203Z","status":"ssl_error","status_checked_at":"2026-02-03T23:14:50.873Z","response_time":96,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["activemodel","errors","gem","rails","rails-gem","ruby-on-rails"],"created_at":"2024-09-24T13:42:27.938Z","updated_at":"2026-02-04T00:02:33.449Z","avatar_url":"https://github.com/segoy89.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ErrorsToSentences\n\nThis gem allows combining multiple error messages of one attribute into one sentence.\n\nFor more, see [Usage](#usage) section\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'errors_to_sentences'\n```\n\nAnd then execute:\n\n```shell\n$ bundle install\n```\n\nOr install it yourself as:\n\n```shell\n$ gem install errors_to_sentences\n```\n\n## Usage\n\nTo generate sentence errors just call `.to_sentences` method on instance errors. For an instance:\n\nLet's say we have a model that looks like:\n\n```ruby\nclass Refueling \u003c ApplicationRecord\n  belongs_to :user\n\n  with_options numericality: { greater_than: 0 } do\n    validates :liters,     presence: true\n    validates :kilometers, presence: true\n    validates :cost,       allow_nil: true\n  end\nend\n```\n\n```shell\n$ refueling = Refueling.new\n =\u003e #\u003cRefueling id: nil, user_id: nil, liters: nil, cost: nil, kilometers: nil, avg_fuel_consumption: nil, note: nil, created_at: nil, updated_at: nil\u003e\n\n$ refueling.validate!\n ActiveRecord::RecordInvalid (Validation failed: User must exist, Liters is not a number, Liters can't be blank, Kilometers is not a number, Kilometers can't be blank)\n\n$ refueling.errors.full_messages\n =\u003e [\"User must exist\", \"Liters is not a number\", \"Liters can't be blank\", \"Kilometers is not a number\", \"Kilometers can't be blank\"]\n```\n\nand now **`.to_sentences`** method\n\n```shell\n$ refueling.errors.to_sentences\n =\u003e [\"User must exist\", \"Liters is not a number and can't be blank\", \"Kilometers is not a number and can't be blank\"]\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. 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 \u003chttps://github.com/segoy89/errors_to_sentences\u003e.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsegoy89%2Ferrors_to_sentences","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsegoy89%2Ferrors_to_sentences","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsegoy89%2Ferrors_to_sentences/lists"}