{"id":15405527,"url":"https://github.com/koic/ruby_ast_visualizer","last_synced_at":"2025-04-17T01:52:51.949Z","repository":{"id":56893340,"uuid":"68701781","full_name":"koic/ruby_ast_visualizer","owner":"koic","description":":evergreen_tree: Ruby AST Visualizer. Based on Parser.","archived":false,"fork":false,"pushed_at":"2018-03-23T14:41:29.000Z","size":56,"stargazers_count":27,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T05:51:17.269Z","etag":null,"topics":["ast","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/koic.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2016-09-20T10:39:17.000Z","updated_at":"2024-04-26T19:35:16.000Z","dependencies_parsed_at":"2022-08-20T16:10:39.899Z","dependency_job_id":null,"html_url":"https://github.com/koic/ruby_ast_visualizer","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koic%2Fruby_ast_visualizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koic%2Fruby_ast_visualizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koic%2Fruby_ast_visualizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koic%2Fruby_ast_visualizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koic","download_url":"https://codeload.github.com/koic/ruby_ast_visualizer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248830425,"owners_count":21168272,"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":["ast","ruby"],"created_at":"2024-10-01T16:16:56.529Z","updated_at":"2025-04-17T01:52:51.930Z","avatar_url":"https://github.com/koic.png","language":"Ruby","readme":"# Ruby AST Visualizer [![Gem Version](https://badge.fury.io/rb/ruby_ast_visualizer.svg)](http://badge.fury.io/rb/ruby_ast_visualizer)\n\nRuby AST Visualizer. Based on [Parser](https://github.com/whitequark/parser).\n\n## Install\n\n```sh\n$ gem install ruby_ast_visualizer\n```\n\n## Usage\n\nAn example `ruby_ast_visualizer` command.\n\n```sh\n$ cat hello.rb\nputs 'hello, world'\n$ ruby_ast_visualizer hello.rb\n\n(send nil :puts\n  (str \"hello, world\"))\n\nWrote a.png\n```\n\nor\n\n```sh\n$ ruby_ast_visualizer -e 'puts \"hello, world\"'\n\n(send nil :puts\n  (str \"hello, world\"))\n\nWrote a.png\n```\n\nAST image file is generated.\n\n\u003cimg src=\"https://raw.githubusercontent.com/koic/ruby_ast_visualizer/master/images/hello_world.png\" alt=\"hello, world\"/\u003e\n\n### A little more in detail\n\nYou can specify output path in the `-o` option. That value is default a.png.\n\n```sh\n$ ruby_ast_visualizer -o path/to/file -e 'puts \"hello, world\"'\n\n(send nil :puts\n  (str \"hello, world\"))\n\nWrote path/to/file\n```\n\nAnd you can also specify the `-n` (`--no-image`) option if you don't need an image.\nYou can only get the result of S-expression by Parser gem.\n\n```sh\n$ ruby_ast_visualizer -n -e 'puts \"hello, world\"'\n\n(send nil :puts\n  (str \"hello, world\"))\n```\n\n## Requirements\n\n* Graphviz\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n\n## License\n\nRuby AST Visualizer is released under the GNU General Public License, version 2.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoic%2Fruby_ast_visualizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoic%2Fruby_ast_visualizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoic%2Fruby_ast_visualizer/lists"}