sprockets-illusionist 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c7a3eee8fde5607db4866c3f897201132f48b1ce
4
- data.tar.gz: a5986dc33e817201819451dfd0a8e0072dba1202
3
+ metadata.gz: 8b890de78eaa86da0b7f031887fff6b1e78be55c
4
+ data.tar.gz: c2111b0d57f98d8df6baa28519ef5d8d87591fbb
5
5
  SHA512:
6
- metadata.gz: 13d421ac1f0fbe271daa87fb7d87f275f47017303768aea1fb883d11664449b3f94069cda1c4af83b343a8d77951ed674d12a30c891c7443e7c99bc9c5d72567
7
- data.tar.gz: 04bfdfdf542891614d96a14a9803d782de23b2b4a3c6297379c7742c6ebe94d059c27eb77516b21151aa2b57afbe8891b7d68192e926f2e3f9b7763bf058c4bb
6
+ metadata.gz: aeb65ad3c1439c36b2cb8d95593dbb2421691dbafd3470d8c639ccd7825e7623371f62384b2bf5e25bd4767e8c44398612ae8b1d128d7181a15ea1ea159d4968
7
+ data.tar.gz: f64c7eb4f93583ecb303a429b18bc636990139675b7de6a058b0a1a697044f815f944673f8fa3ad0f0d09a9f4229c4acfa970ed9345fd75d6bee20c25dae8c55
@@ -54,9 +54,9 @@ module SprocketsIllusionist
54
54
  end
55
55
 
56
56
  def render_error(error)
57
- error = error.gsub('"', '\"').gsub("\n", "\\n")
57
+ error = error.split("\n")[1].gsub('"', '\\"')
58
58
  "// The file could not be compiled into JavaScript
59
- document.getElementsByTagName('body')[0].innerHTML = \"<pre>#{error}</pre>\";"
59
+ document.getElementsByTagName('body')[0].innerHTML = \"<pre>#{file}<br />#{error}</pre>\";"
60
60
  end
61
61
  end
62
62
  end
@@ -1,3 +1,3 @@
1
1
  module SprocketsIllusionist
2
- VERSION = '0.0.7'
2
+ VERSION = '0.0.8'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sprockets-illusionist
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charles Demers