{"id":13879611,"url":"https://github.com/rzane/geny","last_synced_at":"2025-04-19T17:25:10.338Z","repository":{"id":56873930,"uuid":"226044004","full_name":"rzane/geny","owner":"rzane","description":"A framework for building code generators","archived":false,"fork":false,"pushed_at":"2020-08-18T02:55:22.000Z","size":162,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T10:50:37.553Z","etag":null,"topics":["code","generator","ruby","templates"],"latest_commit_sha":null,"homepage":"https://rubydoc.info/github/rzane/geny","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/rzane.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-05T07:39:37.000Z","updated_at":"2020-08-18T02:55:01.000Z","dependencies_parsed_at":"2022-08-20T10:11:02.440Z","dependency_job_id":null,"html_url":"https://github.com/rzane/geny","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rzane%2Fgeny","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rzane%2Fgeny/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rzane%2Fgeny/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rzane%2Fgeny/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rzane","download_url":"https://codeload.github.com/rzane/geny/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249748298,"owners_count":21319811,"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":["code","generator","ruby","templates"],"created_at":"2024-08-06T08:02:26.721Z","updated_at":"2025-04-19T17:25:10.316Z","avatar_url":"https://github.com/rzane.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eGeny\u003c/h1\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n![Build](https://github.com/rzane/geny/workflows/Build/badge.svg)\n![Version](https://img.shields.io/gem/v/geny)\n\n\u003c/div\u003e\n\nA tool for building code generators.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'geny'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install geny\n\n## Usage\n\nYou are tired of writing the boilerplate for new React components. Let's solve that.\n\nFirst, let's create a template at `.geny/react/component/templates/component.erb`:\n\n```javascript\nimport React from \"react\";\n\nexport const \u003c%= name %\u003e = props =\u003e {\n  return \u003ch1\u003e\u003c%= name \u003e\u003c/h1\u003e\n}\n```\n\nNext, we'll define our generator at `.geny/react/component/generator.rb`:\n\n```ruby\nparse do\n  description \"generate a React component\"\n  usage \"geny react:component [NAME]\"\n  argument :name, required: true, desc: \"component name\"\nend\n\ninvoke do\n  templates.copy \"component.erb\", \"src/components/#{name}.js\"\nend\n```\n\nAwesome. Run it:\n\n    $ geny react:component Logo\n            create  src/components/Logo.js\n\nObviously, this is a simple example. But Geny comes with a lot of tools to help you build really great code generators with minimal effort.\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/rzane/geny. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the Geny project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/rzane/geny/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frzane%2Fgeny","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frzane%2Fgeny","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frzane%2Fgeny/lists"}