{"id":21478528,"url":"https://github.com/kayhide/bundler-gtags","last_synced_at":"2026-01-25T09:36:14.822Z","repository":{"id":62554743,"uuid":"57083921","full_name":"kayhide/bundler-gtags","owner":"kayhide","description":"GNU Global (gtags) utility. Create gtags for all bundled gems and manage direnv settings exporting GTAGSLIBPATH.","archived":false,"fork":false,"pushed_at":"2016-04-26T15:16:55.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-15T04:15:18.566Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kayhide.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-25T23:55:10.000Z","updated_at":"2019-06-27T14:40:42.000Z","dependencies_parsed_at":"2022-11-03T05:15:34.529Z","dependency_job_id":null,"html_url":"https://github.com/kayhide/bundler-gtags","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/kayhide/bundler-gtags","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kayhide%2Fbundler-gtags","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kayhide%2Fbundler-gtags/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kayhide%2Fbundler-gtags/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kayhide%2Fbundler-gtags/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kayhide","download_url":"https://codeload.github.com/kayhide/bundler-gtags/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kayhide%2Fbundler-gtags/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28750875,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T09:00:19.176Z","status":"ssl_error","status_checked_at":"2026-01-25T09:00:04.131Z","response_time":113,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-11-23T11:18:42.475Z","updated_at":"2026-01-25T09:36:14.807Z","avatar_url":"https://github.com/kayhide.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bundler::Gtags\n\nGNU Global (gtags) utility.\n\n`bundler-gtags` command creates gtags for all bundled gems.\nAnd also manages direnv settings exporting GTAGSLIBPATH so that editors can tag-jump\ndirectly to any gems source code from the bundler application.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'bundler-gtags'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install bundler-gtags\n\n## Usage\n\nTo use tag-jump functionality to the utmost extent,\n3 things are needed before go to your project.\n\n**First**, [GNU Global](https://www.gnu.org/software/global/) is required.\n\nPymgments option is recommended.\n\nOn OSX:\n\n    $ install global --with-ctags --with-pygments\n\n**Next**, `direnv` command is required.\n\nGo and follow the install instruction of\n[direnv](https://github.com/direnv/direnv).\n\n**And lastly**, your editor would need some setting.\n\nOn Emacs, `projectile-direnv` package works nicely.\n\n```lisp\n(use-package projectile-direnv\n  :commands (projectile-direnv-export-variables)\n  :init\n  (add-hook 'projectile-mode-hook 'projectile-direnv-export-variables)\n  )\n```\n\n\nNow, you are ready to generate gtags for your project's gems.\n\nGo to your project root dir (there must be a Gemfile), and hit:\n\n    $ bundler-gtags\n\nAfter some time, GTAGS files are created at the every gem root dir.\n\nAnd also `.envrc` file, which is direnv settings file, is to be at your project root dir.\n\nIf you are already using direnv and having `.envrc` file,\n`bundler-gtags` command will just append a line to the end of the existing one.\n\nNote that `.envrc` should be excluded from git management, because it includes some system specific settings.\nPutting it into the user-local `.gitignore` might be a good idea.\nTo do so:\n\n    $ git config --global core.excludesfile ~/.gitignore\n    $ echo .envrc \u003e\u003e ~/.gitignore\n\n\nThats it.\nFinally, you are ready to jump around the codes of gems.\nEnjoy code reading :)\n\n## Thanks\n\nOriginal idea came from here.\n[Emacs での Rails 開発を GNU GLOBAL でだいぶ快適にする](http://qiita.com/5t111111/items/5e854f6047d187ea21c7)\n\nThanks for @5t111111\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment. Run `bundle exec bundler-gtags` to use the gem in this directory, ignoring other installed copies of this gem.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/kayhide/bundler-gtags. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkayhide%2Fbundler-gtags","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkayhide%2Fbundler-gtags","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkayhide%2Fbundler-gtags/lists"}