hocon 0.9.2 → 0.9.3

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: 4b632389a9c4957a52e78bd533c597604ae78984
4
- data.tar.gz: 1ea00e86535840794244881bbc191b45a5fe12a3
3
+ metadata.gz: 44f406e62a39a1c2cba5bdc5e8dbaad2432e60dd
4
+ data.tar.gz: dd9d83559492dc562df9d46411530e54c2a4722d
5
5
  SHA512:
6
- metadata.gz: 6276a38035c3a78654e67fcfa006429cb633f2b11bb1d3e2e1f0488f253392625508a114f4e5ddcd4c7a051b21f93608c7c0465696cce1eaf13b62f11f9a199e
7
- data.tar.gz: fdfa750c8b85bf74c1fb7692f6c52b8fddc7722b2c3f6e592c7a058a0076c825906a8046c77d50f30ec557bc197a80b887a9f0b429ef66b627ae138c488b6d4a
6
+ metadata.gz: 33e003ed097a1c85a3c77cbd3e1f3c825af00aac85a8b407ebd11755da80494eef7d7dc7972690f035b26f97a53dda00e1e410d5bd32a691c4e4a7b5680cef13
7
+ data.tar.gz: 16537a3d00192d354cc085957ff8e775b480432c14cecad153f3fd1b613a73dfef5ef18ba7839d2c11d3c38f49c7a5c0471b61de556e3bd0eaf1b9d0b7217428
@@ -1,3 +1,10 @@
1
+ ## 0.9.3
2
+
3
+ This is a bugfix release.
4
+
5
+ * Fixed a bug wherein inserting an array or a hash into a ConfigDocument would cause
6
+ "# hardcoded value" comments to be generated before every entry in the hash/array.
7
+
1
8
  ## 0.9.2
2
9
 
3
10
  This is a bugfix release
@@ -3,6 +3,7 @@
3
3
  require 'hocon/impl'
4
4
  require 'hocon/parser/config_document'
5
5
  require 'hocon/impl/config_document_parser'
6
+ require 'hocon/config_render_options'
6
7
 
7
8
  class Hocon::Impl::SimpleConfigDocument
8
9
  include Hocon::Parser::ConfigDocument
@@ -23,7 +24,9 @@ class Hocon::Impl::SimpleConfigDocument
23
24
  end
24
25
 
25
26
  def set_config_value(path, new_value)
26
- set_value(path, new_value.render.strip)
27
+ options = Hocon::ConfigRenderOptions.defaults
28
+ options.origin_comments = false
29
+ set_value(path, new_value.render(options).strip)
27
30
  end
28
31
 
29
32
  def remove_value(path)
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.2
4
+ version: 0.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Price
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2015-06-30 00:00:00.000000000 Z
15
+ date: 2015-07-14 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: bundler