hocon 0.9.5 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +14 -2
  3. data/README.md +22 -10
  4. data/lib/hocon.rb +9 -3
  5. data/lib/hocon/config_factory.rb +4 -0
  6. data/lib/hocon/config_value_factory.rb +13 -2
  7. data/lib/hocon/impl/config_reference.rb +5 -2
  8. data/lib/hocon/impl/simple_config_origin.rb +1 -1
  9. data/spec/fixtures/parse_render/example1/input.conf +21 -0
  10. data/spec/fixtures/parse_render/example1/output.conf +26 -0
  11. data/spec/fixtures/parse_render/example1/output_nocomments.conf +17 -0
  12. data/spec/fixtures/parse_render/example2/input.conf +10 -0
  13. data/spec/fixtures/parse_render/example2/output.conf +17 -0
  14. data/spec/fixtures/parse_render/example2/output_nocomments.conf +17 -0
  15. data/spec/fixtures/parse_render/example3/input.conf +2 -0
  16. data/spec/fixtures/parse_render/example3/output.conf +2 -0
  17. data/spec/fixtures/parse_render/example4/input.json +6 -0
  18. data/spec/fixtures/parse_render/example4/output.conf +6 -0
  19. data/spec/fixtures/test_utils/resources/bom.conf +2 -0
  20. data/spec/fixtures/test_utils/resources/cycle.conf +1 -0
  21. data/spec/fixtures/test_utils/resources/file-include.conf +5 -0
  22. data/spec/fixtures/test_utils/resources/include-from-list.conf +4 -0
  23. data/spec/fixtures/test_utils/resources/subdir/bar.conf +1 -0
  24. data/spec/fixtures/test_utils/resources/subdir/baz.conf +1 -0
  25. data/spec/fixtures/test_utils/resources/subdir/foo.conf +5 -0
  26. data/spec/fixtures/test_utils/resources/test01.conf +80 -0
  27. data/spec/fixtures/test_utils/resources/test01.json +4 -0
  28. data/spec/fixtures/test_utils/resources/test03.conf +36 -0
  29. data/spec/spec_helper.rb +43 -0
  30. data/spec/test_utils.rb +757 -0
  31. data/spec/unit/typesafe/config/concatenation_spec.rb +417 -0
  32. data/spec/unit/typesafe/config/conf_parser_spec.rb +822 -0
  33. data/spec/unit/typesafe/config/config_document_parser_spec.rb +494 -0
  34. data/spec/unit/typesafe/config/config_document_spec.rb +576 -0
  35. data/spec/unit/typesafe/config/config_factory_spec.rb +120 -0
  36. data/spec/unit/typesafe/config/config_node_spec.rb +552 -0
  37. data/spec/unit/typesafe/config/config_value_factory_spec.rb +85 -0
  38. data/spec/unit/typesafe/config/config_value_spec.rb +935 -0
  39. data/spec/unit/typesafe/config/hocon_spec.rb +54 -0
  40. data/spec/unit/typesafe/config/path_spec.rb +261 -0
  41. data/spec/unit/typesafe/config/public_api_spec.rb +520 -0
  42. data/spec/unit/typesafe/config/simple_config_spec.rb +112 -0
  43. data/spec/unit/typesafe/config/token_spec.rb +188 -0
  44. data/spec/unit/typesafe/config/tokenizer_spec.rb +801 -0
  45. metadata +39 -3
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.5
4
+ version: 1.0.1
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-07-14 00:00:00.000000000 Z
15
+ date: 2016-03-16 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: bundler
@@ -138,6 +138,42 @@ files:
138
138
  - lib/hocon/parser/config_document.rb
139
139
  - lib/hocon/parser/config_document_factory.rb
140
140
  - lib/hocon/parser/config_node.rb
141
+ - spec/fixtures/parse_render/example1/input.conf
142
+ - spec/fixtures/parse_render/example1/output.conf
143
+ - spec/fixtures/parse_render/example1/output_nocomments.conf
144
+ - spec/fixtures/parse_render/example2/input.conf
145
+ - spec/fixtures/parse_render/example2/output.conf
146
+ - spec/fixtures/parse_render/example2/output_nocomments.conf
147
+ - spec/fixtures/parse_render/example3/input.conf
148
+ - spec/fixtures/parse_render/example3/output.conf
149
+ - spec/fixtures/parse_render/example4/input.json
150
+ - spec/fixtures/parse_render/example4/output.conf
151
+ - spec/fixtures/test_utils/resources/bom.conf
152
+ - spec/fixtures/test_utils/resources/cycle.conf
153
+ - spec/fixtures/test_utils/resources/file-include.conf
154
+ - spec/fixtures/test_utils/resources/include-from-list.conf
155
+ - spec/fixtures/test_utils/resources/subdir/bar.conf
156
+ - spec/fixtures/test_utils/resources/subdir/baz.conf
157
+ - spec/fixtures/test_utils/resources/subdir/foo.conf
158
+ - spec/fixtures/test_utils/resources/test01.conf
159
+ - spec/fixtures/test_utils/resources/test01.json
160
+ - spec/fixtures/test_utils/resources/test03.conf
161
+ - spec/spec_helper.rb
162
+ - spec/test_utils.rb
163
+ - spec/unit/typesafe/config/concatenation_spec.rb
164
+ - spec/unit/typesafe/config/conf_parser_spec.rb
165
+ - spec/unit/typesafe/config/config_document_parser_spec.rb
166
+ - spec/unit/typesafe/config/config_document_spec.rb
167
+ - spec/unit/typesafe/config/config_factory_spec.rb
168
+ - spec/unit/typesafe/config/config_node_spec.rb
169
+ - spec/unit/typesafe/config/config_value_factory_spec.rb
170
+ - spec/unit/typesafe/config/config_value_spec.rb
171
+ - spec/unit/typesafe/config/hocon_spec.rb
172
+ - spec/unit/typesafe/config/path_spec.rb
173
+ - spec/unit/typesafe/config/public_api_spec.rb
174
+ - spec/unit/typesafe/config/simple_config_spec.rb
175
+ - spec/unit/typesafe/config/token_spec.rb
176
+ - spec/unit/typesafe/config/tokenizer_spec.rb
141
177
  homepage: https://github.com/puppetlabs/ruby-hocon
142
178
  licenses:
143
179
  - Apache License, v2
@@ -158,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
158
194
  version: '0'
159
195
  requirements: []
160
196
  rubyforge_project:
161
- rubygems_version: 2.2.2
197
+ rubygems_version: 2.5.2
162
198
  signing_key:
163
199
  specification_version: 4
164
200
  summary: HOCON Config Library