evnt 3.6.6 → 3.7.0
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 +1 -15
- data/lib/evnt/command.rb +6 -2
- data/lib/evnt/version.rb +1 -1
- 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: 19a7acc9d64b98809081a762d0cd9dfe2ac415107acfb0d0160ccae7f3f755c5
|
4
|
+
data.tar.gz: d963460e9578d90d2e7991a7b8b97ca976b161af1e5aa6b2dc7e8cd558b09401
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9b1650f5aad74d4ea0f5eea769ff8387b360fcfb52722e06b6c1c106ba7f8d3ce6bd57f562cf9466267d0a763e16ec42ab3e4cc5d5a258bef922eb428b18174
|
7
|
+
data.tar.gz: 5f2e52f10970c91be2476dcef02b5aa09835e658eb7dfc6f820387a07417709cf86f2e119967e72334a6eca7f500fc2b4650aeac027728cc9738ab749289d062
|
data/README.md
CHANGED
@@ -11,7 +11,7 @@ Evnt is a Ruby gem used to design software following the CQRS and Event driven d
|
|
11
11
|
- **Events**: something that it's already happen and should be logged somewhere.
|
12
12
|
- **Handlers**: event listeners that perform specific tasks.
|
13
13
|
|
14
|
-
The full documentation of these classes can be found here: https://ideonetwork
|
14
|
+
The full documentation of these classes can be found here: <a href="https://github.com/ideonetwork/evnt/wiki">https://github.com/ideonetwork/evnt/wiki</a>
|
15
15
|
|
16
16
|
## Installation
|
17
17
|
|
@@ -36,17 +36,3 @@ To update the rdoc documentation run:
|
|
36
36
|
```console
|
37
37
|
rdoc --op rdoc
|
38
38
|
```
|
39
|
-
|
40
|
-
### Docsify documentation
|
41
|
-
|
42
|
-
Install docsify as global node dependency
|
43
|
-
|
44
|
-
```shell
|
45
|
-
npm install -g docsify-cli
|
46
|
-
```
|
47
|
-
|
48
|
-
See documentation on local machine
|
49
|
-
|
50
|
-
```shell
|
51
|
-
docsify serve ./docs
|
52
|
-
```
|
data/lib/evnt/command.rb
CHANGED
@@ -144,12 +144,16 @@ module Evnt
|
|
144
144
|
value_to_validate = _value_to_validate(val)
|
145
145
|
validator = Evnt::Validator.new(value_to_validate, val[:options])
|
146
146
|
|
147
|
-
|
147
|
+
passed = true
|
148
|
+
passed = false if !validator.passed?
|
149
|
+
passed = false if val[:options][:do] && !send(val[:options][:do])
|
150
|
+
|
151
|
+
if passed
|
148
152
|
@params[val[:param]] = validator.value
|
149
153
|
else
|
150
154
|
error = val[:options][:err] || "#{val[:param].capitalize} value not accepted"
|
151
155
|
err_code = val[:options][:err_code] || val[:param].to_sym
|
152
|
-
err(error, code: err_code)
|
156
|
+
err(error, code: err_code) if !val[:options][:do]
|
153
157
|
break
|
154
158
|
end
|
155
159
|
end
|
data/lib/evnt/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: evnt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ideonetwork
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-03-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|