light-services 2.0.0.rc6 → 2.0.0.rc7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/light/services/base.rb +4 -5
- data/lib/light/services/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 56f8e05e0898a95e0012bd2bedf572743cbc6869b560b4a7c53aaf826a148851
|
4
|
+
data.tar.gz: 31349929949615aa616c6c5b58737c4248cf199df340cfa52672b446ef7dd0b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9fb14ebb26407e8eda911e54bd3bc40cf57977ddda0b7626d2712624e446b9c55e1727a43308771bc85792be3df9701da3441db7127e40bf77a35acb89bf4db
|
7
|
+
data.tar.gz: 48fade5a78989a8a71c07c055f92d666585367a1140dc26b2799162738efa072815d8511e6c1d7c68d20c6163393ae9acdc7868720462d972b67810c6335158d
|
data/Gemfile.lock
CHANGED
data/lib/light/services/base.rb
CHANGED
@@ -28,14 +28,10 @@ module Light
|
|
28
28
|
mount_class_based_collection :arguments, item_class: Settings::Argument, shortcut: :arg, allow_redefine: true
|
29
29
|
|
30
30
|
# Arguments
|
31
|
-
|
31
|
+
arg :verbose, default: false
|
32
32
|
arg :benchmark, default: false
|
33
33
|
arg :deepness, default: 0, context: true
|
34
34
|
|
35
|
-
# Steps
|
36
|
-
step :load_defaults_and_validate
|
37
|
-
step :log_header, if: :benchmark?
|
38
|
-
|
39
35
|
# Getters
|
40
36
|
attr_reader :outputs, :arguments, :errors, :warnings
|
41
37
|
|
@@ -78,6 +74,9 @@ module Light
|
|
78
74
|
end
|
79
75
|
|
80
76
|
def call
|
77
|
+
load_defaults_and_validate
|
78
|
+
log_header if benchmark? || verbose?
|
79
|
+
|
81
80
|
time = Benchmark.ms do
|
82
81
|
run_steps
|
83
82
|
run_steps_with_always
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: light-services
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.0.
|
4
|
+
version: 2.0.0.rc7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Emelianenko
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Powerful implementation of Service Object pattern for Ruby and Rails
|
14
14
|
email:
|
@@ -71,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
71
71
|
- !ruby/object:Gem::Version
|
72
72
|
version: 1.3.1
|
73
73
|
requirements: []
|
74
|
-
rubygems_version: 3.1.
|
74
|
+
rubygems_version: 3.1.6
|
75
75
|
signing_key:
|
76
76
|
specification_version: 4
|
77
77
|
summary: Powerful implementation of Service Object pattern for Ruby and Rails
|