devbar 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/devbar.rb +1 -2
- data/lib/devbar/version.rb +1 -1
- metadata +1 -1
data/lib/devbar.rb
CHANGED
@@ -8,7 +8,6 @@ module Rack
|
|
8
8
|
|
9
9
|
def call(env)
|
10
10
|
status, headers, body = @app.call(env)
|
11
|
-
return [status, headers, response] unless headers['Content-Type'] =~ /html/
|
12
11
|
|
13
12
|
body.each do |part|
|
14
13
|
if part =~ /<\/body>/
|
@@ -26,7 +25,7 @@ module Rack
|
|
26
25
|
end
|
27
26
|
|
28
27
|
def bar
|
29
|
-
"<div style='height:30px;width:100%;background:red;bottom:0;padding:5px;font-weight:bold:0;position:fixed;right:0;text-align:center;font-weight:bold;color:white;z-index:999;opacity:0.7;'
|
28
|
+
"<div style='height:30px;width:100%;background:red;bottom:0;padding:5px;font-weight:bold:0;position:fixed;right:0;text-align:center;font-weight:bold;color:white;z-index:999;opacity:0.7;transition:opacity .15s;-webkit-transition:opacity .15s' onmouseover='this.style.opacity=0.1' onmouseout='this.style.opacity=0.7'>#{ Rails.env.upcase } ENVIRONMENT</div>"
|
30
29
|
end
|
31
30
|
end
|
32
31
|
end
|
data/lib/devbar/version.rb
CHANGED