gct 0.3.9 → 0.3.91
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gct/file_base.rb +1 -0
- data/lib/gct/gct_version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2544c8db653759d99e1ddc1007090e03db770c715f30d9e5f5f770076226ddd0
|
4
|
+
data.tar.gz: aee1cfc33e68777d545884cdb0025c2018821d83ecb2668ea33a3e8b51cad34f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec1ef12cfdf4ff81fa1fb7678da36d05a50657d5dbf4453718270657755330bed58eba1492ea42ca4ad9ce8c829a6083ac92101ce892ae2f0809741eb464fbdd
|
7
|
+
data.tar.gz: dd8d0bbf4646aca64790eae2c21aa9910f7912ee202f0a9547048978190813c1bcca6a19e338ce6865d3c73931e72bb0875ad8ae5783dfda8ca8d11b8002c29c
|
data/lib/gct/file_base.rb
CHANGED
@@ -10,6 +10,7 @@ module Gct
|
|
10
10
|
def yaml_write(key, value)
|
11
11
|
begin
|
12
12
|
config_map = YAML.load(File.open(@path, "r"))
|
13
|
+
config_map = Hash.new() if config_map.nil? || config_map.empty?
|
13
14
|
config_map[key] = value
|
14
15
|
yaml_file = File.open(@path, "w")
|
15
16
|
YAML::dump(config_map, yaml_file)
|
data/lib/gct/gct_version.rb
CHANGED