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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1b6386a4f3d8ddd657dc1cdc33a3da56852fd1b4
4
- data.tar.gz: 29e4babbc211eff8ad675e210b17499ead2406a0
3
+ metadata.gz: 196c0f613dc68e6f1c2fe6b981b5ee25fe4d6e65
4
+ data.tar.gz: f859e633bae12219b0e9ddf79a2d22d82b483e65
5
5
  SHA512:
6
- metadata.gz: dc4517116af4a3bb82a926144d61553ee07249d9a6dbc168650f53a16948a49904a59661e550193824d769a86a10114bb476819681ee25da3c1a3f754e64d6d6
7
- data.tar.gz: a63d9c6673abd8a2ae77054dd6f3ea2a66002d0e77e83ef97a8219912cbd9e13a6fc015101686b2c1d4e1e5a3d7dd6a08231ed47a13418352a85de60c98839fb
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! do |b|
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
@@ -1,3 +1,3 @@
1
1
  module Wovnrb
2
- VERSION = "0.1.27"
2
+ VERSION = "0.1.28"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wovnrb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.27
4
+ version: 0.1.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Sandford