html-pipeline-linuxfr 0.14.8 → 0.14.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/html/pipeline/custom_links_filter.rb +1 -2
- data/lib/html/pipeline/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: d63b228fd812ea9a75c37563bef7d88d79f56aae
|
4
|
+
data.tar.gz: c566a1c1482fb3b7424af3c0800a0093c48d1e10
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3367267dc47c11efd53e1a7a7101c40456efc6f8bdf7a4ab6fbe498bef855d641ff6dd175ff3653184f6ddff9a97359fa8034d075c79ec0c39d39a3be8ee745
|
7
|
+
data.tar.gz: 812542a13e6b22a5279ef1fcfbe41a3bf128a9da6c93e8d15130b3493d3217ac60bb7e2e6a4a9681f53147c0255be1549241719f7f8cf384c5ecbf9c0d3876a7
|
@@ -41,10 +41,9 @@ module HTML
|
|
41
41
|
def process_wikipedia_links(text)
|
42
42
|
text.gsub(WP_REGEXP) do
|
43
43
|
word = $1
|
44
|
-
escaped = word.gsub(/\(|\)|'/) {|x| "\\#{x}" }
|
45
44
|
parts = word.split(":")
|
46
45
|
parts.shift if %w(de en es eo wikt).include?(parts.first)
|
47
|
-
"<a href=\"http://fr.wikipedia.org/wiki/#{
|
46
|
+
"<a href=\"http://fr.wikipedia.org/wiki/#{word}\" title=\"#{WP_TITLE}\")>#{parts.join ':'}</a>"
|
48
47
|
end
|
49
48
|
end
|
50
49
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: html-pipeline-linuxfr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.14.
|
4
|
+
version: 0.14.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Tomayko
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-
|
13
|
+
date: 2013-11-03 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: nokogiri
|