sickill-rack_revision_info 0.3 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/rack_revision_info.rb +3 -1
  2. metadata +2 -2
@@ -21,7 +21,9 @@ module Rack
21
21
  if headers['Content-Type'].include?('text/html') && !Rack::Request.new(env).xhr?
22
22
  begin
23
23
  if @action
24
- doc = Hpricot(body.to_s)
24
+ html = ""
25
+ body.each { |s| html << s }
26
+ doc = Hpricot(html)
25
27
  elements = doc.search(@selector).compact
26
28
  if elements.size > 0
27
29
  elements = elements.first if @action == :swap
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sickill-rack_revision_info
3
3
  version: !ruby/object:Gem::Version
4
- version: "0.3"
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcin Kulik
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-05-31 00:00:00 -07:00
12
+ date: 2009-05-04 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15