gct 0.3.8 → 0.3.9
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 +3 -1
- 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: 3916a6b218a57f70b55c78f86fc05ab29bd9c0db6718ba525249a62b6f92b514
|
4
|
+
data.tar.gz: bffb1a3d12eba75d4ee371c95c1a0145027d75c5d50e399520a4d7d6b9ac16e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3e6420ec4067f11b7a72f6406949739abce31b8e0772ecede4dda7653385154dce1e89cb3bc2dc9d0707c8a15c1ff8dfd0639bb84d18d8a2e17f79b235a2c02
|
7
|
+
data.tar.gz: 2e8d40284080f8a079137afe3e3c44c336d7294603549811608f33e24c91e016ebbff240c0db30a1db3c0c67ad164c74c8f77f9c0251981057a000a0f177f22c
|
data/lib/gct/file_base.rb
CHANGED
@@ -9,8 +9,10 @@ module Gct
|
|
9
9
|
|
10
10
|
def yaml_write(key, value)
|
11
11
|
begin
|
12
|
+
config_map = YAML.load(File.open(@path, "r"))
|
13
|
+
config_map[key] = value
|
12
14
|
yaml_file = File.open(@path, "w")
|
13
|
-
YAML::dump(
|
15
|
+
YAML::dump(config_map, yaml_file)
|
14
16
|
rescue IOError => e
|
15
17
|
raise e.message
|
16
18
|
ensure
|
data/lib/gct/gct_version.rb
CHANGED