hocon 0.9.1 → 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b83f298bac04a371f8806c9eb4ab4813430fdad4
4
- data.tar.gz: ee461805b59d80a73c578f07d911fd34fffc7d72
3
+ metadata.gz: 4b632389a9c4957a52e78bd533c597604ae78984
4
+ data.tar.gz: 1ea00e86535840794244881bbc191b45a5fe12a3
5
5
  SHA512:
6
- metadata.gz: 7aeca7ac2e5493aabacadfb1b9d68038b2b47221229cdb310c180e1df9184a1e975eaa7e67d4828913e272d43d09c4fe1b875fd8c87d69d7e030f94e2c80d5e5
7
- data.tar.gz: f0f17f65d42707a65688911d3d3848a4fcb47c477b89945fc2de970cd12b9a0636fa376b52d9a6ef161d26c336eda1a05566ca049c96be9f52962989f6c56faa
6
+ metadata.gz: 6276a38035c3a78654e67fcfa006429cb633f2b11bb1d3e2e1f0488f253392625508a114f4e5ddcd4c7a051b21f93608c7c0465696cce1eaf13b62f11f9a199e
7
+ data.tar.gz: fdfa750c8b85bf74c1fb7692f6c52b8fddc7722b2c3f6e592c7a058a0076c825906a8046c77d50f30ec557bc197a80b887a9f0b429ef66b627ae138c488b6d4a
@@ -1,3 +1,10 @@
1
+ ## 0.9.2
2
+
3
+ This is a bugfix release
4
+
5
+ * Fixed a bug wherein attempting to insert a complex value (such as an array or a hash) into an empty
6
+ ConfigDocument would cause an undefined method error.
7
+
1
8
  ## 0.9.1
2
9
 
3
10
  This is a bugfix release.
@@ -176,7 +176,7 @@ class Hocon::Impl::ConfigNodeObject
176
176
  indentation = indentation().clone
177
177
 
178
178
  # If the value we're inserting is a complex value, we'll need to indent it for insertion
179
- if value.is_a?(Hocon::Impl::ConfigNodeComplexValue)
179
+ if value.is_a?(Hocon::Impl::ConfigNodeComplexValue) && indentation.length > 0
180
180
  indented_value = value.indent_text(indentation[-1])
181
181
  else
182
182
  indented_value = value
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hocon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Price