snowy_owl 0.1.1 → 0.1.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/snowy_owl/persist.rb +4 -3
- data/lib/snowy_owl/version.rb +1 -1
- 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: de4d36c4a7e7e19cc2debb759cc8cc61a2a90f20
|
4
|
+
data.tar.gz: 65fc0441f20b590532595518564f7646e5b56f5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 21e1b04546b6b46d9ed064ca9cef86cd548e3e3299a053867f586530b5b9dec65737cefe2bc87f214c5b45eda163d58a8b8f0b3b053afb7ae00f89402be949c9
|
7
|
+
data.tar.gz: a57113297bd86119c410fdfd00ba743432793f25f10c141de9d7e605d3b1bbbe52acfb8e1500c02b9cc03ad2638f3d50dec20417aed4181b859cf8b0ddbb88bc
|
data/lib/snowy_owl/persist.rb
CHANGED
@@ -8,16 +8,17 @@ module SnowyOwl
|
|
8
8
|
class << self
|
9
9
|
def persist_state(plot_name)
|
10
10
|
plot_name_path = SnowyOwl::Support.to_underscore plot_name
|
11
|
-
|
11
|
+
temp_persist_path = SnowyOwl.persist_path + '/.tmp/'
|
12
|
+
path = temp_persist_path + plot_name_path
|
12
13
|
FileUtils::mkdir_p path
|
13
|
-
args = [plot_name_path,
|
14
|
+
args = [plot_name_path, temp_persist_path]
|
14
15
|
SnowyOwl.persist_callback.call(args)
|
15
16
|
end
|
16
17
|
|
17
18
|
def recover_state(plot_name)
|
18
19
|
plot_name_path = SnowyOwl::Support.to_underscore plot_name
|
19
20
|
path = SnowyOwl.persist_path + plot_name_path
|
20
|
-
args = [plot_name_path,
|
21
|
+
args = [plot_name_path, SnowyOwl.persist_path]
|
21
22
|
SnowyOwl.recover_callback.call(args)
|
22
23
|
end
|
23
24
|
end
|
data/lib/snowy_owl/version.rb
CHANGED