xray-rails 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/xray/middleware.rb +2 -5
- data/lib/xray/version.rb +1 -1
- metadata +2 -2
data/lib/xray/middleware.rb
CHANGED
@@ -61,14 +61,11 @@ module Xray
|
|
61
61
|
# <script src="/assets/jquery-min.js"></script>
|
62
62
|
# <script src="/assets/jquery.min.1.9.1.js"></script>
|
63
63
|
html.sub!(/<script[^>]+\/#{after_script_name}([-.]{1}[\d\.]+)?([-.]{1}min)?\.js[^>]+><\/script>/) do
|
64
|
-
|
64
|
+
h = ActionController::Base.helpers
|
65
|
+
"#{$~}\n" + h.javascript_include_tag(script_name)
|
65
66
|
end
|
66
67
|
end
|
67
68
|
|
68
|
-
def view_context
|
69
|
-
@view_context ||= Rails.application.assets.context_class.new nil, nil, nil
|
70
|
-
end
|
71
|
-
|
72
69
|
def should_inject_xray?(status, headers, response)
|
73
70
|
status == 200 &&
|
74
71
|
html_request?(headers, response) &&
|
data/lib/xray/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xray-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
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-11-
|
12
|
+
date: 2013-11-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|