xray-rails 0.1.15 → 0.1.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/xray/engine.rb +1 -1
- data/lib/xray/middleware.rb +11 -1
- data/lib/xray/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d3871d067a87b49c62b791a5c9d024ee00ea3ac
|
4
|
+
data.tar.gz: 592adbcc6c0975e1df1e7411986854f6b68bd02c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f04e57f1a7f9922c997b89c45e5b5d370553f58892cf05e9171617a559475c8ffa9d0e0172abf0f2458da3bab0695debe505357da89efffb842fab262cbfb0d8
|
7
|
+
data.tar.gz: c3386c3905b7ced7ba04d9c4673e440a934f61e7ff6cde82fd789c451fb337b72727d167fc11332177dbf3f0d63ef4fbb4d6eb6e4a65e42f5b23e57b3c4506aa
|
data/lib/xray/engine.rb
CHANGED
@@ -11,7 +11,7 @@ module Xray
|
|
11
11
|
app.middleware.use Xray::Middleware
|
12
12
|
|
13
13
|
# Required by Rails 4.1
|
14
|
-
app.config.assets.precompile += %w(xray.js xray.css)
|
14
|
+
app.config.assets.precompile += %w(xray.js xray-backbone.js xray.css)
|
15
15
|
|
16
16
|
# Register as a Sprockets processor to augment JS files, including
|
17
17
|
# compiled coffeescript, with filepath information. See
|
data/lib/xray/middleware.rb
CHANGED
@@ -74,7 +74,17 @@ module Xray
|
|
74
74
|
# <script src="/assets/jquery-min.js"></script>
|
75
75
|
# <script src="/assets/jquery.min.1.9.1.js"></script>
|
76
76
|
# <script src="/assets/jquery.min.1.9.1-89255b9dbf3de2fbaa6754b3a00db431.js"></script>
|
77
|
-
|
77
|
+
script_pattern = /
|
78
|
+
<script[^>]+
|
79
|
+
\/#{after_script_name} # Name of the script itself
|
80
|
+
([-.]{1}[\d\.]+)? # Optional version identifier (e.g. -1.9.1)
|
81
|
+
([-.]{1}min)? # Optional -min suffix
|
82
|
+
(\.self)? # Sprockets 3 appends .self to the filename
|
83
|
+
(-\h{32,64})? # Fingerprint varies based on Sprockets version
|
84
|
+
\.js # Must have .js extension
|
85
|
+
[^>]+><\/script>
|
86
|
+
/x
|
87
|
+
html.sub!(script_pattern) do
|
78
88
|
h = ActionController::Base.helpers
|
79
89
|
"#{$~}\n" + h.javascript_include_tag(script_name)
|
80
90
|
end
|
data/lib/xray/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brent Dillingham
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -140,16 +140,16 @@ dependencies:
|
|
140
140
|
name: capybara
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
|
-
- -
|
143
|
+
- - ">="
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version:
|
145
|
+
version: '0'
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
|
-
- -
|
150
|
+
- - ">="
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version:
|
152
|
+
version: '0'
|
153
153
|
description: Provides a dev bar and an overlay in-browser to visualize your UI's rendered
|
154
154
|
partials and Backbone views
|
155
155
|
email:
|
@@ -189,7 +189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
189
189
|
version: '0'
|
190
190
|
requirements: []
|
191
191
|
rubyforge_project:
|
192
|
-
rubygems_version: 2.
|
192
|
+
rubygems_version: 2.4.6
|
193
193
|
signing_key:
|
194
194
|
specification_version: 4
|
195
195
|
summary: Reveal the structure of your UI
|