flumtter 5.7.1 → 5.7.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: 51c7dded133a22ce48f92b558a58eb5a0b333b43
4
- data.tar.gz: be6495df2f9eec385a94b71f9425cd8f12cf45eb
3
+ metadata.gz: 6bf60d1e83a3bf36ab6889a8a51805228924e90c
4
+ data.tar.gz: e869c7aba278ffec16c53ed41ec2d4e119da4544
5
5
  SHA512:
6
- metadata.gz: d2af0637a7d08410679c3c3d169b8fc61e7e8e83f9b69c238a763e540e98d36ae94981310489368a8b4c831a390f53539813d482afb02586d01c3e1d4f6fee05
7
- data.tar.gz: 0934cc7756cdfa44c78f99778ecf3cc5216a8df9d3ddd749010fdaab5c5b92196abbcb83579166994050d79f48f1e1eaab20fbf766cdb88f468ca252222e41bc
6
+ metadata.gz: 750c622a5dbd61d5906ed6b89788b05ed7e5baaf1960fb230c41390267ca9bf3f5e9605d3df424a8c5bddab040894689813156b8553e55fc82eef53abb5e7029
7
+ data.tar.gz: 436ce96775026a8e2ec20ba2ee98393c987e53dc6bbcf26c85bf9c60dbbe74e21983b98aac383d6143bd5b529da7326cee6084c900e6eefc0a78b4ebddc6f624
@@ -13,22 +13,10 @@ module Flumtter
13
13
  FileUtils.cp_r(SourcePath.join(".flumtter"), UserPath)
14
14
  end
15
15
 
16
- old_data_path = UserPath.join("data", "data.bin")
17
- data_path = UserPath.join("data", "keys.json")
18
-
19
- Config = if File.exist?(data_path)
20
- JSON.parse(File.read(data_path), {:symbolize_names => true})
21
- elsif File.exist?(old_data_path)
22
- puts "Migrating config data.bin to keys.json"
23
- config = Marshal.load(File.read(old_data_path)) rescue {}
24
- File.write(data_path, config.to_json)
25
- File.unlink(old_data_path)
26
- puts "Migration Success"
27
- config
28
- end
29
-
16
+ data_path = UserPath.join("data", "data.bin")
17
+ Config = Marshal.load(File.read(data_path)) rescue {}
30
18
  at_exit {
31
- File.write(data_path, Config.to_json)
19
+ File.write(data_path, Marshal.dump(Config))
32
20
  }
33
21
 
34
22
  Thread.abort_on_exception = true
@@ -1,3 +1,3 @@
1
1
  module Flumtter
2
- VERSION = "5.7.1"
2
+ VERSION = "5.7.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flumtter
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.7.1
4
+ version: 5.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - flum1025