vim-tags 0.1.0 → 0.2.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7917206260619d145b895c9bffc78c8865c79f533e209f10bccb9a3cf52f226d
4
- data.tar.gz: bac9256a46314304b5522a1e65dd25d11c5e0af8218f9233818414baaf0baea3
3
+ metadata.gz: 24862170a8fd6195f07f07160c5c810336e859a5297712dac58b515cca323c60
4
+ data.tar.gz: aab67522bb493fa0308d01b715030a0b66c3663471d121db9e54d4aeefb3c22c
5
5
  SHA512:
6
- metadata.gz: 8dae5e1dddaac6e64a59f1d340dab7f596d6f4dc27ca7d8eecb2af19ba3a0e0ad656407a92feb921d5725273bae2a7dc4ce9f59797a44d9767a336265d649e18
7
- data.tar.gz: 943cf02968de96b6e7114108cd4be9741925a550d241525f3d9de26f560512a1d1f66ee81c1fde507db5eafdca82fa5e212ba40f31fddbab7672646c6cbdb228
6
+ metadata.gz: '0890772903f0e49d8037c62c024742fb7b8c6a218e86b26c5f708c13a5fdecfccb428ddb4b04ec80a40043579d430d65026385505557ddc9b70d74f3626a5e61'
7
+ data.tar.gz: 224d233cd91b633bc94967523665da3a2c4e8cfabd28b671c75f7064c914ad2b988e5b4fc67c09a7e9e3cc14a9f690209a326f7773523cb78a0d86bcc1c08c3b
@@ -0,0 +1,19 @@
1
+ function! LoadRubyTags()
2
+ if exists("g:vim_tags_loaded")
3
+ return
4
+ endif
5
+
6
+ let s:load_ruby_tags_fp = finddir('.git/..', expand('%:p:h').';') . '/.bundle/.tag_files'
7
+
8
+ if !filereadable(s:load_ruby_tags_fp)
9
+ let s:install_response = system('bundler plugin install vim-tags')
10
+ let s:command_response = system('bundler vim-tags')
11
+ endif
12
+
13
+ let s:comma_tags = system("cat " . s:load_ruby_tags_fp . " | paste -sd ',' -")
14
+ let g:vim_tags_loaded = 1
15
+
16
+ let &l:tags = &tags . ',' . s:comma_tags
17
+ endfunction
18
+
19
+ autocmd FileType ruby :call LoadRubyTags()
data/plugins.rb CHANGED
@@ -19,17 +19,15 @@ class VimTagsCommand < Bundler::Plugin::API
19
19
 
20
20
  def gem_paths
21
21
  Bundler.load.specs.filter_map do |spec|
22
- path = File.join(spec.full_gem_path, "tags")
22
+ next if spec.name == "bundler" ||
23
+ !File.exist?(File.join(spec.full_gem_path, "tags"))
23
24
 
24
- next if spec.name == "bundler" || !File.exist?(path)
25
-
26
- path
25
+ spec.full_gem_path
27
26
  end
28
27
  end
29
28
 
30
29
  def ruby_paths
31
- $:.map { |path| File.join(path, "tags") }.
32
- select { |path| File.exist?(path) }
30
+ $:.select { |path| File.exist?(File.join(path, "tags")) }
33
31
  end
34
32
  end
35
33
 
data/vim-tags.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "vim-tags"
5
- spec.version = "0.1.0"
5
+ spec.version = "0.2.0"
6
6
  spec.authors = ["Nick Pezza"]
7
7
  spec.email = ["pezza@hey.com"]
8
8
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vim-tags
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Pezza
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-29 00:00:00.000000000 Z
11
+ date: 2021-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: debug
@@ -34,6 +34,7 @@ files:
34
34
  - ".rubocop.yml"
35
35
  - Gemfile
36
36
  - Rakefile
37
+ - plugin/vim-tags.vim
37
38
  - plugins.rb
38
39
  - vim-tags.gemspec
39
40
  homepage: