awesome_bot 1.13.7 → 1.13.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/awesome_bot/links.rb +10 -2
- data/lib/awesome_bot/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1fabe55ffe7225a15c203acc5c801c4cce65ba86
|
4
|
+
data.tar.gz: 7ee7e4e6291ea79fa2cbb5a05a99af3da57095fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30d8666d8bc547c7744322804fdd83ca323d276af5e215b7963c771dcfcd3d3de2256a3180bd6a6abce74cb7c4dc22f58392d93c92bb74b6b390b4399cd3f987
|
7
|
+
data.tar.gz: 64fdb25f9668e56de28dbea4416d92165484d3b4c71b7568bf15b8f9f53d6bf3131fe581deb0f89b010f027349eb8a52fd251492615030bff556321f0510cca5
|
data/CHANGELOG.md
CHANGED
data/lib/awesome_bot/links.rb
CHANGED
@@ -11,8 +11,16 @@ module AwesomeBot
|
|
11
11
|
x.gsub /\)\].*/, ''
|
12
12
|
elsif (x.scan(')').count == 2) && (x.scan('(').count == 1)
|
13
13
|
x.gsub(/\)\).*/, ')')
|
14
|
-
elsif (x.scan(')').count > 0)
|
15
|
-
x.
|
14
|
+
elsif (x.scan(')').count > 0)
|
15
|
+
if (x.include? 'wikipedia')
|
16
|
+
if (x.scan(')').count == 1) && (x.scan('(').count == 0)
|
17
|
+
x.sub(')','')
|
18
|
+
else
|
19
|
+
x
|
20
|
+
end
|
21
|
+
else
|
22
|
+
x.gsub(/\).*/, '')
|
23
|
+
end
|
16
24
|
elsif x.include? '[' # adoc
|
17
25
|
x.gsub(/\[.*/, '')
|
18
26
|
elsif x[-1]=='.' || x[-1]==':'
|
data/lib/awesome_bot/version.rb
CHANGED