yard-aggredator 1.0.6 → 1.0.7
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/lib/yard/aggredator/plugin.rb +0 -22
- data/lib/yard/aggredator/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: acb9b52ae6e1c9e98226fa28b988954d3c7da791a5903012c27bdf3de917cc92
|
|
4
|
+
data.tar.gz: eb4ea279130164f026741912bf93ed69a39a014997c6ead0bbe6e2a778f1aac7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f4e22b1bafa1fedb7e76e1bae5d72d8b4ecc5b804eb37619f72d068e692ad5bd544a454c3b0b8bd59b407b9988155c80365171f821de788d7299e5142a0f9a8e
|
|
7
|
+
data.tar.gz: 31721db0cdff951fb556e38e9b736ba859404a753b0b83b1f52c5738e77a484e9e2cc399a5d3ae5089fdddc7658c2300a98c43cb8bd526b00ee9883e8774593d
|
|
@@ -99,12 +99,6 @@ module YARD
|
|
|
99
99
|
end
|
|
100
100
|
|
|
101
101
|
def linkify(*args)
|
|
102
|
-
$d = false
|
|
103
|
-
if args.any?{|a| a.to_s['lib/aggredator/api/v3/README']}
|
|
104
|
-
$d = true
|
|
105
|
-
puts args.inspect
|
|
106
|
-
end
|
|
107
|
-
|
|
108
102
|
if args.first.is_a?(String) && /^link:file:(\S+)/.match(args.first)
|
|
109
103
|
file = ::Regexp.last_match(1)
|
|
110
104
|
relpath = File.relative_path(Dir.pwd, File.expand_path(file))
|
|
@@ -115,24 +109,9 @@ module YARD
|
|
|
115
109
|
# Это генерация динамики. Например `yard server`
|
|
116
110
|
link_file(relpath, args[1])
|
|
117
111
|
end
|
|
118
|
-
elsif args.first.is_a?(String) && /^file:(\S+)/.match(args.first)
|
|
119
|
-
file = ::Regexp.last_match(1)
|
|
120
|
-
relpath = File.relative_path(Dir.pwd, File.expand_path(file))
|
|
121
|
-
if File.file?(relpath)
|
|
122
|
-
if (serializer.class == YARD::Serializers::FileSystemSerializer)
|
|
123
|
-
# Это генерация статики. Например `yardoc` или `yard doc`
|
|
124
|
-
super
|
|
125
|
-
else
|
|
126
|
-
puts "SER2: #{args}" if $d
|
|
127
|
-
link_file(relpath, args[1])
|
|
128
|
-
end
|
|
129
|
-
else
|
|
130
|
-
super
|
|
131
|
-
end
|
|
132
112
|
elsif args.first.is_a?(String) && /^include:file:(\S+)/.match(args.first)
|
|
133
113
|
file = ::Regexp.last_match(1)
|
|
134
114
|
root = YARD::Registry.send(:thread_local_store).file.to_s
|
|
135
|
-
puts "linkify 2: #{relpath}" if $d
|
|
136
115
|
if root['.yardoc']
|
|
137
116
|
file1 = root.sub('.yardoc', file)
|
|
138
117
|
file2 = file1.sub('/doc/', '/gems/')
|
|
@@ -142,7 +121,6 @@ module YARD
|
|
|
142
121
|
end
|
|
143
122
|
super
|
|
144
123
|
else
|
|
145
|
-
puts "linkify 3: #{args}" if $d
|
|
146
124
|
super
|
|
147
125
|
end
|
|
148
126
|
end
|