handlebars-engine 0.3.0 → 0.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
2
  SHA256:
3
- metadata.gz: cad7fc20a466c4635a87db80dcd3996ef8753bfb6fdbea1d9f90e4463403850b
4
- data.tar.gz: c3613182647712f6b9dc8d4da55721e546c1cd4786956524aa5596338e656686
3
+ metadata.gz: 2de45a7681908a24300e3a25cbe7c21b4d8d5b298dc82b53bc3edaef26f55bb4
4
+ data.tar.gz: d2afacff1230d65503a5b0c122b6a95dd53938d0fd42c04c371862024c846535
5
5
  SHA512:
6
- metadata.gz: 7d28c6fe7442a645a4f4c463776bde45cfece64c431538fe799380f769c520f9ff38a7f3b4bbc619dd366e81d21ba46a0b8c8466e15000c6eec852a3fba499b1
7
- data.tar.gz: d2cf108b5e1a029de806fba2366e0a5ff6060d1ac1898e51c98b1242ed9f918ef95f2ef92bb90c57703f11ac4d41044833797f30e97ebea6877b0ae7e9050011
6
+ metadata.gz: 49847c2af822e87e0ee9172f3f8e70a53d7fcd14aa957e5143bce1f501582f95bf4fe9fc03e93a261843a6f98a15c6a82537430ebc415dc7b5e20511cb9930d0
7
+ data.tar.gz: 040e2931e222abf524d8379ff8b079354b292a31be9c5ce8097ccfbe154989cbf8233c9602d2319b4502f54b2828ad2063665512bd996416eaf0c47fcc1af1ac
data/CHANGELOG.md CHANGED
@@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.3.1] - 2022-02-04
11
+
12
+ ### Added
13
+ - `engine`: added `Error` class
14
+ - `specs`: added tests for (pre)compiling with options
15
+
16
+ ### Changed
17
+ - `gem`/`readme`: updated description
18
+
10
19
  ## [0.3.0] - 2022-01-31
11
20
 
12
21
  ### Added
data/README.md CHANGED
@@ -1,12 +1,22 @@
1
1
  # Handlebars::Engine
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/handlebars-engine.svg)](https://rubygems.org/gems/handlebars-engine)
4
- [![Build Status](https://github.com/gi/handlebars-ruby/actions/workflows/ci.yml/badge.svg)](https://github.com/gi/handlebars-ruby/actions/workflows/ci.yml)
4
+ [![CI Status](https://github.com/gi/handlebars-ruby/actions/workflows/ci.yml/badge.svg)](https://github.com/gi/handlebars-ruby/actions/workflows/ci.yml)
5
5
  [![Test Coverage](https://api.codeclimate.com/v1/badges/45d98ad9e12ee3384161/test_coverage)](https://codeclimate.com/github/gi/handlebars-ruby/test_coverage)
6
6
  [![Maintainability](https://api.codeclimate.com/v1/badges/45d98ad9e12ee3384161/maintainability)](https://codeclimate.com/github/gi/handlebars-ruby/maintainability)
7
7
  [![MIT License](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE.txt)
8
8
 
9
- A simple interface to [Handlebars.js](https://handlebarsjs.com) for Ruby.
9
+ A complete interface to [Handlebars.js](https://handlebarsjs.com) for Ruby.
10
+
11
+ `Handlebars::Engine` provides a complete Ruby API for the official JavaScript
12
+ version of Handlebars, including the abilities to register Ruby blocks/procs as
13
+ Handlebars helper functions and to dynamically register partials.
14
+
15
+ It uses [MiniRacer](https://github.com/rubyjs/mini_racer) for the bridge between
16
+ Ruby and the V8 JavaScript engine.
17
+
18
+ `Handlebars::Engine` was created as a replacement for
19
+ [handlebars.rb](https://github.com/cowboyd/handlebars.rb).
10
20
 
11
21
  ## Installation
12
22
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Handlebars
4
4
  class Engine
5
- VERSION = "0.3.0"
5
+ VERSION = "0.3.1"
6
6
  end
7
7
  end
@@ -12,6 +12,8 @@ module Handlebars
12
12
  # This API follows the JavaScript API as closely as possible:
13
13
  # https://handlebarsjs.com/api-reference/.
14
14
  class Engine
15
+ Error = MiniRacer::RuntimeError
16
+
15
17
  # Creates a new instance.
16
18
  #
17
19
  # @param lazy [true, false] immediately loads and initializes the JavaScript
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.0
4
+ version: 0.3.1
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-01-31 00:00:00.000000000 Z
11
+ date: 2022-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: handlebars-source
@@ -38,7 +38,16 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
- description: " A simple interface to Handlebars.js for Ruby.\n"
41
+ description: |2
42
+ A complete interface to Handlebars.js for Ruby.
43
+
44
+ Handlebars::Engine provides a complete Ruby API for the official JavaScript
45
+ version of Handlebars, including the abilities to register Ruby blocks/procs
46
+ as Handlebars helper functions and to dynamically register partials.
47
+
48
+ It uses MiniRacer for the bridge between Ruby and the V8 JavaScript engine.
49
+
50
+ Handlebars::Engine was created as a replacement for handlebars.rb.
42
51
  email:
43
52
  - zach.gianos+git@gmail.com
44
53
  executables:
@@ -80,5 +89,5 @@ requirements: []
80
89
  rubygems_version: 3.3.3
81
90
  signing_key:
82
91
  specification_version: 4
83
- summary: A simple interface to Handlebars.js for Ruby.
92
+ summary: A complete interface to Handlebars.js for Ruby.
84
93
  test_files: []