awesome_bot 1.8.3 → 1.8.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eea93efbdd8565105c15d324dc34ebb61c940a5f
4
- data.tar.gz: faa648aaccb7ca30b29c904f52983ba8c64afcf3
3
+ metadata.gz: d5e4c2cc533a5b4728622c8732d6ea3a0aee1291
4
+ data.tar.gz: d8e3b48cdec6c521fe64af865725dd2d3d2b0fc3
5
5
  SHA512:
6
- metadata.gz: 70dec3767b557fa33196d33c232d21fad543175fa31ace665e917d37aeb47d3ea5011e27cc41564b65b8e17ee15e5cea33eaecd4f9fb85370bf5db0a37ee71f2
7
- data.tar.gz: 80f2df04e702d4484c2f8a4932fffd5cd1182ac9420feec15ed2a64f9d06916b6b2c9612b97460b5f7788d37b2711e949f46288c8eec7eaabb4f4801801507e0
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
@@ -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(/,.*/, '').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
@@ -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.8.3'
8
+ VERSION = '1.8.4'
9
9
  end
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.3
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-04 00:00:00.000000000 Z
11
+ date: 2016-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parallel