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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rao/service/base.rb +8 -4
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ec90836fb894f7cf2f56afefa0cf5b6b6307042be4befc5067cdf06980080c08
4
- data.tar.gz: e6d2311ccc319310084a0d28a00ceced99f06b13c44bfe5ab7e408195642c148
3
+ metadata.gz: 2b7a9282bcef71eb82044afb5bb9d61496823d9b738c9f011745615f52cdf5be
4
+ data.tar.gz: 471eb7e5b116a84ce5d9b4691484c2af0545b379fd90c67eea28059090100e0e
5
5
  SHA512:
6
- metadata.gz: b6aa7c25f7b7d244aad061f9721ff8d26fb969ec7967db691e1203263998b6059487e23b32e979d54cbb3900d67f150892e177e0676213396f3a7fcb9f16c64c
7
- data.tar.gz: 5154a8120b492cf0cf27c896b6337399ee07787747b7ce5a5e3117e93babcfa656871cf88e1d4d079aed158b830df02e0a17a87f2e6d481c8a7c6b6e98fa1ad8
6
+ metadata.gz: 11947eeb6c11a488a3c65d6797d0c50114db3661448bd1025d07738a9d947596ab72e173533c9ea72a76d01bfa87a27496d6e1dbcdb3204f22237f429642fb71
7
+ data.tar.gz: cdf726b83c5f7802b2b55066e2b0b9eae739b59c30e1b206a1b42b4611e7d06a6dba2c5b90363d328d10975ca2b11089e2fc2e3187fb4af98b8efeb23e1d0511
@@ -65,10 +65,14 @@ module Rao
65
65
  def after_validation; end
66
66
  def after_perform; end
67
67
 
68
- def perform
69
- before_validation
70
- return perform_result unless valid?
71
- after_validation
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.24.pre
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-14 00:00:00.000000000 Z
11
+ date: 2019-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails