{"id":22980930,"url":"https://github.com/rubyworks/locat","last_synced_at":"2025-08-13T17:33:34.188Z","repository":{"id":56881817,"uuid":"2014060","full_name":"rubyworks/locat","owner":"rubyworks","description":"LOCat","archived":false,"fork":false,"pushed_at":"2014-01-14T16:30:14.000Z","size":331,"stargazers_count":10,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-09T20:57:38.748Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://rubyworks.github.com/locat","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/rubyworks.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-07-07T19:12:35.000Z","updated_at":"2019-08-13T14:47:29.000Z","dependencies_parsed_at":"2022-08-20T23:40:53.684Z","dependency_job_id":null,"html_url":"https://github.com/rubyworks/locat","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/rubyworks%2Flocat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubyworks%2Flocat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubyworks%2Flocat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubyworks%2Flocat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rubyworks","download_url":"https://codeload.github.com/rubyworks/locat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229773540,"owners_count":18122031,"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":[],"created_at":"2024-12-15T01:46:12.823Z","updated_at":"2024-12-15T01:46:13.511Z","avatar_url":"https://github.com/rubyworks.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LOCat\n\n[Homepage](http://rubyworks.github.com/locat) |\n[Development](http://github.com/rubyworks/locat) |\n[Issue Tracker](http://github.com/rubyworks/locat/issues) |\n[Mailing List](http://groups.google.com/group/rubyworks-mailinglist)\n\n[\u003cimg src=\"http://travis-ci.org/rubyworks/locat.png\" /\u003e](http://travis-ci.org/rubyworks/locat)\n\n\n## DESCRIPTION\n\nLOCat is a fancy Lines-Of-Code analysis tool.\n\n\n## SYNOPSIS\n\nDefine a `.locat` Ruby script in your project, e.g.\n\n    match 'lib/**.rb' do |file, line|\n      case line\n      when /^\\s*#/\n        'Comment'\n      when /^\\s*$/\n        'Blank'\n      else\n        'Code'\n      end\n    end\n\n    match 'test/**.rb' do |file, line|\n      case line\n      when /^\\s*#/\n        'Comment'\n      when /^\\s*$/\n        'Blank'\n      else\n        'Test'\n      end\n    end\n\nThen run `locat`, e.g.\n\n    $ locat -o locat.html\n\nThe config file can also be located at `etc/locat.rb` or `config/locat.rb`.\n\n\n## COPYRIGHT\n\nCopyright (c) 2011 Rubyworks\n\nBSD 2-Clause License\n\nSee LICENSE.md for details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubyworks%2Flocat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frubyworks%2Flocat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubyworks%2Flocat/lists"}