gem-ripper-tags 1.1.0 → 1.2.2

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: c0fbdf971a1efe8a2f5eeb6ee191cd35f05d4481eaf8207dde0f53004e2333fe
4
- data.tar.gz: a8aa775d817db1b6441af11a3e7297621068c03f6cc86b25ab4501b19b5cfbb0
3
+ metadata.gz: 8c6ea55c183755fb7695d49740bf0f226dfa250d2e3274afa89e6bdfc3b2ee66
4
+ data.tar.gz: 43aebe2e69d2df82481842bc36aa5e8bc86efd3359f5c3d646b22f0e1d7a7abb
5
5
  SHA512:
6
- metadata.gz: e9ab9ce8f25275757828edbb7500b66198da344f28f2b7ccab7272e04808453912854b93ff36b24db266c2cb5470cb04c7a7f9e4f33d0828874e6fb686f40f26
7
- data.tar.gz: fc24e8997a77fa32e382e21c63f9b544e8f089501347132a2091aabc80bd43d163a75fea662d91fa45ea52ef3d4df2c27ab54f4ed32d4d4b397c007514be73be
6
+ metadata.gz: 94cddba3bfb31dd9844852d9e2093b1ca36f4a65fbdb58a61733a9db24365659e1016e819eed1aa2d1e7f496cb2393aa564de6778a8abf2a88b373885de65d3f
7
+ data.tar.gz: 28ac3c3e4c716f6c79ce800ca7dc7d2798d9a43931eb99a1e3294ebf5190eb4cabed951435a4c323ecfc30dc2edfa57c56807452e08c7a080a53454a103f4a06
data/README.markdown CHANGED
@@ -1,6 +1,8 @@
1
1
  RubyGems Automatic Ctags Generator
2
2
  ==================================
3
3
 
