{"id":19667245,"url":"https://github.com/willnet/committee-rails","last_synced_at":"2026-01-06T09:17:41.421Z","repository":{"id":42234469,"uuid":"67600840","full_name":"willnet/committee-rails","owner":"willnet","description":"rails and committee are good friends","archived":false,"fork":false,"pushed_at":"2024-02-27T08:53:59.000Z","size":98,"stargazers_count":125,"open_issues_count":0,"forks_count":20,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-28T06:05:18.006Z","etag":null,"topics":["json-schema","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/willnet.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2016-09-07T11:33:16.000Z","updated_at":"2025-03-07T21:17:50.000Z","dependencies_parsed_at":"2024-01-09T06:32:17.955Z","dependency_job_id":"b5ed875c-7871-4f0d-a753-ee298ba05398","html_url":"https://github.com/willnet/committee-rails","commit_stats":{"total_commits":94,"total_committers":15,"mean_commits":6.266666666666667,"dds":"0.36170212765957444","last_synced_commit":"c461f7b82b41906da12aec4d993a1fd4563ca651"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willnet%2Fcommittee-rails","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willnet%2Fcommittee-rails/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willnet%2Fcommittee-rails/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willnet%2Fcommittee-rails/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willnet","download_url":"https://codeload.github.com/willnet/committee-rails/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247135143,"owners_count":20889420,"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":["json-schema","rails"],"created_at":"2024-11-11T16:31:19.298Z","updated_at":"2026-01-06T09:17:41.342Z","avatar_url":"https://github.com/willnet.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Committee::Rails\n\n[![Build Status](https://github.com/willnet/committee-rails/actions/workflows/test.yml/badge.svg)](https://github.com/willnet/committee-rails/actions/workflows/test.yml)\n[![Gem Version](https://badge.fury.io/rb/committee-rails.svg)](https://badge.fury.io/rb/committee-rails)\n\nYou can use `assert_request_schema_confirm`, `assert_response_schema_confirm` or `assert_schema_conform` in rails.\n\n## Looking for maintainers!\n\nIf interested, please contact @willnet\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'committee-rails'\n```\n\nAnd then execute:\n\n    $ bundle\n\nIf you use committee prior to 5.1.0, you have to use committee-rails 0.7.x. Please see below.\n\n[0.7 (0-7-stable) documentation](https://github.com/willnet/committee-rails/tree/0-7-stable)\n\nIf you use committee prior to 5.0.0, you have to use committee-rails 0.6.x. Please see below.\n\n[0.6 (0-6-stable) documentation](https://github.com/willnet/committee-rails/tree/0-6-stable)\n\nIf you use committee prior to 4.4.0, you have to use committee-rails 0.5.x. Please see below.\n\n[0.5 (0-5-stable) documentation](https://github.com/willnet/committee-rails/tree/0-5-stable)\n\nIf you use committee prior to 3.0, you have to use committee-rails 0.4.x. Please see below.\n\n[0.4 (0-4-stable) documentation](https://github.com/willnet/committee-rails/tree/0-4-stable)\n\nIf you use committee prior to 2.4, you have to use committee-rails 0.3.x. Please see below.\n\n[0.3 (0-3-stable) documentation](https://github.com/willnet/committee-rails/tree/0-3-stable)\n\nIf you use committee prior to 2.0, you have to use committee-rails 0.1.x. Please see below.\n\n[0.1 (0-1-stable) documentation](https://github.com/willnet/committee-rails/tree/0-1-stable)\n\n## Usage\n\n### normal usage\n\n```ruby\ndescribe 'request spec' do\n  include Committee::Rails::Test::Methods\n\n  def committee_options\n    @committee_options ||= { schema_path: Rails.root.join('schema', 'schema.json').to_s }\n  end\n\n  describe 'GET /' do\n    it 'conforms to schema with 200 response code' do\n      get '/'\n      assert_schema_conform(200)\n    end\n\n    it 'conforms to request schema' do\n      get '/'\n      assert_request_schema_confirm\n    end\n\n    it 'conforms to response schema with 200 response code' do\n      get '/'\n      assert_response_schema_confirm(200)\n    end\n  end\nend\n```\n\n### rspec setting\nIf you use rspec, you can use very simple.\n\n```ruby\nRSpec.configure do |config|\n  config.add_setting :committee_options\n  config.committee_options = { schema_path: Rails.root.join('schema', 'schema.json').to_s }\nend\n```\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/willnet/committee-rails. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillnet%2Fcommittee-rails","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillnet%2Fcommittee-rails","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillnet%2Fcommittee-rails/lists"}