Commits on Aug 8, 2015
  1. Merge pull request #19 from jacobthemyth/master

    Add language field to tags
    committed Aug 8, 2015
Commits on Jun 30, 2015
  1. gem-ctags 1.0.7

    * Avoid Dir.chdir due to issues with threading.
    committed Jun 30, 2015
Commits on Jun 7, 2015
  1. Merge pull request #16 from Koronen/require-pathname

    Require pathname
    committed Jun 7, 2015
  2. Require pathname

    While doing some cleanup after #15 was merged, I encountered the following
    $ gem pristine gem-ctags
    Restoring gems to pristine condition...
    ERROR:  While executing gem ... (NameError)
        uninitialized constant Gem::Commands::CtagsCommand::Pathname
    Requiring `pathname` should've been part of
    42e658b, but it was unfortunately overlooked.
    Koronen committed Jun 7, 2015
  3. Merge pull request #15 from Koronen/command-no-chdir

    Rewrite `CtagsCommand.index` without `Dir.chdir`
    committed Jun 7, 2015
  4. Keep file paths relative

    In order for file paths to stay relative to the gem root, the paths passed to
    `ctags` cannot be absolute. From the `ctags(1)` man page:
    > --tag-relative[=yes|no]
    >      Indicates that the file paths recorded in the tag file should be relative
    >      to the directory containing the tag file, rather than relative to the
    >      current directory, unless the files supplied on the command line are
    >      specified with absolute paths.
    Simply adding `--tag-relative=yes` is not enough to make paths relative, but
    it's still added to the command for the sake of being explicit about the desired
    Koronen committed Jun 7, 2015
  5. Rewrite `CtagsCommand.index` without `Dir.chdir`

    Using `Dir.chdir` triggers warnings like below when installing gems with native
    extensions through Bundler, when Bundler has been configured to use parallel
    $ bundle config
    Settings are listed in order of priority. The top value will be used.
    Set for the current user (/home/koronen/.bundle/config): "7"
    $ bundle install
    Using tolk 1.6.0
    Using uglifier 2.5.3
    Using yard
    with native extensions /home/koronen/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/gem-ctags-1.0.6/lib/rubygems/commands/ctags_command.rb:23: warning: conflicting chdir during another chdir block
    /home/koronen/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/gem-ctags-1.0.6/lib/rubygems/commands/ctags_command.rb:23: warning: conflicting chdir during another chdir block
    Installing sass 3.2.19
    Installing thin 1.6.3
    Bundle complete! 37 Gemfile dependencies, 92 gems now installed.
    Use `bundle show [gemname]` to see where a bundled gem is installed.
    The warnings don't seem to appear when installing gems sequentially using
    Bundler, or manually using just RubyGems.
    The warnings appear to be caused by [`rubygems` calling `Dir.chdir` in
    wrapping the call to `Dir.chdir` made by `gem-ctags`.
    Dir.chdir extension_dir do
      results =, @gem_dir, dest_path,
                              results, @build_args, lib_dir)
      verbose { results.join("\n") }
    Here's what [the Ruby
    documentation]( says
    about nesting calls to `chdir`:
    > `chdir` blocks can be nested, but in a multi-threaded program an error will be
    > raised if a thread attempts to open a `chdir` block while another thread has
    > one open.
    This patch rewrites `CtagsCommand.index` without calling
    `Dir.chdir`. Instead, all paths are expanded using `File.expand_path`, and the
    location of the tags file is passed to `ctags` using the `-f` flag.
    Environment details:
    $ ruby --version
    ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux]
    $ gem --version
    $ gem list gem-ctags
    *** LOCAL GEMS ***
    gem-ctags (1.0.6)
    $ bundler --version
    Bundler version 1.10.3
    $ bundle config
    Settings are listed in order of priority. The top value will be used.
    Set for the current user (/home/koronen/.bundle/config): "7"
    Koronen committed Jun 7, 2015
