{"id":191258,"name":"discard","ecosystem":"rubygems","description":"Allows marking ActiveRecord objects as discarded, and provides scopes for filtering.","homepage":"https://github.com/jhawthorn/discard","licenses":"MIT","normalized_licenses":["MIT"],"repository_url":"https://github.com/jhawthorn/discard","keywords_array":[],"namespace":null,"versions_count":9,"first_release_published_at":"2017-04-28T01:45:57.486Z","latest_release_published_at":"2026-05-27T22:04:02.853Z","latest_release_number":"2.0.0","last_synced_at":"2026-10-13T07:11:46.467Z","created_at":"2022-04-05T20:53:08.346Z","updated_at":"2026-10-13T07:11:48.102Z","registry_url":"https://rubygems.org/gems/discard","install_command":"gem install discard -s https://rubygems.org","documentation_url":"http://www.rubydoc.info/gems/discard/","metadata":{"funding":null},"repo_metadata":{"id":37587952,"uuid":"88690032","full_name":"jhawthorn/discard","owner":"jhawthorn","description":"🃏🗑 Soft deletes for ActiveRecord done right","archived":false,"fork":false,"pushed_at":"2026-06-22T20:32:26.000Z","size":114,"stargazers_count":2426,"open_issues_count":0,"forks_count":94,"subscribers_count":12,"default_branch":"master","last_synced_at":"2026-10-10T01:15:05.007Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jhawthorn.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-04-19T02:12:11.000Z","updated_at":"2026-10-09T08:15:16.000Z","dependencies_parsed_at":"2023-01-31T18:01:53.678Z","dependency_job_id":"87b9dff3-a618-483f-a985-118fc2467281","html_url":"https://github.com/jhawthorn/discard","commit_stats":{"total_commits":100,"total_committers":28,"mean_commits":"3.5714285714285716","dds":0.61,"last_synced_commit":"c9ccb917406a21ff9c0bc6f0c9fb3e90ec560144"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/jhawthorn/discard","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhawthorn%2Fdiscard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhawthorn%2Fdiscard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhawthorn%2Fdiscard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhawthorn%2Fdiscard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jhawthorn","download_url":"https://codeload.github.com/jhawthorn/discard/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhawthorn%2Fdiscard/sbom","scorecard":{"id":518651,"data":{"date":"2025-08-11","repo":{"name":"github.com/jhawthorn/discard","commit":"c9ccb917406a21ff9c0bc6f0c9fb3e90ec560144"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4,"checks":[{"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":"Code-Review","score":6,"reason":"Found 10/15 approved changesets -- score normalized to 6","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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/test.yml:1","Info: no jobLevel write permissions found"],"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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:44: update your workflow using https://app.stepsecurity.io/secureworkflow/jhawthorn/discard/test.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/jhawthorn/discard/test.yml/master?enable=pin","Info:   0 out of   1 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned"],"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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: MIT License: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 26 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-20T02:24:33.789Z","repository_id":37587952,"created_at":"2025-08-20T02:24:33.789Z","updated_at":"2025-08-20T02:24:33.789Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":343843146,"owners_count":38227664,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-10-03T21:59:58.778Z","status":"online","status_checked_at":"2026-10-12T02:00:06.297Z","response_time":96,"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"},"owner_record":{"login":"jhawthorn","name":"John Hawthorn","uuid":"131752","kind":"user","description":"@ruby committer, @rails core, Ruby Infra @ Shopify","email":"john@hawthorn.email","website":"https://john.hawthorn.website","location":"Victoria, Canada","twitter":null,"company":"@Shopify","icon_url":"https://avatars.githubusercontent.com/u/131752?u=32ddf1119b1d189c9bd241a721b36ea01c29f61e\u0026v=4","repositories_count":305,"last_synced_at":"2026-10-05T09:37:59.057Z","metadata":{"has_sponsors_listing":false,"funding":null},"html_url":"https://github.com/jhawthorn","funding_links":[],"total_stars":8717,"followers":1333,"following":39,"created_at":"2022-11-02T19:06:57.611Z","updated_at":"2026-10-05T09:38:00.119Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jhawthorn","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jhawthorn/repositories"},"tags":[{"name":"v2.0.0","sha":"cdeb3d40d8a18c4153d1f5af93446cb85efc0cfd","kind":"tag","published_at":"2026-05-27T22:02:25.000Z","download_url":"https://codeload.github.com/jhawthorn/discard/tar.gz/v2.0.0","html_url":"https://github.com/jhawthorn/discard/releases/tag/v2.0.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/jhawthorn/discard@v2.0.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhawthorn%2Fdiscard/tags/v2.0.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhawthorn%2Fdiscard/tags/v2.0.0/manifests"},{"name":"v1.4.0","sha":"c9ccb917406a21ff9c0bc6f0c9fb3e90ec560144","kind":"commit","published_at":"2024-11-05T23:15:10.000Z","download_url":"https://codeload.github.com/jhawthorn/discard/tar.gz/v1.4.0","html_url":"https://github.com/jhawthorn/discard/releases/tag/v1.4.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/jhawthorn/discard@v1.4.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhawthorn%2Fdiscard/tags/v1.4.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhawthorn%2Fdiscard/tags/v1.4.0/manifests"},{"name":"v1.3.0","sha":"aba75044ac92152009d2683c0a880f554b049eac","kind":"tag","published_at":"2023-08-17T18:21:51.000Z","download_url":"https://codeload.github.com/jhawthorn/discard/tar.gz/v1.3.0","html_url":"https://github.com/jhawthorn/discard/releases/tag/v1.3.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/jhawthorn/discard@v1.3.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhawthorn%2Fdiscard/tags/v1.3.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhawthorn%2Fdiscard/tags/v1.3.0/manifests"},{"name":"v1.2.1","sha":"3a3bad14ff2227c08174e6a3b746df8140ce419c","kind":"tag","published_at":"2021-12-16T18:53:20.000Z","download_url":"https://codeload.github.com/jhawthorn/discard/tar.gz/v1.2.1","html_url":"https://github.com/jhawthorn/discard/releases/tag/v1.2.1","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/jhawthorn/discard@v1.2.1","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhawthorn%2Fdiscard/tags/v1.2.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhawthorn%2Fdiscard/tags/v1.2.1/manifests"},{"name":"v1.2.0","sha":"3773f0c349daf24333991274c5b23f86740fa3b6","kind":"tag","published_at":"2020-02-17T21:03:09.000Z","download_url":"https://codeload.github.com/jhawthorn/discard/tar.gz/v1.2.0","html_url":"https://github.com/jhawthorn/discard/releases/tag/v1.2.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/jhawthorn/discard@v1.2.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhawthorn%2Fdiscard/tags/v1.2.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhawthorn%2Fdiscard/tags/v1.2.0/manifests"},{"name":"v1.1.0","sha":"4457c253d2dc6a3a8deef08a0a2d12d44d1ac61b","kind":"tag","published_at":"2019-05-03T23:53:39.000Z","download_url":"https://codeload.github.com/jhawthorn/discard/tar.gz/v1.1.0","html_url":"https://github.com/jhawthorn/discard/releases/tag/v1.1.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/jhawthorn/discard@v1.1.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhawthorn%2Fdiscard/tags/v1.1.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhawthorn%2Fdiscard/tags/v1.1.0/manifests"},{"name":"v1.0.0","sha":"5807a4c2befe2818d1ecdfbf25ca53b21d84f09d","kind":"tag","published_at":"2018-03-16T17:53:02.000Z","download_url":"https://codeload.github.com/jhawthorn/discard/tar.gz/v1.0.0","html_url":"https://github.com/jhawthorn/discard/releases/tag/v1.0.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/jhawthorn/discard@v1.0.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhawthorn%2Fdiscard/tags/v1.0.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhawthorn%2Fdiscard/tags/v1.0.0/manifests"},{"name":"v0.2.0","sha":"152f8ee32157fa19448b0b745216ef721a515095","kind":"tag","published_at":"2017-11-22T08:20:28.000Z","download_url":"https://codeload.github.com/jhawthorn/discard/tar.gz/v0.2.0","html_url":"https://github.com/jhawthorn/discard/releases/tag/v0.2.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/jhawthorn/discard@v0.2.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhawthorn%2Fdiscard/tags/v0.2.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhawthorn%2Fdiscard/tags/v0.2.0/manifests"},{"name":"v0.1.0","sha":"20e693ffed81e64661c8f7086de47c1d46a25ff6","kind":"tag","published_at":"2017-04-28T01:44:36.000Z","download_url":"https://codeload.github.com/jhawthorn/discard/tar.gz/v0.1.0","html_url":"https://github.com/jhawthorn/discard/releases/tag/v0.1.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/jhawthorn/discard@v0.1.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhawthorn%2Fdiscard/tags/v0.1.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhawthorn%2Fdiscard/tags/v0.1.0/manifests"}]},"repo_metadata_updated_at":"2026-10-13T07:11:48.102Z","dependent_packages_count":14,"downloads":33707052,"downloads_period":"total","dependent_repos_count":1097,"rankings":{"downloads":0.8500737969962933,"dependent_repos_count":0.9914710952375586,"dependent_packages_count":1.5181901145825119,"stargazers_count":1.1570918350101964,"forks_count":3.035816893315457,"docker_downloads_count":1.113714974593553,"average":1.4443931182892618},"purl":"pkg:gem/discard","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/rubygems/discard","docker_dependents_count":38,"docker_downloads_count":17583308,"usage_url":"https://repos.ecosyste.ms/usage/rubygems/discard","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/rubygems/discard/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":{"last_synced_at":"2026-10-12T12:11:07.643Z","issues_count":54,"pull_requests_count":76,"avg_time_to_close_issue":19711933.796296295,"avg_time_to_close_pull_request":6154827.394366197,"issues_closed_count":54,"pull_requests_closed_count":71,"pull_request_authors_count":46,"issue_authors_count":47,"avg_comments_per_issue":2.388888888888889,"avg_comments_per_pull_request":1.4605263157894737,"merged_pull_requests_count":48,"bot_issues_count":0,"bot_pull_requests_count":5,"past_year_issues_count":2,"past_year_pull_requests_count":7,"past_year_avg_time_to_close_issue":33001.0,"past_year_avg_time_to_close_pull_request":2187959.4285714286,"past_year_issues_closed_count":2,"past_year_pull_requests_closed_count":7,"past_year_pull_request_authors_count":5,"past_year_issue_authors_count":1,"past_year_avg_comments_per_issue":0.0,"past_year_avg_comments_per_pull_request":1.8571428571428572,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":2,"past_year_merged_pull_requests_count":4,"issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhawthorn%2Fdiscard/issues","maintainers":[{"login":"jarednorman","count":4,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/jarednorman"},{"login":"jhawthorn","count":3,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/jhawthorn"}],"active_maintainers":[{"login":"jarednorman","count":1,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/jarednorman"}]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/rubygems.org/packages/discard/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/rubygems.org/packages/discard/version_numbers","latest_version_url":"https://packages.ecosyste.ms/api/v1/registries/rubygems.org/packages/discard/latest_version","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/rubygems.org/packages/discard/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/rubygems.org/packages/discard/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/rubygems.org/packages/discard/codemeta","maintainers":[{"uuid":"98053","login":"jarednorman","name":null,"email":null,"url":null,"packages_count":28,"html_url":"https://rubygems.org/profiles/jarednorman","role":null,"created_at":"2022-11-08T09:22:26.195Z","updated_at":"2022-11-08T09:22:26.195Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/rubygems.org/maintainers/jarednorman/packages"},{"uuid":"43492","login":"jhawthorn","name":null,"email":null,"url":null,"packages_count":154,"html_url":"https://rubygems.org/profiles/jhawthorn","role":null,"created_at":"2022-11-08T09:22:26.183Z","updated_at":"2022-11-08T09:22:26.183Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/rubygems.org/maintainers/jhawthorn/packages"}]}