push
travis-ci
9 of 9 new or added lines in 1 file covered. (100.0%)
369 of 421 relevant lines covered (87.65%)
65.18 hits per line
|
module Lodge |
5✔ |
|
module Markdown |
5✔ |
|
module Filters |
5✔ |
|
class TargetBlankLink < HTML::Pipeline::Filter |
5✔ |
|
def call |
5✔ |
|
return if doc.children.blank? |
45✔ |
|
doc.search('a').each do |a| |
45✔ |
|
a['target'] = '_blank' |
× |
9 |
end
|
|
|
doc |
45✔ |
11 |
end
|
|
12 |
end
|
|
13 |
end
|
|
14 |
end
|
|
15 |
end
|