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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: b72330472361da172c31cf054a458eb71e6bc004
4
- data.tar.gz: bd22529837380ddb9c7b63ec84992d072d8a037a
2
+ SHA256:
3
+ metadata.gz: 40f5c20e48d381313eebc2880286cc7789ce1c5eb543f4c76878273db778d3bb
4
+ data.tar.gz: 10322d2872f2a802762a7dc2ddda1c1bb77ab289b0c6b35df21b0afcde07af76
5
5
  SHA512:
6
- metadata.gz: bc23b613936d932858284d1e42d3c5467434f83ddcf4795af10223ed79644dad1351ea08159058c3ad9742d95b2c9ec317388b9c9653e5f68b5e7757935c44a6
7
- data.tar.gz: 473ba874f373c765dddea6e7529a458e52d043b3b35cc191dc43aa04ad6a99a792fd5ba664e4812be3d5b1f5a1e9463ca2b1a3c85e1e5599f3450be8438d0cc8
6
+ metadata.gz: ad222c73cd8ffd8b5fead526e7f8e802db8be8a882db4607d0889caf942c56bbf7d6febeed86b85f4a77b5cd423b4f938eae7944c1e4dac8e63c3b9c4c1ea788
7
+ data.tar.gz: e2d9029ed095d01d799c7757b4d11480f3bfd0fda2863b89c6d5a4b39fdc31ee4180f473973d65af7e7968a9273ac47933d7a62a2954bca175476bff2fcb46a3
@@ -1,3 +1,8 @@
1
+ ## 1.3.1
2
+ This is a bugfix release
3
+
4
+ * Fix a bug when using the library in multiple threads ([HC-105](https://tickets.puppetlabs.com/browse/HC-105))
5
+
1
6
  ## 1.3.0
2
7
  This is a feature release
3
8
 
@@ -35,10 +35,11 @@ class Hocon::Impl::Parseable
35
35
  end
36
36
  end
37
37
 
38
- # Changed this to a class variable because the upstream library seems to use it
39
- # as a global way of keeping track of how many files have been included, to
40
- # avoid cycles
41
- @@parse_stack= []
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 = @@parse_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, " +
@@ -1,5 +1,5 @@
1
1
  module Hocon
2
2
  module Version
3
- STRING = '1.3.0'
3
+ STRING = '1.3.1'
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.3.0
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
- rubyforge_project:
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