k_manager 0.0.35 → 0.0.36

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: 4138ffde5db58d882f4367513c5b1aa7f1e57b68eb7bcc4b4f57ed60fc8252aa
4
- data.tar.gz: e47eb62bb1a24a87b44a41fa53fff2719ec8f7a43520fbcef6e435bac52f4f31
3
+ metadata.gz: c5c48c7059e984d1169c49fc9f6a09bf76fccf4e365d38c5c2e59ff16c33c252
4
+ data.tar.gz: 43c93a025caaac0c35c4efbb64d04649dfd3956fc545b18b9488905df38d2d46
5
5
  SHA512:
6
- metadata.gz: 281e835be0dbe14b012462d1a10247e5452fbb527849031ecbc1df9c5d73182d7f18f66f85ee60ce75ec5010769178d7a1e1ede5ba3a9ee0a92c9e2b681619d2
7
- data.tar.gz: b3ea44fbc8697d7934ece6811881d60470dbb55ccb1eb4d92e1345677150d62d3ac1f9a1558a68a0eb600ecfd2fc353bccbfd2a3604203dbd9e01a7703648986
6
+ metadata.gz: 5e93f772f235c721d062543c44531c2936cde540d07b68f5dd38616bdfd523c844b07151a287af69eb6a4bad7b4b63e3b1534f06a5ab71ad635265d6ffb3a32e
7
+ data.tar.gz: f49f54d2b4d63f84cebfc3e1c67fc17ad53b17619d86b4cad32fbed365d38c80a7ef7ea19be040b865ac284363159e1ed2f4d308e41edd6222e3b7966efe79b5
data/.builders/boot.rb CHANGED
@@ -7,10 +7,7 @@ CONFIG_KEY = :k_manager
7
7
  log.kv 'working folder', Dir.pwd
8
8
 
9
9
  KConfig.configure do |config|
10
- config.handlebars.defaults.add_array_defaults
11
- config.handlebars.defaults.add_case_defaults
12
- config.handlebars.defaults.add_comparison_defaults
13
- config.handlebars.defaults.add_inflection_defaults
10
+ config.handlebars.defaults.add_all_defaults
14
11
  end
15
12
 
16
13
  # def camel
@@ -108,9 +108,16 @@ module KManager
108
108
 
109
109
  # rubocop:disable Metrics/AbcSize
110
110
  def get_builder(builder_folder, template_folder)
111
- Handlebars::Helpers.configure do |config|
112
- config.helper_config_file = File.join(Gem.loaded_specs['handlebars-helpers'].full_gem_path, '.handlebars_helpers.json')
113
- config.string_formatter_config_file = File.join(Gem.loaded_specs['handlebars-helpers'].full_gem_path, '.handlebars_string_formatters.json')
111
+ # Handlebars::Helpers.configure do |config|
112
+ # config.helper_config_file = File.join(Gem.loaded_specs['handlebars-helpers'].full_gem_path, '.handlebars_helpers.json')
113
+ # config.string_formatter_config_file = File.join(Gem.loaded_specs['handlebars-helpers'].full_gem_path, '.handlebars_string_formatters.json')
114
+ # end
115
+
116
+ KConfig.configure do |config|
117
+ config.handlebars.defaults.add_array_defaults
118
+ config.handlebars.defaults.add_case_defaults
119
+ config.handlebars.defaults.add_comparison_defaults
120
+ config.handlebars.defaults.add_inflection_defaults
114
121
  end
115
122
 
116
123
  KConfig.configure(:starter_template) do |config|
@@ -19,7 +19,7 @@ module KManager
19
19
  # Infer key is the file name without the extension stored in dash-case
20
20
  def infer_key
21
21
  last_segment = uri.path.split('/').last
22
- Handlebars::Helpers::StringFormatting::Snake.new.parse(last_segment)
22
+ Cmdlet::Case::Snake.new.call(last_segment)
23
23
  end
24
24
 
25
25
  def default_scheme
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module KManager
4
- VERSION = '0.0.35'
4
+ VERSION = '0.0.36'
5
5
  end
data/lib/k_manager.rb CHANGED
@@ -5,6 +5,7 @@ require 'dry-struct'
5
5
  require 'forwardable'
6
6
  require 'k_log'
7
7
  require 'k_config'
8
+ require 'cmdlet'
8
9
  require 'k_doc'
9
10
  require 'k_domain'
10
11
  require 'k_director'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: k_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.35
4
+ version: 0.0.36
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Cruwys
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-07-14 00:00:00.000000000 Z
11
+ date: 2022-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cmdlet