{"id":15101457,"url":"https://github.com/ryancyq/rspec-activesupport","last_synced_at":"2026-01-27T05:05:27.034Z","repository":{"id":250440630,"uuid":"834429527","full_name":"ryancyq/rspec-activesupport","owner":"ryancyq","description":"RSpec matcher for ActiveSupport test assertions","archived":false,"fork":false,"pushed_at":"2025-11-24T14:49:43.000Z","size":70,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-13T00:41:07.893Z","etag":null,"topics":["activesupport","rspec","testing"],"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/ryancyq.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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":"2024-07-27T08:39:50.000Z","updated_at":"2024-10-14T19:31:20.000Z","dependencies_parsed_at":"2024-07-27T13:28:40.606Z","dependency_job_id":"2ba923ab-fc2f-4c62-8502-695238bb9a3a","html_url":"https://github.com/ryancyq/rspec-activesupport","commit_stats":{"total_commits":29,"total_committers":2,"mean_commits":14.5,"dds":0.03448275862068961,"last_synced_commit":"7fb26cae436cefcfd6eb9a69e5d68dacba615c14"},"previous_names":["ryancyq/rspec-activesupport"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/ryancyq/rspec-activesupport","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryancyq%2Frspec-activesupport","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryancyq%2Frspec-activesupport/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryancyq%2Frspec-activesupport/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryancyq%2Frspec-activesupport/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryancyq","download_url":"https://codeload.github.com/ryancyq/rspec-activesupport/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryancyq%2Frspec-activesupport/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28803643,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T03:44:14.111Z","status":"ssl_error","status_checked_at":"2026-01-27T03:43:33.507Z","response_time":168,"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":["activesupport","rspec","testing"],"created_at":"2024-09-25T18:23:40.015Z","updated_at":"2026-01-27T05:05:27.018Z","avatar_url":"https://github.com/ryancyq.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rspec-activesupport\n\n[![Version][rubygems_badge]][rubygems]\n[![CI][ci_badge]][ci_workflows]\n[![Maintainability][maintainability_badge]][maintainability]\n\n`rspec-activesupport` provides ActiveSupport test assertions through [RSpec][rspec] matchers.\n\n### Assertions Supported\n\n- `ActiveSupport::Deprecation.warn`: RSpec expectation on deprecations being warned.\n\n## Requirements\n\n- Ruby: MRI 2.5+\n- ActiveSupport: 6.1+\n- RSpec-Expectations: 3.0+\n\n## Installation\n\nAdd `rspec-activesupport` to both the `:development` and `:test` groups of your Gemfile:\n```rb\ngroup :development, :test do\n  gem \"rspec-activesupport\", \"~\u003e 0.1\"\nend\n```\n\nOr execute the following command in bash:\n```sh\nbundle add rspec-activesupport --group development,test \n```\n\nIf Bundler is not being used to manage dependencies, install the gem by executing:\n```sh\ngem install rspec-activesupport\n```\n\n### Setup (Optional)\n\nIf you want to configure the entire RSpec suite with the same deprecator, add the following to `spec_helper.rb`, which is usually used to load RSpec configuration:\n```rb\n# /spec/spec_helper.rb\nrequire \"rspec/active_support\"\n\nRSpec.configure do |config|\n  config.deprecator = MyGem.deprecator\nend\n```\n\n### Usage\n\nWith that, you can start using the matchers provided by the gem.\n\n```rb\ndescribe \"#deprecator\" do\n  let(:deprecate) { MyGem.deprecator.warn \"my deprecation\" }\n\n  it \"warn deprecation\" do\n    expect { deprecate }.to warn_deprecation(%r{my deprecation})\n  end\nend\n```\n\nOr you can pass the deprecator explicitly to the matcher:\n```rb\ndescribe \"#deprecator\" do\n  let(:deprecate) { MyGem.deprecator.warn \"my deprecation\" }\n\n  it \"warn deprecation\" do\n    expect { deprecate }.to warn_deprecation(%r{my deprecation}, MyGem.deprecator)\n  end\nend\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `bundle exec 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 the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## License\nPlease see [LICENSE](https://github.com/ryancyq/rspec-activesupport/blob/main/LICENSE) for licensing details.\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at [https://github.com/ryancyq/rspec-activesupport](https://github.com/ryancyq/rspec-activesupport).\n\n[rubygems_badge]: https://img.shields.io/gem/v/rspec-activesupport.svg\n[rubygems]: https://rubygems.org/gems/rspec-activesupport\n[ci_badge]: https://github.com/ryancyq/rspec-activesupport/actions/workflows/ci.yml/badge.svg\n[ci_workflows]: https://github.com/ryancyq/rspec-activesupport/actions/workflows/ci.yml\n[maintainability_badge]: https://api.codeclimate.com/v1/badges/f956ddf9381ba82cd473/maintainability\n[maintainability]: https://codeclimate.com/github/ryancyq/rspec-activesupport/maintainability\n[rspec]: https://rspec.info/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryancyq%2Frspec-activesupport","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryancyq%2Frspec-activesupport","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryancyq%2Frspec-activesupport/lists"}