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 +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/_.rb +2 -0
- data/lib/handlebarsjs/helpers/inflection/pluralize_number.rb +17 -0
- data/lib/handlebarsjs/helpers/inflection/pluralize_number_word.rb +17 -0
- data/lib/handlebarsjs/version.rb +1 -1
- data/package-lock.json +2 -2
- data/package.json +1 -1
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '09543cdd93c4a2e1b3e5fd6133bebecdbfb4613cf7a9f7690b9d00f47065f6a5'
|
4
|
+
data.tar.gz: 90cf3559a41f21fc2cee943e8de76846fe13044a9bcca9917cbf5286db1a53ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 "3 categories"
|
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
|
data/lib/handlebarsjs/version.rb
CHANGED
data/package-lock.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "handlebarsjs",
|
3
|
-
"version": "0.5.
|
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.
|
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
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.
|
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
|