smolbars 0.1.1 → 0.1.2

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: 60ba4fc490e6ea38e725fe7ba31791e14d024bf5e78387aab1f05ca6b2353f29
4
- data.tar.gz: 1bf4b383ca1687c1f850734811b829b30477396efa768634a238eabd2dc8fcc5
3
+ metadata.gz: 2c86063c597fa360633865862f4b842436d6d5489b84cc9d1f9510e20dbf28dd
4
+ data.tar.gz: ff87fb9498227b9f241784568aaf179e0e4830dc0493021ea3cb07ef1339695a
5
5
  SHA512:
6
- metadata.gz: b15063c4bc1c09ef3f8cdeeb604bf992042b8a0b86180fa3c7513f8a2e435fc74eca8e731d9fc440bf1c64e256db7c1e6bc0e456d841c1ab003d5957b5c98eb1
7
- data.tar.gz: e628f36f4b0e29c288467ea25c1e4cb0a3a7a92ae9abb4d315c7c7acde496f0fd9124afa01ccffbd77903498e02721eb6e88353edccf1afcc65e69acfee4676a
6
+ metadata.gz: df4fbdf91b1fe83b5b09882265d4d6674d9f32c9099aa5f5fea0ae176d001ca772ccb23784ea0d86949d0b91e24a7fc60f58bd1c1a21820b7b59701bdf3628ca
7
+ data.tar.gz: 8460b1163060ce6759b643213e84b4a09f3f262ce3d53cfc0adc336243038ae052f53b9fcd931f004c4b8ad579065fd1c9def115d25db2708e5a602206978416
@@ -5,8 +5,8 @@ require 'securerandom'
5
5
  module Smolbars
6
6
  class Context
7
7
  def initialize(**kwargs)
8
- @@snapshot ||= MiniRacer::Snapshot.new(File.read(Handlebars::Source.bundled_path))
9
- @js = MiniRacer::Context.new(kwargs.merge(snapshot: @@snapshot))
8
+ @js = MiniRacer::Context.new(kwargs)
9
+ @js.load(Handlebars::Source.bundled_path)
10
10
  end
11
11
 
12
12
  # Note that this is a hacky JS expression builder. We cannot pass JS AST in to mini_racer so we have to
@@ -1,3 +1,3 @@
1
1
  module Smolbars
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smolbars
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charles Lowell
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-02-11 00:00:00.000000000 Z
12
+ date: 2022-02-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mini_racer
@@ -98,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
98
  - !ruby/object:Gem::Version
99
99
  version: '0'
100
100
  requirements: []
101
- rubygems_version: 3.2.22
101
+ rubygems_version: 3.2.23
102
102
  signing_key:
103
103
  specification_version: 4
104
104
  summary: Ruby bindings for the smolbars.js templating library