hocon 1.2.5 → 1.2.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -1
  3. data/lib/hocon/version.rb +1 -1
  4. metadata +1 -47
  5. data/spec/fixtures/hocon/by_extension/cat.conf +0 -4
  6. data/spec/fixtures/hocon/by_extension/cat.test +0 -4
  7. data/spec/fixtures/hocon/by_extension/cat.test-json +0 -3
  8. data/spec/fixtures/hocon/with_substitution/subst.conf +0 -2
  9. data/spec/fixtures/parse_render/example1/input.conf +0 -21
  10. data/spec/fixtures/parse_render/example1/output.conf +0 -26
  11. data/spec/fixtures/parse_render/example1/output_nocomments.conf +0 -17
  12. data/spec/fixtures/parse_render/example2/input.conf +0 -10
  13. data/spec/fixtures/parse_render/example2/output.conf +0 -17
  14. data/spec/fixtures/parse_render/example2/output_nocomments.conf +0 -17
  15. data/spec/fixtures/parse_render/example3/input.conf +0 -2
  16. data/spec/fixtures/parse_render/example3/output.conf +0 -2
  17. data/spec/fixtures/parse_render/example4/input.json +0 -6
  18. data/spec/fixtures/parse_render/example4/output.conf +0 -6
  19. data/spec/fixtures/test_utils/resources/bom.conf +0 -2
  20. data/spec/fixtures/test_utils/resources/cycle.conf +0 -1
  21. data/spec/fixtures/test_utils/resources/file-include.conf +0 -5
  22. data/spec/fixtures/test_utils/resources/include-from-list.conf +0 -4
  23. data/spec/fixtures/test_utils/resources/subdir/bar.conf +0 -1
  24. data/spec/fixtures/test_utils/resources/subdir/baz.conf +0 -1
  25. data/spec/fixtures/test_utils/resources/subdir/foo.conf +0 -5
  26. data/spec/fixtures/test_utils/resources/test01.conf +0 -80
  27. data/spec/fixtures/test_utils/resources/test01.json +0 -4
  28. data/spec/fixtures/test_utils/resources/test03.conf +0 -36
  29. data/spec/fixtures/test_utils/resources/utf16.conf +0 -0
  30. data/spec/fixtures/test_utils/resources/utf8.conf +0 -2
  31. data/spec/fixtures/test_utils/resources//341/232/240/341/233/207/341/232/273.conf +0 -2
  32. data/spec/spec_helper.rb +0 -43
  33. data/spec/test_utils.rb +0 -758
  34. data/spec/unit/cli/cli_spec.rb +0 -157
  35. data/spec/unit/hocon/README.md +0 -7
  36. data/spec/unit/hocon/hocon_spec.rb +0 -114
  37. data/spec/unit/typesafe/config/README.md +0 -4
  38. data/spec/unit/typesafe/config/concatenation_spec.rb +0 -417
  39. data/spec/unit/typesafe/config/conf_parser_spec.rb +0 -831
  40. data/spec/unit/typesafe/config/config_document_parser_spec.rb +0 -494
  41. data/spec/unit/typesafe/config/config_document_spec.rb +0 -576
  42. data/spec/unit/typesafe/config/config_factory_spec.rb +0 -120
  43. data/spec/unit/typesafe/config/config_node_spec.rb +0 -552
  44. data/spec/unit/typesafe/config/config_value_factory_spec.rb +0 -85
  45. data/spec/unit/typesafe/config/config_value_spec.rb +0 -959
  46. data/spec/unit/typesafe/config/path_spec.rb +0 -261
  47. data/spec/unit/typesafe/config/public_api_spec.rb +0 -520
  48. data/spec/unit/typesafe/config/simple_config_spec.rb +0 -112
  49. data/spec/unit/typesafe/config/token_spec.rb +0 -188
  50. data/spec/unit/typesafe/config/tokenizer_spec.rb +0 -801
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7095db4599e49bba826383bbef6a4794c47f5184
4
- data.tar.gz: 7c7a561001db4d555533c3a5fbc7ade0e0ce6012
3
+ metadata.gz: 1f68757dcba1266c0fef20f731f61168ed1e3f13
4
+ data.tar.gz: 53d9b801dc7e2af70a1c5f376f0f230a2b86a707
5
5
  SHA512:
