rack-stripper 1.1.0 → 1.1.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/stripper.rb +2 -2
  2. metadata +4 -4
data/lib/rack/stripper.rb CHANGED
@@ -2,7 +2,7 @@ require 'rack'
2
2
 
3
3
  module Rack
4
4
  class Stripper
5
- VERSION = '1.1.0'
5
+ VERSION = '1.1.1'
6
6
 
7
7
  attr_accessor :add_xml_instruction
8
8
  attr_accessor :is_xml_response
@@ -27,7 +27,7 @@ module Rack
27
27
  self.is_xml_response = !headers['Content-Type'].match(/xml/).nil?
28
28
  end
29
29
 
30
- if response.respond_to?(:body)
30
+ if response.respond_to?(:body=)
31
31
  response.body = process_body(response.body)
32
32
  if headers.has_key?('Content-Length')
33
33
  headers['Content-Length'] = response.body.bytesize
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-stripper
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-19 00:00:00.000000000 Z
12
+ date: 2013-03-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -106,7 +106,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
106
106
  version: '0'
107
107
  segments:
108
108
  - 0
109
- hash: 3041786719630630150
109
+ hash: -53697083073254137
110
110
  required_rubygems_version: !ruby/object:Gem::Requirement
111
111
  none: false
112
112
  requirements:
@@ -115,7 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
115
  version: '0'
116
116
  segments:
117
117
  - 0
118
- hash: 3041786719630630150
118
+ hash: -53697083073254137
119
119
  requirements: []
120
120
  rubyforge_project:
121
121
  rubygems_version: 1.8.23