wovnrb 0.1.34 → 0.1.35

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: f1b46f0a69ecda1a25ab851087513fa8adb3b2aa
4
- data.tar.gz: 96b0db1ea685275c83d518091dfcf84ee2de829b
3
+ metadata.gz: 700600d132d315519350a61fd20a57c7e0181050
4
+ data.tar.gz: 5fc85d3db8886950aa4a9ad139d6e00ee0b1f659
5
5
  SHA512:
6
- metadata.gz: 8220dd5c6277bffe8d23472622cdb453355c54743666d70a6a991ab078fca8c93b1fabe91cd51b096827d2c786e303b6bd829d00d34367512aa3bfc387421144
7
- data.tar.gz: d571f5645debbe415f0767a987de1c0c1ac18711647112e3e719ed4ee5db52d81addc7257de45625ae6c6f67b5fb6dd423511b48956ebd8a3ee6cacebfba6676
6
+ metadata.gz: 2e0cf2c5ccf9f1e73d2d4cd59f13c0655c031f6ef425c7257bce762190bd0cb5a44cb91e314d27fad0101891c9620e8768186967f5b6fa60a063e193036f7c40
7
+ data.tar.gz: b74aa7c268d8fabba4bb66f069d8f195033f84fad0f41dcda710cacfd63fd94b6af32ecb05453171e8f79dacf3554193bff410937153a8e1f1e819d21c13e059
@@ -1,3 +1,3 @@
1
1
  module Wovnrb
2
- VERSION = "0.1.34"
2
+ VERSION = "0.1.35"
3
3
  end
data/lib/wovnrb.rb CHANGED
@@ -51,11 +51,12 @@ module Wovnrb
51
51
  :pathname => headers.pathname
52
52
  }
53
53
  body = switch_lang(body, values, url, lang) unless status.to_s =~ /^1|302/
54
- #d = Dom.new(storage.get_values, body, lang)
55
- #res_headers["Content-Length"] = body.each.first.length.to_s
54
+
56
55
  content_length = 0
57
56
  body.each { |b| content_length += b.respond_to?(:bytesize) ? b.bytesize : 0 }
58
57
  res_headers["Content-Length"] = content_length.to_s
58
+
59
+ body.close if body.respond_to?(:close)
59
60
  end
60
61
 
61
62
  headers.out(res_headers)
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.34
4
+ version: 0.1.35
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Sandford
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-07-14 00:00:00.000000000 Z
12
+ date: 2015-07-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogumbo