hocon 1.2.5 → 1.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/lib/hocon/version.rb +1 -1
- metadata +1 -47
- data/spec/fixtures/hocon/by_extension/cat.conf +0 -4
- data/spec/fixtures/hocon/by_extension/cat.test +0 -4
- data/spec/fixtures/hocon/by_extension/cat.test-json +0 -3
- data/spec/fixtures/hocon/with_substitution/subst.conf +0 -2
- data/spec/fixtures/parse_render/example1/input.conf +0 -21
- data/spec/fixtures/parse_render/example1/output.conf +0 -26
- data/spec/fixtures/parse_render/example1/output_nocomments.conf +0 -17
- data/spec/fixtures/parse_render/example2/input.conf +0 -10
- data/spec/fixtures/parse_render/example2/output.conf +0 -17
- data/spec/fixtures/parse_render/example2/output_nocomments.conf +0 -17
- data/spec/fixtures/parse_render/example3/input.conf +0 -2
- data/spec/fixtures/parse_render/example3/output.conf +0 -2
- data/spec/fixtures/parse_render/example4/input.json +0 -6
- data/spec/fixtures/parse_render/example4/output.conf +0 -6
- data/spec/fixtures/test_utils/resources/bom.conf +0 -2
- data/spec/fixtures/test_utils/resources/cycle.conf +0 -1
- data/spec/fixtures/test_utils/resources/file-include.conf +0 -5
- data/spec/fixtures/test_utils/resources/include-from-list.conf +0 -4
- data/spec/fixtures/test_utils/resources/subdir/bar.conf +0 -1
- data/spec/fixtures/test_utils/resources/subdir/baz.conf +0 -1
- data/spec/fixtures/test_utils/resources/subdir/foo.conf +0 -5
- data/spec/fixtures/test_utils/resources/test01.conf +0 -80
- data/spec/fixtures/test_utils/resources/test01.json +0 -4
- data/spec/fixtures/test_utils/resources/test03.conf +0 -36
- data/spec/fixtures/test_utils/resources/utf16.conf +0 -0
- data/spec/fixtures/test_utils/resources/utf8.conf +0 -2
- data/spec/fixtures/test_utils/resources//341/232/240/341/233/207/341/232/273.conf +0 -2
- data/spec/spec_helper.rb +0 -43
- data/spec/test_utils.rb +0 -758
- data/spec/unit/cli/cli_spec.rb +0 -157
- data/spec/unit/hocon/README.md +0 -7
- data/spec/unit/hocon/hocon_spec.rb +0 -114
- data/spec/unit/typesafe/config/README.md +0 -4
- data/spec/unit/typesafe/config/concatenation_spec.rb +0 -417
- data/spec/unit/typesafe/config/conf_parser_spec.rb +0 -831
- data/spec/unit/typesafe/config/config_document_parser_spec.rb +0 -494
- data/spec/unit/typesafe/config/config_document_spec.rb +0 -576
- data/spec/unit/typesafe/config/config_factory_spec.rb +0 -120
- data/spec/unit/typesafe/config/config_node_spec.rb +0 -552
- data/spec/unit/typesafe/config/config_value_factory_spec.rb +0 -85
- data/spec/unit/typesafe/config/config_value_spec.rb +0 -959
- data/spec/unit/typesafe/config/path_spec.rb +0 -261
- data/spec/unit/typesafe/config/public_api_spec.rb +0 -520
- data/spec/unit/typesafe/config/simple_config_spec.rb +0 -112
- data/spec/unit/typesafe/config/token_spec.rb +0 -188
- 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f68757dcba1266c0fef20f731f61168ed1e3f13
|
4
|
+
data.tar.gz: 53d9b801dc7e2af70a1c5f376f0f230a2b86a707
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92e54df3a9c9ae30844fd7db5d9aa5edebea9eefe5ac84c55213d1b9e6d273054ab4238d323a22e16067525ed9114859d7e979772dc58acee00a0f1f1771c7ab
|
7
|
+
data.tar.gz: 97c91cb571eaba2776edbcecec872b7fcad141a8617e305905a349e95a349e31f32e410002ad44dc0f2f9f64144ba7c0ebb7e851b86a294eae9b1c59be8f1a2a
|
data/CHANGELOG.md
CHANGED
@@ -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
|
data/lib/hocon/version.rb
CHANGED
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.
|
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,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
|
-
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 +0,0 @@
|
|
1
|
-
include "cycle.conf"
|
@@ -1 +0,0 @@
|
|
1
|
-
bar=43
|
@@ -1 +0,0 @@
|
|
1
|
-
baz=45
|
@@ -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,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
|
-
}
|
Binary file
|
data/spec/spec_helper.rb
DELETED
@@ -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
|
-
|