handlebarsjs 0.5.2 → 0.5.3

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: ed3a46f299a312f82f09cc61535618d462b10b526b211043e095ab316fae0e6e
4
- data.tar.gz: da1d45766828ac721f92f958843f09daa7bacb7d810b5b93b8867ddb8788f1c8
3
+ metadata.gz: '09543cdd93c4a2e1b3e5fd6133bebecdbfb4613cf7a9f7690b9d00f47065f6a5'
4
+ data.tar.gz: 90cf3559a41f21fc2cee943e8de76846fe13044a9bcca9917cbf5286db1a53ee
5
5
  SHA512:
6
- metadata.gz: f361afb3804d173ea65b4ea912d4c571f5d56a7554479509c1250518f94907f642b4f210e7b3dd916300c99ee68765e4d0028c4fdb9c6ee5c4600757711d2735
7
- data.tar.gz: a4cc51a731376834aa9db7ce77207ca65c6124e35b74b4c219f35814ebc54673d4b3e80b28f24bf962bbb851e1c81141728620e1ddb86c6ec6c2fe7b0bbc7020
6
+ metadata.gz: 9c1ffbb3d4651661bed9271df5cdb879848e1569ab974086ccf802a7b81743128570b976b235d6c597e8b343dfa748e6c22abfcfc54caf87cbd9cf1ca5f3c574
7
+ data.tar.gz: 41199fb8108776482009c948b9be8dcb834df02affa351cf338b936f9c59b99545c8b326fd87edacc4bc7effa7255eeb42831b258f2c66ab0c81f769f9cfd977
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [0.5.2](https://github.com/klueless-io/handlebarsjs/compare/v0.5.1...v0.5.2) (2022-07-12)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * add helper - case: * ([08dcad2](https://github.com/klueless-io/handlebarsjs/commit/08dcad20601bf578a17ae703d273a7081486df8e))
7
+
1
8
  ## [0.5.1](https://github.com/klueless-io/handlebarsjs/compare/v0.5.0...v0.5.1) (2022-07-06)
2
9
 
3
10
 
data/lib/_.rb CHANGED
@@ -29,4 +29,6 @@ require_relative 'handlebarsjs/helpers/inflection/ordinal'
29
29
  require_relative 'handlebarsjs/helpers/inflection/ordinalize'
30
30
  require_relative 'handlebarsjs/helpers/inflection/pluralize'
31
31
  require_relative 'handlebarsjs/helpers/inflection/pluralize_by_number'
32
+ require_relative 'handlebarsjs/helpers/inflection/pluralize_number'
33
+ require_relative 'handlebarsjs/helpers/inflection/pluralize_number_word'
32
34
  require_relative 'handlebarsjs/helpers/inflection/singularize'
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Handlebarsjs
4
+ module Helpers
5
+ # Inflection handling routines, eg. pluralize, singular, ordinalize
6
+ module Inflection
7
+ # PluralizeNumber: Returns the plural form of the word based on a count in the format "categories"
8
+ class PluralizeNumber < Handlebarsjs::BaseHelper
9
+ register_cmdlet(Cmdlet::Inflection::PluralizeNumber)
10
+
11
+ def to_proc
12
+ ->(value, count, _opts) { wrapper(cmdlet.call(value, count)) }
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Handlebarsjs
4
+ module Helpers
5
+ # Inflection handling routines, eg. pluralize, singular, ordinalize
6
+ module Inflection
7
+ # PluralizeNumberWord: Returns the plural form of the word based on a count with the count prefixed in the format &quot;3 categories&quot;
8
+ class PluralizeNumberWord < Handlebarsjs::BaseHelper
9
+ register_cmdlet(Cmdlet::Inflection::PluralizeNumberWord)
10
+
11
+ def to_proc
12
+ ->(value, count, _opts) { wrapper(cmdlet.call(value, count)) }
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Handlebarsjs
4
- VERSION = '0.5.2'
4
+ VERSION = '0.5.3'
5
5
  end
data/package-lock.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "handlebarsjs",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "handlebarsjs",
9
- "version": "0.5.2",
9
+ "version": "0.5.3",
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.2",
3
+ "version": "0.5.3",
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.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Cruwys
@@ -124,6 +124,8 @@ files:
124
124
  - lib/handlebarsjs/helpers/inflection/ordinalize.rb
125
125
  - lib/handlebarsjs/helpers/inflection/pluralize.rb
126
126
  - lib/handlebarsjs/helpers/inflection/pluralize_by_number.rb
127
+ - lib/handlebarsjs/helpers/inflection/pluralize_number.rb
128
+ - lib/handlebarsjs/helpers/inflection/pluralize_number_word.rb
127
129
  - lib/handlebarsjs/helpers/inflection/singularize.rb
128
130
  - lib/handlebarsjs/javascript.rb
129
131
  - lib/handlebarsjs/javascript/handlebars-4.7.7.js