arcabouco 0.1.4 → 0.1.5
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/arcabouco/version.rb +1 -1
- data/lib/templates/index.html.erb +8 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e0753d9bfe23bd9d1120d77da20f267c95f98da
|
4
|
+
data.tar.gz: b02a5a37152cbdb59faef2e06cee8ef102eb4352
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd9e4fc1e07ad15d1aca216c7a352300db88a4fd7b35de2ad5f6cdb24169f1ceac36ec01ac00bfcbf22ad2b0bb464c68a9aaf367efa37d22dc71533f16580f9f
|
7
|
+
data.tar.gz: d2b82260c2f7d9559575ee9c2c948543d3e05ef84beb0cb22b766feb1ff62e1ac6352a0b2eb4eaec0bbc8c5bccb391f5a7bb2cf483beb37c6f28a721e3c8103b
|
data/lib/arcabouco/version.rb
CHANGED
@@ -19,6 +19,11 @@
|
|
19
19
|
|
20
20
|
<script type="text/javascript">
|
21
21
|
window.app = {}
|
22
|
+
window.app.confirm = function(message, callback) {
|
23
|
+
if (confirm(message)) {
|
24
|
+
callback();
|
25
|
+
}
|
26
|
+
}
|
22
27
|
window.app.bootstraped = false;
|
23
28
|
window.app.assets_manifest = "/<%= ENV['RACK_ENV'] == 'production' ? 'app.assets/manifest.json' : 'manifest.json' %>";
|
24
29
|
|
@@ -87,9 +92,9 @@
|
|
87
92
|
bootstrapApplication();
|
88
93
|
}
|
89
94
|
else {
|
90
|
-
|
95
|
+
window.app.confirm('A new version of this application is available. Load it?', function() {
|
91
96
|
window.location.reload();
|
92
|
-
}
|
97
|
+
});
|
93
98
|
}
|
94
99
|
}
|
95
100
|
|
@@ -104,7 +109,7 @@
|
|
104
109
|
setInterval(function() {
|
105
110
|
console.log("Checking for new versions");
|
106
111
|
app.applicationCache.update();
|
107
|
-
},
|
112
|
+
}, 60*5*1000);
|
108
113
|
|
109
114
|
}).appendTo('head')[0]
|
110
115
|
});
|