Skip to content

Commit 57259f9

Browse files
authored
ci/lib: verify gem builds; require from handlebars-engine (#8)
1 parent 6c51c75 commit 57259f9

5 files changed

Lines changed: 33 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,19 @@ on:
1111
- main
1212

1313
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v2
19+
- name: Install
20+
uses: ruby/setup-ruby@v1
21+
with:
22+
ruby-version: ruby-3
23+
bundler-cache: true
24+
- name: Build
25+
run: bin/build
26+
1427
coverage:
1528
runs-on: ubuntu-latest
1629
steps:
@@ -41,7 +54,7 @@ jobs:
4154
ruby-version: ruby-3
4255
bundler-cache: true
4356
- name: Lint
44-
run: bundle exec rubocop
57+
run: bin/lint
4558

4659
test:
4760
strategy:
@@ -66,4 +79,4 @@ jobs:
6679
ruby-version: ${{ matrix.ruby }}
6780
bundler-cache: true
6881
- name: Test
69-
run: bundle exec rake
82+
run: bin/rake

.rubocop.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@ Metrics/ModuleLength:
138138
Metrics/ParameterLists:
139139
Max: 10
140140

141+
Naming/FileName:
142+
Exclude:
143+
- lib/handlebars-engine.rb
144+
141145
RSpec/ExampleLength:
142146
CountAsOne:
143147
- array

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Added
11+
- `initialize`: add path parameter ([#5](https://github.com/gi/handlebars-ruby/pull/5))
12+
- `register_helper`: accept multiple helpers as keyword parameters ([#6](https://github.com/gi/handlebars-ruby/pull/6))
13+
- `register_helper`: accept javascript function as string ([#7](https://github.com/gi/handlebars-ruby/pull/7))
14+
- `ci`: verify gem builds ([#8](https://github.com/gi/handlebars-ruby/pull/8))
15+
- `require`: allow loading from `handlebars-engine` and `handlebars/engine` ([#8](https://github.com/gi/handlebars-ruby/pull/8))
16+
17+
### Changed
18+
1019
## [0.2.0] - 2022-01-27
1120

1221
This is the initial implementation, wrapping the JavaScript Handlebars.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
# This file was generated by Bundler.
66
#
7-
# The application 'handlebars-engine' is installed as part of a gem, and
7+
# The application 'handlebars' is installed as part of a gem, and
88
# this file is here to facilitate running it.
99
#
1010

@@ -26,4 +26,4 @@ end
2626
require "rubygems"
2727
require "bundler/setup"
2828

29-
load Gem.bin_path("handlebars-engine", "handlebars-engine")
29+
load Gem.bin_path("handlebars-engine", "handlebars")

lib/handlebars-engine.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# frozen_string_literal: true
2+
3+
require "handlebars/engine"

0 commit comments

Comments
 (0)