handlebarsjs 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/_.rb +0 -1
- data/lib/handlebarsjs/version.rb +1 -1
- data/package-lock.json +2 -2
- data/package.json +1 -1
- metadata +1 -2
- data/lib/handlebarsjs/helpers/inflection/pluralize_by_number.rb +0 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ae80a08fb0257c2b9f0ad6f48cd7c907bc15388b8a68d02ddd1b05ac69bff96
|
4
|
+
data.tar.gz: 84a1eb1d565250f52346f7454e3122759e795d7801a0c1d4cd106af71b7dae8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f308dce020f6a57b9d6c2b21997abb5add4b9ad040b8217ab033b7f1ac990a94ca2c74e2ad1ebde394a16ffce031dc40341333d50705d83b91fc62ac570cdf47
|
7
|
+
data.tar.gz: 2a6253654fcbd9c3ca30a2b4c071667bfe16814d72fa1a465edc2845fc658b88d23482b3521e9520d0585301d6a757ee4c69a8088deb49454cb869e12ef3c8e9
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
## [0.5.3](https://github.com/klueless-io/handlebarsjs/compare/v0.5.2...v0.5.3) (2022-07-12)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* add inflection: pluralize_number and pluralize_number_word ([2f5d6e1](https://github.com/klueless-io/handlebarsjs/commit/2f5d6e11b8cc6cd052496ec3f648423fbacececf))
|
7
|
+
* add inflection: pluralize_number and pluralize_number_word ([6590859](https://github.com/klueless-io/handlebarsjs/commit/6590859ddfb3d3402677939d887e70e611d18a97))
|
8
|
+
|
1
9
|
## [0.5.2](https://github.com/klueless-io/handlebarsjs/compare/v0.5.1...v0.5.2) (2022-07-12)
|
2
10
|
|
3
11
|
|
data/lib/_.rb
CHANGED
@@ -28,7 +28,6 @@ require_relative 'handlebarsjs/helpers/comparison/or'
|
|
28
28
|
require_relative 'handlebarsjs/helpers/inflection/ordinal'
|
29
29
|
require_relative 'handlebarsjs/helpers/inflection/ordinalize'
|
30
30
|
require_relative 'handlebarsjs/helpers/inflection/pluralize'
|
31
|
-
require_relative 'handlebarsjs/helpers/inflection/pluralize_by_number'
|
32
31
|
require_relative 'handlebarsjs/helpers/inflection/pluralize_number'
|
33
32
|
require_relative 'handlebarsjs/helpers/inflection/pluralize_number_word'
|
34
33
|
require_relative 'handlebarsjs/helpers/inflection/singularize'
|
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.4",
|
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.4",
|
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.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Cruwys
|
@@ -123,7 +123,6 @@ files:
|
|
123
123
|
- lib/handlebarsjs/helpers/inflection/ordinal.rb
|
124
124
|
- lib/handlebarsjs/helpers/inflection/ordinalize.rb
|
125
125
|
- lib/handlebarsjs/helpers/inflection/pluralize.rb
|
126
|
-
- lib/handlebarsjs/helpers/inflection/pluralize_by_number.rb
|
127
126
|
- lib/handlebarsjs/helpers/inflection/pluralize_number.rb
|
128
127
|
- lib/handlebarsjs/helpers/inflection/pluralize_number_word.rb
|
129
128
|
- lib/handlebarsjs/helpers/inflection/singularize.rb
|
@@ -1,17 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Handlebarsjs
|
4
|
-
module Helpers
|
5
|
-
# Inflection handling routines, eg. pluralize, singular, ordinalize
|
6
|
-
module Inflection
|
7
|
-
# PluralizeByNumber: Returns the plural form of the word based on a count
|
8
|
-
class PluralizeByNumber < Handlebarsjs::BaseHelper
|
9
|
-
register_cmdlet(Cmdlet::Inflection::PluralizeByNumber)
|
10
|
-
|
11
|
-
def to_proc
|
12
|
-
->(value, count, format, _opts) { wrapper(cmdlet.call(value, count, format)) }
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|