devbar 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/devbar.rb +1 -2
  2. data/lib/devbar/version.rb +1 -1
  3. metadata +1 -1
@@ -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;'>#{ ENV['RAILS_ENV'].upcase } ENVIRONMENT</div>"
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
@@ -1,3 +1,3 @@
1
1
  module Devbar
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devbar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: