dev_panel 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/devpanel/extension.rb +11 -3
- metadata +2 -2
data/lib/devpanel/extension.rb
CHANGED
@@ -2,7 +2,7 @@ module DevPanel
|
|
2
2
|
module Panel
|
3
3
|
|
4
4
|
def self.included(base)
|
5
|
-
base.after_filter :dev_panel_output
|
5
|
+
base.after_filter :dev_panel_output, :if => lambda { request.format.to_s == "text/html" && !(!!request.xhr?) }
|
6
6
|
end
|
7
7
|
|
8
8
|
def dev_panel_output
|
@@ -37,11 +37,19 @@ module DevPanel
|
|
37
37
|
end
|
38
38
|
|
39
39
|
def jquery_cdn
|
40
|
-
|
40
|
+
begin
|
41
|
+
return '' if Rails.application.config.dev_panel_exclude_jquery == true
|
42
|
+
rescue
|
43
|
+
'<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>'
|
44
|
+
end
|
41
45
|
end
|
42
46
|
|
43
47
|
def jquery_ui_cdn
|
44
|
-
|
48
|
+
begin
|
49
|
+
return '' if Rails.application.config.dev_panel_exclude_jquery_ui == true
|
50
|
+
rescue
|
51
|
+
'<script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>'
|
52
|
+
end
|
45
53
|
end
|
46
54
|
end
|
47
55
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dev_panel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
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:
|
12
|
+
date: 2013-01-09 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: A panel that appears in the browser to provide stats on page load times
|
15
15
|
and other debugging information for Rails 3
|