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 +4 -4
- data/lib/styxie/initializer.rb +11 -9
- data/lib/styxie/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c676120ffbea7c9505e35ba59a44b82cfb40d94d
|
|
4
|
+
data.tar.gz: bea92d1211ae55ec61be5564ffb1e135ecde36dd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4b54f7137441741b94fd26967dd515380cf21ab3b8ee6a28eb669d0613f667bc8b46b6e246c39e2720d7b7f0c54da9dd9a7c383bc513f9c33e0087d90b5508ca
|
|
7
|
+
data.tar.gz: 2a02580cfb9feb603c919a82c7ecfcbcf36a2bbfe9231a47a4b4443ce0e0b2062fdf01a678666853ae50a3149df92f7318b558470850b69f5885b4547fc25015
|
data/lib/styxie/initializer.rb
CHANGED
|
@@ -10,16 +10,18 @@ module Styxie
|
|
|
10
10
|
result = <<-CODE
|
|
11
11
|
<script type="text/javascript">
|
|
12
12
|
//<![CDATA[
|
|
13
|
-
if (
|
|
14
|
-
Styxie
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
Styxie.applyInitializer
|
|
18
|
-
|
|
19
|
-
|
|
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>
|
data/lib/styxie/version.rb
CHANGED
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.
|
|
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-
|
|
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
|