gem-ttags 1.0.0 → 1.0.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 +4 -4
- data/gem-ttags.gemspec +1 -3
- data/lib/rubygems/commands/ttags_command.rb +3 -6
- metadata +2 -4
- data/lib/gem/ttags/version.rb +0 -7
- data/lib/gem/ttags.rb +0 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fefa553aca37a13d93e06581463287aa4b203356288b97b42aaadc579b35dddc
|
4
|
+
data.tar.gz: 2da18141688966536e1f7e4912a9ec77888662f9ab5ec3fdb02345eceb97b984
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3eec19d19aa371a4c33e0ccd5b8e3ab4a442cb9db6da81c8115b35ce75db992f972b47fd9f681ace6db243c3b307221dffbcc3de7fd524d2c4a8dfe28654e589
|
7
|
+
data.tar.gz: 166f9bb08dcb006762d799c9154a1490a16ff9808176195504226a8dd60e95387ac2829fa79c8bc1ce9cc3696f96a5a2ea5ef9c12fed596583017047ff425989
|
data/gem-ttags.gemspec
CHANGED
@@ -1,10 +1,8 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require_relative "lib/gem/ttags/version"
|
4
|
-
|
5
3
|
Gem::Specification.new do |spec|
|
6
4
|
spec.name = "gem-ttags"
|
7
|
-
spec.version =
|
5
|
+
spec.version = "1.0.2"
|
8
6
|
spec.authors = ["Nick Pezza"]
|
9
7
|
spec.email = ["pezza@hey.com"]
|
10
8
|
|
@@ -9,11 +9,7 @@ class Gem::Commands::TtagsCommand < Gem::Command
|
|
9
9
|
end
|
10
10
|
|
11
11
|
def execute
|
12
|
-
|
13
|
-
Gem::Specification
|
14
|
-
else
|
15
|
-
Gem.source_index.gems.values
|
16
|
-
end.each { |spec| self.class.index(spec, ui) }
|
12
|
+
Gem::Specification.each { |spec| self.class.index(spec, ui) }
|
17
13
|
end
|
18
14
|
|
19
15
|
class << self
|
@@ -36,6 +32,7 @@ class Gem::Commands::TtagsCommand < Gem::Command
|
|
36
32
|
|
37
33
|
tag_file = gem_path.join("tags")
|
38
34
|
paths = spec.require_paths.map { |p| gem_path.join(p) }
|
35
|
+
puts "#{gem_path} #{paths}"
|
39
36
|
if paths.any? && can_write?(tag_file)
|
40
37
|
ui&.say "Generating ttags for #{spec.full_name}"
|
41
38
|
invoke(tag_file, *paths)
|
@@ -52,7 +49,7 @@ class Gem::Commands::TtagsCommand < Gem::Command
|
|
52
49
|
|
53
50
|
def inject(gem_path, spec, ui)
|
54
51
|
target = gem_path.join("lib/bundler/cli.rb")
|
55
|
-
return unless target.writable? && target.read.
|
52
|
+
return unless target.writable? && !target.read.include?("load_plugins")
|
56
53
|
|
57
54
|
ui&.say "Injecting gem-ttags into #{spec.full_name}"
|
58
55
|
target.open("a") do |f|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gem-ttags
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Pezza
|
@@ -27,8 +27,6 @@ files:
|
|
27
27
|
- bin/console
|
28
28
|
- bin/setup
|
29
29
|
- gem-ttags.gemspec
|
30
|
-
- lib/gem/ttags.rb
|
31
|
-
- lib/gem/ttags/version.rb
|
32
30
|
- lib/rubygems/commands/ttags_command.rb
|
33
31
|
- lib/rubygems_plugin.rb
|
34
32
|
homepage: https://github.com/npezza93/gem-ttags
|
@@ -55,7 +53,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
55
53
|
- !ruby/object:Gem::Version
|
56
54
|
version: '0'
|
57
55
|
requirements: []
|
58
|
-
rubygems_version: 3.4.
|
56
|
+
rubygems_version: 3.4.8
|
59
57
|
signing_key:
|
60
58
|
specification_version: 4
|
61
59
|
summary: Automatic ttags generation on gem install
|
data/lib/gem/ttags/version.rb
DELETED