handlebarsjs 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 151163c301c19424a48a278b6685d86f01c9cde58244de9343a17834d40cef3a
4
- data.tar.gz: a857eea83005555d1541e623f081950e739d394a3b511de944e62dbd8d4851b9
3
+ metadata.gz: 6264c529d68086fcf2d2abc20838e7c46ff5a2cb176ebf211d5f44f32b15c5bd
4
+ data.tar.gz: 05726eb4303fc7b54e5fe8a07afd5392f1f48c2efadedcbb12d99dc3a88b11a2
5
5
  SHA512:
6
- metadata.gz: 7b9f7e84df1bb4afe9c3a651de43f775c27a18072ce060d4045b33b2ed0704f8992491d58c87d2d7b2b9461fdbb0a78167674963e66c1b0c9d2aa3c24ea61d62
7
- data.tar.gz: dd8774994fe3dd4b2093d7cdffdf6e708de847c790e9ad44420a65b3b9430dc58369e31f5efe5bb483aa6eb3e560936d26fd07aac4855ece300e0c1c60371b31
6
+ metadata.gz: 4d28aa4b1af80536b8a9e26390a5e0e926568bc4fb82bc9d08d5d1509dfc00ba6a017e25b9d52d219fd4baf70b17de5d8d4a7426feef5248d1246f04e45e03e9
7
+ data.tar.gz: 61ab8b27c8a27326d91ae3726d348aa987825db3a1638e5807949055819e073073a564cf6fcb042ea44d603bc3f38332c3557797c340f48859fa46320af83633
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [0.5.0](https://github.com/klueless-io/handlebarsjs/compare/v0.4.0...v0.5.0) (2022-07-06)
2
+
3
+
4
+ ### Features
5
+
6
+ * add base_helper ([d2900ae](https://github.com/klueless-io/handlebarsjs/commit/d2900ae6c2ce27a7a8ac4c92d219f0e9150354f5))
7
+
1
8
  # [0.4.0](https://github.com/klueless-io/handlebarsjs/compare/v0.3.0...v0.4.0) (2022-07-06)
2
9
 
3
10
 
@@ -3,13 +3,6 @@
3
3
  module Handlebarsjs
4
4
  # Extend base helper for each of your custom handlebars-helpers
5
5
  class BaseHelper
6
- # Wrap the parse method in a handlebars context aware block
7
- # and return as a lambda/proc so that it is available to the
8
- # Handlebars template engine
9
- def to_proc
10
- ->(value, _opts) { wrapper(parse(value)) }
11
- end
12
-
13
6
  # All child classes will generally implement this method
14
7
  def parse(value)
15
8
  value
@@ -20,5 +13,12 @@ module Handlebarsjs
20
13
  def wrapper(value)
21
14
  value
22
15
  end
16
+
17
+ # Wrap the parse method in a handlebars context aware block
18
+ # and return as a lambda/proc so that it is available to the
19
+ # Handlebars template engine
20
+ def to_proc
21
+ ->(value, _opts) { wrapper(parse(value)) }
22
+ end
23
23
  end
24
24
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Handlebarsjs
4
- VERSION = '0.5.0'
4
+ VERSION = '0.5.1'
5
5
  end
data/package-lock.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "handlebarsjs",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "handlebarsjs",
9
- "version": "0.5.0",
9
+ "version": "0.5.1",
10
10
  "devDependencies": {
11
11
  "@klueless-js/semantic-release-rubygem": "github:klueless-js/semantic-release-rubygem",
12
12
  "@semantic-release/changelog": "^6.0.1",
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "handlebarsjs",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "handlebarsjs GEM wraps the handlebars.js library and provides ruby/javascript interoperability",
5
5
  "scripts": {
6
6
  "release": "semantic-release"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: handlebarsjs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Cruwys