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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dc36f4786bc5b3111898f3b3507d359577d4998d
4
- data.tar.gz: 2cd39e7d0d592dcc0a3365bf6391eb2a8cef21c9
3
+ metadata.gz: 1fabe55ffe7225a15c203acc5c801c4cce65ba86
4
+ data.tar.gz: 7ee7e4e6291ea79fa2cbb5a05a99af3da57095fa
5
5
  SHA512:
6
- metadata.gz: fab1c07187eb44eb2bbb72f4c451a5d448a99a2da2537a60c1653f7f99f84609de09c688cf3911aa80026f5a231bdd5b7ada843e924e0b60f71e6d2a76db69ea
7
- data.tar.gz: 5c1b90c60b1a677f80830573211eaf22ebfed757e55a6935e1ca5928b705ed64aa38e2f8658b922622aef92addfd0da559a3a64c13ba5c09808235ef43bac6da
6
+ metadata.gz: 30d8666d8bc547c7744322804fdd83ca323d276af5e215b7963c771dcfcd3d3de2256a3180bd6a6abce74cb7c4dc22f58392d93c92bb74b6b390b4399cd3f987
7
+ data.tar.gz: 64fdb25f9668e56de28dbea4416d92165484d3b4c71b7568bf15b8f9f53d6bf3131fe581deb0f89b010f027349eb8a52fd251492615030bff556321f0510cca5
@@ -2,6 +2,10 @@
2
2
 
3
3
  Changes by [Daniel Khamsing][] unless otherwise noted.
4
4
 
5
+ # 1.13.8
6
+
7
+ - [parse] fix regression introduced in 1.13.7
8
+
5
9
  # 1.13.7
6
10
 
7
11
  - [parse] support wikipedia links with parentheses
@@ -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) && !(x.include? 'wikipedia')
15
- x.gsub(/\).*/, '')
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]==':'
@@ -5,5 +5,5 @@ module AwesomeBot
5
5
  'Great for "awesome" projects.'
6
6
  PROJECT_URL = 'https://github.com/dkhamsing/awesome_bot'
7
7
 
8
- VERSION = '1.13.7'
8
+ VERSION = '1.13.8'
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awesome_bot
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.13.7
4
+ version: 1.13.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Khamsing