rack-revision-info 0.3.6 → 0.3.7

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 +13 -4
@@ -19,7 +19,9 @@ module Rack
19
19
  def call(env)
20
20
  status, headers, body = @app.call(env)
21
21
  if headers['Content-Type'].to_s.include?('text/html') && !Rack::Request.new(env).xhr?
22
- body = body.inject("") { |acc, line| acc + line }
22
+ new_body = ""
23
+ body.each { |line| new_body << line }
24
+ body = new_body
23
25
  begin
24
26
  if @action
25
27
  doc = Nokogiri.parse(body)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-revision-info
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcin Kulik
@@ -9,10 +9,19 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-30 00:00:00 +01:00
12
+ date: 2009-11-27 00:00:00 +01:00
13
13
  default_executable:
14
- dependencies: []
15
-
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: nokogiri
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: "1.2"
24
+ version:
16
25
  description:
17
26
  email: marcin.kulik@gmail.com
18
27
  executables: []