Commits on Oct 1, 2013
  1. Merge pull request #9 from cbartlett/master

    Add license to gemspec
    committed Oct 1, 2013
  2. Add license to gemspec

    Closes #8
    cbartlett committed Oct 1, 2013
Commits on Sep 24, 2013
  1. gem-ctags 1.0.6

    * Fix issues around existing directory named tags.
    committed Sep 24, 2013
Commits on Sep 20, 2013
  1. Merge pull request #7 from ixti/patch-1

    Don't halt upon error on a single gem
    committed Sep 20, 2013
Commits on Sep 19, 2013
  1. Don't halt upon error on a single gem

    Gem [backports]( had directory named
    `tags`. Thus `gem ctags` halts (and produces very cryptic error):
    % gem ctags
    Generating ctags for  abstract-1.0.0
    Generating ctags for  actionmailer-3.0.20
    Generating ctags for  actionpack-3.0.20
    Generating ctags for  activemodel-3.0.20
    Generating ctags for  activerecord-3.0.20
    Generating ctags for  activeresource-3.0.20
    Generating ctags for  activesupport-3.0.20
    Generating ctags for  addressable-2.3.5
    Generating ctags for  addressable-2.3.3
    Generating ctags for  ansi-1.4.3
    Generating ctags for  api_cache-0.2.3
    Generating ctags for  arel-2.0.10
    Generating ctags for  autoparse-0.3.3
    Generating ctags for  awesome_print-1.1.0
    ERROR:  While executing gem ... (Errno::EISDIR)
        Is a directory - tags
    This patch does not halts, instead it just reports an error:
    Failed processing ctags for backports-3.3.3:
      (Errno::EISDIR) Is a directory - tags
    ixti committed with ixti Sep 16, 2013
Commits on Aug 2, 2013
  1. Fix commit for directory named tags

    The previous commit was not working properly for all cases.
    I have to admit I was drawing a boolean table to solve this issue :-)
    lzap committed with Apr 5, 2013
Commits on Mar 20, 2013
  1. Don't try to a directory

    committed Mar 20, 2013
Commits on Dec 21, 2012
  1. gem-ctags 1.0.5

    * Fix LoadError sometimes occurring with Bundler.
    committed Dec 21, 2012
Commits on Dec 20, 2012
  1. Fix LoadError

    Closes #3.  I haven't narrowed down the exact trigger for this but the
    error message makes the solution pretty obvious.
    committed Dec 19, 2012
Commits on Mar 15, 2012
Commits on Mar 3, 2012
  1. gem-ctags 1.0.4

    committed Mar 3, 2012
  2. Guard against missing gem directories

    For reasons yet to be determined, this was happening for a few built-in
    libraries like bigdecimal when used under rbenv.
    committed Mar 3, 2012
Commits on Jan 31, 2012
  1. gem-ctags 1.0.3

    committed Jan 31, 2012
Commits on Jan 30, 2012
  1. Work with latest Bundler

    committed Jan 30, 2012
Commits on Sep 14, 2011
  1. Update email address

    committed Sep 14, 2011
Commits on Aug 29, 2011
  1. Change gem-edit to gem-browse

    committed Aug 29, 2011
Commits on Aug 28, 2011
  1. Plug gem-edit

    committed Aug 28, 2011
Commits on Aug 24, 2011
  1. Verify writability before patching

    committed Aug 24, 2011
  2. Revert "Safeguard against missing gems"

    This reverts commit 2311996.  On second
    thought, I'd want to know if this was a problem.
    committed Aug 24, 2011
  3. Allow test-drive with rake

    committed Aug 24, 2011
  4. Safeguard against missing gems

    committed Aug 24, 2011
Commits on Aug 23, 2011
  1. gem-ctags 1.0.2

    committed Aug 23, 2011
  2. Patch Bundler to load RubyGems plugins

    This is temporary until bundler/bundler#1364 is
    merged in.
    committed Aug 23, 2011
  3. Reword introduction

    committed Aug 23, 2011
  4. Support older versions of RubyGems

    committed Aug 23, 2011
  5. Suggest gem-ctags at top of gemset

    committed Aug 23, 2011