styxie 0.0.7 → 0.0.8

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: 87d3197e636185b66b8a020ecf9057933fb8c8e8
4
- data.tar.gz: ee5233d0599f814ec10b36c305f475c95ad52f8b
3
+ metadata.gz: c676120ffbea7c9505e35ba59a44b82cfb40d94d
4
+ data.tar.gz: bea92d1211ae55ec61be5564ffb1e135ecde36dd
5
5
  SHA512:
6
- metadata.gz: '097db64e604c0e666ddfd33d84e0f02465426c0404d6d5e4337efbe5f6c4133bd46dfa9d37f47634cf15b5da320132c8698c454cc56934ee1d8bd7cbb3be9d27'
7
- data.tar.gz: 984ee85b2af1fc09652a89984289b29604590dbdfd8d12d1ab24d33dfb9843e959e9ae40e9bc57ffcd9cdc5da23fadbaf685bd824979af9c8c82c20d184d43a1
6
+ metadata.gz: 4b54f7137441741b94fd26967dd515380cf21ab3b8ee6a28eb669d0613f667bc8b46b6e246c39e2720d7b7f0c54da9dd9a7c383bc513f9c33e0087d90b5508ca
7
+ data.tar.gz: 2a02580cfb9feb603c919a82c7ecfcbcf36a2bbfe9231a47a4b4443ce0e0b2062fdf01a678666853ae50a3149df92f7318b558470850b69f5885b4547fc25015
@@ -10,16 +10,18 @@ module Styxie
10
10
  result = <<-CODE
11
11
  <script type="text/javascript">
12
12
  //<![CDATA[
13
- if (typeof Styxie === 'undefined' || Styxie === null) {
14
- Styxie = {}
15
- }
16
- if (Styxie.applyInitializer) {
17
- Styxie.applyInitializer('#{klass}', '#{method}', #{json});
18
- } else {
19
- if (Styxie.initQueue == null) {
20
- Styxie.initQueue = []
13
+ if (!document.documentElement.hasAttribute('data-turbolinks-preview')) {
14
+ if (typeof Styxie === 'undefined' || Styxie === null) {
15
+ Styxie = {}
16
+ }
17
+ if (Styxie.applyInitializer) {
18
+ Styxie.applyInitializer('#{klass}', '#{method}', #{json});
19
+ } else {
20
+ if (Styxie.initQueue == null) {
21
+ Styxie.initQueue = []
22
+ }
23
+ Styxie.initQueue.push(['#{klass}', '#{method}', #{json}]);
21
24
  }
22
- Styxie.initQueue.push(['#{klass}', '#{method}', #{json}]);
23
25
  }
24
26
  //]]>
25
27
  </script>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Styxie
4
- VERSION = '0.0.7'.freeze
4
+ VERSION = '0.0.8'.freeze
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: styxie
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
  - Yury Kotov
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-03-28 00:00:00.000000000 Z
12
+ date: 2018-08-01 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Set of helpers to maintain bridge between Server side and Client (JS)
15
15
  side