xray-rails 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 split-window -v '/usr/local/bin/vim $file'"
73
+ :editor: "/usr/local/bin/tmux new-window 'vim $file'"
74
74
  ```
75
75
 
76
76
  ## How this works
@@ -68,9 +68,9 @@ module Xray
68
68
 
69
69
  def should_inject_xray?(status, headers, response)
70
70
  status == 200 &&
71
+ !empty?(response) &&
71
72
  html_request?(headers, response) &&
72
73
  !file?(headers) &&
73
- !empty?(response) &&
74
74
  !response.body.frozen?
75
75
  end
76
76
 
data/lib/xray/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Xray
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
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 tempaltes that rendered them.
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
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-06 00:00:00.000000000 Z
12
+ date: 2013-05-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails