hocon 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +5 -0
- data/lib/hocon/impl/parseable.rb +6 -5
- data/lib/hocon/version.rb +1 -1
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 40f5c20e48d381313eebc2880286cc7789ce1c5eb543f4c76878273db778d3bb
|
4
|
+
data.tar.gz: 10322d2872f2a802762a7dc2ddda1c1bb77ab289b0c6b35df21b0afcde07af76
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad222c73cd8ffd8b5fead526e7f8e802db8be8a882db4607d0889caf942c56bbf7d6febeed86b85f4a77b5cd423b4f938eae7944c1e4dac8e63c3b9c4c1ea788
|
7
|
+
data.tar.gz: e2d9029ed095d01d799c7757b4d11480f3bfd0fda2863b89c6d5a4b39fdc31ee4180f473973d65af7e7968a9273ac47933d7a62a2954bca175476bff2fcb46a3
|
data/CHANGELOG.md
CHANGED
data/lib/hocon/impl/parseable.rb
CHANGED
@@ -35,10 +35,11 @@ class Hocon::Impl::Parseable
|
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
38
|
-
#
|
39
|
-
#
|
40
|
-
|
41
|
-
|
38
|
+
# The upstream library seems to use this as a global way of keeping track of
|
39
|
+
# how many files have been included, to avoid cycles
|
40
|
+
def self.parse_stack
|
41
|
+
Thread.current[:hocon_parse_stack] ||= []
|
42
|
+
end
|
42
43
|
|
43
44
|
MAX_INCLUDE_DEPTH = 50
|
44
45
|
|
@@ -134,7 +135,7 @@ class Hocon::Impl::Parseable
|
|
134
135
|
if (base_options.nil?)
|
135
136
|
base_options = options
|
136
137
|
end
|
137
|
-
stack =
|
138
|
+
stack = self.class.parse_stack
|
138
139
|
if stack.length >= MAX_INCLUDE_DEPTH
|
139
140
|
raise Hocon::ConfigError::ConfigParseError.new(@initial_origin,
|
140
141
|
"include statements nested more than #{MAX_INCLUDE_DEPTH} times, " +
|
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.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Price
|
@@ -163,8 +163,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
163
163
|
- !ruby/object:Gem::Version
|
164
164
|
version: '0'
|
165
165
|
requirements: []
|
166
|
-
|
167
|
-
rubygems_version: 2.5.1
|
166
|
+
rubygems_version: 3.0.6
|
168
167
|
signing_key:
|
169
168
|
specification_version: 4
|
170
169
|
summary: HOCON Config Library
|