{"id":24056882,"url":"https://github.com/eyal-wowhub/contracts","last_synced_at":"2026-06-18T05:31:49.703Z","repository":{"id":270957151,"uuid":"911267824","full_name":"Eyal-WowHub/Contracts","owner":"Eyal-WowHub","description":"A library that provides Design by Contract like API to ensure functions adhere to specific preconditions and postconditions.","archived":false,"fork":false,"pushed_at":"2025-02-15T15:36:34.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-26T12:16:18.090Z","etag":null,"topics":["lib","library","lua","world-of-warcraft","world-of-warcraft-addon","wow","wow-addon"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Eyal-WowHub.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"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":"2025-01-02T16:11:40.000Z","updated_at":"2025-02-15T15:36:37.000Z","dependencies_parsed_at":"2025-01-05T14:49:30.144Z","dependency_job_id":null,"html_url":"https://github.com/Eyal-WowHub/Contracts","commit_stats":null,"previous_names":["eyal-wow-addons/contracts","eyal-wowhub/contracts"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eyal-WowHub%2FContracts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eyal-WowHub%2FContracts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eyal-WowHub%2FContracts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eyal-WowHub%2FContracts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Eyal-WowHub","download_url":"https://codeload.github.com/Eyal-WowHub/Contracts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240849013,"owners_count":19867617,"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":["lib","library","lua","world-of-warcraft","world-of-warcraft-addon","wow","wow-addon"],"created_at":"2025-01-09T05:27:26.095Z","updated_at":"2026-06-18T05:31:49.652Z","avatar_url":"https://github.com/Eyal-WowHub.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Contracts\n\nA library that provides Design by Contract like API to ensure functions adhere to specific preconditions and postconditions.\n\n#### Dependencies: [LibStub](https://www.curseforge.com/wow/addons/libstub)\n\n### Example:\n\n```lua\nlocal C = LibStub(\"Contracts-1.0\")\n\nlocal function Divide(numerator, denominator)\n   C:IsNumber(numerator, 1)\n   C:IsNumber(denominator, 2)\n   \n   C:Ensures(denominator ~= 0, \"Divided by zero. The denominator cannot be zero.\")\n   \n   return numerator / denominator\nend\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feyal-wowhub%2Fcontracts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feyal-wowhub%2Fcontracts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feyal-wowhub%2Fcontracts/lists"}