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 +4 -4
- data/.builders/boot.rb +1 -4
- data/lib/k_manager/cli/new.rb +10 -3
- data/lib/k_manager/resources/web_resource.rb +1 -1
- data/lib/k_manager/version.rb +1 -1
- data/lib/k_manager.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c5c48c7059e984d1169c49fc9f6a09bf76fccf4e365d38c5c2e59ff16c33c252
|
4
|
+
data.tar.gz: 43c93a025caaac0c35c4efbb64d04649dfd3956fc545b18b9488905df38d2d46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
data/lib/k_manager/cli/new.rb
CHANGED
@@ -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
|
-
|
113
|
-
|
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
|
-
|
22
|
+
Cmdlet::Case::Snake.new.call(last_segment)
|
23
23
|
end
|
24
24
|
|
25
25
|
def default_scheme
|
data/lib/k_manager/version.rb
CHANGED
data/lib/k_manager.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2022-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cmdlet
|