{"id":15663218,"url":"https://github.com/mvz/ripper_ruby_parser","last_synced_at":"2025-04-06T06:14:28.735Z","repository":{"id":2646337,"uuid":"3636304","full_name":"mvz/ripper_ruby_parser","owner":"mvz","description":"Drop-in replacement for RubyParser using Ripper","archived":false,"fork":false,"pushed_at":"2025-02-23T17:36:05.000Z","size":1307,"stargazers_count":17,"open_issues_count":0,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-30T05:09:26.990Z","etag":null,"topics":["hacktoberfest","parser","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/mvz.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2012-03-06T09:17:03.000Z","updated_at":"2025-02-23T17:36:07.000Z","dependencies_parsed_at":"2023-07-05T20:03:30.525Z","dependency_job_id":"2e06c88c-6ac8-4b89-8063-05283fac29ec","html_url":"https://github.com/mvz/ripper_ruby_parser","commit_stats":{"total_commits":1238,"total_committers":3,"mean_commits":412.6666666666667,"dds":"0.054119547657512146","last_synced_commit":"88200b1d72242d268c64eb38c3fffea6d4be7e95"},"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvz%2Fripper_ruby_parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvz%2Fripper_ruby_parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvz%2Fripper_ruby_parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvz%2Fripper_ruby_parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mvz","download_url":"https://codeload.github.com/mvz/ripper_ruby_parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247441063,"owners_count":20939239,"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":["hacktoberfest","parser","ruby"],"created_at":"2024-10-03T13:35:57.504Z","updated_at":"2025-04-06T06:14:28.714Z","avatar_url":"https://github.com/mvz.png","language":"Ruby","readme":"# RipperRubyParser\n\nby Matijs van Zuijlen\n\n## Description\n\nParse with Ripper, produce sexps that are compatible with RubyParser.\n\n## Features/Notes\n\n* Drop-in replacement for RubyParser\n* Should handle 1.9 and later syntax gracefully\n* Requires Ruby 3.1 or higher\n* Compatible with RubyParser 3.21.0\n\n## Known incompatibilities\n\nRipperRubyParser has a few incompatibilities with RubyParser.\n\n* RipperRubyParser won't handle non-UTF-8 files without an encoding comment,\n  just like regular Ruby\n* RipperRubyParser does not always match RubyParser's line numbering\n* RipperRubyParser dedents auto-dedenting heredocs\n* RipperRubyParser does not include postfix comments\n* With Ruby 3.4, RipperRubyParser parses variables assigned by regular\n  expressions as local variables\n\n## Install\n\n```bash\ngem install ripper_ruby_parser\n```\n\n## Synopsis\n\n```ruby\nrequire 'ripper_ruby_parser'\n\nparser = RipperRubyParser::Parser.new\nparser.parse \"puts 'Hello World'\"\n# =\u003e s(:call, nil, :puts, s(:str, \"Hello World!\"))\nparser.parse \"foo[bar] += baz qux\"\n# =\u003e s(:op_asgn1, s(:call, nil, :foo),\n#      s(:arglist, s(:call, nil, :bar)),\n#      :+,\n#      s(:call, nil, :baz, s(:call, nil, :qux)))\n```\n\n## Requirements\n\n* Ruby 2.7 or higher\n* `sexp_processor`\n\n## Hacking and contributing\n\nIf you want to send pull requests or patches, please:\n\n* Make sure `rake test` runs without reporting any failures. If your code\n  breaks existing stuff, it won't get merged in.\n* Add tests for your feature. Otherwise, I can't see if it works or if I\n  break it later.\n* Make sure latest master merges cleanly with your branch. Things might\n  have moved around since you forked.\n* Try not to include changes that are irrelevant to your feature in the\n  same commit.\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2012, 2014-2024 Matijs van Zuijlen\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmvz%2Fripper_ruby_parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmvz%2Fripper_ruby_parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmvz%2Fripper_ruby_parser/lists"}