awesome_bot 1.8.3 → 1.8.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/circle.yml +1 -1
- data/lib/awesome_bot/links.rb +5 -1
- data/lib/awesome_bot/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d5e4c2cc533a5b4728622c8732d6ea3a0aee1291
|
4
|
+
data.tar.gz: d8e3b48cdec6c521fe64af865725dd2d3d2b0fc3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3abefb5ada705ffe88e2c99f00db1e2e85e46ee9e1a28a12e5cc0a9100c19690ca9bda64dd661f22c7817408d732c37ba2dfe7ea2c5452a532a04fbcb71fc8a
|
7
|
+
data.tar.gz: 1911a78c8928f842b3d3d58e61f8e08a8690e4de35157ecacb1feb7fc586c0c2f31216be6feb7a83d9bc638653fcd17635f2775b7845171bc83c984a4c6f128a
|
data/CHANGELOG.md
CHANGED
@@ -2,9 +2,14 @@
|
|
2
2
|
|
3
3
|
Changes by [Daniel Khamsing][] unless otherwise noted.
|
4
4
|
|
5
|
+
# 1.8.4
|
6
|
+
|
7
|
+
- [fix] parsing links with colon
|
8
|
+
- [fix] parsing links separated by comma
|
9
|
+
|
5
10
|
# 1.8.3
|
6
11
|
|
7
|
-
- restore `head` request option
|
12
|
+
- restore `head` request option
|
8
13
|
- rename `net`
|
9
14
|
- [cli] rename ab-results.json
|
10
15
|
- [status] yield `headers` (library usage)
|
data/circle.yml
CHANGED
@@ -3,4 +3,4 @@ machine:
|
|
3
3
|
version: 2.2.0
|
4
4
|
test:
|
5
5
|
override:
|
6
|
-
- bundle exec rspec -fd -r rspec_junit_formatter --format RspecJunitFormatter -o $CIRCLE_TEST_REPORTS/rspec/junit.xml
|
6
|
+
- bundle exec rspec -fd --color -r rspec_junit_formatter --format RspecJunitFormatter -o $CIRCLE_TEST_REPORTS/rspec/junit.xml
|
data/lib/awesome_bot/links.rb
CHANGED
@@ -4,7 +4,7 @@ module AwesomeBot
|
|
4
4
|
def links_filter(list)
|
5
5
|
list.reject { |x| x.length < 9 }
|
6
6
|
.map do |x|
|
7
|
-
x.gsub(',','%2c').gsub(/'.*/, '').gsub(/,.*/, '')
|
7
|
+
x.gsub(',','%2c').gsub(/'.*/, '').gsub(/,.*/, '')
|
8
8
|
end
|
9
9
|
.map do |x|
|
10
10
|
if x.include? ')]'
|
@@ -15,8 +15,12 @@ module AwesomeBot
|
|
15
15
|
x.gsub(/\).*/, '')
|
16
16
|
elsif x.include? '[' # adoc
|
17
17
|
x.gsub(/\[.*/, '')
|
18
|
+
elsif x[-1]=='.' || x[-1]==':'
|
19
|
+
x[0..-2]
|
18
20
|
elsif x[-1]=='.'
|
19
21
|
x[0..-2]
|
22
|
+
elsif x[-3..-1]=='%2c'
|
23
|
+
x[0..-4]
|
20
24
|
else
|
21
25
|
x
|
22
26
|
end
|
data/lib/awesome_bot/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: awesome_bot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Khamsing
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parallel
|