4
+ [![CI](https://github.com/lzap/gem-ripper-tags/actions/workflows/ci.yml/badge.svg)](https://github.com/lzap/gem-ripper-tags/actions/workflows/ci.yml)
5
+
4
6
  If you do like Vim and Ctags like I or [Tim Pope][] do, you maybe appreciate
5
7
  automatic generation of ctags for each installed gem. This small project is
6
8
  based on Tim's [gem-ctags][], but the main difference is it does *not* use
@@ -11,7 +13,7 @@ Upstream site is at: https://github.com/lzap/gem-ripper-tags
11
13
  Usage
12
14
  -----
13
15
 
14
- Install the thing (only Ruby 1.9+):
16
+ Install the gem (requires Ruby 2.0+, tested on Ruby 3.1-3.4):
15
17
 
16
18
  gem install gem-ripper-tags
17
19
 
@@ -27,9 +29,6 @@ If you're using RVM, I recommend extending your global gemset by adding
27
29
  `gem-ripper-tags` to `~/.rvm/gemsets/global.gems`. Put it at the top so the
28
30
  gems below it will be indexed.
29
31
 
30
- You can use the gem even with 1.8 gemsets, but since Ruby 1.8 is not
31
- supported, it will (silently) not register the gem hook.
32
-
33
32
  Motivation
34
33
  ----------
35
34
 
@@ -52,9 +51,23 @@ Regeneration
52
51
  ------------
53
52
 
54
53
  If you want to regenerate all tagfiles from scratch, use:
55
-
54
+
56
55
  gem ripper_tags --reindex
57
56
 
57
+ Testing
58
+ -------
59
+
60
+ To test the gem locally:
61
+
62
+ ./test.sh
63
+
64
+ To test with Emacs TAGS format:
65
+
66
+ RIPPER_TAGS_EMACS=1 ./test.sh
67
+
68
+ The test suite will build, install the gem, and verify that tags are generated
69
+ correctly for popular gems.
70
+
58
71
  Emacs support
59
72
  -------------
60
73
 
@@ -17,11 +17,7 @@ class Gem::Commands::RipperTagsCommand < Gem::Command
17
17
  end
18
18
 
19
19
  def execute
20
- if Gem::Specification.respond_to?(:each)
21
- Gem::Specification
22
- else
23
- Gem.source_index.gems.values
24
- end.each do |spec|
20
+ Gem::Specification.each do |spec|
25
21
  self.class.index(spec, ui, options[:reindex], options[:emacs], options[:debug])
26
22
  end
27
23
  rescue Exception => e
@@ -55,14 +51,6 @@ class Gem::Commands::RipperTagsCommand < Gem::Command
55
51
  riopt.files = [spec.full_gem_path]
56
52
  RipperTags.run riopt
57
53
  end
58
-
59
- target = 'lib/bundler/cli.rb'
60
- if File.writable?(target) && !File.read(target).include?('load_plugins')
61
- ui.say "Injecting gem-ripper-tags into #{spec.full_name}"
62
- File.open(target, 'a') do |f|
63
- f.write "\nGem.load_plugins rescue nil\n"
64
- end
65
- end
66
54
  rescue Errno::EACCES
67
55
  ui.say "Ripper cannot write to #{tag_file}"
68
56
  rescue => e
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem-ripper-tags
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Pope
8
8
  - Lukas Zapletal
9
- autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2024-08-14 00:00:00.000000000 Z
11
+ date: 1980-01-02 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: ripper-tags
@@ -39,7 +38,6 @@ dependencies:
39
38
  - - ">="
40
39
  - !ruby/object:Gem::Version
41
40
  version: '0'
42
- description:
43
41
  email:
44
42
  - code@tpope.net
45
43
  - lzap+rpm@redhat.com
@@ -47,21 +45,15 @@ executables: []
47
45
  extensions: []
48
46
  extra_rdoc_files: []
49
47
  files:
50
- - ".gitignore"
51
- - Gemfile
52
48
  - MIT-LICENSE
53
49
  - README.markdown
54
50
  - Rakefile
55
- - gem-ripper-tags.gemspec
56
51
  - lib/rubygems/commands/ripper_tags_command.rb
57
52
  - lib/rubygems_plugin.rb
58
- - release.sh
59
- - test.sh
60
53
  homepage: https://github.com/lzap/gem-ripper-tags
61
54
  licenses:
62
55
  - MIT
63
56
  metadata: {}
64
- post_install_message:
65
57
  rdoc_options: []
66
58
  require_paths:
67
59
  - lib
@@ -69,15 +61,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
69
61
  requirements:
70
62
  - - ">="
71
63
  - !ruby/object:Gem::Version
72
- version: '0'
64
+ version: 2.0.0
73
65
  required_rubygems_version: !ruby/object:Gem::Requirement
74
66
  requirements:
75
67
  - - ">="
76
68
  - !ruby/object:Gem::Version
77
69
  version: '0'
78
70
  requirements: []
79
- rubygems_version: 3.5.11
80
- signing_key:
71
+ rubygems_version: 3.6.9
81
72
  specification_version: 4
82
73
  summary: fast and accurate ctags generator on gem install
83
74
  test_files: []
data/.gitignore DELETED
@@ -1,4 +0,0 @@
1
- *.gem
2
- .bundle
3
- Gemfile.lock
4
- pkg/*
data/Gemfile DELETED
@@ -1,4 +0,0 @@
1
- source "http://rubygems.org"
2
- gemspec
3
-
4
- gem 'ripper-tags'
@@ -1,20 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
- $:.push File.expand_path("../lib", __FILE__)
3
-
4
- Gem::Specification.new do |s|
5
- s.name = "gem-ripper-tags"
6
- s.version = `git describe --abbrev=0 --tags`
7
- s.authors = ["Tim Pope", "Lukas Zapletal"]
8
- s.email = ["code@tpop"+'e.net', "lzap+rpm@red"+'hat.com']
9
- s.homepage = "https://github.com/lzap/gem-ripper-tags"
10
- s.summary = %q{fast and accurate ctags generator on gem install}
11
- s.license = 'MIT'
12
-
13
- s.files = `git ls-files`.split("\n")
14
- s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
15
- s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
16
- s.require_paths = ["lib"]
17
-
18
- s.add_dependency 'ripper-tags', '>= 0.1.2'
19
- s.add_development_dependency 'rake'
20
- end
data/release.sh DELETED
@@ -1,10 +0,0 @@
1
- #!/bin/bash
2
- #
3
- # Before running this make sure you tagged and pushed!
4
- #
5
-
6
- VERSION=$(git describe --abbrev=0 --tags)
7
- git checkout $VERSION && \
8
- gem build gem-ripper-tags.gemspec && \
9
- gem push gem-ripper-tags-$VERSION.gem && \
10
- git checkout master
data/test.sh DELETED
@@ -1,2 +0,0 @@
1
- #!/bin/bash
2
- rm gem-ripper-tags*.gem; gem build gem-ripper-tags.gemspec && gem uninstall gem-ripper-tags && gem install gem-ripper-tags-*.gem && gem ripper --debug --reindex