xray-rails 0.1.10 → 0.1.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,3 @@
1
-
2
- <!-- XRAY BAR -->
3
-
4
1
  <div id="xray-bar" style="display:none">
5
2
  <% if Xray.request_info.present? %>
6
3
  <div id="xray-bar-controller-path">
@@ -42,5 +39,3 @@
42
39
  </div>
43
40
  <%= stylesheet_link_tag :xray %>
44
41
  </div>
45
-
46
- <!-- /XRAY BAR -->
data/lib/xray/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Xray
2
- VERSION = "0.1.10"
2
+ VERSION = "0.1.11"
3
3
  end
data/lib/xray-rails.rb CHANGED
@@ -81,6 +81,9 @@ module Xray
81
81
  # <!-- XRAY END 123 -->
82
82
  def self.augment_template(source, path)
83
83
  id = next_id
84
+ if source.include?('<!DOCTYPE')
85
+ return source
86
+ end
84
87
  # skim doesn't allow html comments, so use skim's comment syntax if it's skim
85
88
  if path =~ /\.(skim)(\.|$)/
86
89
  augmented = "/!XRAY START #{id} #{path}\n#{source}\n/!XRAY END #{id}"
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.10
4
+ version: 0.1.11
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-12-02 00:00:00.000000000 Z
12
+ date: 2013-12-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -205,7 +205,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
205
205
  version: '0'
206
206
  segments:
207
207
  - 0
208
- hash: -221572238928851522
208
+ hash: 3439184786098868926
209
209
  required_rubygems_version: !ruby/object:Gem::Requirement
210
210
  none: false
211
211
  requirements:
@@ -214,7 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
214
214
  version: '0'
215
215
  segments:
216
216
  - 0
217
- hash: -221572238928851522
217
+ hash: 3439184786098868926
218
218
  requirements: []
219
219
  rubyforge_project:
220
220
  rubygems_version: 1.8.23