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