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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9eaf4ce4ff3de1d38824a24ea5481aae0900d95a
4
- data.tar.gz: 338081cd8d741892b459ead3974a7d0066d95489
3
+ metadata.gz: de4d36c4a7e7e19cc2debb759cc8cc61a2a90f20
4
+ data.tar.gz: 65fc0441f20b590532595518564f7646e5b56f5a
5
5
  SHA512:
6
- metadata.gz: 48eff7e9d479feb30a0113b9d97a06d04e9862bb49fd01a68d9b1ee1a8da90297aea72828c3aa33e44d445bef0a3ba244af2c85c913ddcf6721b74c327e35dd7
7
- data.tar.gz: e200ff109acdc1772329498711fcb0162dd8a58d63d199979ebe9682e2537ec54f27ff9eb12fe644f6e85226f2cf6af939d4e44bf8e88eb73157444d6f9f45f6
6
+ metadata.gz: 21e1b04546b6b46d9ed064ca9cef86cd548e3e3299a053867f586530b5b9dec65737cefe2bc87f214c5b45eda163d58a8b8f0b3b053afb7ae00f89402be949c9
7
+ data.tar.gz: a57113297bd86119c410fdfd00ba743432793f25f10c141de9d7e605d3b1bbbe52acfb8e1500c02b9cc03ad2638f3d50dec20417aed4181b859cf8b0ddbb88bc
@@ -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
- path = SnowyOwl.persist_path + '/.tmp/' + plot_name_path
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, 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, path]
21
+ args = [plot_name_path, SnowyOwl.persist_path]
21
22
  SnowyOwl.recover_callback.call(args)
22
23
  end
23
24
  end
@@ -1,3 +1,3 @@
1
1
  module SnowyOwl
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snowy_owl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yi Han