wiki_md 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/wiki_md.rb +4 -2
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24055db3a607e496ebf1fcc893e33f991e1d75486316d2a958f02d46e1a3dbdc
|
4
|
+
data.tar.gz: 3aba3c95da99ed9e33c3926783f71cec416577778341a8d0fa3892defed5d638
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '08f2f40027d5b9a48655bf77430fbaa86acd4d8c5385598df3ccf50d0eabc8b1a4862091cee89c717a8f238c42a7815f2787a7363a5e94108b4b4a714e3cf3f7'
|
7
|
+
data.tar.gz: e0238ead3d46cb154a63c844ea9f89505b9daf6b0b68d63dbd782eee8134deb669c4084545c4a31774f621c5acb5ab4c8792acf628b1bc9bc380593ef4830f21
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/wiki_md.rb
CHANGED
@@ -119,18 +119,20 @@ class WikiMd
|
|
119
119
|
|
120
120
|
end
|
121
121
|
|
122
|
+
|
122
123
|
def find(q)
|
123
124
|
|
124
125
|
puts ('WikiMd::find q: ' + q.inspect).debug if @debug
|
125
126
|
return @dxsx.dx.find q if q =~ /^\d+$/
|
126
|
-
|
127
|
+
regex = q.is_a?(String) ? /#{q}/i : q
|
128
|
+
r = @dxsx.dx.all.find {|section| section.x.lines.first =~ regex }
|
127
129
|
puts (' r: ' + r.inspect).debug if @debug
|
128
130
|
return unless r
|
129
131
|
|
130
132
|
heading2 = r.x.lines.last[/(?<=redirect ).*/]
|
131
133
|
heading2 ? find(heading2) : r
|
132
134
|
|
133
|
-
end
|
135
|
+
end
|
134
136
|
|
135
137
|
def find_tag(tag)
|
136
138
|
@dxtags.find tag
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|