wovnrb 0.1.18 → 0.1.19

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: a035909bb7e9e2ebea2d73100369577474a0d8dc
4
- data.tar.gz: 435149d3a8ae870f3975a1bed3d959455ec82f4c
3
+ metadata.gz: 444b3c9066880c70ce20b3532204678bdbadbf60
4
+ data.tar.gz: 9bb62992fb068bdb875586249e92584d0bd68606
5
5
  SHA512:
6
- metadata.gz: f8b40b04b7013f25492bfcd04585b9742d4f508deefab05c4bd07c243e2904859a75aefad74e7a3db8e38f4d61d2ca9a132afc14c8de542d802344ce93f74994
7
- data.tar.gz: 3235dce7cfbfb8342566517d49465b7efddadc55c4e8ac0914a6b34cd38545479fa30ce91d498dca54229dedff1c3212e9b8b1ab55eef92cbe90d277a46efde8
6
+ metadata.gz: 5e09d7767e2c3b9f5038ed9b0134befff56846b3955054a9868a1a84f2fd9174238beb3a39ed67606fb19dc98bd63ea3a058325838e56ab85d1f681e5f0901ca
7
+ data.tar.gz: 3f4db11ce2d434ce60f627300161263cac3ec60a3a2dc8ce54550df2be72f6df552899ef36dcce63d7f739dd6dfb3b923d296fb0502374c65b977c6554ca9010
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.0.0-p451
data/lib/wovnrb.rb CHANGED
@@ -50,7 +50,7 @@ module Wovnrb
50
50
  end
51
51
 
52
52
  headers.out(res_headers)
53
- res_headers['Content-Length'] = body.each {|b| break b.length.to_s }
53
+ # res_headers['Content-Length'] = body.each {|b| break b.length.to_s }
54
54
  [status, res_headers, body]
55
55
  #[status, res_headers, d.transform()]
56
56
  end
@@ -120,6 +120,10 @@ module Wovnrb
120
120
  end
121
121
 
122
122
  output = d.to_html.gsub(/href="([^"]*)"/) {|m| "href=\"#{URI.decode($1)}\""}
123
+ # RAILS
124
+ if Object.const_defined?('ActionView') && ActionView.const_defined?('OutputBuffer')
125
+ output = ActionView::OutputBuffer.new(output)
126
+ end
123
127
  output
124
128
  end
125
129
  end
@@ -1,3 +1,3 @@
1
1
  module Wovnrb
2
- VERSION = "0.1.18"
2
+ VERSION = "0.1.19"
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.18
4
+ version: 0.1.19
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-06-16 00:00:00.000000000 Z
12
+ date: 2015-06-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogumbo
@@ -229,6 +229,7 @@ extensions: []
229
229
  extra_rdoc_files: []
230
230
  files:
231
231
  - .gitignore
232
+ - .ruby-version
232
233
  - Gemfile
233
234
  - LICENSE.txt
234
235
  - README.md