6
- metadata.gz: 43599721551ba020537e5ccfadac221f84ea3e85d8a5489bd7113e6874d91ffd109c4699675822c9b77b7c60c1960642e027f1fc89168025e2b3e2288376a664
7
- data.tar.gz: 60ec87ed27f06f2c0fb6b10a667bf7989c77dfb1abcc993fb3c274cfb0a9b2bded126ffa4507cbe4970f7c9adc3585555b7d41c0302c252e0847a988b9597422
6
+ metadata.gz: 92e54df3a9c9ae30844fd7db5d9aa5edebea9eefe5ac84c55213d1b9e6d273054ab4238d323a22e16067525ed9114859d7e979772dc58acee00a0f1f1771c7ab
7
+ data.tar.gz: 97c91cb571eaba2776edbcecec872b7fcad141a8617e305905a349e95a349e31f32e410002ad44dc0f2f9f64144ba7c0ebb7e851b86a294eae9b1c59be8f1a2a
@@ -1,3 +1,8 @@
1
+ ## 1.2.6
2
+ This is a bugfix release
3
+
4
+ * Do not ship spec folder with gem ([PA-2942](https://tickets.puppetlabs.com/browse/PA-2942))
5
+
1
6
  ## 1.2.5
2
7
  This is a bugfix release
3
8
 
@@ -27,7 +32,7 @@ This is a bugfix release.
27
32
  This is a bugfix release.
28
33
 
29
34
  * Fixed a bug where an undefined method `value_type_name` error was being thrown due to
30
- improper calls to the class method.
35
+ improper calls to the class method.
31
36
 
32
37
  ## 1.1.0
33
38
  This is a bugfix/feature release
@@ -1,5 +1,5 @@
1
1
  module Hocon
2
2
  module Version
3
- STRING = '1.2.5'
3
+ STRING = '1.2.6'
4
4
  end
5
5
  end
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: 1.2.5
4
+ version: 1.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Price
@@ -144,52 +144,6 @@ files:
144
144
  - lib/hocon/parser/config_document_factory.rb
145
145
  - lib/hocon/parser/config_node.rb
146
146
  - lib/hocon/version.rb
147
- - spec/fixtures/hocon/by_extension/cat.conf
148
- - spec/fixtures/hocon/by_extension/cat.test
149
- - spec/fixtures/hocon/by_extension/cat.test-json
150
- - spec/fixtures/hocon/with_substitution/subst.conf
151
- - spec/fixtures/parse_render/example1/input.conf
152
- - spec/fixtures/parse_render/example1/output.conf
153
- - spec/fixtures/parse_render/example1/output_nocomments.conf
154
- - spec/fixtures/parse_render/example2/input.conf
155
- - spec/fixtures/parse_render/example2/output.conf
156
- - spec/fixtures/parse_render/example2/output_nocomments.conf
157
- - spec/fixtures/parse_render/example3/input.conf
158
- - spec/fixtures/parse_render/example3/output.conf
159
- - spec/fixtures/parse_render/example4/input.json
160
- - spec/fixtures/parse_render/example4/output.conf
161
- - spec/fixtures/test_utils/resources/bom.conf
162
- - spec/fixtures/test_utils/resources/cycle.conf
163
- - spec/fixtures/test_utils/resources/file-include.conf
164
- - spec/fixtures/test_utils/resources/include-from-list.conf
165
- - spec/fixtures/test_utils/resources/subdir/bar.conf
166
- - spec/fixtures/test_utils/resources/subdir/baz.conf
167
- - spec/fixtures/test_utils/resources/subdir/foo.conf
168
- - spec/fixtures/test_utils/resources/test01.conf
169
- - spec/fixtures/test_utils/resources/test01.json
170
- - spec/fixtures/test_utils/resources/test03.conf
171
- - spec/fixtures/test_utils/resources/utf16.conf
172
- - spec/fixtures/test_utils/resources/utf8.conf
173
- - spec/fixtures/test_utils/resources/ᚠᛇᚻ.conf
174
- - spec/spec_helper.rb
175
- - spec/test_utils.rb
176
- - spec/unit/cli/cli_spec.rb
177
- - spec/unit/hocon/README.md
178
- - spec/unit/hocon/hocon_spec.rb
179
- - spec/unit/typesafe/config/README.md
180
- - spec/unit/typesafe/config/concatenation_spec.rb
181
- - spec/unit/typesafe/config/conf_parser_spec.rb
182
- - spec/unit/typesafe/config/config_document_parser_spec.rb
183
- - spec/unit/typesafe/config/config_document_spec.rb
184
- - spec/unit/typesafe/config/config_factory_spec.rb
185
- - spec/unit/typesafe/config/config_node_spec.rb
186
- - spec/unit/typesafe/config/config_value_factory_spec.rb
187
- - spec/unit/typesafe/config/config_value_spec.rb
188
- - spec/unit/typesafe/config/path_spec.rb
189
- - spec/unit/typesafe/config/public_api_spec.rb
190
- - spec/unit/typesafe/config/simple_config_spec.rb
191
- - spec/unit/typesafe/config/token_spec.rb
192
- - spec/unit/typesafe/config/tokenizer_spec.rb
193
147
  homepage: https://github.com/puppetlabs/ruby-hocon
194
148
  licenses:
195
149
  - Apache License, v2
@@ -1,4 +0,0 @@
1
- # Comment
2
- {
3
- "meow": "cats"
4
- }
@@ -1,4 +0,0 @@
1
- # Comment
2
- {
3
- "meow": "cats"
4
- }
@@ -1,3 +0,0 @@
1
- {
2
- "meow": "cats"
3
- }
@@ -1,2 +0,0 @@
1
- a: true
2
- b: ${a}
@@ -1,21 +0,0 @@
1
- # These are some opening comments
2
- # These are some additional opening comments
3
- foo.bar {
4
- // the baz is is blah blah
5
- baz = 42
6
- boom = [1, 2, {derp : duh }, 4]
7
- empty = []
8
-
9
- # abracadabra setting
10
- abracadabra = "hi"
11
- }
12
-
13
- // as for the yippee
14
- # it entails some things
15
- foo.bar.yahoo = "yippee"
16
-
17
- # truthy
18
- foo.bar.truthy = true
19
-
20
- # falsy
21
- foo.bar.falsy = false
@@ -1,26 +0,0 @@
1
- foo={
2
- # These are some opening comments
3
- # These are some additional opening comments
4
- bar={
5
- # falsy
6
- falsy=false
7
- # truthy
8
- truthy=true
9
- # as for the yippee
10
- # it entails some things
11
- yahoo=yippee
12
- # the baz is is blah blah
13
- baz=42
14
- boom=[
15
- 1,
16
- 2,
17
- {
18
- derp=duh
19
- },
20
- 4
21
- ]
22
- empty=[]
23
- # abracadabra setting
24
- abracadabra=hi
25
- }
26
- }
@@ -1,17 +0,0 @@
1
- foo {
2
- bar {
3
- falsy=false
4
- truthy=true
5
- yahoo=yippee
6
- baz=42
7
- boom=[
8
- 1,
9
- 2,
10
- {
11
- derp=duh
12
- },
13
- 4
14
- ]
15
- abracadabra=hi
16
- }
17
- }
@@ -1,10 +0,0 @@
1
- jruby-puppet: {
2
- jruby-pools: [{environment: production}]
3
- load-path: [/usr/lib/ruby/site_ruby/1.8, /usr/lib/ruby/site_ruby/1.8]
4
- master-conf-dir: /etc/puppet
5
- master-var-dir: /var/lib/puppet
6
- }
7
-
8
- webserver: {
9
- host: 1.2.3.4
10
- }
@@ -1,17 +0,0 @@
1
- jruby-puppet {
2
- jruby-pools=[
3
- {
4
- environment=production
5
- }
6
- ]
7
- load-path=[
8
- "/usr/lib/ruby/site_ruby/1.8",
9
- "/usr/lib/ruby/site_ruby/1.8"
10
- ]
11
- master-conf-dir="/etc/puppet"
12
- master-var-dir="/var/lib/puppet"
13
- }
14
-
15
- webserver {
16
- host="1.2.3.4"
17
- }
@@ -1,17 +0,0 @@
1
- jruby-puppet {
2
- jruby-pools=[
3
- {
4
- environment=production
5
- }
6
- ]
7
- load-path=[
8
- "/usr/lib/ruby/site_ruby/1.8",
9
- "/usr/lib/ruby/site_ruby/1.8"
10
- ]
11
- master-conf-dir="/etc/puppet"
12
- master-var-dir="/var/lib/puppet"
13
- }
14
-
15
- webserver {
16
- host="1.2.3.4"
17
- }
@@ -1,2 +0,0 @@
1
- a: true
2
- b: ${a}
@@ -1,2 +0,0 @@
1
- a=true
2
- b=true
@@ -1,6 +0,0 @@
1
- {
2
- "kermit": "frog",
3
- "miss": "piggy",
4
- "bert": "ernie",
5
- "janice": "guitar"
6
- }
@@ -1,6 +0,0 @@
1
- {
2
- "kermit"="frog",
3
- "miss"="piggy",
4
- "bert"="ernie",
5
- "janice"="guitar"
6
- }
@@ -1,2 +0,0 @@
1
- #
2
- foo = bar
@@ -1 +0,0 @@
1
- include "cycle.conf"
@@ -1,5 +0,0 @@
1
- base=41
2
- # included without file() in a subdir
3
- include "subdir/foo.conf"
4
- # included using file() in a subdir
5
- include file("subdir/baz.conf")
@@ -1,4 +0,0 @@
1
- // The {} inside the [] is needed because
2
- // just [ include ] means an array with the
3
- // string "include" in it.
4
- a = [ { include "test01.conf" } ]
@@ -1,5 +0,0 @@
1
- foo=42
2
- # included without file()
3
- include "bar.conf"
4
- # included using file()
5
- include file("bar-file.conf")
@@ -1,80 +0,0 @@
1
- {
2
- "ints" : {
3
- "fortyTwo" : 42,
4
- "fortyTwoAgain" : ${ints.fortyTwo}
5
- },
6
-
7
- "floats" : {
8
- "fortyTwoPointOne" : 42.1,
9
- "fortyTwoPointOneAgain" : ${floats.fortyTwoPointOne}
10
- },
11
-
12
- "strings" : {
13
- "abcd" : "abcd",
14
- "abcdAgain" : ${strings.a}${strings.b}${strings.c}${strings.d},
15
- "a" : "a",
16
- "b" : "b",
17
- "c" : "c",
18
- "d" : "d",
19
- "concatenated" : null bar 42 baz true 3.14 hi,
20
- "double" : "3.14",
21
- "number" : "57",
22
- "null" : "null",
23
- "true" : "true",
24
- "yes" : "yes",
25
- "false" : "false",
26
- "no" : "no"
27
- },
28
-
29
- "arrays" : {
30
- "empty" : [],
31
- "ofInt" : [1, 2, 3],
32
- "ofString" : [ ${strings.a}, ${strings.b}, ${strings.c} ],
33
- "ofDouble" : [3.14, 4.14, 5.14],
34
- "ofNull" : [null, null, null],
35
- "ofBoolean" : [true, false],
36
- "ofArray" : [${arrays.ofString}, ${arrays.ofString}, ${arrays.ofString}],
37
- "ofObject" : [${ints}, ${booleans}, ${strings}],
38
- "firstElementNotASubst" : [ "a", ${strings.b} ]
39
- },
40
-
41
- "booleans" : {
42
- "true" : true,
43
- "trueAgain" : ${booleans.true},
44
- "false" : false,
45
- "falseAgain" : ${booleans.false}
46
- },
47
-
48
- "nulls" : {
49
- "null" : null,
50
- "nullAgain" : ${nulls.null}
51
- },
52
-
53
- "durations" : {
54
- "second" : 1s,
55
- "secondsList" : [1s,2seconds,3 s, 4000],
56
- "secondAsNumber" : 1000,
57
- "halfSecond" : 0.5s,
58
- "millis" : 1 milli,
59
- "micros" : 2000 micros
60
- },
61
-
62
- "memsizes" : {
63
- "meg" : 1M,
64
- "megsList" : [1M, 1024K, 1048576],
65
- "megAsNumber" : 1048576,
66
- "halfMeg" : 0.5M
67
- },
68
-
69
- "system" : {
70
- "javaversion" : ${?java.version},
71
- "userhome" : ${?user.home},
72
- "home" : ${?HOME},
73
- "pwd" : ${?PWD},
74
- "shell" : ${?SHELL},
75
- "lang" : ${?LANG},
76
- "path" : ${?PATH},
77
- "not_here" : ${?NOT_HERE},
78
- "concatenated" : Your Java version is ${?system.javaversion} and your user.home is ${?system.userhome}
79
- }
80
- }
@@ -1,4 +0,0 @@
1
- {
2
- "fromJson1" : 1,
3
- "fromJsonA" : "A"
4
- }
@@ -1,36 +0,0 @@
1
- {
2
- "test01" : {
3
- "ints" : 12,
4
- include "test01",
5
- "booleans" : 42
6
- },
7
-
8
- "test02" : {
9
- include
10
-
11
- "test02.conf"
12
- },
13
-
14
- "equiv01" : {
15
- include "equiv01/original.json"
16
- },
17
-
18
- # missing includes are supposed to be silently ignored
19
- nonexistent {
20
- include "nothere"
21
- include "nothere.conf"
22
- include "nothere.json"
23
- include "nothere.properties"
24
- }
25
-
26
- # make sure included file substitutions fall back to parent file,
27
- # both when the include is at the root (so doesn't need to have
28
- # substitutions adjusted) and when it is not.
29
- foo="This is in the including file"
30
- bar="This is in the including file"
31
- include "test03-included.conf"
32
-
33
- subtree {
34
- include "test03-included.conf"
35
- }
36
- }
@@ -1,2 +0,0 @@
1
- #
2
- ᚠᛇᚻ = ᛫ᛒᛦᚦ᛫ᚠᚱᚩᚠᚢ
@@ -1,2 +0,0 @@
1
- #
2
- ᚠᛇᚻ = ᛫ᛒᛦᚦ᛫ᚠᚱᚩᚠᚢ
@@ -1,43 +0,0 @@
1
- # encoding: utf-8
2
-
3
- FIXTURE_DIR = File.join(dir = File.expand_path(File.dirname(__FILE__)), "fixtures")
4
-
5
- EXAMPLE1 = { :hash =>
6
- {"foo" => {
7
- "bar" => {
8
- "baz" => 42,
9
- "abracadabra" => "hi",
10
- "yahoo" => "yippee",
11
- "boom" => [1, 2, {"derp" => "duh"}, 4],
12
- "empty" => [],
13
- "truthy" => true,
14
- "falsy" => false
15
- }}},
16
- :name => "example1",
17
- }
18
-
19
- EXAMPLE2 = { :hash =>
20
- {"jruby-puppet"=> {
21
- "jruby-pools" => [{"environment" => "production"}],
22
- "load-path" => ["/usr/lib/ruby/site_ruby/1.8", "/usr/lib/ruby/site_ruby/1.8"],
23
- "master-conf-dir" => "/etc/puppet",
24
- "master-var-dir" => "/var/lib/puppet",
25
- },
26
- "webserver" => {"host" => "1.2.3.4"}},
27
- :name => "example2",
28
- }
29
-
30
- EXAMPLE3 = { :hash =>
31
- {"a" => true,
32
- "b" => true},
33
- :name => "example3",
34
- }
35
-
36
- EXAMPLE4 = { :hash =>
37
- {"kermit" => "frog",
38
- "miss" => "piggy",
39
- "bert" => "ernie",
40
- "janice" => "guitar"},
41
- :name => "example4",
42
- }
43
-