Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Guard-CTags-Bundler generates ctags for your project and for gems in your bundle. For project tags file tags
is generated, for gems tags file gems.tags
is generated.
bundle install
in your project, gems.tags
file is automatically is generated or updated.tags
file is automatically generated or updated.Make sure you have Guard installed.
Install the gem:
$ gem install guard-ctags-bundler
Add it to your Gemfile
(inside development group):
gem 'guard-ctags-bundler'
And then add a basic setup to your Guardfile
:
$ guard init ctags-bundler
Please, read Guard usage doc
:src_path => ".", # source path to be scanned for tags (default .)
:emacs => false, # run ctags in emacs mode and merge tags and gems.tags into TAGS file
:stdlib => true, # run ctags for core and stdlib, generating stdlib.tags (default false)
:binary => 'ctags-exuberant' # name of the ctags binary (default ctags)
:arguments => '-R --languages=ruby --fields=+l' # change the arguments passed to ctags (default '-R --languages=ruby')
:stdlib_file => "stdlib.tags" # name of tags file for stdlib references (default stdlib.tags)
:bundler_tags_file => "gems.tags" # name of tags file for bundler gems references (default gems.tags)
:project_file => "tags" # name of tags file for project references (default tags)
:gemfile => "Gemfil" # name of tags file for project references (default 'Gemfile')
For a typical Rails application, Guardfile
can look like this (default):
guard 'ctags-bundler', :src_path => ["app", "lib", "spec/support"] do
watch(/^(app|lib|spec\/support)\/.*\.rb$/)
watch('Gemfile.lock')
end
Ctags generates an index (or tag) file of language objects found in source files that allows these items to be quickly and easily located by a text editor or other utility. A tag signifies a language object for which an index entry is available (or, alternatively, the index entry created for that object).
In ubuntu you can install ctags by running
$ sudo apt-get install exuberant-ctags
Vim supports ctags by default. All you need to do is add your gems.tags
file to the Vim's tag stack.
set tags+=gems.tags
Ctags can be used with emacs too. Add :emacs => true
option to your Guardfile and ctags will be generated with -e
option:
guard 'ctags-bundler', :emacs => true, :src_path => ["app", "lib", "spec/support"] do
watch(/^(app|lib|spec\/support)\/.*\.rb$/)
watch('Gemfile.lock')
end
Thanks to Jorge Dias and Antono Vasiljev for emacs support.
FAQs
Unknown package
We found that guard-ctags-bundler demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.