wovnrb 0.1.28 → 0.1.29
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 +4 -4
- 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: 51f415c4b672c10c7cee2b65f3e7337aa7a6f27b
|
4
|
+
data.tar.gz: 9966b466b73b0384a00bef68910b93feed19ca6b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54cf36226fddf434754ab0354789010c2b526935c638a4b0190dafc2c447bab204bb5922435480cd6393f674a58cff12fab5bfad3a0eef3de25491019c050c22
|
7
|
+
data.tar.gz: 39f0024e1f83b14f5170ab5ed51a171b8b53dff656f6bd871cda0871744e8a953c03998bb3ff09534d5e8aafe03e657ed3d4184c3890e7f79656884b761ac1fb
|
data/lib/wovnrb.rb
CHANGED
@@ -53,7 +53,7 @@ module Wovnrb
|
|
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
|
56
|
-
body.each { |b| content_length += b.respond_to?(:
|
56
|
+
body.each { |b| content_length += b.respond_to?(:bytesize) ? b.bytesize : 0 }
|
57
57
|
res_headers["Content-Length"] = content_length.to_s
|
58
58
|
end
|
59
59
|
|
@@ -130,9 +130,9 @@ module Wovnrb
|
|
130
130
|
|
131
131
|
output = d.to_html.gsub(/href="([^"]*)"/) {|m| "href=\"#{URI.decode($1)}\""}
|
132
132
|
# RAILS
|
133
|
-
if Object.const_defined?('ActionView') && ActionView.const_defined?('OutputBuffer')
|
134
|
-
|
135
|
-
end
|
133
|
+
#if Object.const_defined?('ActionView') && ActionView.const_defined?('OutputBuffer')
|
134
|
+
# output = ActionView::OutputBuffer.new(output)
|
135
|
+
#end
|
136
136
|
output
|
137
137
|
end
|
138
138
|
result
|
data/lib/wovnrb/version.rb
CHANGED