rails_development_toolkit 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -10,7 +10,7 @@ module Rack
|
|
10
10
|
def call env
|
11
11
|
status, headers, response = @app.call(env)
|
12
12
|
content_type = headers["Content-Type"]
|
13
|
-
if content_type && content_type.include?("text/html")
|
13
|
+
if content_type && content_type.include?("text/html") && response.respond_to?(:body)
|
14
14
|
response.body = response.body.gsub(/(<body.*?>)/, '\\1' << DEV_CODE)
|
15
15
|
end
|
16
16
|
[status, headers, response]
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_development_toolkit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 4
|
10
|
+
version: 0.0.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- ingeniarius
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-01-
|
18
|
+
date: 2012-01-06 00:00:00 +04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|