xray-rails 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/lib/xray/middleware.rb +1 -1
- data/lib/xray/version.rb +1 -1
- data/lib/xray-rails.rb +2 -2
- metadata +2 -2
data/README.md
CHANGED
@@ -70,7 +70,7 @@ Example `.xrayconfig`:
|
|
70
70
|
Or for something more complex, use the `$file` placeholder.
|
71
71
|
|
72
72
|
```yaml
|
73
|
-
:editor: "/usr/local/bin/tmux
|
73
|
+
:editor: "/usr/local/bin/tmux new-window 'vim $file'"
|
74
74
|
```
|
75
75
|
|
76
76
|
## How this works
|
data/lib/xray/middleware.rb
CHANGED
data/lib/xray/version.rb
CHANGED
data/lib/xray-rails.rb
CHANGED
@@ -66,7 +66,7 @@ module Xray
|
|
66
66
|
|
67
67
|
# Returns augmented HTML where the source is simply wrapped in an HTML
|
68
68
|
# comment with filepath info. Xray.js uses these comments to associate
|
69
|
-
# elements with the
|
69
|
+
# elements with the templates that rendered them.
|
70
70
|
#
|
71
71
|
# This:
|
72
72
|
# <div class=".my-element">
|
@@ -99,7 +99,7 @@ module Xray
|
|
99
99
|
cmd = if editor.include?('$file')
|
100
100
|
editor.gsub '$file', file
|
101
101
|
else
|
102
|
-
"#{editor} #{file}"
|
102
|
+
"#{editor} \"#{file}\""
|
103
103
|
end
|
104
104
|
Open3.capture3(cmd)
|
105
105
|
end
|
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.5
|
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-05-
|
12
|
+
date: 2013-05-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|