wovnrb 0.1.27 → 0.1.28
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wovnrb.rb +3 -2
- 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: 196c0f613dc68e6f1c2fe6b981b5ee25fe4d6e65
|
4
|
+
data.tar.gz: f859e633bae12219b0e9ddf79a2d22d82b483e65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50dcb760e60c83fb4c162902121afe625731cf86d23d942a72ba0968582365e1779c7f0466751b5e88ff570d024d97ae6b01f4cd0a0bbdc707e7ddad92ca38a0
|
7
|
+
data.tar.gz: 62d83993afc95e854a2f030a0e851df68f0f1b5e0c842e01d7cbd993928cbb1dcb02f3fdb267fcc10fbcd6c1cc2982970dd4c1a8494a6bdc099c777af176d060
|
data/lib/wovnrb.rb
CHANGED
@@ -49,7 +49,7 @@ module Wovnrb
|
|
49
49
|
:host => headers.host,
|
50
50
|
:pathname => headers.pathname
|
51
51
|
}
|
52
|
-
switch_lang(body, values, url, lang) unless status.to_s =~ /^1|302/
|
52
|
+
body = switch_lang(body, values, url, lang) unless status.to_s =~ /^1|302/
|
53
53
|
#d = Dom.new(storage.get_values, body, lang)
|
54
54
|
#res_headers["Content-Length"] = body.each.first.length.to_s
|
55
55
|
content_length = 0
|
@@ -71,7 +71,7 @@ module Wovnrb
|
|
71
71
|
src_index = values['img_vals'] || {}
|
72
72
|
img_src_prefix = values['img_src_prefix'] || ''
|
73
73
|
string_index = {}
|
74
|
-
body.map
|
74
|
+
result = body.map do |b|
|
75
75
|
d = Nokogiri::HTML5(b)
|
76
76
|
d.encoding = "UTF-8"
|
77
77
|
d.xpath('//text()').each do |node|
|
@@ -135,6 +135,7 @@ module Wovnrb
|
|
135
135
|
end
|
136
136
|
output
|
137
137
|
end
|
138
|
+
result
|
138
139
|
end
|
139
140
|
|
140
141
|
end
|
data/lib/wovnrb/version.rb
CHANGED