wovnrb 0.1.75 → 0.1.76
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 +4 -4
- data/lib/wovnrb.rb +10 -10
- data/lib/wovnrb/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3718088261b05e7e229d533d02f5e50622eb5406
|
|
4
|
+
data.tar.gz: fafbc36d7587b1d821b48deada5301d5a4ebd835
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d5e5244adde1d4ca9a714d0a3f8fe31070e0cbb45a215bfd6515cf84cab51a367f39cea44c8d91fa5085d96cced49e2cfe6e64004ca0f62d9233c9609cf1400d
|
|
7
|
+
data.tar.gz: a325290d76b405e7b2cd3cd875e442fed845e5fc4fc7c91b51e08fc448371fc6f7a920c0dd2bd1338c08b6d2c39e4c2d48872e2b9a18cca3290abc0f86ae7f96
|
data/lib/wovnrb.rb
CHANGED
|
@@ -156,16 +156,16 @@ module Wovnrb
|
|
|
156
156
|
end
|
|
157
157
|
end
|
|
158
158
|
# swap meta tag values
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
#
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
159
|
+
# d.xpath('//meta').select { |t|
|
|
160
|
+
# next if check_wovn_ignore(t)
|
|
161
|
+
# (t.get_attribute('name') || t.get_attribute('property') || '') =~ /^(description|keywords|og:title|og:description)$/
|
|
162
|
+
# }.each do |node|
|
|
163
|
+
# node_content = node.get_attribute('content').strip
|
|
164
|
+
# shoul#dn't need size check, but for now...
|
|
165
|
+
# if text_index[node_content] && text_index[node_content][lang] && text_index[node_content][lang].size > 0
|
|
166
|
+
# node.set_attribute('content', node_content.gsub(/^(\s*)[\S\s]*(\s*)$/, '\1' + text_index[node_content][lang][0]['data'] + '\2'))
|
|
167
|
+
# end
|
|
168
|
+
# end
|
|
169
169
|
# swap img srcs
|
|
170
170
|
d.xpath('//img').each do |node|
|
|
171
171
|
next if check_wovn_ignore(node)
|
data/lib/wovnrb/version.rb
CHANGED