rao-service 0.0.24.pre → 0.0.25.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rao/service/base.rb +8 -4
- 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: 2b7a9282bcef71eb82044afb5bb9d61496823d9b738c9f011745615f52cdf5be
|
4
|
+
data.tar.gz: 471eb7e5b116a84ce5d9b4691484c2af0545b379fd90c67eea28059090100e0e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11947eeb6c11a488a3c65d6797d0c50114db3661448bd1025d07738a9d947596ab72e173533c9ea72a76d01bfa87a27496d6e1dbcdb3204f22237f429642fb71
|
7
|
+
data.tar.gz: cdf726b83c5f7802b2b55066e2b0b9eae739b59c30e1b206a1b42b4611e7d06a6dba2c5b90363d328d10975ca2b11089e2fc2e3187fb4af98b8efeb23e1d0511
|
data/lib/rao/service/base.rb
CHANGED
@@ -65,10 +65,14 @@ module Rao
|
|
65
65
|
def after_validation; end
|
66
66
|
def after_perform; end
|
67
67
|
|
68
|
-
def perform
|
69
|
-
|
70
|
-
|
71
|
-
|
68
|
+
def perform(options)
|
69
|
+
options.reverse_merge!(validate: true)
|
70
|
+
validate = options.delete(:validate)
|
71
|
+
if validate
|
72
|
+
before_validation
|
73
|
+
return perform_result unless valid?
|
74
|
+
after_validation
|
75
|
+
end
|
72
76
|
before_perform
|
73
77
|
say "Performing" do
|
74
78
|
_perform
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rao-service
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.25.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roberto Vasquez Angel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-05-
|
11
|
+
date: 2019-05-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|