rorvswild 1.4.2 → 1.4.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aa97339849ab9dcf97f29b984118bc9ff6a4bbbf
4
- data.tar.gz: 9f6dabfd0ce15be67a90fdc9cfc8c58035db8e05
3
+ metadata.gz: 0f23e21192cda1d56b1637aba574353a08337b13
4
+ data.tar.gz: f9381d9f832aa58610ae81ee948c9ec56acd6783
5
5
  SHA512:
6
- metadata.gz: c886efbe646332710b3a17f623e21064c20d24f8c97eab5cd43a28f8690a741f60baf0c57d45235bce0ee28bfe7343c39dfd7a6ffa6bb7244fff173451fcdbae
7
- data.tar.gz: 5ff5f1b55a11b97a0404a35cae584df35a83bce0b04e548627b95dac93094897a2b2903539c2d2afbf2db1e391b8eaabd16a94afcfb19122037117b090c3f89a
6
+ metadata.gz: afdc87336f00fe3077bf0a442bf15e2db8961277cc7ebaaee3d2485f98e625d5f3bc37e6cebde1d9b616bf7644ecd58099997d641a17590689d92c84fc0bac8a
7
+ data.tar.gz: 87c51a91e102a8b8a34d09a5abd8b40660790524c5ca757972848db1df7e0579ac2657842d688c5d788ef15f0633e1dfabacd621cd04e382fbc57dac3f5ee7f9
@@ -1,4 +1,6 @@
1
- <div data-barber="RorVsWild.Local" data-json="%{data}">
1
+ <div id="RorVsWild.Local">
2
+ <div data-barber="RorVsWild.Local" data-json="%{data}">
3
+ </div>
2
4
  </div>
3
5
 
4
6
  <script type="x-tmpl-mustache" data-partial="RorVsWild.Local">
@@ -121,7 +123,7 @@
121
123
  var RorVsWild = {};
122
124
  var startRorVsWild = function() {
123
125
  %{javascript_source}
124
- Barber.launch(document.rootElement, this)
126
+ Barber.launch(document.getElementById("RorVsWild.Local"), this)
125
127
  }.bind(RorVsWild)
126
128
 
127
129
  if (document.readyState != "loading")
@@ -39,10 +39,11 @@ module RorVsWild
39
39
  markup = html_markup(RorVsWild.agent.queue.requests).encode(html.encoding)
40
40
  style = "<style type='text/css'> #{concatenate_stylesheet}</style>".encode(html.encoding)
41
41
 
42
+ markup = markup.html_safe if markup.respond_to?(:html_safe)
43
+ style = style.html_safe if markup.respond_to?(:html_safe)
44
+
42
45
  if index = html.index("</body>")
43
46
  html.insert(index, markup)
44
- end
45
- if index = html.index("</head>")
46
47
  html.insert(index, style)
47
48
  end
48
49
  html
@@ -1,3 +1,3 @@
1
1
  module RorVsWild
2
- VERSION = "1.4.2".freeze
2
+ VERSION = "1.4.3".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rorvswild
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.2
4
+ version: 1.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexis Bernard
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-21 00:00:00.000000000 Z
11
+ date: 2019-05-11 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Performances and quality insights for rails developers.
14
14
  email: