{"id":22725462,"url":"https://github.com/delonnewman/contracts-gen","last_synced_at":"2025-03-29T23:42:32.548Z","repository":{"id":59152378,"uuid":"197237843","full_name":"delonnewman/contracts-gen","owner":"delonnewman","description":"Generate data from contracts","archived":false,"fork":false,"pushed_at":"2021-01-21T00:58:24.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-01T12:34:57.419Z","etag":null,"topics":["contracts","design-by-contract","functional","functional-programing","generative-testing","ruby","testing"],"latest_commit_sha":null,"homepage":"https://www.rubydoc.info/gems/contracts-gen","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/delonnewman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-16T17:22:01.000Z","updated_at":"2021-10-18T13:57:04.000Z","dependencies_parsed_at":"2022-09-13T10:50:23.625Z","dependency_job_id":null,"html_url":"https://github.com/delonnewman/contracts-gen","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delonnewman%2Fcontracts-gen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delonnewman%2Fcontracts-gen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delonnewman%2Fcontracts-gen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delonnewman%2Fcontracts-gen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/delonnewman","download_url":"https://codeload.github.com/delonnewman/contracts-gen/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246258862,"owners_count":20748573,"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":["contracts","design-by-contract","functional","functional-programing","generative-testing","ruby","testing"],"created_at":"2024-12-10T16:11:19.040Z","updated_at":"2025-03-29T23:42:32.532Z","avatar_url":"https://github.com/delonnewman.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Ruby](https://github.com/delonnewman/contracts-gen/workflows/Ruby/badge.svg)\n[![Gem Version](https://badge.fury.io/rb/contracts-gen.svg)](https://badge.fury.io/rb/contracts-gen)\n\nContracts::Gen\n==============\n\nAn extension for [Gen::Test][1], defining generators for [Contracts][2].\n\nSynopsis\n========\n\n```ruby\nrequire 'gen/test'\nrequire 'contracts'\nrequire 'contracts/gen'\n\nSum = lambda { |xs| xs.reduce(:+) }\n\nC = Contracts\n\nclass SumTest \u003c Minitest::Test\n  include Gen::Test\n\n  def test_sum_for_all_arrays_of_integers\n    for_all C::ArrayOf[Integer] do |xs|\n      y = Sum[xs]\n      assert_equal(y, xs.reduce(:+))\n    end\n  end\nend\n```\n\nInstall\n=======\n\n    \u003e gem install contracts-gen\n\nor, add:\n\n```ruby\ngem 'contracts-gen'\n```\n\nto your Gemfile, and then execute:\n\n    \u003e bundle\n\n\nSee Also\n========\n\n- [Gen::Test][1]\n- [Contracts][2]\n\n[1]: https://github.com/delonnewman/gen-test\n[2]: https://github.com/egonSchiele/contracts.ruby\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdelonnewman%2Fcontracts-gen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdelonnewman%2Fcontracts-gen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdelonnewman%2Fcontracts-gen/lists"}