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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a48e55844b50d4c411b90b137fe6d01e8ccfdf2ea6ed6c6cf6a4e6c1fa61858d
4
- data.tar.gz: f4c2ff39479cd2c39c76948ca82f0adbd7cf033e3cbc80aebb3829870782661e
3
+ metadata.gz: 70e8616aa317335bb98b389dfb36643cf91709a1f2c1b34bf339b3eff13d85e1
4
+ data.tar.gz: d8e6d3c5f1aa4b8f9f03491ab7e944ef1adf8f801f4ebc714fa271c17176ea21
5
5
  SHA512:
6
- metadata.gz: efa2e26984fa7e44fa0460af1eb8e7a61f310090b4f433a117debf927cac25422a7e6a289ddf19f02acfe2efb34fa947b9f6521441ca7ae6f8535bf788e47c15
7
- data.tar.gz: 611679a3f465a77f9bc5c2c464df2b3b691cd0b417fa97c0b61d80e401ddea683ad57d093d5a15c9baf40f998134b9dad4d001891b9fb2beac53f0b8ee820948
6
+ metadata.gz: 43150555a3c18fa15a3b15d77f3fbee7493c17a2a3353e2e6ab3c2e0fcd7a862c321b53a9413bc9a4f369a74f52bd23d96ec68637c346407cba20bb46f73ac1d
7
+ data.tar.gz: b28f43ec9bba0f46f3345d2acb07dd1665cafbf2b844cd6abcffb32f6d27ccd1d7356cd8bedd7a246802032e2b6727bf2acf8eb0916d9e18445c50b39bbbfd85
@@ -2,6 +2,6 @@
2
2
 
3
3
  module EZ
4
4
  module MediatR
5
- VERSION = "1.0.2"
5
+ VERSION = "1.0.3"
6
6
  end
7
7
  end
@@ -2,7 +2,7 @@ Description:
2
2
  Creates the command model structure for you.
3
3
 
4
4
  Example:
5
- rails generate commands user create_user
5
+ rails generate command user create_user
6
6
 
7
7
  This will create:
8
8
  app/cqrs/user/commands/create_user_command.rb
@@ -1,4 +1,4 @@
1
- class CommandsGenerator < Rails::Generators::Base
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 'commands_template.template', "app/cqrs/#{model.underscore}/commands/#{name.underscore}_command.rb"
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 'commands_validator_template.template', "app/cqrs/#{model.underscore}/commands/validators/#{name.underscore}_command_validator.rb"
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 'commands_handler_template.template', "app/cqrs/#{model.underscore}/commands/handlers/#{name.underscore}_command_handler.rb"
28
+ template 'command_handler_template.template', "app/cqrs/#{model.underscore}/commands/handlers/#{name.underscore}_command_handler.rb"
30
29
  end
31
30
  end
@@ -2,7 +2,7 @@ Description:
2
2
  Creates the query model structure for you.
3
3
 
4
4
  Example:
5
- rails generate queries user get_all_user
5
+ rails generate query user get_all_user
6
6
 
7
7
  This will create:
8
8
  app/cqrs/user/queries/get_all_user_query.rb
@@ -1,4 +1,4 @@
1
- class QueriesGenerator < Rails::Generators::Base
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 'queries_template.template', "app/cqrs/#{model.underscore}/queries/#{name.underscore}_query.rb"
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 'queries_validator_template.template', "app/cqrs/#{model.underscore}/queries/validators/#{name.underscore}_query_validator.rb"
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 'queries_handler_template.template', "app/cqrs/#{model.underscore}/queries/handlers/#{name.underscore}_query_handler.rb"
28
+ template 'query_handler_template.template', "app/cqrs/#{model.underscore}/queries/handlers/#{name.underscore}_query_handler.rb"
29
29
  end
30
30
  end
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.2
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/commands/USAGE
83
- - lib/generators/commands/commands_generator.rb
84
- - lib/generators/commands/templates/command_handler_template.template
85
- - lib/generators/commands/templates/command_template.template
86
- - lib/generators/commands/templates/command_validator_template.template
87
- - lib/generators/queries/USAGE
88
- - lib/generators/queries/queries_generator.rb
89
- - lib/generators/queries/templates/queries_handler_template.template
90
- - lib/generators/queries/templates/queries_template.template
91
- - lib/generators/queries/templates/queries_validator_template.template
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: