eztek-mediat_r 1.0.2 → 1.0.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/lib/ez/mediat_r/version.rb +1 -1
- data/lib/generators/{commands → command}/USAGE +1 -1
- data/lib/generators/{commands/commands_generator.rb → command/command_generator.rb} +4 -5
- data/lib/generators/{commands → command}/templates/command_handler_template.template +0 -0
- data/lib/generators/{commands → command}/templates/command_template.template +0 -0
- data/lib/generators/{commands → command}/templates/command_validator_template.template +0 -0
- data/lib/generators/{queries → query}/USAGE +1 -1
- data/lib/generators/{queries/queries_generator.rb → query/query_generator.rb} +4 -4
- data/lib/generators/{queries/templates/queries_handler_template.template → query/templates/query_handler_template.template} +0 -0
- data/lib/generators/{queries/templates/queries_template.template → query/templates/query_template.template} +0 -0
- data/lib/generators/{queries/templates/queries_validator_template.template → query/templates/query_validator_template.template} +0 -0
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 70e8616aa317335bb98b389dfb36643cf91709a1f2c1b34bf339b3eff13d85e1
|
4
|
+
data.tar.gz: d8e6d3c5f1aa4b8f9f03491ab7e944ef1adf8f801f4ebc714fa271c17176ea21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43150555a3c18fa15a3b15d77f3fbee7493c17a2a3353e2e6ab3c2e0fcd7a862c321b53a9413bc9a4f369a74f52bd23d96ec68637c346407cba20bb46f73ac1d
|
7
|
+
data.tar.gz: b28f43ec9bba0f46f3345d2acb07dd1665cafbf2b844cd6abcffb32f6d27ccd1d7356cd8bedd7a246802032e2b6727bf2acf8eb0916d9e18445c50b39bbbfd85
|
data/lib/ez/mediat_r/version.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
class
|
1
|
+
class CommandGenerator < Rails::Generators::Base
|
2
2
|
source_root File.expand_path('../templates', __FILE__)
|
3
3
|
argument :model, type: :string
|
4
4
|
argument :name, type: :string
|
@@ -14,18 +14,17 @@ class CommandsGenerator < Rails::Generators::Base
|
|
14
14
|
generate_command_validator if options.validator?
|
15
15
|
end
|
16
16
|
|
17
|
-
|
18
17
|
private
|
19
18
|
|
20
19
|
def generate_command
|
21
|
-
template '
|
20
|
+
template 'command_template.template', "app/cqrs/#{model.underscore}/commands/#{name.underscore}_command.rb"
|
22
21
|
end
|
23
22
|
|
24
23
|
def generate_command_validator
|
25
|
-
template '
|
24
|
+
template 'command_validator_template.template', "app/cqrs/#{model.underscore}/commands/validators/#{name.underscore}_command_validator.rb"
|
26
25
|
end
|
27
26
|
|
28
27
|
def generate_command_handler
|
29
|
-
template '
|
28
|
+
template 'command_handler_template.template', "app/cqrs/#{model.underscore}/commands/handlers/#{name.underscore}_command_handler.rb"
|
30
29
|
end
|
31
30
|
end
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,4 +1,4 @@
|
|
1
|
-
class
|
1
|
+
class QueryGenerator < Rails::Generators::Base
|
2
2
|
source_root File.expand_path('../templates', __FILE__)
|
3
3
|
argument :model, type: :string
|
4
4
|
argument :name, type: :string
|
@@ -17,14 +17,14 @@ class QueriesGenerator < Rails::Generators::Base
|
|
17
17
|
private
|
18
18
|
|
19
19
|
def generate_query
|
20
|
-
template '
|
20
|
+
template 'query_template.template', "app/cqrs/#{model.underscore}/queries/#{name.underscore}_query.rb"
|
21
21
|
end
|
22
22
|
|
23
23
|
def generate_query_validator
|
24
|
-
template '
|
24
|
+
template 'query_validator_template.template', "app/cqrs/#{model.underscore}/queries/validators/#{name.underscore}_query_validator.rb"
|
25
25
|
end
|
26
26
|
|
27
27
|
def generate_query_handler
|
28
|
-
template '
|
28
|
+
template 'query_handler_template.template', "app/cqrs/#{model.underscore}/queries/handlers/#{name.underscore}_query_handler.rb"
|
29
29
|
end
|
30
30
|
end
|
File without changes
|
File without changes
|
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eztek-mediat_r
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- yeucon02vn
|
@@ -79,16 +79,16 @@ files:
|
|
79
79
|
- lib/ez/mediat_r.rb
|
80
80
|
- lib/ez/mediat_r/alias.rb
|
81
81
|
- lib/ez/mediat_r/version.rb
|
82
|
-
- lib/generators/
|
83
|
-
- lib/generators/
|
84
|
-
- lib/generators/
|
85
|
-
- lib/generators/
|
86
|
-
- lib/generators/
|
87
|
-
- lib/generators/
|
88
|
-
- lib/generators/
|
89
|
-
- lib/generators/
|
90
|
-
- lib/generators/
|
91
|
-
- lib/generators/
|
82
|
+
- lib/generators/command/USAGE
|
83
|
+
- lib/generators/command/command_generator.rb
|
84
|
+
- lib/generators/command/templates/command_handler_template.template
|
85
|
+
- lib/generators/command/templates/command_template.template
|
86
|
+
- lib/generators/command/templates/command_validator_template.template
|
87
|
+
- lib/generators/query/USAGE
|
88
|
+
- lib/generators/query/query_generator.rb
|
89
|
+
- lib/generators/query/templates/query_handler_template.template
|
90
|
+
- lib/generators/query/templates/query_template.template
|
91
|
+
- lib/generators/query/templates/query_validator_template.template
|
92
92
|
- sig/ez/mediat_r.rbs
|
93
93
|
homepage: https://github.com/yeucon02vn/eztek-mediat_r
|
94
94
|
licenses:
|