{"id":13511824,"url":"https://github.com/yinwang0/rubysonar","last_synced_at":"2025-09-23T15:14:16.662Z","repository":{"id":12575121,"uuid":"15245706","full_name":"yinwang0/rubysonar","owner":"yinwang0","description":"A semantic indexer for Ruby with interprocedual type inference","archived":false,"fork":false,"pushed_at":"2022-11-15T23:31:22.000Z","size":5383,"stargazers_count":190,"open_issues_count":5,"forks_count":160,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-03-30T12:09:28.572Z","etag":null,"topics":["code-analysis","code-index","code-search","ruby","static-analysis","type-inference"],"latest_commit_sha":null,"homepage":"","language":"Java","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/yinwang0.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}},"created_at":"2013-12-17T05:11:09.000Z","updated_at":"2024-07-23T06:51:43.000Z","dependencies_parsed_at":"2023-01-11T18:21:28.802Z","dependency_job_id":null,"html_url":"https://github.com/yinwang0/rubysonar","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/yinwang0%2Frubysonar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yinwang0%2Frubysonar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yinwang0%2Frubysonar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yinwang0%2Frubysonar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yinwang0","download_url":"https://codeload.github.com/yinwang0/rubysonar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247492557,"owners_count":20947545,"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-analysis","code-index","code-search","ruby","static-analysis","type-inference"],"created_at":"2024-08-01T03:01:12.445Z","updated_at":"2025-09-23T15:14:11.610Z","avatar_url":"https://github.com/yinwang0.png","language":"Java","funding_links":[],"categories":["Java"],"sub_categories":[],"readme":"### RubySonar - an advanced semantic indexer for Ruby\n\nRubySonar is a semantic indexer for Ruby, which does\ninterprocedural analysis to infer types. It is one of the underlying\ntechnologies that powers the code search site \u003ca\nhref=\"https://sourcegraph.com/github.com/rails/rails\"\u003eSourcegraph\u003c/a\u003e.\n\nRubySonar is modeled after \u003ca\nhref=\"https://github.com/yinwang0/pysonar2\"\u003ePySonar2\u003c/a\u003e, which does a similar\nanalysis for Python and has been in use by Sourcegraph and Google. To understand\nits technical properties, please refer to my blog posts:\n\n- http://yinwang0.wordpress.com/2010/09/12/pysonar\n\n\n#### Demo\n\n\u003cimg src=\"http://www.yinwang.org/images/rubysonar.gif\" width=\"80%\"\u003e\n\n\n\n#### How to build\n\n    mvn package\n\n\n\n#### System Requirements\n\n* irb\n\nRubySonar uses the `irb` interpreter to parse Ruby code, so please make sure you\nhave it installed and pointed to by the `PATH` environment variable.\n\n\n\n#### How to use\n\nRubySonar is mainly designed as a library for IDEs and other developer tools, so\nits interface may not be as appealing as an end-user tool, but for your\nunderstanding of the library's capabilities, a reasonably nice demo program has\nbeen built.\n\nYou can build a simple \"code-browser\" of your ruby code with the following\ncommand line:\n\n    java -jar target/rubysonar-0.1-SNAPSHOT.jar /path/to/project ./html\n\nThis will take a few minutes. You should find some interactive HTML files inside\nthe _html_ directory after this process.\n\n\n\n#### License (BSD Style)\n\nRubySonar - an advanced semantic indexer for Ruby\n\nCopyright (c) 2013-2019 Yin Wang\n\nRedistribution and use in source and binary forms, with or without modification,\nare permitted provided that the following conditions are met:\n\n1. Redistributions of source code must retain the above copyright notice, this\n   list of conditions and the following disclaimer.\n\n1. Redistributions in binary form must reproduce the above copyright notice,\n   this list of conditions and the following disclaimer in the documentation\n   and/or other materials provided with the distribution.\n\n1. The name of the author may not be used to endorse or promote products derived\n   from this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED\nWARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\nMERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT\nSHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\nEXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT\nOF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\nINTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\nCONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING\nIN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY\nOF SUCH DAMAGE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyinwang0%2Frubysonar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyinwang0%2Frubysonar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyinwang0%2Frubysonar/lists"}