{"id":13517226,"url":"https://github.com/iamsolankiamit/prettier-ruby","last_synced_at":"2025-03-31T07:31:11.685Z","repository":{"id":73493477,"uuid":"117400412","full_name":"iamsolankiamit/prettier-ruby","owner":"iamsolankiamit","description":"Prettier for ruby","archived":true,"fork":false,"pushed_at":"2019-02-12T10:07:15.000Z","size":450,"stargazers_count":192,"open_issues_count":6,"forks_count":6,"subscribers_count":24,"default_branch":"master","last_synced_at":"2024-11-01T22:38:04.341Z","etag":null,"topics":["prettier","ruby"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iamsolankiamit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-01-14T04:05:40.000Z","updated_at":"2023-05-28T23:45:19.000Z","dependencies_parsed_at":"2024-01-13T19:26:46.372Z","dependency_job_id":"9a0a8184-5228-4568-8ec1-1d9427ba3309","html_url":"https://github.com/iamsolankiamit/prettier-ruby","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamsolankiamit%2Fprettier-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamsolankiamit%2Fprettier-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamsolankiamit%2Fprettier-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamsolankiamit%2Fprettier-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iamsolankiamit","download_url":"https://codeload.github.com/iamsolankiamit/prettier-ruby/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246433179,"owners_count":20776549,"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":["prettier","ruby"],"created_at":"2024-08-01T05:01:31.304Z","updated_at":"2025-03-31T07:31:10.655Z","avatar_url":"https://github.com/iamsolankiamit.png","language":"JavaScript","readme":"# Please Check the official repo here [prettier-plugin-ruby](https://github.com/prettier/plugin-ruby)\n\nThis repo is deprecated \n\n---\n\n# Prettier Ruby Plugin\n[![All Contributors](https://img.shields.io/badge/all_contributors-2-orange.svg?style=flat-square)](#contributors)\n\n\u003cp align=\"center\"\u003e\n    :construction: Work in Progress! :construction:\n\u003c/p\u003e\n\n## WORK IN PROGRESS\n\nPlease note that this plugin is under active development, and might not be ready to run on production code yet.\n\n## How it works\n\nPrettier-Ruby relies on [Ripper](https://docs.ruby-lang.org/en/2.5.0/Ripper.html), the official parser\nof Ruby to understand your code. Once your code has been read and parsed, it is then reformatted using\nthe [formatting commands](https://github.com/prettier/prettier/blob/master/commands.md) provided by Prettier.\n\n## Contributing\n\nIf you're interested in contributing to the development of Prettier for Ruby:\n\n* Clone this repository\n* Run `yarn` to install dependencies\n* Ensure all tests run with `yarn run test`\n\nYou will find it useful to read the [CONTRIBUTING guide from Prettier](https://github.com/prettier/prettier/blob/master/CONTRIBUTING.md),\nas it all applies to this repository too.\n\n### Development\n\nPrettier-Ruby makes use of Ruby's official lexer and parser, [Ripper](https://docs.ruby-lang.org/en/2.5.0/Ripper.html).\nYou can see the output of Ripper's tokens, sexpressions, the intermediate representation that prettier-ruby uses,\nas well as the final prettier-ruby result by appending `DEBUG=true` when running tests:\n\n```bash\nDEBUG=true yarn run test --watch\n```\n\nYou should now see some useful debug output in your console:\n\n![Debug mode enabled, showing the parsed Ruby tokens and more](./documentation/debug-example.png)\n\nYou can run the Ruby AST Exporter directly with a given string too:\n\n```\n$ ruby vendor/ruby/astexport.rb \"puts 'hello world'\"\n```\n\nTo run an individual test folder:\n\n```bash\nDEBUG=true yarn run test tests/defs --watch\n```\n\n## Usage\n\nUntil this package is officially released to npm you must clone it yourself, and run it directly:\n\n* Clone this repository\n* Run `yarn` to install dependencies\n* Run `yarn prettier test.rb` to check the output of a single file\n* Run on multiple files with `yarn prettier your_folder/**/*.rb`\n* Save the result with `yarn prettier your_folder/**/*.rb --write`\n\n## Contributors\n\nThanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore --\u003e\n| [\u003cimg src=\"https://avatars2.githubusercontent.com/u/1271782?v=4\" width=\"100px;\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eAlan Foster\u003c/b\u003e\u003c/sub\u003e](http://www.alanfoster.me/)\u003cbr /\u003e[📖](https://github.com/iamsolankiamit/prettier-ruby/commits?author=AlanFoster \"Documentation\") [🐛](https://github.com/iamsolankiamit/prettier-ruby/issues?q=author%3AAlanFoster \"Bug reports\") [💻](https://github.com/iamsolankiamit/prettier-ruby/commits?author=AlanFoster \"Code\") [🤔](#ideas-AlanFoster \"Ideas, Planning, \u0026 Feedback\") | [\u003cimg src=\"https://avatars3.githubusercontent.com/u/3483526?v=4\" width=\"100px;\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eAmit Solanki\u003c/b\u003e\u003c/sub\u003e](http://solankiamit.com)\u003cbr /\u003e[📖](https://github.com/iamsolankiamit/prettier-ruby/commits?author=iamsolankiamit \"Documentation\") [🐛](https://github.com/iamsolankiamit/prettier-ruby/issues?q=author%3Aiamsolankiamit \"Bug reports\") [💻](https://github.com/iamsolankiamit/prettier-ruby/commits?author=iamsolankiamit \"Code\") [🤔](#ideas-iamsolankiamit \"Ideas, Planning, \u0026 Feedback\") [💡](#example-iamsolankiamit \"Examples\") [👀](#review-iamsolankiamit \"Reviewed Pull Requests\") [⚠️](https://github.com/iamsolankiamit/prettier-ruby/commits?author=iamsolankiamit \"Tests\") |\n| :---: | :---: |\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nThis project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind welcome!\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamsolankiamit%2Fprettier-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiamsolankiamit%2Fprettier-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamsolankiamit%2Fprettier-ruby/lists"}