ruby_on_etags 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby_on_etags (0.1.2)
4
+ ruby_on_etags (0.1.3)
5
5
  bundler (~> 1.0.0)
6
6
  rake (~> 0.8.7)
7
7
  thor (~> 0.14.6)
@@ -57,7 +57,7 @@ module RubyOnEtags
57
57
  'gems',
58
58
  "#{gem_spec.name}-#{gem_spec.version.version}",
59
59
  'TAGS')
60
- etags(gem_spec.load_paths, tags_filename)
60
+ etags(gem_spec.load_paths, tags_filename, :ctags_flags => "--tag-relative=no")
61
61
  tags_filename
62
62
  end
63
63
  end
@@ -65,7 +65,7 @@ module RubyOnEtags
65
65
  def build_tags_for_standard_library
66
66
  File.join(cache_dir, 'rubies', RUBY_VERSION, 'TAGS').tap do |tags_filename|
67
67
  dirs = $:.delete_if { |path| path =~ %r|/gems/| }
68
- etags(dirs, tags_filename)
68
+ etags(dirs, tags_filename, :ctags_flags => "--tag-relative=no")
69
69
  end
70
70
  end
71
71
 
@@ -110,11 +110,13 @@ module RubyOnEtags
110
110
  system "$SHELL -c 'cd .; #{cmd}'"
111
111
  end
112
112
 
113
- def etags(dirs, output)
113
+ def etags(dirs, output, options = {})
114
114
  if !File.exists?(output) || File.zero?(output)
115
+ ctags_additional_flags = options.delete(:ctags_flags) || ""
116
+
115
117
  FileUtils.mkdir_p(File.dirname(output))
116
118
  dirs &&= dirs.map{|d| "'#{d}'"}.join(' ')
117
- run "ctags -e -R -o '#{output}' #{dirs}"
119
+ run "ctags #{ctags_additional_flags} -e -R -o '#{output}' #{dirs}"
118
120
  end
119
121
  end
120
122
 
@@ -1,3 +1,3 @@
1
1
  module RubyOnEtags
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 2
9
- version: 0.1.2
8
+ - 3
9
+ version: 0.1.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Aleksei Gusev
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-01-17 00:00:00 +02:00
17
+ date: 2011-01-18 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency