cmdlet 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d2f90c89d289ef06c536a7d11f99415ce7edd32e81dafa7b4886ba9bc54a87ac
4
- data.tar.gz: 26d34c6d9a0d54be7cdcf403a92096919391dc14e547f6971e18aab22601ee6c
3
+ metadata.gz: d5faa2f1cc957beed6274a4da073eae8f3c8dd9b937a99f2edb1fee7adcefe36
4
+ data.tar.gz: 9baead36a85c44b8427f5cbf14164f18adf13dbaf2a05d6cacc7cbdd444e8ab2
5
5
  SHA512:
6
- metadata.gz: eed56d8e114624213419b305e1c5b609ed39a67d88749a9bc676a4d96b72e0cfceba6301102ecba142837834b18421d5e19ae73a3537e56636b6cac8411668db
7
- data.tar.gz: d5e22d7073e0edb2b781a69a15b861f572b85602e22dea4e8736eea72228db6f696b368a3ce402a48b53eebe8610b0076c6d5f71e9191941a68011e4ea4d8b86
6
+ metadata.gz: 5bd1875dcf63c87dfd8f7b589083a8b6919857cbae800934872637fb949143181851ae026683f20245927ec84a012b3fb6bf7647bde66f742f5ed6fbbcf9de3b
7
+ data.tar.gz: b856cca6babb797456e7411ae43b21c47580460d514a3d4d8d3e7f22e5ba886644c83b599bda5ee60dc1d6e65dbc96aadf38c09722786c86a30fa7505b86733d
data/.builders/boot.rb CHANGED
@@ -8,34 +8,11 @@ CONFIG_KEY = :cmdlet
8
8
 
9
9
  log.kv 'working folder', Dir.pwd
10
10
 
11
- Handlebars::Helpers.configure do |config|
12
- config.helper_config_file = File.join(Gem.loaded_specs['handlebars-helpers'].full_gem_path, '.handlebars_helpers.json')
13
- config.string_formatter_config_file = File.join(Gem.loaded_specs['handlebars-helpers'].full_gem_path, '.handlebars_string_formatters.json')
14
- end
15
-
16
- def camel
17
- require 'handlebars/helpers/string_formatting/camel'
18
- Handlebars::Helpers::StringFormatting::Camel.new
19
- end
20
-
21
- def titleize
22
- require 'handlebars/helpers/string_formatting/titleize'
23
- Handlebars::Helpers::StringFormatting::Titleize.new
24
- end
25
-
26
- def pluralize
27
- require 'handlebars/helpers/inflection/pluralize'
28
- Handlebars::Helpers::Inflection::Pluralize.new
29
- end
30
-
31
- def singularize
32
- require 'handlebars/helpers/inflection/singularize'
33
- Handlebars::Helpers::Inflection::Singularize.new
34
- end
35
-
36
- def dasherize
37
- require 'handlebars/helpers/string_formatting/dasherize'
38
- Handlebars::Helpers::StringFormatting::Dasherize.new
11
+ KConfig.configure do |config|
12
+ config.handlebars.defaults.add_array_defaults
13
+ config.handlebars.defaults.add_case_defaults
14
+ config.handlebars.defaults.add_comparison_defaults
15
+ config.handlebars.defaults.add_inflection_defaults
39
16
  end
40
17
 
41
18
  def k_builder
@@ -54,7 +54,7 @@ class CmdletDirector < KDirector::Directors::BaseDirector
54
54
  category = builder.cmdlets.first[:category]
55
55
  handlebars_category_configuration_file = "handlebarsjs/helpers/#{category}/default_configuration.rb"
56
56
 
57
- oadd(handlebars_category_configuration_file, template_file: 'handlebars_helper_default_configuration.rb', cmdlets: builder.cmdlets)
57
+ add(handlebars_category_configuration_file, template_file: 'handlebars_helper_default_configuration.rb', cmdlets: builder.cmdlets)
58
58
  end
59
59
 
60
60
 
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [0.6.0](https://github.com/klueless-io/cmdlet/compare/v0.5.0...v0.6.0) (2022-07-13)
2
+
3
+
4
+ ### Features
5
+
6
+ * align cmdlet/helper GEM versions ([3fcf532](https://github.com/klueless-io/cmdlet/commit/3fcf532686d646492095cbb31ab08a9213b283b9))
7
+
1
8
  # [0.5.0](https://github.com/klueless-io/cmdlet/compare/v0.4.2...v0.5.0) (2022-07-12)
2
9
 
3
10
 
@@ -6,6 +6,7 @@ module Cmdlet
6
6
  def call(value)
7
7
  value
8
8
  end
9
+ alias parse call
9
10
 
10
11
  # String tokenizer will clean up a string so that
11
12
  # all sorts of case formatted strings can be
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cmdlet
4
- VERSION = '0.6.0'
4
+ VERSION = '0.6.1'
5
5
  end
data/package-lock.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "cmdlet",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "cmdlet",
9
- "version": "0.6.0",
9
+ "version": "0.6.1",
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": "cmdlet",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "Cmdlet provides a set of functions (wrapped in the command pattern) that perform simple actions",
5
5
  "scripts": {
6
6
  "release": "semantic-release"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cmdlet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Cruwys
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.0.3
33
+ version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.0.3
40
+ version: '0'
41
41
  description: " Cmdlet provides a set of functions (wrapped in the command pattern)
42
42
  that perform simple actions\n"
43
43
  email: