arcabouco 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a5c79f1863c6c785b08141c9cf5049434c20cab4
4
- data.tar.gz: 6a34f1114ded1bf53cabb8a2cb2b0705646d7535
3
+ metadata.gz: 8e0753d9bfe23bd9d1120d77da20f267c95f98da
4
+ data.tar.gz: b02a5a37152cbdb59faef2e06cee8ef102eb4352
5
5
  SHA512:
6
- metadata.gz: cd458d111a2d407988257b9638a95d77636ccaa1dc7d04682cf77c1ed462619d7afc3657b882f071606fa18c12db49f4686865d9840060de78665cfc07a4747d
7
- data.tar.gz: 2c0f20d0ba6d4146dc349a99e259694b56102047e3a97691ced17f277834352e72efd1ef7e10fb786a63322e1a77a5b5ff0435ef797d50081feac78fde41625d
6
+ metadata.gz: bd9e4fc1e07ad15d1aca216c7a352300db88a4fd7b35de2ad5f6cdb24169f1ceac36ec01ac00bfcbf22ad2b0bb464c68a9aaf367efa37d22dc71533f16580f9f
7
+ data.tar.gz: d2b82260c2f7d9559575ee9c2c948543d3e05ef84beb0cb22b766feb1ff62e1ac6352a0b2eb4eaec0bbc8c5bccb391f5a7bb2cf483beb37c6f28a721e3c8103b
@@ -1,3 +1,3 @@
1
1
  module Arcabouco
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
@@ -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
- if (confirm('A new version of this application is available. Load it?')) {
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
- }, 10*1000);
112
+ }, 60*5*1000);
108
113
 
109
114
  }).appendTo('head')[0]
110
115
  });
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arcabouco
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick Negri