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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ceac3a2f6ac02e1d5ae845d1baa47b6950c8c46d0b861856dfa959ade957faac
4
- data.tar.gz: 621034c0b9ee08cfa8ab4d0fc143ba7d840ffd7b2c6b697aec944a30d678d417
3
+ metadata.gz: 19a7acc9d64b98809081a762d0cd9dfe2ac415107acfb0d0160ccae7f3f755c5
4
+ data.tar.gz: d963460e9578d90d2e7991a7b8b97ca976b161af1e5aa6b2dc7e8cd558b09401
5
5
  SHA512:
6
- metadata.gz: 6ac83b3ec53c46a988821379d2b134fe2c7f726c7b57bd33b04628e76b6d1dc1ef5ea9c7ac762063abb9e6ed4f4711c6122b2214aa66de542a747f76cdf4a621
7
- data.tar.gz: e6995f6ffbc4d3aae9fcdf0cd14223880744bbc960157fd1457539a3e3a6fc5465398ead37c15da4cee53e4c5c4633bdf5e16a2fa7c8438822b61d815b514547
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.github.io/evnt
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
- if validator.passed?
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
@@ -3,6 +3,6 @@
3
3
  # Evnt.
4
4
  module Evnt
5
5
 
6
- VERSION = '3.6.6'
6
+ VERSION = '3.7.0'
7
7
 
8
8
  end
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.6.6
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-02-13 00:00:00.000000000 Z
11
+ date: 2020-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler