xray-rails 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/xray/engine.rb +3 -3
- data/lib/xray/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fddfb999d09d721a49e7cb63a2630c6e44df2ab05500f724edcc43d2f2e2fe8c
|
4
|
+
data.tar.gz: 0b94f6788077aff52eb33da34b6e8c69ec7d83de9c5e8938c77dfcbab62f08f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8aecb78e16ec95b457b48c59e4958da87ef025f8bd7f0a566f999348f2d744499222aca605a4c0c4c4ba89f355f7ab88b753d6b4f76ad39a4b8ab87881a29b2
|
7
|
+
data.tar.gz: d9cd337ff33da6228337dd91a90a5c165642b78444d54d8f6cc17be9a41e5a108a6acad0854311ef03991a4ba8da399fa1ff9daba1157cd151755542f75d06c3
|
data/README.md
CHANGED
@@ -8,7 +8,7 @@ Xray-rails
|
|
8
8
|
|
9
9
|
The dev tools available to web developers in modern browsers are great. Many of us can't remember what life was like before "Inspect Element". But what we see in the compiled output sent to our browser is often the wrong level of detail - what about visualizing the higher level components of your UI? Controllers, view templates, partials, JS templates, etc.
|
10
10
|
|
11
|
-
Xray is the missing link between the browser and your app code. Press **
|
11
|
+
Xray is the missing link between the browser and your app code. Press **command+shift+x** (Mac) or **ctrl+shift+x** to reveal an overlay of the files that rendered your UI, and click anything to open the file in your editor.
|
12
12
|
|
13
13
|

|
14
14
|
|
@@ -39,7 +39,7 @@ Then bundle and delete your cached assets:
|
|
39
39
|
$ bundle && rm -rf tmp/cache/assets
|
40
40
|
```
|
41
41
|
|
42
|
-
Restart your app, visit it in your browser, and press **
|
42
|
+
Restart your app, visit it in your browser, and press **command+shift+x** (Mac) or **ctrl+shift+x** to reveal the overlay.
|
43
43
|
|
44
44
|
#### Note about `config.assets.debug`
|
45
45
|
|
data/lib/xray/engine.rb
CHANGED
@@ -21,10 +21,10 @@ module Xray
|
|
21
21
|
ActionView::Template.class_eval do
|
22
22
|
extend Xray::Aliasing
|
23
23
|
|
24
|
-
def render_with_xray(*args, &block)
|
24
|
+
def render_with_xray(*args, **kwargs, &block)
|
25
25
|
path = identifier
|
26
26
|
view = args.first
|
27
|
-
source = render_without_xray(*args, &block)
|
27
|
+
source = render_without_xray(*args, **kwargs, &block)
|
28
28
|
|
29
29
|
suitable_template = !(view.respond_to?(:mailer) && view.mailer) &&
|
30
30
|
!path.include?('_xray_bar') &&
|
@@ -55,7 +55,7 @@ module Xray
|
|
55
55
|
end
|
56
56
|
|
57
57
|
def self.run(filename, source, context)
|
58
|
-
path = context.
|
58
|
+
path = Pathname.new(context.filename).to_s
|
59
59
|
if path =~ /^#{Rails.root}.+\.(jst)(\.|$)/
|
60
60
|
Xray.augment_template(source, path)
|
61
61
|
else
|
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.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brent Dillingham
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -118,7 +118,7 @@ homepage: https://github.com/brentd/xray-rails
|
|
118
118
|
licenses:
|
119
119
|
- MIT
|
120
120
|
metadata: {}
|
121
|
-
post_install_message:
|
121
|
+
post_install_message:
|
122
122
|
rdoc_options: []
|
123
123
|
require_paths:
|
124
124
|
- lib
|
@@ -133,8 +133,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
133
133
|
- !ruby/object:Gem::Version
|
134
134
|
version: '0'
|
135
135
|
requirements: []
|
136
|
-
rubygems_version: 3.
|
137
|
-
signing_key:
|
136
|
+
rubygems_version: 3.5.21
|
137
|
+
signing_key:
|
138
138
|
specification_version: 4
|
139
139
|
summary: Reveal the structure of your UI
|
140
140
|
test_files: []
|