strum-service 0.1.2 → 0.2.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 +4 -4
- data/.gitignore +3 -0
- data/Gemfile.lock +5 -5
- data/lib/strum/service.rb +4 -2
- data/lib/strum/service/version.rb +1 -1
- data/strum-service.gemspec +1 -1
- 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: 5fb6ced97fb4ca360125eacaaf126b16cd20d1eaec11fa44da8e7343bcd6824b
|
4
|
+
data.tar.gz: 18f2f7e2379143b136c5200320880c6592adb5968f16f15c6471b5da33a4737c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd0b7a43efc17cd92dc80748e94fc7339e14ebeb8c8c38b508d73b92fde28c3c77d6500df03c3a5493ddf388b53a8ea4b1500533b456ee3c9d4cd746d8f012a4
|
7
|
+
data.tar.gz: a95e51946cb31f1424b621bb938e96da89f0e751bf3865585b027edb0235b6b358354ac4fdda2979bf1327d591f9ebff722657f17689beef78806dab11d7822e
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
strum-service (0.
|
4
|
+
strum-service (0.2.0)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
@@ -9,7 +9,7 @@ GEM
|
|
9
9
|
ast (2.4.2)
|
10
10
|
diff-lcs (1.4.4)
|
11
11
|
parallel (1.20.1)
|
12
|
-
parser (3.0.
|
12
|
+
parser (3.0.2.0)
|
13
13
|
ast (~> 2.4.1)
|
14
14
|
rainbow (3.0.0)
|
15
15
|
rake (12.3.3)
|
@@ -28,16 +28,16 @@ GEM
|
|
28
28
|
diff-lcs (>= 1.2.0, < 2.0)
|
29
29
|
rspec-support (~> 3.10.0)
|
30
30
|
rspec-support (3.10.2)
|
31
|
-
rubocop (1.
|
31
|
+
rubocop (1.18.4)
|
32
32
|
parallel (~> 1.10)
|
33
33
|
parser (>= 3.0.0.0)
|
34
34
|
rainbow (>= 2.2.2, < 4.0)
|
35
35
|
regexp_parser (>= 1.8, < 3.0)
|
36
36
|
rexml
|
37
|
-
rubocop-ast (>= 1.
|
37
|
+
rubocop-ast (>= 1.8.0, < 2.0)
|
38
38
|
ruby-progressbar (~> 1.7)
|
39
39
|
unicode-display_width (>= 1.4.0, < 3.0)
|
40
|
-
rubocop-ast (1.
|
40
|
+
rubocop-ast (1.8.0)
|
41
41
|
parser (>= 3.0.1.1)
|
42
42
|
rubocop-rake (0.5.1)
|
43
43
|
rubocop
|
data/lib/strum/service.rb
CHANGED
@@ -25,13 +25,15 @@ module Strum
|
|
25
25
|
|
26
26
|
# Internal: Interactor class methods.
|
27
27
|
module ClassMethods
|
28
|
-
def call(main_input,
|
28
|
+
def call(main_input, args = {}, &block)
|
29
|
+
raise ArgumentError, "Only Hash are allowed for args" unless args.is_a?(Hash)
|
30
|
+
|
29
31
|
new(main_input, **args).execute(&block)
|
30
32
|
end
|
31
33
|
end
|
32
34
|
|
33
35
|
# Instance methods
|
34
|
-
def initialize(main_input,
|
36
|
+
def initialize(main_input, args = {})
|
35
37
|
self.strum_errors = {}
|
36
38
|
self.service_handlers = { on: {}, success: {}, failure: {} }
|
37
39
|
self.outputs = {}
|
data/strum-service.gemspec
CHANGED
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
|
|
24
24
|
# Specify which files should be added to the gem when it is released.
|
25
25
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
26
26
|
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
27
|
-
`git ls-files -z`.split("\x0").reject { |f| f.match(
|
27
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(/^(test|spec|features|\.ruby-version)/) }
|
28
28
|
end
|
29
29
|
spec.bindir = "exe"
|
30
30
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: strum-service
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Serhiy Nazarov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-05
|
11
|
+
date: 2021-08-05 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Strum Service
|
14
14
|
email:
|