{"id":28542532,"url":"https://github.com/edmundleex/freeze_all","last_synced_at":"2025-07-05T21:31:41.568Z","repository":{"id":56847713,"uuid":"84870973","full_name":"EdmundLeex/freeze_all","owner":"EdmundLeex","description":"An handy way to freeze constants in an Array/Hash","archived":false,"fork":false,"pushed_at":"2017-03-13T20:39:37.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-09T20:44:50.494Z","etag":null,"topics":["array","constants","freeze","hash"],"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/EdmundLeex.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":"2017-03-13T20:23:34.000Z","updated_at":"2017-03-17T05:46:05.000Z","dependencies_parsed_at":"2022-09-12T11:44:40.975Z","dependency_job_id":null,"html_url":"https://github.com/EdmundLeex/freeze_all","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/EdmundLeex/freeze_all","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EdmundLeex%2Ffreeze_all","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EdmundLeex%2Ffreeze_all/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EdmundLeex%2Ffreeze_all/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EdmundLeex%2Ffreeze_all/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EdmundLeex","download_url":"https://codeload.github.com/EdmundLeex/freeze_all/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EdmundLeex%2Ffreeze_all/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263808718,"owners_count":23514831,"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":["array","constants","freeze","hash"],"created_at":"2025-06-09T20:34:50.326Z","updated_at":"2025-07-05T21:31:41.561Z","avatar_url":"https://github.com/EdmundLeex.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FreezeAll\n\nDo you have these types of code in your code base?\n\n```ruby\nFOO = 'FOO'.freeze\nBAR = 'BAR'.freeze\nFOOBAR = 'FOOBAR'.freeze\n\nFOO_ARR = [FOO, BAR, FOOBAR].freeze\n\nFOOBAR_STATUSES = [\n  'FOO'.freeze,\n  'BAR'.freeze\n].freeze\n```\n\nIf so, this gem is perfect for you. FreezeAll adds a convenient `freeze_all` \nmethod to Array and Hash class, and allow you to freeze all objects within the \nArray/Hash and the Array/Hash itself.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'freeze_all'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install freeze_all\n\n## Usage\n\n```ruby\nFOO = 'FOO'\nBAR = 'BAR'\nFOOBAR = 'FOOBAR'\n\nFOO_ARR = [FOO, BAR, FOOBAR].freeze_all\n\nFOOBAR_STATUSES = {\n  status_a: 'status_a',\n  status_b: 'status_b'\n}.freeze_all\n```\n\n## Contributing\n\nYou can help by doing these. :)\n\n- report issues\n- fork this repo, and create your PR.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedmundleex%2Ffreeze_all","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedmundleex%2Ffreeze_all","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedmundleex%2Ffreeze_all/lists"}