dasht 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/assets/js/dasht.js +16 -0
- data/dasht.gemspec +3 -3
- 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: 28f7fb160aff0f15326ed388c62a2404bf6ce545
|
4
|
+
data.tar.gz: 8c4670bee5ea847ca205616e3984d83b8b64b7d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 240f95346cc2a01a37faa6941367efd05fc550a52fec02c1bc5d1bf84f4cd2ccf5851882b26eff74834bd1035774b5ea513e8bdc0151090716531c2d41a8d3ea
|
7
|
+
data.tar.gz: 32248602b75bdd5cc66450f4f5868c0b774fc29a655822991050211c4af3347dc25a334bccc09b9cdc923d4f7324f72ba765f4f67fe3ebd2438773118f3c9d68
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.4
|
data/assets/js/dasht.js
CHANGED
@@ -27,6 +27,7 @@ Dasht.add_tile = function(options) {
|
|
27
27
|
Dasht.init = function() {
|
28
28
|
Dasht.scale_fontsize_loop();
|
29
29
|
Dasht.process_pending_requests_loop();
|
30
|
+
Dasht.watchdog_loop();
|
30
31
|
}
|
31
32
|
|
32
33
|
Dasht.fill_tile = function(el, do_width, do_height) {
|
@@ -107,6 +108,7 @@ Dasht.process_pending_requests_loop = function() {
|
|
107
108
|
Dasht.pending_requests = [];
|
108
109
|
|
109
110
|
var successFN = function(responses) {
|
111
|
+
Dasht.loaded_data = true;
|
110
112
|
$("body").removeClass("waiting");
|
111
113
|
|
112
114
|
// Process the responses.
|
@@ -133,3 +135,17 @@ Dasht.process_pending_requests_loop = function() {
|
|
133
135
|
success: successFN
|
134
136
|
});
|
135
137
|
}
|
138
|
+
|
139
|
+
|
140
|
+
Dasht.loaded_data = true;
|
141
|
+
Dasht.watchdog_loop = function() {
|
142
|
+
// The page could get stuck for a variety of reasons. This is the
|
143
|
+
// last resort. Run every 2 minutes. If we haven't loaded new data
|
144
|
+
// in that time, then reload the page.
|
145
|
+
if (Dasht.loaded_data == true) {
|
146
|
+
Dasht.loaded_data = false;
|
147
|
+
setTimeout(Dasht.watchdog_loop, 2 * 60 * 1000);
|
148
|
+
} else {
|
149
|
+
document.location.reload();
|
150
|
+
}
|
151
|
+
}
|
data/dasht.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: dasht 0.1.
|
5
|
+
# stub: dasht 0.1.4 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "dasht"
|
9
|
-
s.version = "0.1.
|
9
|
+
s.version = "0.1.4"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["Rusty Klophaus"]
|
14
|
-
s.date = "2015-08-
|
14
|
+
s.date = "2015-08-11"
|
15
15
|
s.description = "Dasht is a framework for building beautiful, developer-focused application dashboards. Dasht is especially good at displaying high-level application stats in real-time on a wall-mounted monitor."
|
16
16
|
s.email = "rklophaus@gmail.com"
|
17
17
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dasht
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rusty Klophaus
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08-
|
11
|
+
date: 2015-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|