stacksondeck 1.0.4 → 1.0.5
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/lib/stacksondeck/app.rb +4 -0
- 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: f5533bd9a75ce6665466b50a39ee55ad392f6374
|
4
|
+
data.tar.gz: 4f977f06a0c97a36f0aa0afac8509d7d17d54584
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e83d67fd29ed7c2d6eb224d3f767a8e03a6154695b7b0b661c54757c5ce369b3b50ddbf48572964ae75276f8a2988b1e78639121e2537cabb24772e0f67d945
|
7
|
+
data.tar.gz: 86c1181dcf2ee53bfa7efb1b5180f44f2e14890a385f61ef24a05d5239c3687198e562f2409b6816a76b6b76e2092da28c35073a56d924fdf4b49ba399d23ccc
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.5
|
data/lib/stacksondeck/app.rb
CHANGED
@@ -27,6 +27,7 @@ module StacksOnDeck
|
|
27
27
|
|
28
28
|
get '/' do
|
29
29
|
content_type :yaml
|
30
|
+
last_modified @@last_modified
|
30
31
|
@@db_dump
|
31
32
|
end
|
32
33
|
|
@@ -51,6 +52,7 @@ module StacksOnDeck
|
|
51
52
|
reopen!
|
52
53
|
log.info event: 'open!', db: settings.database
|
53
54
|
@@db_dump = YAML.dump db_copy
|
55
|
+
@@last_modified = Time.now
|
54
56
|
end
|
55
57
|
|
56
58
|
|
@@ -126,6 +128,8 @@ module StacksOnDeck
|
|
126
128
|
|
127
129
|
@@db_dump = YAML.dump node_resources
|
128
130
|
|
131
|
+
@@last_modified = Time.now
|
132
|
+
|
129
133
|
log.info event: 'refreshed!', elapsed: (Time.now - started)
|
130
134
|
|
131
135
|
return node_resources
|