light-services 2.2 → 2.2.1
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/.gitignore +4 -0
- data/Gemfile.lock +1 -1
- data/lib/light/services/base.rb +2 -2
- data/lib/light/services/base_with_context.rb +2 -3
- data/lib/light/services/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fb172e14ae0c846d5e445299d63383fc3855d3f021f3642e64f3f0b25b2f96db
|
|
4
|
+
data.tar.gz: da0ec0d32a82f2f6d245f58f9c4c4549b65af47f06d34241c684dd3ff038f107
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 27dc9088b5726a0a35cb799c0e4dadaded2135ab8599dc630b2d84c483264a76ba478a86106300866c7c6d99e82a97e4fc6eebfbf88ebdf2215e6a0d0d08efe3
|
|
7
|
+
data.tar.gz: d64ed30327e04f8b8895c59534db1e04e5649ae4f06bdb420abe40667917ad6a94321717ee5c8e76f24a00dd940b55234cf9f88ee6606e225d0a673d1e790b47
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
data/lib/light/services/base.rb
CHANGED
|
@@ -42,7 +42,7 @@ module Light
|
|
|
42
42
|
@parent_service = parent_service
|
|
43
43
|
|
|
44
44
|
@outputs = Collection::Outputs.new(self)
|
|
45
|
-
@arguments = Collection::Arguments.new(self, args)
|
|
45
|
+
@arguments = Collection::Arguments.new(self, args.dup)
|
|
46
46
|
|
|
47
47
|
@done = false
|
|
48
48
|
@launched_steps = []
|
|
@@ -115,7 +115,7 @@ module Light
|
|
|
115
115
|
service = service_or_config.is_a?(Hash) ? nil : service_or_config
|
|
116
116
|
config = service_or_config unless service
|
|
117
117
|
|
|
118
|
-
BaseWithContext.new(self, service, config)
|
|
118
|
+
BaseWithContext.new(self, service, config.dup)
|
|
119
119
|
end
|
|
120
120
|
end
|
|
121
121
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# This class allows
|
|
3
|
+
# This class allows running a service object with context (parent class and custom config)
|
|
4
4
|
module Light
|
|
5
5
|
module Services
|
|
6
6
|
class BaseWithContext
|
|
@@ -26,8 +26,7 @@ module Light
|
|
|
26
26
|
private
|
|
27
27
|
|
|
28
28
|
def extend_arguments(args)
|
|
29
|
-
|
|
30
|
-
args = @parent_service.arguments.extend_with_context(args) if @parent_service
|
|
29
|
+
args = @parent_service.arguments.dup.extend_with_context(args) if @parent_service
|
|
31
30
|
args[:deepness] += 1 if args[:deepness]
|
|
32
31
|
|
|
33
32
|
args
|