{"id":18389305,"url":"https://github.com/rightpoint/rzaffirm","last_synced_at":"2025-10-27T11:05:03.419Z","repository":{"id":24829957,"uuid":"28244572","full_name":"Rightpoint/RZAffirm","owner":"Rightpoint","description":"Raizlabs Swift Assertion Library","archived":false,"fork":false,"pushed_at":"2019-04-15T15:23:41.000Z","size":58,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":31,"default_branch":"master","last_synced_at":"2025-08-11T21:42:06.527Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Rightpoint.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-19T20:11:09.000Z","updated_at":"2019-04-15T15:23:33.000Z","dependencies_parsed_at":"2022-08-06T05:01:00.190Z","dependency_job_id":null,"html_url":"https://github.com/Rightpoint/RZAffirm","commit_stats":null,"previous_names":["raizlabs/rzaffirm"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Rightpoint/RZAffirm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rightpoint%2FRZAffirm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rightpoint%2FRZAffirm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rightpoint%2FRZAffirm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rightpoint%2FRZAffirm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rightpoint","download_url":"https://codeload.github.com/Rightpoint/RZAffirm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rightpoint%2FRZAffirm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272730346,"owners_count":24983684,"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","status":"online","status_checked_at":"2025-08-29T02:00:10.610Z","response_time":87,"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"}},"keywords":[],"created_at":"2024-11-06T01:42:28.925Z","updated_at":"2025-10-27T11:05:03.338Z","avatar_url":"https://github.com/Rightpoint.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"RZAffirm\n============\n\n[![Build Status](https://travis-ci.org/Raizlabs/RZAffirm.svg)](https://travis-ci.org/Raizlabs/RZAffirm)\n[![Version](https://img.shields.io/cocoapods/v/RZAffirm.svg?style=flat)](http://cocoadocs.org/docsets/RZAffirm)\n[![License](https://img.shields.io/cocoapods/l/RZAffirm.svg?style=flat)](http://cocoadocs.org/docsets/RZAffirm)\n[![Platform](https://img.shields.io/cocoapods/p/RZAffirm.svg?style=flat)](http://cocoadocs.org/docsets/RZAffirm)\n\n`RZAffirm` adds ease of implementation and clarity of intent to your assertions. `RZAffirm` defines functions which - like comments - express intent, but never go out of date. `RRZAFFIRM_TRUE`, `RZAFFIRM_FALSE`, `RZAFFIRM_NOT_NIL`, and `RZAFFIRM_NONEMPTY_STRING` all do exactly what you think they do.\n\n`RZAffirm` includes more exciting assertions that come in handy in a variety of contexts. For example:\n\nYou define a method on a class, but you want that method to ONLY be called by subclasses. Use `RZAFFIRM_SUBCLASSES_MUST_OVERRIDE` to throw an exception if the method is called from the class itself:\n\n```swift\nclass RZSuperclass\n\nfunc aMethodThatShouldBeCalledFromSubclassesOnly -\u003e Void {\n  RZAFFIRM_SUBCLASSES_MUST_OVERRIDE(self);\n}\n```\n\nYou define a switch statement with a case that should never occur. Use `RZAFFIRM_SHOULD_NEVER_GET_HERE` to throw an exception if your program passes the undesired case to the switch statement:\n\n```swift\nenum AwesomeMode {\n    case AwesomeModeNotSet\n    case AwesomeModeIsAwesome\n}\n\nfunc configureThingsForAwesomeMode(awesomeMode:AwesomeMode) -\u003e Void {\n    switch awesomeMode {\n        case .AwesomeModeNotSet:\n            RZAFFIRM_SHOULD_NEVER_GET_HERE(self)\n            break\n        case .AwesomeModeIsAwesome:\n            break\n    }\n}\n```\n\n## Usage\n\nA demo project is available in the `Example` directory. Open RZAffirm.xcodeproj and check out the demo!\n\n## Installation\n\n'RZAffirm' is now available through the dependency manager [CocoaPods](http://cocoapods.org). CocoaPods version 0.36.0 is required. At this moment this can be installed as a pre release by executing:\n\n    `[sudo] gem install cocoapods --pre`\n\nTo install RZAffirm with CocoaPods 0.36.0, simply add the following line to your Podfile:\n\n    pod RZAffirm, '~\u003e 0.1'\n\nImport RZAffirm at the top of your swift file by adding this code:\n\n    `import RZAffirm`\n\n## Authors\n\nMichael Gorbach, michael.gorbach@raizlabs.com\n\nJoe Howard, joe.howard@raizlabs.com\n\nMatt Buckley, matt.buckley@raizlabs.com\n\n## License\n\nSee the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frightpoint%2Frzaffirm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frightpoint%2Frzaffirm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frightpoint%2Frzaffirm/lists"}