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 +4 -4
- data/lib/wovnrb/version.rb +1 -1
- data/lib/wovnrb.rb +3 -2
- 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: 700600d132d315519350a61fd20a57c7e0181050
|
4
|
+
data.tar.gz: 5fc85d3db8886950aa4a9ad139d6e00ee0b1f659
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e0cf2c5ccf9f1e73d2d4cd59f13c0655c031f6ef425c7257bce762190bd0cb5a44cb91e314d27fad0101891c9620e8768186967f5b6fa60a063e193036f7c40
|
7
|
+
data.tar.gz: b74aa7c268d8fabba4bb66f069d8f195033f84fad0f41dcda710cacfd63fd94b6af32ecb05453171e8f79dacf3554193bff410937153a8e1f1e819d21c13e059
|
data/lib/wovnrb/version.rb
CHANGED
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
|
-
|
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.
|
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-
|
12
|
+
date: 2015-07-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogumbo
|