Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions .github/workflows/ci.yml
Original file line numberDiff line numberDiff line change
Expand Up@@ -11,6 +11,19 @@ on:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install
uses: ruby/setup-ruby@v1
with:
ruby-version: ruby-3
bundler-cache: true
- name: Build
run: bin/build

coverage:
runs-on: ubuntu-latest
steps:
Expand DownExpand Up@@ -41,7 +54,7 @@ jobs:
ruby-version: ruby-3
bundler-cache: true
- name: Lint
run: bundle exec rubocop
run: bin/lint

test:
strategy:
Expand All@@ -66,4 +79,4 @@ jobs:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Test
run: bundle exec rake
run: bin/rake
4 changes: 4 additions & 0 deletions .rubocop.yml
Original file line numberDiff line numberDiff line change
Expand Up@@ -138,6 +138,10 @@ Metrics/ModuleLength:
Metrics/ParameterLists:
Max: 10

Naming/FileName:
Exclude:
- lib/handlebars-engine.rb

RSpec/ExampleLength:
CountAsOne:
- array
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line numberDiff line numberDiff line change
Expand Up@@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added
- `initialize`: add path parameter ([#5](https://github.com/gi/handlebars-ruby/pull/5))
- `register_helper`: accept multiple helpers as keyword parameters ([#6](https://github.com/gi/handlebars-ruby/pull/6))
- `register_helper`: accept javascript function as string ([#7](https://github.com/gi/handlebars-ruby/pull/7))
- `ci`: verify gem builds ([#8](https://github.com/gi/handlebars-ruby/pull/8))
- `require`: allow loading from `handlebars-engine` and `handlebars/engine` ([#8](https://github.com/gi/handlebars-ruby/pull/8))

### Changed

## [0.2.0] - 2022-01-27

This is the initial implementation, wrapping the JavaScript Handlebars.
Expand Down
4 changes: 2 additions & 2 deletions bin/handlebars-engine → bin/handlebars
Original file line numberDiff line numberDiff line change
Expand Up@@ -4,7 +4,7 @@
#
# This file was generated by Bundler.
#
# The application 'handlebars-engine' is installed as part of a gem, and
# The application 'handlebars' is installed as part of a gem, and
# this file is here to facilitate running it.
#

Expand All@@ -26,4 +26,4 @@ end
require "rubygems"
require "bundler/setup"

load Gem.bin_path("handlebars-engine", "handlebars-engine")
load Gem.bin_path("handlebars-engine", "handlebars")
3 changes: 3 additions & 0 deletions lib/handlebars-engine.rb
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
# frozen_string_literal: true

require "handlebars/engine"