structurebutcher 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/structurebutcher.rb +2 -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: 4c19a6f6222074c12a8b3449d3c43b234cbeda1d
|
4
|
+
data.tar.gz: eb32ced9e89b7004c0b12ca47623eef4c53b91c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2061451fbf84041e4015890e9ace3ed7be0b8ad7f5bcf5c847e0eabca74261fe652f6ee2110c1ba9a069c195b34fd6e9675b6f6361bf452a780b4182891a711a
|
7
|
+
data.tar.gz: 4465801209874f072243b3d72372588561736d73afcb8df97851da224eb621ebec9dd83dd8ef721a2aebd5c9234eefd80c10b826d26818a6d57842a5ae21f3f8
|
data/lib/structurebutcher.rb
CHANGED
@@ -163,7 +163,8 @@ class StructureButcher::Storer
|
|
163
163
|
when "properties"
|
164
164
|
return JavaProperties.generate(structure)
|
165
165
|
when "hocon"
|
166
|
-
|
166
|
+
config = Hocon::ConfigFactory.parse_string(structure.to_json)
|
167
|
+
return config.root.render(Hocon::ConfigRenderOptions.new(false, true, true, false))
|
167
168
|
else
|
168
169
|
throw "Unsupported format"
|
169
170
|
end
|