{"id":30586184,"url":"https://github.com/janlelis/sugar_refinery","last_synced_at":"2025-08-29T11:44:08.798Z","repository":{"id":56899434,"uuid":"819621","full_name":"janlelis/sugar_refinery","owner":"janlelis","description":"Tiny refinements for Ruby","archived":false,"fork":false,"pushed_at":"2021-10-21T19:35:04.000Z","size":616,"stargazers_count":110,"open_issues_count":0,"forks_count":6,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-08-20T06:48:18.605Z","etag":null,"topics":["refinements","ruby","support-library","zucker"],"latest_commit_sha":null,"homepage":"https://janlelis.github.io/sugar_refinery","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/janlelis.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"MIT-LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-08-05T17:11:44.000Z","updated_at":"2024-03-26T02:47:20.000Z","dependencies_parsed_at":"2022-08-21T01:50:27.233Z","dependency_job_id":null,"html_url":"https://github.com/janlelis/sugar_refinery","commit_stats":null,"previous_names":["janlelis/zucker"],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/janlelis/sugar_refinery","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janlelis%2Fsugar_refinery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janlelis%2Fsugar_refinery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janlelis%2Fsugar_refinery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janlelis%2Fsugar_refinery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/janlelis","download_url":"https://codeload.github.com/janlelis/sugar_refinery/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janlelis%2Fsugar_refinery/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272679429,"owners_count":24975255,"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":["refinements","ruby","support-library","zucker"],"created_at":"2025-08-29T11:44:08.073Z","updated_at":"2025-08-29T11:44:08.759Z","avatar_url":"https://github.com/janlelis.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ruby Sugar Refinery [![version](https://badge.fury.io/rb/sugar_refinery.svg)](https://badge.fury.io/rb/sugar_refinery) [![[ci]](https://github.com/janlelis/sugar_refinery/workflows/Test/badge.svg)](https://github.com/janlelis/sugar_refinery/actions?query=workflow%3ATest)\n\nThe Ruby Sugar Refinery is a collection of tiny [refinements](https://ruby-doc.org/core/doc/syntax/refinements_rdoc.html) (declarative local core extensions) for Ruby.\n\n## Setup \u0026 usage\n\nAdd to Gemfile:\n\n```ruby\ngem 'sugar_refinery', require: 'sugar_refinery/all'\n```\n\nThen add refinements to the current Ruby file or module:\n\n```ruby\nusing SugarRefinery::CamelSnake\nusing SugarRefinery::HashZip\n\n\"ClassName\".to_snake # =\u003e \"class_name\"\nHash.zip [1,2,3], [4,5,6] # =\u003e {1=\u003e4, 2=\u003e5, 3=\u003e6}\n```\n\n## List of included refinements\n\nPlease see [the documentation](http://janlelis.github.io/sugar_refinery), [the code](https://github.com/janlelis/sugar_refinery/tree/master/lib/sugar_refinery) or [the specs](https://github.com/janlelis/sugar_refinery/tree/master/spec)!\n\n## The Sugar Refinery was Zucker before\n\nThis collection of core extensions used to be called **zucker**.\n\nMissing former functionality? It might have been extracted into a separate micro gem:\n\n* [iterate](https://github.com/janlelis/iterate) | Control structure-like iteration\n* [instance_variables_from](https://github.com/janlelis/instance_variables_from) | Auto-assign instance variables\n* [egonil](https://github.com/janlelis/egonil) | Egocentric nil\n* [debugging](https://github.com/janlelis/debugging) | Print debugging helpers\n* [procstar](https://github.com/janlelis/procstar) | Beyond symbol2proc\n* [ruby_info](https://github.com/janlelis/ruby_info) | Misc information about the Ruby environment\n* [ruby_version](https://github.com/janlelis/ruby_version) | Smart Ruby version accessor\n* [ruby_engine](https://github.com/janlelis/ruby_engine) | Smar Ruby engine accessor\n\n## J-_-L\n\nCopyright (c) 2010-2016 [Jan Lelis](https://janlelis.com), released under the MIT license\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanlelis%2Fsugar_refinery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjanlelis%2Fsugar_refinery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanlelis%2Fsugar_refinery/lists"}