handlebars-engine 0.3.2 → 0.3.3

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
2
  SHA256:
3
- metadata.gz: 93107a1a86ac4a02cadbbfd8221cba9515ff839e948e39dc37c61a3de1d15400
4
- data.tar.gz: '0091362554954a3f86ab24b7c0bc701595818b9b72af4b8780bccd3d6e4193ec'
3
+ metadata.gz: 554df376a361ca161ddf847bbe992c6d75d1cac32ba355d16c22a849781462fc
4
+ data.tar.gz: ec2e1de82a986c6dd024b1ec90af293c39f49becf8d03a628625b3cf5beada10
5
5
  SHA512:
6
- metadata.gz: 7cd86ebb6fbeb64acd29dc3c4cb0f6853a7193983c53e05d32e42490a38b70f37c8d99ae7b214e3f76923c7931b46c1d3dcda1326339dfcdfa00ec29be745ae9
7
- data.tar.gz: 6f5fd77a08e73e9f2b9f40c1c769f2eca5a0359a35e9aa02ca9fd7d430e83e8f61d6c26541f0b2bbaf5caf3ff990663962cdedfc5dd61e8892c842a8b6404fec
6
+ metadata.gz: d4e2470b91cae56cc9f6f18c079d763c10babd1eaa66d0660b13f68afce67f9513504f1515b12a6850739d0b9b19fa47a64c2e57e040fc34ebbbd43694cba55d
7
+ data.tar.gz: 0270460ce862b0e079f27b96e20829e28d84059a5b3f4d0d2301fd5257d62804cc35489db0cf39aed45c263ae74144f10fa573a89e352ee21e8b119ef9ea023b
data/CHANGELOG.md CHANGED
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.3.3] - 2022-02-17
11
+
12
+ ### Changed
13
+ - `engine/function`: remove object finalizer (fixes [#14](https://github.com/gi/handlebars-ruby/issues/14))
14
+
10
15
  ## [0.3.2] - 2022-02-17
11
16
 
12
17
  ### Changed
@@ -7,21 +7,11 @@ module Handlebars
7
7
  def initialize(context, name)
8
8
  @context = context
9
9
  @name = name
10
- ObjectSpace.define_finalizer(self, self.class.finalizer(context, name))
11
10
  end
12
11
 
13
12
  def call(*args)
14
13
  @context.call(@name, *args)
15
14
  end
16
-
17
- def self.finalizer(context, name)
18
- proc {
19
- begin
20
- context.eval("delete #{name}")
21
- rescue ThreadError # rubocop:disable Lint/SuppressedException
22
- end
23
- }
24
- end
25
15
  end
26
16
  end
27
17
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Handlebars
4
4
  class Engine
5
- VERSION = "0.3.2"
5
+ VERSION = "0.3.3"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: handlebars-engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zach Gianos
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-02-17 00:00:00.000000000 Z
11
+ date: 2022-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: handlebars-source