eztek-mediat_r 1.1.0 → 1.1.1
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/README.md +14 -0
- data/lib/ez/mediat_r/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23232c3a36bb0ede0c8c8ae56e8b777575f34b962e98063781ad9b7dc8ff149b
|
4
|
+
data.tar.gz: 58dce58ad6aba69fe1bea815c6f8d3ff64cf8aaf0e487653aa3ba93013f4f589
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52b2d3824bb3a20f97195b8a9f327a03805c5ca20e3cfdaf14f2ee5f2e730991065e4480c42d4cd34a8b111576778d97e1415cb4f33fd443646eea9ddb62c9ef
|
7
|
+
data.tar.gz: 9967a9ccfd94e85648fa59f32b05d706c5985c0f7cff6328dd931f3fae7677e4a7ced4fda3fa24f4bf631bbc537b2929e002a90aef166f7dfc03b75b25f61ba9
|
data/README.md
CHANGED
@@ -71,6 +71,20 @@ mediator.execute(command)
|
|
71
71
|
|
72
72
|
```
|
73
73
|
|
74
|
+
## Generator structure with rails
|
75
|
+
```ruby
|
76
|
+
$ rails generate command feature command_name
|
77
|
+
```
|
78
|
+
Example:
|
79
|
+
```ruby
|
80
|
+
$ rails generate command auth login
|
81
|
+
```
|
82
|
+
|
83
|
+
This will create:
|
84
|
+
app/cqrs/auth/commands/login_command.rb
|
85
|
+
app/cqrs/auth/commands/validators/login_command_validator.rb
|
86
|
+
app/cqrs/auth/commands/handlers/login_command_handler.rb
|
87
|
+
|
74
88
|
## Development
|
75
89
|
|
76
90
|
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
data/lib/ez/mediat_r/version.rb
CHANGED