loco-rails 1.3.1 → 1.3.2
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/assets/javascripts/loco-rails.js +21 -11
- data/lib/loco/version.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +11816 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Fo/fo-1kPaEaMbghtkeZftoGIbDMfcT3Ajnib06lhTtYQs.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Js/JSGabAqKiAsBzGidapIL57otvfBJsI0eyN-an03NXVg.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/OL/OLNp0yRohJNYRKxkWBp6a4Wgncn66aszOsbvPWF7cNs.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ob/OBb1jPgeV3qbw7BZ1fEpiDF6G2TCvDL6Y54LhVUDZDQ.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ob/oBu9Viam0RbmDxRyWd8ZdVpyhC5Jp8eq1R3DJMxM9yE.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/PY/PYx7J_tDVuE4aySepBBjHKBC1GlrCTDVR-UH_KCLUqw.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/T5/t5f4KVkpkCxm8-RwkUIj5VQ_zsCDt4TJhbfzN4-nsbI.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/TC/TCQMd6zR-0NPxy-UiL3Y4tvl0Bo6kbEAC-fhAFyaNnA.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/VH/vHmNA9XtKpw0y4emyRxdDX9lOwyvTAMuw0-yu1YblHU.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Xd/xDcvZjYGzNF57ogsLWZ1PrTREluuCZF_RPDJ_JLmkXw.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/c0/c0_dkMVfzrWPUyheDQAUODdIgn_YCjho09MxJuFDKvM.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/e2/E2dmxAcUssLWIR63aBCSZ_QGOIO0VpU0D6v3RUk8nVw.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/ic/ic6-RPWSpQE6yU3zsOj4IJfnP2JlaPgb88-0rvLCdco.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/px/pxQ_vALafNmyYKGNMgLdTCpHdzmxaivBJrfp1u4xyvY.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/x7/x7PYh8DJvPykcEqpVab2vcY9-GFz-3cqtoMlRAu94Uc.cache +0 -0
- metadata +26 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4baf868ad6ea66a7668edc7343867b2b9fdf66e3
|
4
|
+
data.tar.gz: 0b4d5f1e54f4e9b9d547bf202fa6270710e4fcd9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f742acc9d2ef83777bf56504cb2afbc71ac663864a04c0ea55a0375bcb0408f5bd6627089913791c39fed5381a2b92e6c09622c8f3404087bd42043d2ad58ad
|
7
|
+
data.tar.gz: e6ccbdb6a76680daa31369405af0e2d40e27e3432c5439f6236ce3940a28fe5ca2a34c16f8cf2490730022061361075bdf18fbcdec16dec27b577f3f3d868aee
|
@@ -573,7 +573,7 @@ App.Loco = (function() {
|
|
573
573
|
this.line = null;
|
574
574
|
this.locale = null;
|
575
575
|
this.turbolinks = (ref = opts.turbolinks) != null ? ref : false;
|
576
|
-
this.
|
576
|
+
this.startWire = ((ref1 = opts.notifications) != null ? ref1.enable : void 0) ? true : false;
|
577
577
|
this.postInit = opts.postInit;
|
578
578
|
this.setLocale((ref2 = opts.locale) != null ? ref2 : 'en');
|
579
579
|
this.setProtocolWithHost(opts.protocolWithHost);
|
@@ -616,16 +616,8 @@ App.Loco = (function() {
|
|
616
616
|
Loco.prototype.init = function() {
|
617
617
|
var event;
|
618
618
|
App.Env.loco = this;
|
619
|
-
|
620
|
-
|
621
|
-
this.wire.fetchSyncTime({
|
622
|
-
after: 'connect'
|
623
|
-
});
|
624
|
-
}
|
625
|
-
if (App.cable != null) {
|
626
|
-
this.line = new App.Line;
|
627
|
-
this.line.connect();
|
628
|
-
}
|
619
|
+
this.initWire();
|
620
|
+
this.initLine();
|
629
621
|
if (this.turbolinks) {
|
630
622
|
event = Number(this.turbolinks) >= 5 ? "turbolinks:load" : "page:change";
|
631
623
|
return jQuery(document).on(event, (function(_this) {
|
@@ -648,6 +640,24 @@ App.Loco = (function() {
|
|
648
640
|
}
|
649
641
|
};
|
650
642
|
|
643
|
+
Loco.prototype.initWire = function() {
|
644
|
+
if (!this.startWire) {
|
645
|
+
return;
|
646
|
+
}
|
647
|
+
this.wire = new App.Wire(this.notificationsParams);
|
648
|
+
return this.wire.fetchSyncTime({
|
649
|
+
after: 'connect'
|
650
|
+
});
|
651
|
+
};
|
652
|
+
|
653
|
+
Loco.prototype.initLine = function() {
|
654
|
+
if (App.cable == null) {
|
655
|
+
return;
|
656
|
+
}
|
657
|
+
this.line = new App.Line;
|
658
|
+
return this.line.connect();
|
659
|
+
};
|
660
|
+
|
651
661
|
Loco.prototype.flow = function() {
|
652
662
|
var action_name, controller_name, namespace_name;
|
653
663
|
App.IdentityMap.clear();
|
data/lib/loco/version.rb
CHANGED
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|